diff --git a/angular.json b/angular.json index 0ae6544..328e79b 100644 --- a/angular.json +++ b/angular.json @@ -50,7 +50,7 @@ "maximumError": "80kB" } ], - "outputHashing": "all" + "outputHashing": "none" }, "development": { "optimization": false, @@ -61,7 +61,8 @@ "replace": "src/environments/environment.ts", "with": "src/environments/environment.development.ts" } - ] + ], + "outputHashing": "none" } }, "defaultConfiguration": "production" diff --git a/latest/chunk-JOBM76N2.js b/latest/chunk-JOBM76N2.js deleted file mode 100644 index aeb00c0..0000000 --- a/latest/chunk-JOBM76N2.js +++ /dev/null @@ -1 +0,0 @@ -import{$d as d,Yd as a,Zd as b,_d as c,ae as e,be as f,ce as g}from"./chunk-SK2T2ZXR.js";export{f as Button,b as ButtonClasses,e as ButtonDirective,d as ButtonIcon,c as ButtonLabel,g as ButtonModule,a as ButtonStyle}; diff --git a/latest/chunk-SK2T2ZXR.js b/latest/chunk-SK2T2ZXR.js deleted file mode 100644 index 359d5e9..0000000 --- a/latest/chunk-SK2T2ZXR.js +++ /dev/null @@ -1,993 +0,0 @@ -var Jy=Object.defineProperty,Xy=Object.defineProperties;var ev=Object.getOwnPropertyDescriptors;var di=Object.getOwnPropertySymbols;var Nd=Object.prototype.hasOwnProperty,Md=Object.prototype.propertyIsEnumerable;var tv=(e,n)=>(n=Symbol[e])?n:Symbol.for("Symbol."+e);var Td=(e,n,t)=>n in e?Jy(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,D=(e,n)=>{for(var t in n||={})Nd.call(n,t)&&Td(e,t,n[t]);if(di)for(var t of di(n))Md.call(n,t)&&Td(e,t,n[t]);return e},H=(e,n)=>Xy(e,ev(n));var I_=e=>typeof e=="symbol"?e:e+"",xd=(e,n)=>{var t={};for(var r in e)Nd.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&di)for(var r of di(e))n.indexOf(r)<0&&Md.call(e,r)&&(t[r]=e[r]);return t};var Oa=(e,n,t)=>new Promise((r,o)=>{var i=l=>{try{a(t.next(l))}catch(c){o(c)}},s=l=>{try{a(t.throw(l))}catch(c){o(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,s);a((t=t.apply(e,n)).next())}),nv=function(e,n){this[0]=e,this[1]=n},w_=(e,n,t)=>{var r=(a,l,c,u)=>{try{var d=t[a](l),p=(l=d.value)instanceof nv,f=d.done;Promise.resolve(p?l[0]:l).then(h=>p?r(a==="return"?a:"next",l[1]?{done:h.done,value:h.value}:h,c,u):c({value:h,done:f})).catch(h=>r("throw",h,c,u))}catch(h){u(h)}},o=(a,l,c,u)=>s[a]=d=>(l=new Promise((p,f,h)=>(h=()=>r(a,d,p,f),i?i.then(h):h())),u=()=>i===c&&(i=0),i=c=l.then(u,u),l),i,s={};return t=t.apply(e,n),s[tv("asyncIterator")]=()=>s,o("next"),o("throw"),o("return"),s};var Ra;function fi(){return Ra}function lt(e){let n=Ra;return Ra=e,n}var Ad=Symbol("NotFound");function qn(e){return e===Ad||e?.name==="\u0275NotFound"}var pe=null,pi=!1,ka=1,rv=null,ie=Symbol("SIGNAL");function w(e){let n=pe;return pe=e,n}function yi(){return pe}var hn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Zn(e){if(pi)throw new Error("");if(pe===null)return;pe.consumerOnSignalRead(e);let n=pe.producersTail;if(n!==void 0&&n.producer===e)return;let t,r=pe.recomputing;if(r&&(t=n!==void 0?n.nextProducer:pe.producers,t!==void 0&&t.producer===e)){pe.producersTail=t,t.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===pe&&(!r||iv(o,pe)))return;let i=Kn(pe),s={producer:e,consumer:pe,nextProducer:t,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};pe.producersTail=s,n!==void 0?n.nextProducer=s:pe.producers=s,i&&Fd(e,s)}function Od(){ka++}function vi(e){if(!(Kn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ka)){if(!e.producerMustRecompute(e)&&!Qn(e)){mi(e);return}e.producerRecomputeValue(e),mi(e)}}function Fa(e){if(e.consumers===void 0)return;let n=pi;pi=!0;try{for(let t=e.consumers;t!==void 0;t=t.nextConsumer){let r=t.consumer;r.dirty||ov(r)}}finally{pi=n}}function La(){return pe?.consumerAllowSignalWrites!==!1}function ov(e){e.dirty=!0,Fa(e),e.consumerMarkedDirty?.(e)}function mi(e){e.dirty=!1,e.lastCleanEpoch=ka}function gn(e){return e&&Rd(e),w(e)}function Rd(e){e.producersTail=void 0,e.recomputing=!0}function Yn(e,n){w(n),e&&kd(e)}function kd(e){e.recomputing=!1;let n=e.producersTail,t=n!==void 0?n.nextProducer:e.producers;if(t!==void 0){if(Kn(e))do t=Pa(t);while(t!==void 0);n!==void 0?n.nextProducer=void 0:e.producers=void 0}}function Qn(e){for(let n=e.producers;n!==void 0;n=n.nextProducer){let t=n.producer,r=n.lastReadVersion;if(r!==t.version||(vi(t),r!==t.version))return!0}return!1}function mn(e){if(Kn(e)){let n=e.producers;for(;n!==void 0;)n=Pa(n)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Fd(e,n){let t=e.consumersTail,r=Kn(e);if(t!==void 0?(n.nextConsumer=t.nextConsumer,t.nextConsumer=n):(n.nextConsumer=void 0,e.consumers=n),n.prevConsumer=t,e.consumersTail=n,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Fd(o.producer,o)}function Pa(e){let n=e.producer,t=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:n.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(n.consumers=r,!Kn(n)){let i=n.producers;for(;i!==void 0;)i=Pa(i)}return t}function Kn(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function bi(e){rv?.(e)}function iv(e,n){let t=n.producersTail;if(t!==void 0){let r=n.producers;do{if(r===e)return!0;if(r===t)break;r=r.nextProducer}while(r!==void 0)}return!1}function Di(e,n){return Object.is(e,n)}function to(e,n){let t=Object.create(sv);t.computation=e,n!==void 0&&(t.equal=n);let r=()=>{if(vi(t),Zn(t),t.value===eo)throw t.error;return t.value};return r[ie]=t,bi(t),r}var hi=Symbol("UNSET"),gi=Symbol("COMPUTING"),eo=Symbol("ERRORED"),sv=H(D({},hn),{value:hi,dirty:!0,error:null,equal:Di,kind:"computed",producerMustRecompute(e){return e.value===hi||e.value===gi},producerRecomputeValue(e){if(e.value===gi)throw new Error("");let n=e.value;e.value=gi;let t=gn(e),r,o=!1;try{r=e.computation(),w(null),o=n!==hi&&n!==eo&&r!==eo&&e.equal(n,r)}catch(i){r=eo,e.error=i}finally{Yn(e,t)}if(o){e.value=n;return}e.value=r,e.version++}});function av(){throw new Error}var Ld=av;function Pd(e){Ld(e)}function ja(e){Ld=e}var lv=null;function Ba(e,n){let t=Object.create(Ei);t.value=e,n!==void 0&&(t.equal=n);let r=()=>jd(t);return r[ie]=t,bi(t),[r,s=>Jn(t,s),s=>Va(t,s)]}function jd(e){return Zn(e),e.value}function Jn(e,n){La()||Pd(e),e.equal(e.value,n)||(e.value=n,cv(e))}function Va(e,n){La()||Pd(e),Jn(e,n(e.value))}var Ei=H(D({},hn),{equal:Di,value:void 0,kind:"signal"});function cv(e){e.version++,Od(),Fa(e),lv?.(e)}function _(e){return typeof e=="function"}function Xn(e){let t=e(r=>{Error.call(r),r.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Ci=Xn(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription: -${t.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=t});function yn(e,n){if(e){let t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Q=class e{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(let i of t)i.remove(this);else t.remove(this);let{initialTeardown:r}=this;if(_(r))try{r()}catch(i){n=i instanceof Ci?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Bd(i)}catch(s){n=n??[],s instanceof Ci?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Ci(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Bd(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}}_hasParent(n){let{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){let{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){let{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&yn(t,n)}remove(n){let{_finalizers:t}=this;t&&yn(t,n),n instanceof e&&n._removeParent(this)}};Q.EMPTY=(()=>{let e=new Q;return e.closed=!0,e})();var $a=Q.EMPTY;function Ii(e){return e instanceof Q||e&&"closed"in e&&_(e.remove)&&_(e.add)&&_(e.unsubscribe)}function Bd(e){_(e)?e():e.unsubscribe()}var qe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var er={setTimeout(e,n,...t){let{delegate:r}=er;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){let{delegate:n}=er;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function wi(e){er.setTimeout(()=>{let{onUnhandledError:n}=qe;if(n)n(e);else throw e})}function no(){}var Vd=Ha("C",void 0,void 0);function $d(e){return Ha("E",void 0,e)}function Hd(e){return Ha("N",e,void 0)}function Ha(e,n,t){return{kind:e,value:n,error:t}}var vn=null;function tr(e){if(qe.useDeprecatedSynchronousErrorHandling){let n=!vn;if(n&&(vn={errorThrown:!1,error:null}),e(),n){let{errorThrown:t,error:r}=vn;if(vn=null,t)throw r}}else e()}function Ud(e){qe.useDeprecatedSynchronousErrorHandling&&vn&&(vn.errorThrown=!0,vn.error=e)}var bn=class extends Q{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ii(n)&&n.add(this)):this.destination=fv}static create(n,t,r){return new wt(n,t,r)}next(n){this.isStopped?Wa(Hd(n),this):this._next(n)}error(n){this.isStopped?Wa($d(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Wa(Vd,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},uv=Function.prototype.bind;function Ua(e,n){return uv.call(e,n)}var za=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Si(r)}}error(n){let{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Si(r)}else Si(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Si(t)}}},wt=class extends bn{constructor(n,t,r){super();let o;if(_(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&qe.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Ua(n.next,i),error:n.error&&Ua(n.error,i),complete:n.complete&&Ua(n.complete,i)}):o=n}this.destination=new za(o)}};function Si(e){qe.useDeprecatedSynchronousErrorHandling?Ud(e):wi(e)}function dv(e){throw e}function Wa(e,n){let{onStoppedNotification:t}=qe;t&&er.setTimeout(()=>t(e,n))}var fv={closed:!0,next:no,error:dv,complete:no};var nr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function be(e){return e}function pv(...e){return Ga(e)}function Ga(e){return e.length===0?be:e.length===1?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}var O=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){let r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){let i=gv(t)?t:new wt(t,r,o);return tr(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return r=Wd(r),new r((o,i)=>{let s=new wt({next:a=>{try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)}[nr](){return this}pipe(...t){return Ga(t)(this)}toPromise(t){return t=Wd(t),new t((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function Wd(e){var n;return(n=e??qe.Promise)!==null&&n!==void 0?n:Promise}function hv(e){return e&&_(e.next)&&_(e.error)&&_(e.complete)}function gv(e){return e&&e instanceof bn||hv(e)&&Ii(e)}function qa(e){return _(e?.lift)}function N(e){return n=>{if(qa(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function M(e,n,t,r,o){return new Za(e,n,t,r,o)}var Za=class extends bn{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function Ya(){return N((e,n)=>{let t=null;e._refCount++;let r=M(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){t=null;return}let o=e._connection,i=t;t=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}var Qa=class extends O{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,qa(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Q;let t=this.getSubject();n.add(this.source.subscribe(M(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Q.EMPTY)}return n}refCount(){return Ya()(this)}};var zd=Xn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var se=(()=>{class e extends O{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let r=new _i(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new zd}next(t){tr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(t)}})}error(t){tr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){tr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:r,isStopped:o,observers:i}=this;return r||o?$a:(this.currentObservers=null,i.push(t),new Q(()=>{this.currentObservers=null,yn(i,t)}))}_checkFinalizedStatuses(t){let{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){let t=new O;return t.source=this,t}}return e.create=(n,t)=>new _i(n,t),e})(),_i=class extends se{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.next)===null||r===void 0||r.call(t,n)}error(n){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.error)===null||r===void 0||r.call(t,n)}complete(){var n,t;(t=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||t===void 0||t.call(n)}_subscribe(n){var t,r;return(r=(t=this.source)===null||t===void 0?void 0:t.subscribe(n))!==null&&r!==void 0?r:$a}};var ro=class extends se{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){let{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}};var oo={now(){return(oo.delegate||Date).now()},delegate:void 0};var io=class extends se{constructor(n=1/0,t=1/0,r=oo){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){let{isStopped:t,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;t||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s0?super.schedule(n,t):(this.delay=t,this.state=n,this.scheduler.flush(this),this)}execute(n,t){return t>0||this.closed?super.execute(n,t):this._execute(n,t)}requestAsyncId(n,t,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(n,t,r):(n.flush(this),0)}};var Mi=class extends ir{};var mv=new Mi(Ni);var St=new O(e=>e.complete());function xi(e){return e&&_(e.schedule)}function Ja(e){return e[e.length-1]}function Ai(e){return _(Ja(e))?e.pop():void 0}function ct(e){return xi(Ja(e))?e.pop():void 0}function qd(e,n){return typeof Ja(e)=="number"?e.pop():n}var Zd=function(){return Zd=Object.assign||function(n){for(var t,r=1,o=arguments.length;r=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Dn(e){return this instanceof Dn?(this.v=e,this):new Dn(e)}function Kd(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(e,n||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(m){return new Promise(function(y,v){i.push([f,m,y,v])>1||l(f,m)})},h&&(o[f]=h(o[f])))}function l(f,h){try{c(r[f](h))}catch(m){p(i[0][3],m)}}function c(f){f.value instanceof Dn?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function p(f,h){f(h),i.shift(),i.length&&l(i[0][0],i[0][1])}}function Jd(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Yd=="function"?Yd(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}var Oi=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ri(e){return _(e?.then)}function ki(e){return _(e[nr])}function Fi(e){return Symbol.asyncIterator&&_(e?.[Symbol.asyncIterator])}function Li(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 yv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Pi=yv();function ji(e){return _(e?.[Pi])}function Bi(e){return Kd(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:r,done:o}=yield Dn(t.read());if(o)return yield Dn(void 0);yield yield Dn(r)}}finally{t.releaseLock()}})}function Vi(e){return _(e?.getReader)}function V(e){if(e instanceof O)return e;if(e!=null){if(ki(e))return vv(e);if(Oi(e))return bv(e);if(Ri(e))return Dv(e);if(Fi(e))return Xd(e);if(ji(e))return Ev(e);if(Vi(e))return Cv(e)}throw Li(e)}function vv(e){return new O(n=>{let t=e[nr]();if(_(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function bv(e){return new O(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,wi)})}function Ev(e){return new O(n=>{for(let t of e)if(n.next(t),n.closed)return;n.complete()})}function Xd(e){return new O(n=>{Iv(e,n).catch(t=>n.error(t))})}function Cv(e){return Xd(Bi(e))}function Iv(e,n){var t,r,o,i;return Qd(this,void 0,void 0,function*(){try{for(t=Jd(e);r=yield t.next(),!r.done;){let s=r.value;if(n.next(s),n.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})}function Me(e,n,t,r=0,o=!1){let i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ao(e,n=0){return N((t,r)=>{t.subscribe(M(r,o=>Me(r,e,()=>r.next(o),n),()=>Me(r,e,()=>r.complete(),n),o=>Me(r,e,()=>r.error(o),n)))})}function $i(e,n=0){return N((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function ef(e,n){return V(e).pipe($i(n),ao(n))}function tf(e,n){return V(e).pipe($i(n),ao(n))}function nf(e,n){return new O(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function rf(e,n){return new O(t=>{let r;return Me(t,n,()=>{r=e[Pi](),Me(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){t.error(s);return}i?t.complete():t.next(o)},0,!0)}),()=>_(r?.return)&&r.return()})}function Hi(e,n){if(!e)throw new Error("Iterable cannot be null");return new O(t=>{Me(t,n,()=>{let r=e[Symbol.asyncIterator]();Me(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function of(e,n){return Hi(Bi(e),n)}function sf(e,n){if(e!=null){if(ki(e))return ef(e,n);if(Oi(e))return nf(e,n);if(Ri(e))return tf(e,n);if(Fi(e))return Hi(e,n);if(ji(e))return rf(e,n);if(Vi(e))return of(e,n)}throw Li(e)}function ut(e,n){return n?sf(e,n):V(e)}function Xa(...e){let n=ct(e);return ut(e,n)}function el(e,n){let t=_(e)?e:()=>e,r=o=>o.error(t());return new O(n?o=>n.schedule(r,0,o):r)}var Bt=class e{constructor(n,t,r){this.kind=n,this.value=t,this.error=r,this.hasValue=n==="N"}observe(n){return wv(this,n)}do(n,t,r){let{kind:o,value:i,error:s}=this;return o==="N"?n?.(i):o==="E"?t?.(s):r?.()}accept(n,t,r){var o;return _((o=n)===null||o===void 0?void 0:o.next)?this.observe(n):this.do(n,t,r)}toObservable(){let{kind:n,value:t,error:r}=this,o=n==="N"?Xa(t):n==="E"?el(()=>r):n==="C"?St:0;if(!o)throw new TypeError(`Unexpected notification kind ${n}`);return o}static createNext(n){return new e("N",n)}static createError(n){return new e("E",void 0,n)}static createComplete(){return e.completeNotification}};Bt.completeNotification=new Bt("C");function wv(e,n){var t,r,o;let{kind:i,value:s,error:a}=e;if(typeof i!="string")throw new TypeError('Invalid notification, missing "kind"');i==="N"?(t=n.next)===null||t===void 0||t.call(n,s):i==="E"?(r=n.error)===null||r===void 0||r.call(n,a):(o=n.complete)===null||o===void 0||o.call(n)}function Sv(e){return!!e&&(e instanceof O||_(e.lift)&&_(e.subscribe))}var _t=Xn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function _v(e,n){let t=typeof n=="object";return new Promise((r,o)=>{let i=!1,s;e.subscribe({next:a=>{s=a,i=!0},error:o,complete:()=>{i?r(s):t?r(n.defaultValue):o(new _t)}})})}function af(e){return e instanceof Date&&!isNaN(e)}function Vt(e,n){return N((t,r)=>{let o=0;t.subscribe(M(r,i=>{r.next(e.call(n,i,o++))}))})}var{isArray:Tv}=Array;function Nv(e,n){return Tv(n)?e(...n):e(n)}function Ui(e){return Vt(n=>Nv(e,n))}var{isArray:Mv}=Array,{getPrototypeOf:xv,prototype:Av,keys:Ov}=Object;function Wi(e){if(e.length===1){let n=e[0];if(Mv(n))return{args:n,keys:null};if(Rv(n)){let t=Ov(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}function Rv(e){return e&&typeof e=="object"&&xv(e)===Av}function zi(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function kv(...e){let n=ct(e),t=Ai(e),{args:r,keys:o}=Wi(e);if(r.length===0)return ut([],n);let i=new O(Fv(r,n,o?s=>zi(o,s):be));return t?i.pipe(Ui(t)):i}function Fv(e,n,t=be){return r=>{lf(n,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let l=0;l{let c=ut(e[l],n),u=!1;c.subscribe(M(r,d=>{i[l]=d,u||(u=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function lf(e,n,t){e?Me(t,e,n):n()}function cf(e,n,t,r,o,i,s,a){let l=[],c=0,u=0,d=!1,p=()=>{d&&!l.length&&!c&&n.complete()},f=m=>c{i&&n.next(m),c++;let y=!1;V(t(m,u++)).subscribe(M(n,v=>{o?.(v),i?f(v):n.next(v)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&ch(v)):h(v)}p()}catch(v){n.error(v)}}))};return e.subscribe(M(n,f,()=>{d=!0,p()})),()=>{a?.()}}function $t(e,n,t=1/0){return _(n)?$t((r,o)=>Vt((i,s)=>n(r,i,o,s))(V(e(r,o))),t):(typeof n=="number"&&(t=n),N((r,o)=>cf(r,o,e,t)))}function Gi(e=1/0){return $t(be,e)}function uf(){return Gi(1)}function qi(...e){return uf()(ut(e,ct(e)))}function Lv(e){return new O(n=>{V(e()).subscribe(n)})}function Pv(...e){let n=Ai(e),{args:t,keys:r}=Wi(e),o=new O(i=>{let{length:s}=t;if(!s){i.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=p},()=>l--,void 0,()=>{(!l||!d)&&(c||i.next(r?zi(r,a):a),i.complete())}))}});return n?o.pipe(Ui(n)):o}function jv(e=0,n,t=Gd){let r=-1;return n!=null&&(xi(n)?t=n:r=n),new O(o=>{let i=af(e)?+e-t.now():e;i<0&&(i=0);let s=0;return t.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Bv(...e){let n=ct(e),t=qd(e,1/0),r=e;return r.length?r.length===1?V(r[0]):Gi(t)(ut(r,n)):St}function sr(e,n){return N((t,r)=>{let o=0;t.subscribe(M(r,i=>e.call(n,i,o++)&&r.next(i)))})}function tl(e){return N((n,t)=>{let r=null,o=!1,i;r=n.subscribe(M(t,void 0,void 0,s=>{i=V(e(s,tl(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}function df(e,n,t,r,o){return(i,s)=>{let a=t,l=n,c=0;i.subscribe(M(s,u=>{let d=c++;l=a?e(l,u,d):(a=!0,u),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}function Vv(e,n){return _(n)?$t(e,n,1):$t(e,1)}function $v(e,n=Ka){return N((t,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function l(){let c=s+e,u=n.now();if(u{i=c,s=n.now(),o||(o=n.schedule(l,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function lo(e){return N((n,t)=>{let r=!1;n.subscribe(M(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function nl(e){return e<=0?()=>St:N((n,t)=>{let r=0;n.subscribe(M(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}function Hv(e,n=be){return e=e??Uv,N((t,r)=>{let o,i=!0;t.subscribe(M(r,s=>{let a=n(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Uv(e,n){return e===n}function Zi(e=Wv){return N((n,t)=>{let r=!1;n.subscribe(M(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function Wv(){return new _t}function ff(e){return N((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function zv(e,n){let t=arguments.length>=2;return r=>r.pipe(e?sr((o,i)=>e(o,i,r)):be,nl(1),t?lo(n):Zi(()=>new _t))}function rl(e){return e<=0?()=>St:N((n,t)=>{let r=[];n.subscribe(M(t,o=>{r.push(o),e{for(let o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}function Gv(e,n){let t=arguments.length>=2;return r=>r.pipe(e?sr((o,i)=>e(o,i,r)):be,rl(1),t?lo(n):Zi(()=>new _t))}function qv(){return N((e,n)=>{e.subscribe(M(n,t=>{n.next(Bt.createNext(t))},()=>{n.next(Bt.createComplete()),n.complete()},t=>{n.next(Bt.createError(t)),n.complete()}))})}function Zv(e,n){return N(df(e,n,arguments.length>=2,!0))}function il(e={}){let{connector:n=()=>new se,resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,c=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=l=void 0,u=d=!1},h=()=>{let m=s;f(),m?.unsubscribe()};return N((m,y)=>{c++,!d&&!u&&p();let v=l=l??n();y.add(()=>{c--,c===0&&!d&&!u&&(a=ol(h,o))}),v.subscribe(y),!s&&c>0&&(s=new wt({next:A=>v.next(A),error:A=>{d=!0,p(),a=ol(f,t,A),v.error(A)},complete:()=>{u=!0,p(),a=ol(f,r),v.complete()}}),V(m).subscribe(s))})(i)}}function ol(e,n,...t){if(n===!0){e();return}if(n===!1)return;let r=new wt({next:()=>{r.unsubscribe(),e()}});return V(n(...t)).subscribe(r)}function Yv(e,n,t){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:t}=e:r=e??1/0,il({connector:()=>new io(r,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Qv(...e){let n=ct(e);return N((t,r)=>{(n?qi(e,t,n):qi(e,t)).subscribe(r)})}function Kv(e,n){return N((t,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();t.subscribe(M(r,l=>{o?.unsubscribe();let c=0,u=i++;V(e(l,u)).subscribe(o=M(r,d=>r.next(n?n(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Jv(e){return N((n,t)=>{V(e).subscribe(M(t,()=>t.complete(),no)),!t.closed&&n.subscribe(t)})}function pf(e,n,t){let r=_(e)||n||t?{next:e,error:n,complete:t}:e;return r?N((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(M(i,l=>{var c;(c=r.next)===null||c===void 0||c.call(r,l),i.next(l)},()=>{var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),i.complete()},l=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,l),i.error(l)},()=>{var l,c;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):be}function hf(e){let n=w(null);try{return e()}finally{w(n)}}var gf=H(D({},hn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function mf(e){if(e.dirty=!1,e.version>0&&!Qn(e))return;e.version++;let n=gn(e);try{e.cleanup(),e.fn()}finally{Yn(e,n)}}var Ji="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",T=class extends Error{code;constructor(n,t){super(ho(n,t)),this.code=n}};function Xv(e){return`NG0${Math.abs(e)}`}function ho(e,n){return`${Xv(e)}${n?": "+n:""}`}function k(e){for(let n in e)if(e[n]===k)return n;throw Error("")}function bf(e,n){for(let t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Nt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Nt).join(", ")}]`;if(e==null)return""+e;let n=e.overriddenName||e.name;if(n)return`${n}`;let t=e.toString();if(t==null)return""+t;let r=t.indexOf(` -`);return r>=0?t.slice(0,r):t}function Xi(e,n){return e?n?`${e} ${n}`:e:n||""}var eb=k({__forward_ref__:k});function es(e){return e.__forward_ref__=es,e.toString=function(){return Nt(this())},e}function X(e){return ml(e)?e():e}function ml(e){return typeof e=="function"&&e.hasOwnProperty(eb)&&e.__forward_ref__===es}function I(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ee(e){return{providers:e.providers||[],imports:e.imports||[]}}function go(e){return nb(e,ts)}function tb(e){return go(e)!==null}function nb(e,n){return e.hasOwnProperty(n)&&e[n]||null}function rb(e){let n=e?.[ts]??null;return n||null}function al(e){return e&&e.hasOwnProperty(Qi)?e[Qi]:null}var ts=k({\u0275prov:k}),Qi=k({\u0275inj:k}),C=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,t){this._desc=n,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=I({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function yl(e){return e&&!!e.\u0275providers}var vl=k({\u0275cmp:k}),bl=k({\u0275dir:k}),Dl=k({\u0275pipe:k}),El=k({\u0275mod:k}),uo=k({\u0275fac:k}),Sn=k({__NG_ELEMENT_ID__:k}),yf=k({__NG_ENV_ID__:k});function _n(e){return typeof e=="string"?e:e==null?"":String(e)}function Df(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():_n(e)}var Ef=k({ngErrorCode:k}),ob=k({ngErrorMessage:k}),ib=k({ngTokenPath:k});function Cl(e,n){return Cf("",-200,n)}function ns(e,n){throw new T(-201,!1)}function Cf(e,n,t){let r=new T(n,e);return r[Ef]=n,r[ob]=e,t&&(r[ib]=t),r}function sb(e){return e[Ef]}var ll;function If(){return ll}function De(e){let n=ll;return ll=e,n}function Il(e,n,t){let r=go(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(t&8)return null;if(n!==void 0)return n;ns(e,"Injector")}var ab={},En=ab,lb="__NG_DI_FLAG__",cl=class{injector;constructor(n){this.injector=n}retrieve(n,t){let r=Cn(t)||0;try{return this.injector.get(n,r&8?null:En,r)}catch(o){if(qn(o))return o;throw o}}};function cb(e,n=0){let t=fi();if(t===void 0)throw new T(-203,!1);if(t===null)return Il(e,void 0,n);{let r=ub(n),o=t.retrieve(e,r);if(qn(o)){if(r.optional)return null;throw o}return o}}function ue(e,n=0){return(If()||cb)(X(e),n)}function g(e,n){return ue(e,Cn(n))}function Cn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ub(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function ul(e){let n=[];for(let t=0;tArray.isArray(t)?rs(t,n):n(t))}function wl(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function mo(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function _f(e,n){let t=[];for(let r=0;rn;){let i=o-2;e[o]=e[i],o--}e[n]=t,e[n+1]=r}}function yo(e,n,t){let r=lr(e,n);return r>=0?e[r|1]=t:(r=~r,Tf(e,r,n,t)),r}function os(e,n){let t=lr(e,n);if(t>=0)return e[t|1]}function lr(e,n){return fb(e,n,1)}function fb(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){let i=r+(o-r>>1),s=e[i<n?o=i:r=i+1}return~(o<{t.push(s)};return rs(n,s=>{let a=s;Ki(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&xf(o,i),t}function xf(e,n){for(let t=0;t{n(i,r)})}}function Ki(e,n,t,r){if(e=X(e),!e)return!1;let o=null,i=al(e),s=!i&&xt(e);if(!i&&!s){let l=e.ngModule;if(i=al(l),i)o=l;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 l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)Ki(c,n,t,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;rs(i.imports,u=>{Ki(u,n,t,r)&&(c||=[],c.push(u))}),c!==void 0&&xf(c,n)}if(!a){let c=Ht(o)||(()=>new o);n({provide:o,useFactory:c,deps:he},o),n({provide:_l,useValue:o,multi:!0},o),n({provide:Wt,useValue:()=>ue(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;Ml(l,u=>{n(u,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Ml(e,n){for(let t of e)yl(t)&&(t=t.\u0275providers),Array.isArray(t)?Ml(t,n):n(t)}var pb=k({provide:String,useValue:k});function Af(e){return e!==null&&typeof e=="object"&&pb in e}function hb(e){return!!(e&&e.useExisting)}function gb(e){return!!(e&&e.useFactory)}function In(e){return typeof e=="function"}function Of(e){return!!e.useClass}var xl=new C(""),Yi={},vf={},sl;function bo(){return sl===void 0&&(sl=new fo),sl}var Le=class{},wn=class extends Le{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,fl(n,s=>this.processProvider(s)),this.records.set(Sl,ar(void 0,this)),o.has("environment")&&this.records.set(Le,ar(void 0,this));let i=this.records.get(xl);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(_l,he,{self:!0}))}retrieve(n,t){let r=Cn(t)||0;try{return this.get(n,En,r)}catch(o){if(qn(o))return o;throw o}}destroy(){co(this),this._destroyed=!0;let n=w(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),w(n)}}onDestroy(n){return co(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){co(this);let t=lt(this),r=De(void 0),o;try{return n()}finally{lt(t),De(r)}}get(n,t=En,r){if(co(this),n.hasOwnProperty(yf))return n[yf](this);let o=Cn(r),i,s=lt(this),a=De(void 0);try{if(!(o&4)){let c=this.records.get(n);if(c===void 0){let u=Db(n)&&go(n);u&&this.injectableDefInScope(u)?c=ar(dl(n),Yi):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,o)}let l=o&2?bo():this.parent;return t=o&8&&t===En?null:t,l.get(n,t)}catch(l){let c=sb(l);throw c===-200||c===-201?new T(c,null):l}finally{De(a),lt(s)}}resolveInjectorInitializers(){let n=w(null),t=lt(this),r=De(void 0),o;try{let i=this.get(Wt,he,{self:!0});for(let s of i)s()}finally{lt(t),De(r),w(n)}}toString(){let n=[],t=this.records;for(let r of t.keys())n.push(Nt(r));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=X(n);let t=In(n)?n:X(n&&n.provide),r=yb(n);if(!In(n)&&n.multi===!0){let o=this.records.get(t);o||(o=ar(void 0,Yi,!0),o.factory=()=>ul(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t,r){let o=w(null);try{if(t.value===vf)throw Cl(Nt(n));return t.value===Yi&&(t.value=vf,t.value=t.factory(void 0,r)),typeof t.value=="object"&&t.value&&bb(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{w(o)}}injectableDefInScope(n){if(!n.providedIn)return!1;let t=X(n.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){let t=this._onDestroyHooks.indexOf(n);t!==-1&&this._onDestroyHooks.splice(t,1)}};function dl(e){let n=go(e),t=n!==null?n.factory:Ht(e);if(t!==null)return t;if(e instanceof C)throw new T(204,!1);if(e instanceof Function)return mb(e);throw new T(204,!1)}function mb(e){if(e.length>0)throw new T(204,!1);let t=rb(e);return t!==null?()=>t.factory(e):()=>new e}function yb(e){if(Af(e))return ar(void 0,e.useValue);{let n=Al(e);return ar(n,Yi)}}function Al(e,n,t){let r;if(In(e)){let o=X(e);return Ht(o)||dl(o)}else if(Af(e))r=()=>X(e.useValue);else if(gb(e))r=()=>e.useFactory(...ul(e.deps||[]));else if(hb(e))r=(o,i)=>ue(X(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=X(e&&(e.useClass||e.provide));if(vb(e))r=()=>new o(...ul(e.deps));else return Ht(o)||dl(o)}return r}function co(e){if(e.destroyed)throw new T(205,!1)}function ar(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function vb(e){return!!e.deps}function bb(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Db(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function fl(e,n){for(let t of e)Array.isArray(t)?fl(t,n):t&&yl(t)?fl(t.\u0275providers,n):n(t)}function ss(e,n){let t;e instanceof wn?(co(e),t=e):t=new cl(e);let r,o=lt(t),i=De(void 0);try{return n()}finally{lt(o),De(i)}}function Rf(){return If()!==void 0||fi()!=null}var Qe=0,b=1,S=2,K=3,He=4,Ce=5,Tn=6,cr=7,q=8,xe=9,dt=10,L=11,ur=12,Ol=13,Nn=14,Ie=15,Gt=16,Mn=17,ft=18,Do=19,Rl=20,Tt=21,as=22,At=23,Pe=24,xn=25,An=26,P=27,kf=1,qt=6,Zt=7,Eo=8,On=9,U=10;function pt(e){return Array.isArray(e)&&typeof e[kf]=="object"}function Ke(e){return Array.isArray(e)&&e[kf]===!0}function kl(e){return(e.flags&4)!==0}function Yt(e){return e.componentOffset>-1}function dr(e){return(e.flags&1)===1}function Je(e){return!!e.template}function fr(e){return(e[S]&512)!==0}function Qt(e){return(e[S]&256)===256}var Fl="svg",Ff="math";function Ue(e){for(;Array.isArray(e);)e=e[Qe];return e}function Ll(e,n){return Ue(n[e])}function Xe(e,n){return Ue(n[e.index])}function Rn(e,n){return e.data[n]}function Pl(e,n){return e[n]}function jl(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}function We(e,n){let t=n[e];return pt(t)?t:t[Qe]}function Lf(e){return(e[S]&4)===4}function ls(e){return(e[S]&128)===128}function Pf(e){return Ke(e[K])}function je(e,n){return n==null?null:e[n]}function Bl(e){e[Mn]=0}function cs(e){e[S]&1024||(e[S]|=1024,ls(e)&&Kt(e))}function jf(e,n){for(;e>0;)n=n[Nn],e--;return n}function pr(e){return!!(e[S]&9216||e[Pe]?.dirty)}function us(e){e[dt].changeDetectionScheduler?.notify(8),e[S]&64&&(e[S]|=1024),pr(e)&&Kt(e)}function Kt(e){e[dt].changeDetectionScheduler?.notify(0);let n=Ut(e);for(;n!==null&&!(n[S]&8192||(n[S]|=8192,!ls(n)));)n=Ut(n)}function ds(e,n){if(Qt(e))throw new T(911,!1);e[Tt]===null&&(e[Tt]=[]),e[Tt].push(n)}function Vl(e,n){if(e[Tt]===null)return;let t=e[Tt].indexOf(n);t!==-1&&e[Tt].splice(t,1)}function Ut(e){let n=e[K];return Ke(n)?n[K]:n}function $l(e){return e[cr]??=[]}function Hl(e){return e.cleanup??=[]}function Bf(e,n,t,r){let o=$l(n);o.push(t),e.firstCreatePass&&Hl(e).push(r,o.length-1)}var x={lFrame:Xf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var pl=!1;function Vf(){return x.lFrame.elementDepthCount}function $f(){x.lFrame.elementDepthCount++}function Ul(){x.lFrame.elementDepthCount--}function fs(){return x.bindingsEnabled}function Wl(){return x.skipHydrationRootTNode!==null}function zl(e){return x.skipHydrationRootTNode===e}function Gl(){x.skipHydrationRootTNode=null}function E(){return x.lFrame.lView}function B(){return x.lFrame.tView}function Hf(e){return x.lFrame.contextLView=e,e[q]}function Uf(e){return x.lFrame.contextLView=null,e}function ae(){let e=ql();for(;e!==null&&e.type===64;)e=e.parent;return e}function ql(){return x.lFrame.currentTNode}function Wf(){let e=x.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function hr(e,n){let t=x.lFrame;t.currentTNode=e,t.isParent=n}function Zl(){return x.lFrame.isParent}function Yl(){x.lFrame.isParent=!1}function zf(){return x.lFrame.contextLView}function Ql(){return pl}function gr(e){let n=pl;return pl=e,n}function ht(){let e=x.lFrame,n=e.bindingRootIndex;return n===-1&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Gf(){return x.lFrame.bindingIndex}function qf(e){return x.lFrame.bindingIndex=e}function Ot(){return x.lFrame.bindingIndex++}function ps(e){let n=x.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Zf(){return x.lFrame.inI18n}function Yf(e,n){let t=x.lFrame;t.bindingIndex=t.bindingRootIndex=e,hs(n)}function Qf(){return x.lFrame.currentDirectiveIndex}function hs(e){x.lFrame.currentDirectiveIndex=e}function Kf(e){let n=x.lFrame.currentDirectiveIndex;return n===-1?null:e[n]}function gs(){return x.lFrame.currentQueryIndex}function Co(e){x.lFrame.currentQueryIndex=e}function Eb(e){let n=e[b];return n.type===2?n.declTNode:n.type===1?e[Ce]:null}function Kl(e,n,t){if(t&4){let o=n,i=e;for(;o=o.parent,o===null&&!(t&1);)if(o=Eb(i),o===null||(i=i[Nn],o.type&10))break;if(o===null)return!1;n=o,e=i}let r=x.lFrame=Jf();return r.currentTNode=n,r.lView=e,!0}function ms(e){let n=Jf(),t=e[b];x.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Jf(){let e=x.lFrame,n=e===null?null:e.child;return n===null?Xf(e):n}function Xf(e){let n={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=n),n}function ep(){let e=x.lFrame;return x.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Jl=ep;function ys(){let e=ep();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 tp(e){return(x.lFrame.contextLView=jf(e,x.lFrame.contextLView))[q]}function gt(){return x.lFrame.selectedIndex}function Jt(e){x.lFrame.selectedIndex=e}function mr(){let e=x.lFrame;return Rn(e.tView,e.selectedIndex)}function yr(){x.lFrame.currentNamespace=Fl}function Xl(){return x.lFrame.currentNamespace}var np=!0;function vs(){return np}function Io(e){np=e}function hl(e,n=null,t=null,r){let o=ec(e,n,t,r);return o.resolveInjectorInitializers(),o}function ec(e,n=null,t=null,r,o=new Set){let i=[t||he,Mf(e)];return r=r||(typeof e=="object"?void 0:Nt(e)),new wn(i,n||bo(),r||null,o)}var $e=class e{static THROW_IF_NOT_FOUND=En;static NULL=new fo;static create(n,t){if(Array.isArray(n))return hl({name:""},t,n,"");{let r=n.name??"";return hl({name:r},n.parent,n.providers,r)}}static \u0275prov=I({token:e,providedIn:"any",factory:()=>ue(Sl)});static __NG_ELEMENT_ID__=-1},Ae=new C(""),Xt=(()=>{class e{static __NG_ELEMENT_ID__=Cb;static __NG_ENV_ID__=t=>t}return e})(),po=class extends Xt{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Qt(this._lView)}onDestroy(n){let t=this._lView;return ds(t,n),()=>Vl(t,n)}};function Cb(){return new po(E())}var Mt=class{_console=console;handleError(n){this._console.error("ERROR",n)}},et=new C("",{providedIn:"root",factory:()=>{let e=g(Le),n;return t=>{e.destroyed&&!n?setTimeout(()=>{throw t}):(n??=e.get(Mt),n.handleError(t))}}}),rp={provide:Wt,useValue:()=>{g(Mt)},multi:!0},Ib=new C("",{providedIn:"root",factory:()=>{let e=g(Ae).defaultView;if(!e)return;let n=g(et),t=i=>{n(i.reason),i.preventDefault()},r=i=>{i.error?n(i.error):n(new Error(i.message,{cause:i})),i.preventDefault()},o=()=>{e.addEventListener("unhandledrejection",t),e.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(o):o(),g(Xt).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",t)})}});function wb(){return zt([Nf(()=>{g(Ib)})])}function tc(e){return typeof e=="function"&&e[ie]!==void 0}function ee(e,n){let[t,r,o]=Ba(e,n?.equal),i=t,s=i[ie];return i.set=r,i.update=o,i.asReadonly=nc.bind(i),i}function nc(){let e=this[ie];if(e.readonlyFn===void 0){let n=()=>this();n[ie]=e,e.readonlyFn=n}return e.readonlyFn}function rc(e){return tc(e)&&typeof e.set=="function"}var vr=(()=>{class e{view;node;constructor(t,r){this.view=t,this.node=r}static __NG_ELEMENT_ID__=Sb}return e})();function Sb(){return new vr(E(),ae())}var Ze=class{},wo=new C("",{providedIn:"root",factory:()=>!1});var oc=new C(""),ic=new C(""),en=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new ro(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new O(t=>{t.next(!1),t.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let t=this.taskId++;return this.pendingTasks.add(t),t}has(t){return this.pendingTasks.has(t)}remove(t){this.pendingTasks.delete(t),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=I({token:e,providedIn:"root",factory:()=>new e})}return e})(),bs=(()=>{class e{internalPendingTasks=g(en);scheduler=g(Ze);errorHandler=g(et);add(){let t=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(t)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(t))}}run(t){let r=this.add();t().catch(this.errorHandler).finally(r)}static \u0275prov=I({token:e,providedIn:"root",factory:()=>new e})}return e})();function kn(...e){}var So=(()=>{class e{static \u0275prov=I({token:e,providedIn:"root",factory:()=>new gl})}return e})(),gl=class{dirtyEffectCount=0;queues=new Map;add(n){this.enqueue(n),this.schedule(n)}schedule(n){n.dirty&&this.dirtyEffectCount++}remove(n){let t=n.zone,r=this.queues.get(t);r.has(n)&&(r.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let t=n.zone;this.queues.has(t)||this.queues.set(t,new Set);let r=this.queues.get(t);r.has(n)||r.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[t,r]of this.queues)t===null?n||=this.flushQueue(r):n||=t.run(()=>this.flushQueue(r));n||(this.dirtyEffectCount=0)}}flushQueue(n){let t=!1;for(let r of n)r.dirty&&(this.dirtyEffectCount--,t=!0,r.run());return t}};function Fo(e){return{toString:e}.toString()}function kb(e){return typeof e=="function"}var _s=class{previousValue;currentValue;firstChange;constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}};function $p(e,n,t,r){n!==null?n.applyValueToInputSignal(n,r):e[t]=r}var Lo=(()=>{let e=()=>Hp;return e.ngInherit=!0,e})();function Hp(e){return e.type.prototype.ngOnChanges&&(e.setInput=Lb),Fb}function Fb(){let e=Wp(this),n=e?.current;if(n){let t=e.previous;if(t===Ye)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function Lb(e,n,t,r,o){let i=this.declaredInputs[r],s=Wp(e)||Pb(e,{previous:Ye,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new _s(c&&c.currentValue,t,l===Ye),$p(e,n,o,t)}var Up="__ngSimpleChanges__";function Wp(e){return e[Up]||null}function Pb(e,n){return e[Up]=n}var op=[];var R=function(e,n=null,t){for(let r=0;r=r)break}else n[l]<0&&(e[Mn]+=65536),(a>14>16&&(e[S]&3)===n&&(e[S]+=16384,ip(a,i)):ip(a,i)}var Dr=-1,Ln=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,t,r,o){this.factory=n,this.name=o,this.canSeeViewProviders=t,this.injectImpl=r}};function Vb(e){return(e.flags&8)!==0}function $b(e){return(e.flags&16)!==0}function Hb(e,n,t){let r=0;for(;rn){s=i-1;break}}}for(;i>16}function Ns(e,n){let t=zb(e),r=n;for(;t>0;)r=r[Nn],t--;return r}var bc=!0;function Ms(e){let n=bc;return bc=e,n}var Gb=256,Zp=Gb-1,Yp=5,qb=0,mt={};function Zb(e,n,t){let r;typeof t=="string"?r=t.charCodeAt(0)||0:t.hasOwnProperty(Sn)&&(r=t[Sn]),r==null&&(r=t[Sn]=qb++);let o=r&Zp,i=1<>Yp)]|=i}function xs(e,n){let t=Qp(e,n);if(t!==-1)return t;let r=n[b];r.firstCreatePass&&(e.injectorIndex=n.length,ac(r.data,e),ac(n,null),ac(r.blueprint,null));let o=Yc(e,n),i=e.injectorIndex;if(qp(o)){let s=Ts(o),a=Ns(o,n),l=a[b].data;for(let c=0;c<8;c++)n[i+c]=a[s+c]|l[s+c]}return n[i+8]=o,i}function ac(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Qp(e,n){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||n[e.injectorIndex+8]===null?-1:e.injectorIndex}function Yc(e,n){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;o!==null;){if(r=th(o),r===null)return Dr;if(t++,o=o[Nn],r.injectorIndex!==-1)return r.injectorIndex|t<<16}return Dr}function Dc(e,n,t){Zb(e,n,t)}function Kp(e,n,t){if(t&8||e!==void 0)return e;ns(n,"NodeInjector")}function Jp(e,n,t,r){if(t&8&&r===void 0&&(r=null),(t&3)===0){let o=e[xe],i=De(void 0);try{return o?o.get(n,r,t&8):Il(n,r,t&8)}finally{De(i)}}return Kp(r,n,t)}function Xp(e,n,t,r=0,o){if(e!==null){if(n[S]&2048&&!(r&2)){let s=Jb(e,n,t,r,mt);if(s!==mt)return s}let i=eh(e,n,t,r,mt);if(i!==mt)return i}return Jp(n,t,r,o)}function eh(e,n,t,r,o){let i=Qb(t);if(typeof i=="function"){if(!Kl(n,e,r))return r&1?Kp(o,t,r):Jp(n,t,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ns(t);else return s}finally{Jl()}}else if(typeof i=="number"){let s=null,a=Qp(e,n),l=Dr,c=r&1?n[Ie][Ce]:null;for((a===-1||r&4)&&(l=a===-1?Yc(e,n):n[a+8],l===Dr||!lp(r,!1)?a=-1:(s=n[b],a=Ts(l),n=Ns(l,n)));a!==-1;){let u=n[b];if(ap(i,a,u.data)){let d=Yb(a,n,t,s,r,c);if(d!==mt)return d}l=n[a+8],l!==Dr&&lp(r,n[b].data[a+8]===c)&&ap(i,a,n)?(s=u,a=Ts(l),n=Ns(l,n)):a=-1}}return o}function Yb(e,n,t,r,o,i){let s=n[b],a=s.data[e+8],l=r==null?Yt(a)&&bc:r!=s&&(a.type&3)!==0,c=o&1&&i===a,u=Is(a,s,t,l,c);return u!==null?No(n,s,u,a,o):mt}function Is(e,n,t,r,o){let i=e.providerIndexes,s=n.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:c;for(let f=d;f=l&&h.type===t)return f}if(o){let f=s[l];if(f&&Je(f)&&f.type===t)return l}return null}function No(e,n,t,r,o){let i=e[t],s=n.data;if(i instanceof Ln){let a=i;if(a.resolving){let f=Df(s[t]);throw Cl(f)}let l=Ms(a.canSeeViewProviders);a.resolving=!0;let c=s[t].type||s[t],u,d=a.injectImpl?De(a.injectImpl):null,p=Kl(e,r,0);try{i=e[t]=a.factory(void 0,o,s,e,r),n.firstCreatePass&&t>=r.directiveStart&&jb(t,s[t],n)}finally{d!==null&&De(d),Ms(l),a.resolving=!1,Jl()}}return i}function Qb(e){if(typeof e=="string")return e.charCodeAt(0)||0;let n=e.hasOwnProperty(Sn)?e[Sn]:void 0;return typeof n=="number"?n>=0?n&Zp:Kb:n}function ap(e,n,t){let r=1<>Yp)]&r)}function lp(e,n){return!(e&2)&&!(e&1&&n)}var Fn=class{_tNode;_lView;constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return Xp(this._tNode,this._lView,n,Cn(r),t)}};function Kb(){return new Fn(ae(),E())}function $(e){return Fo(()=>{let n=e.prototype.constructor,t=n[uo]||Ec(n),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[uo]||Ec(o);if(i&&i!==t)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ec(e){return ml(e)?()=>{let n=Ec(X(e));return n&&n()}:Ht(e)}function Jb(e,n,t,r,o){let i=e,s=n;for(;i!==null&&s!==null&&s[S]&2048&&!fr(s);){let a=eh(i,s,t,r|2,mt);if(a!==mt)return a;let l=i.parent;if(!l){let c=s[Rl];if(c){let u=c.get(t,mt,r);if(u!==mt)return u}l=th(s),s=s[Nn]}i=l}return o}function th(e){let n=e[b],t=n.type;return t===2?n.declTNode:t===1?e[Ce]:null}function Xb(){return xr(ae(),E())}function xr(e,n){return new Re(Xe(e,n))}var Re=(()=>{class e{nativeElement;constructor(t){this.nativeElement=t}static __NG_ELEMENT_ID__=Xb}return e})();function nh(e){return e instanceof Re?e.nativeElement:e}function eD(){return this._results[Symbol.iterator]()}var As=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new se}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){this.dirty=!1;let r=Sf(n);(this._changesDetected=!wf(this._results,r,t))&&(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.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=eD};function rh(e){return(e.flags&128)===128}var Qc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Qc||{}),oh=new Map,tD=0;function nD(){return tD++}function rD(e){oh.set(e[Do],e)}function Cc(e){oh.delete(e[Do])}var cp="__ngContext__";function Ir(e,n){pt(n)?(e[cp]=n[Do],rD(n)):e[cp]=n}function ih(e){return ah(e[ur])}function sh(e){return ah(e[He])}function ah(e){for(;e!==null&&!Ke(e);)e=e[He];return e}var Ic;function oD(e){Ic=e}function lh(){if(Ic!==void 0)return Ic;if(typeof document<"u")return document;throw new T(210,!1)}var iD=new C("",{providedIn:"root",factory:()=>sD}),sD="ng",ch=new C(""),$n=new C("",{providedIn:"platform",factory:()=>"unknown"});var aD=new C(""),lD=new C("",{providedIn:"root",factory:()=>lh().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var cD="h",uD="b";var uh="r";var Kc="di",Jc="s";var dh=!1,fh=new C("",{providedIn:"root",factory:()=>dh});var ph=new C("");var dD=(e,n,t,r)=>{};function fD(e,n,t,r){dD(e,n,t,r)}var hh=new C("");function Ys(e){return(e.flags&32)===32}var pD=()=>null;function gh(e,n,t=!1){return pD(e,n,t)}function Xc(e){return e.get(ph,!1,{optional:!0})}function mh(e,n){let t=e.contentQueries;if(t!==null){let r=w(null);try{for(let o=0;o|^->||--!>|)/g,yD="\u200B$1\u200B";function vD(e){return e.replace(gD,n=>n.replace(mD,yD))}function bD(e,n){return e.createText(n)}function DD(e,n,t){e.setValue(n,t)}function ED(e,n){return e.createComment(vD(n))}function Dh(e,n,t){return e.createElement(n,t)}function Rs(e,n,t,r,o){e.insertBefore(n,t,r,o)}function Eh(e,n,t){e.appendChild(n,t)}function up(e,n,t,r,o){r!==null?Rs(e,n,t,r,o):Eh(e,n,t)}function Ch(e,n,t,r){e.removeChild(null,n,t,r)}function CD(e,n,t){e.setAttribute(n,"style",t)}function ID(e,n,t){t===""?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function Ih(e,n,t){let{mergedAttrs:r,classes:o,styles:i}=t;r!==null&&Hb(e,n,r),o!==null&&ID(e,n,o),i!==null&&CD(e,n,i)}var tu=(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[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(tu||{});function wD(e){let n=SD();return n?n.sanitize(tu.URL,e)||"":yh(e,"URL")?Po(e):bh(_n(e))}function SD(){let e=E();return e&&e[dt].sanitizer}function wh(e){return e instanceof Function?e():e}function _D(e,n,t){let r=e.length;for(;;){let o=e.indexOf(n,t);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=n.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}t=o+1}}var Sh="ng-template";function TD(e,n,t,r){let o=0;if(r){for(;o-1){let i;for(;++oi?d="":d=o[u+1].toLowerCase(),r&2&&c!==d){if(tt(r))return!1;s=!0}}}}return tt(r)||s}function tt(e){return(e&1)===0}function xD(e,n,t,r){if(n===null)return-1;let o=0;if(r||!t){let i=!1;for(;o-1)for(t++;t0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!tt(s)&&(n+=dp(i,o),o=""),r=s,i=i||!tt(r);t++}return o!==""&&(n+=dp(i,o)),n}function LD(e){return e.map(FD).join(",")}function PD(e){let n=[],t=[],r=1,o=2;for(;rnull),s=r;if(n&&typeof n=="object"){let l=n;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}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 n instanceof Q&&n.add(a),a}wrapInTimeout(n){return t=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{n(t)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Be=_c;function Ah(e){let n,t;function r(){e=kn;try{t!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(t),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(t=requestAnimationFrame(()=>{e(),r()})),()=>r()}function pp(e){return queueMicrotask(()=>e()),()=>{e=kn}}var au="isAngularZone",ks=au+"_ID",HD=0,de=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Be(!1);onMicrotaskEmpty=new Be(!1);onStable=new Be(!1);onError=new Be(!1);constructor(n){let{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=xh}=n;if(typeof Zone>"u")throw new T(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)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,zD(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(au)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new T(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new T(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,UD,kn,kn);try{return i.runTask(s,t,r)}finally{i.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}},UD={};function lu(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 WD(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function n(){Ah(()=>{e.callbackScheduled=!1,Tc(e),e.isCheckStableRunning=!0,lu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),Tc(e)}function zD(e){let n=()=>{WD(e)},t=HD++;e._inner=e._inner.fork({name:"angular",properties:{[au]:!0,[ks]:t,[ks+t]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(GD(l))return r.invokeTask(i,s,a,l);try{return hp(e),r.invokeTask(i,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&n(),gp(e)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return hp(e),r.invoke(i,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!qD(l)&&n(),gp(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Tc(e),lu(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 Tc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function hp(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function gp(e){e._nesting--,lu(e)}var Fs=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Be;onMicrotaskEmpty=new Be;onStable=new Be;onError=new Be;run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}};function GD(e){return Oh(e,"__ignore_ng_zone__")}function qD(e){return Oh(e,"__scheduler_tick__")}function Oh(e,n){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[n]===!0}var cu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=I({token:e,providedIn:"root",factory:()=>new e})}return e})(),Rh=[0,1,2,3],kh=(()=>{class e{ngZone=g(de);scheduler=g(Ze);errorHandler=g(Mt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(jo,{optional:!0})}execute(){let t=this.sequences.size>0;t&&R(16),this.executing=!0;for(let r of Rh)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),t&&R(17)}register(t){let{view:r}=t;r!==void 0?((r[xn]??=[]).push(t),Kt(r),r[S]|=8192):this.executing?this.deferredRegistrations.add(t):this.addSequence(t)}addSequence(t){this.sequences.add(t),this.scheduler.notify(7)}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))}maybeTrace(t,r){return r?r.run(Ks.AFTER_NEXT_RENDER,t):t()}static \u0275prov=I({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ls=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,t,r,o,i,s=null){this.impl=n,this.hooks=t,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let n=this.view?.[xn];n&&(this.view[xn]=n.filter(t=>t!==this))}};function ZD(e,n){let t=n?.injector??g($e);return Rt("NgAfterNextRender"),QD(e,t,n,!0)}function YD(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function QD(e,n,t,r){let o=n.get(cu);o.impl??=n.get(kh);let i=n.get(jo,null,{optional:!0}),s=t?.manualCleanup!==!0?n.get(Xt):null,a=n.get(vr,null,{optional:!0}),l=new Ls(o.impl,YD(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(l),l}var Fh=new C("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function Lh(e,n,t){let r=e.get(Fh);if(Array.isArray(n))for(let o of n)r.queue.add(o),t?.detachedLeaveAnimationFns?.push(o);else r.queue.add(n),t?.detachedLeaveAnimationFns?.push(n);r.scheduler&&r.scheduler(e)}function KD(e,n){let t=e.get(Fh);if(n.detachedLeaveAnimationFns){for(let r of n.detachedLeaveAnimationFns)t.queue.delete(r);n.detachedLeaveAnimationFns=void 0}}function JD(e,n){for(let[t,r]of n)Lh(e,r.animateFns)}function mp(e,n,t,r){let o=e?.[An]?.enter;n!==null&&o&&o.has(t.index)&&JD(r,o)}function br(e,n,t,r,o,i,s,a){if(o!=null){let l,c=!1;Ke(o)?l=o:pt(o)&&(c=!0,o=o[Qe]);let u=Ue(o);e===0&&r!==null?(mp(a,r,i,t),s==null?Eh(n,r,u):Rs(n,r,u,s||null,!0)):e===1&&r!==null?(mp(a,r,i,t),Rs(n,r,u,s||null,!0)):e===2?yp(a,i,t,d=>{Ch(n,u,c,d)}):e===3&&yp(a,i,t,()=>{n.destroyNode(u)}),l!=null&&cE(n,e,t,l,i,r,s)}}function XD(e,n){Ph(e,n),n[Qe]=null,n[Ce]=null}function eE(e,n,t,r,o,i){r[Qe]=o,r[Ce]=n,Xs(e,r,t,1,o,i)}function Ph(e,n){n[dt].changeDetectionScheduler?.notify(9),Xs(e,n,n[L],2,null,null)}function tE(e){let n=e[ur];if(!n)return lc(e[b],e);for(;n;){let t=null;if(pt(n))t=n[ur];else{let r=n[U];r&&(t=r)}if(!t){for(;n&&!n[He]&&n!==e;)pt(n)&&lc(n[b],n),n=n[K];n===null&&(n=e),pt(n)&&lc(n[b],n),t=n&&n[He]}n=t}}function uu(e,n){let t=e[On],r=t.indexOf(n);t.splice(r,1)}function Js(e,n){if(Qt(n))return;let t=n[L];t.destroyNode&&Xs(e,n,t,3,null,null),tE(n)}function lc(e,n){if(Qt(n))return;let t=w(null);try{n[S]&=-129,n[S]|=256,n[Pe]&&mn(n[Pe]),oE(e,n),rE(e,n),n[b].type===1&&n[L].destroy();let r=n[Gt];if(r!==null&&Ke(n[K])){r!==n[K]&&uu(r,n);let o=n[ft];o!==null&&o.detachView(e)}Cc(n)}finally{w(t)}}function yp(e,n,t,r){let o=e?.[An];if(o==null||o.leave==null||!o.leave.has(n.index))return r(!1);e&&Mo.add(e),Lh(t,()=>{if(o.leave&&o.leave.has(n.index)){let s=o.leave.get(n.index),a=[];if(s){for(let l=0;l{e[An].running=void 0,Mo.delete(e),n(!0)});return}n(!1)}function rE(e,n){let t=e.cleanup,r=n[cr];if(t!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[t[s+1]];t[s].call(a)}r!==null&&(n[cr]=null);let o=n[Tt];if(o!==null){n[Tt]=null;for(let s=0;sP&&Mh(e,n,P,!1),R(s?2:0,o,t),t(r,o)}finally{Jt(i),R(s?3:1,o,t)}}function ea(e,n,t){mE(e,n,t),(t.flags&64)===64&&yE(e,n,t)}function Bo(e,n,t=Xe){let r=n.localNames;if(r!==null){let o=n.index+1;for(let i=0;inull;function hE(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Uh(e,n,t,r,o,i){let s=n[b];if(yu(e,s,n,t,r)){Yt(e)&&gE(n,e.index);return}e.type&3&&(t=hE(t)),Wh(e,n,t,r,o,i)}function Wh(e,n,t,r,o,i){if(e.type&3){let s=Xe(e,n);r=i!=null?i(r,e.value||"",t):r,o.setProperty(s,t,r)}else e.type&12}function gE(e,n){let t=We(n,e);t[S]&16||(t[S]|=64)}function mE(e,n,t){let r=t.directiveStart,o=t.directiveEnd;Yt(t)&&VD(n,t,e.data[r+t.componentOffset]),e.firstCreatePass||xs(t,n);let i=t.initialInputs;for(let s=r;s{Kt(e.lView)},consumerOnSignalRead(){this.lView[Pe]=this}});function ME(e){let n=e[Pe]??Object.create(xE);return n.lView=e,n}var xE=H(D({},hn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let n=Ut(e.lView);for(;n&&!Zh(n[b]);)n=Ut(n);n&&cs(n)},consumerOnSignalRead(){this.lView[Pe]=this}});function Zh(e){return e.type!==2}function Yh(e){if(e[At]===null)return;let n=!0;for(;n;){let t=!1;for(let r of e[At])r.dirty&&(t=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));n=t&&!!(e[S]&8192)}}var AE=100;function Qh(e,n=0){let r=e[dt].rendererFactory,o=!1;o||r.begin?.();try{OE(e,n)}finally{o||r.end?.()}}function OE(e,n){let t=Ql();try{gr(!0),Mc(e,n);let r=0;for(;pr(e);){if(r===AE)throw new T(103,!1);r++,Mc(e,1)}}finally{gr(t)}}function RE(e,n,t,r){if(Qt(n))return;let o=n[S],i=!1,s=!1;ms(n);let a=!0,l=null,c=null;i||(Zh(e)?(c=SE(n),l=gn(c)):yi()===null?(a=!1,c=ME(n),l=gn(c)):n[Pe]&&(mn(n[Pe]),n[Pe]=null));try{Bl(n),qf(e.bindingStartIndex),t!==null&&Hh(e,n,t,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Es(n,f,null)}else{let f=e.preOrderHooks;f!==null&&Cs(n,f,0,null),sc(n,0)}if(s||kE(n),Yh(n),Kh(n,0),e.contentQueries!==null&&mh(e,n),!i)if(u){let f=e.contentCheckHooks;f!==null&&Es(n,f)}else{let f=e.contentHooks;f!==null&&Cs(n,f,1),sc(n,1)}LE(e,n);let d=e.components;d!==null&&Xh(n,d,0);let p=e.viewQuery;if(p!==null&&wc(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Es(n,f)}else{let f=e.viewHooks;f!==null&&Cs(n,f,2),sc(n,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),n[as]){for(let f of n[as])f();n[as]=null}i||(Gh(n),n[S]&=-73)}catch(u){throw i||Kt(n),u}finally{c!==null&&(Yn(c,l),a&&TE(c)),ys()}}function Kh(e,n){for(let t=ih(e);t!==null;t=sh(t))for(let r=U;r0&&(e[t-1][He]=r[He]);let i=mo(e,U+n);XD(r[b],r);let s=i[ft];s!==null&&s.detachView(i[b]),r[K]=null,r[He]=null,r[S]&=-129}return r}function PE(e,n,t,r){let o=U+r,i=t.length;r>0&&(t[o-1][He]=n),r-1&&(Ao(n,r),mo(t,r))}this._attachedToViewContainer=!1}Js(this._lView[b],this._lView)}onDestroy(n){ds(this._lView,n)}markForCheck(){ta(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S]&=-129}reattach(){us(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,Qh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new T(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=fr(this._lView),t=this._lView[Gt];t!==null&&!n&&uu(t,this._lView),Ph(this._lView[b],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new T(902,!1);this._appRef=n;let t=fr(this._lView),r=this._lView[Gt];r!==null&&!t&&ng(r,this._lView),us(this._lView)}};function jE(e){return pr(e._lView)||!!(e._lView[S]&64)}function BE(e){cs(e._lView)}var yt=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=VE;constructor(t,r,o){this._declarationLView=t,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,o){let i=Ar(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new nn(i)}}return e})();function VE(){return na(ae(),E())}function na(e,n){return e.type&4?new yt(n,e,xr(e,n)):null}function Rr(e,n,t,r,o){let i=e.data[n];if(i===null)i=$E(e,n,t,r,o),Zf()&&(i.flags|=32);else if(i.type&64){i.type=t,i.value=r,i.attrs=o;let s=Wf();i.injectorIndex=s===null?-1:s.injectorIndex}return hr(i,!0),i}function $E(e,n,t,r,o){let i=ql(),s=Zl(),a=s?i:i&&i.parent,l=e.data[n]=UE(e,a,t,n,r,o);return HE(e,l,i,s),l}function HE(e,n,t,r){e.firstChild===null&&(e.firstChild=n),t!==null&&(r?t.child==null&&n.parent!==null&&(t.child=n):t.next===null&&(t.next=n,n.prev=t))}function UE(e,n,t,r,o,i){let s=n?n.injectorIndex:-1,a=0;return Wl()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:Xl(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var pR=new RegExp(`^(\\d+)*(${uD}|${cD})*(.*)`);function WE(e){let n=e[qt]??[],r=e[K][L],o=[];for(let i of n)i.data[Kc]!==void 0?o.push(i):zE(i,r);e[qt]=o}function zE(e,n){let t=0,r=e.firstChild;if(r){let o=e.data[uh];for(;tnull,qE=()=>null;function Ps(e,n){return GE(e,n)}function rg(e,n,t){return qE(e,n,t)}var og=class{},ra=class{},xc=class{resolveComponentFactory(n){throw new T(917,!1)}},Vo=class{static NULL=new xc},Oo=class{},rn=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>ZE()}return e})();function ZE(){let e=E(),n=ae(),t=We(n.index,e);return(pt(t)?t:e)[L]}var ig=(()=>{class e{static \u0275prov=I({token:e,providedIn:"root",factory:()=>null})}return e})();var ws={},Er=class{injector;parentInjector;constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){let o=this.injector.get(n,ws,r);return o!==ws||t===ws?o:this.parentInjector.get(n,t,r)}};function js(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,i=0;if(n!==null)for(let s=0;s0&&(t.directiveToIndex=new Map);for(let p=0;p0;){let t=e[--n];if(typeof t=="number"&&t<0)return t}return 0}function nC(e,n,t){if(t){if(n.exportAs)for(let r=0;rr(Ue(m[e.index])):e.index;ug(h,n,t,i,a,f,!1)}}return c}function sC(e){return e.startsWith("animation")||e.startsWith("transition")}function aC(e,n,t,r){let o=e.cleanup;if(o!=null)for(let i=0;il?a[l]:null}typeof s=="string"&&(i+=2)}return null}function ug(e,n,t,r,o,i,s){let a=n.firstCreatePass?Hl(n):null,l=$l(t),c=l.length;l.push(o,i),a&&a.push(r,e,c,(c+1)*(s?-1:1))}function Ip(e,n,t,r,o,i){let s=n[t],a=n[b],c=a.data[t].outputs[r],d=s[c].subscribe(i);ug(e.index,a,n,o,i,d,!0)}var Ac=Symbol("BINDING");var Bs=class extends Vo{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let t=xt(n);return new Tr(t,this.ngModule)}};function lC(e){return Object.keys(e).map(n=>{let[t,r,o]=e[n],i={propName:t,templateName:n,isSignal:(r&Qs.SignalBased)!==0};return o&&(i.transform=o),i})}function cC(e){return Object.keys(e).map(n=>({propName:e[n],templateName:n}))}function uC(e,n,t){let r=n instanceof Le?n:n?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Er(t,r):t}function dC(e){let n=e.get(Oo,null);if(n===null)throw new T(407,!1);let t=e.get(ig,null),r=e.get(Ze,null);return{rendererFactory:n,sanitizer:t,changeDetectionScheduler:r,ngReflect:!1}}function fC(e,n){let t=dg(e);return Dh(n,t,t==="svg"?Fl:t==="math"?Ff:null)}function dg(e){return(e.selectors[0][0]||"div").toLowerCase()}var Tr=class extends ra{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=lC(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=cC(this.componentDef.outputs),this.cachedOutputs}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=LD(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!t}create(n,t,r,o,i,s){R(22);let a=w(null);try{let l=this.componentDef,c=pC(r,l,s,i),u=uC(l,o||this.ngModule,n),d=dC(u),p=d.rendererFactory.createRenderer(null,l),f=r?dE(p,r,l.encapsulation,u):fC(l,p),h=s?.some(wp)||i?.some(v=>typeof v!="function"&&v.bindings.some(wp)),m=ou(null,c,null,512|Th(l),null,null,d,p,u,null,gh(f,u,!0));m[P]=f,ms(m);let y=null;try{let v=Du(P,m,2,"#host",()=>c.directiveRegistry,!0,0);Ih(p,f,v),Ir(f,m),ea(c,m,v),eu(c,v,m),Eu(c,v),t!==void 0&&gC(v,this.ngContentSelectors,t),y=We(v.index,m),m[q]=y[q],vu(c,m,null)}catch(v){throw y!==null&&Cc(y),Cc(m),v}finally{R(23),ys()}return new Vs(this.componentType,m,!!h)}finally{w(a)}}};function pC(e,n,t,r){let o=e?["ng-version","20.3.24"]:PD(n.selectors[0]),i=null,s=null,a=0;if(t)for(let u of t)a+=u[Ac].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u{if(t&1&&e)for(let r of e)r.create();if(t&2&&n)for(let r of n)r.update()}}function wp(e){let n=e[Ac].kind;return n==="input"||n==="twoWay"}var Vs=class extends og{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,t,r){super(),this._rootLView=t,this._hasInputBindings=r,this._tNode=Rn(t[b],P),this.location=xr(this._tNode,t),this.instance=We(this._tNode.index,t)[q],this.hostView=this.changeDetectorRef=new nn(t,void 0),this.componentType=n}setInput(n,t){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;let o=this._rootLView,i=yu(r,o[b],o,n,t);this.previousInputValues.set(n,t);let s=We(r.index,o);ta(s,1)}get injector(){return new Fn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function gC(e,n,t){let r=e.projection=[];for(let o=0;o{class e{static __NG_ELEMENT_ID__=mC}return e})();function mC(){let e=ae();return pg(e,E())}var yC=sn,fg=class extends yC{_lContainer;_hostTNode;_hostLView;constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return xr(this._hostTNode,this._hostLView)}get injector(){return new Fn(this._hostTNode,this._hostLView)}get parentInjector(){let n=Yc(this._hostTNode,this._hostLView);if(qp(n)){let t=Ns(n,this._hostLView),r=Ts(n),o=t[b].data[r+8];return new Fn(o,t)}else return new Fn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let t=Sp(this._lContainer);return t!==null&&t[n]||null}get length(){return this._lContainer.length-U}createEmbeddedView(n,t,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Ps(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(t||{},i,s);return this.insertImpl(a,o,Pn(this._hostTNode,s)),a}createComponent(n,t,r,o,i,s,a){let l=n&&!kb(n),c;if(l)c=t;else{let y=t||{};c=y.index,r=y.injector,o=y.projectableNodes,i=y.environmentInjector||y.ngModuleRef,s=y.directives,a=y.bindings}let u=l?n:new Tr(xt(n)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let v=(l?d:this.parentInjector).get(Le,null);v&&(i=v)}let p=xt(u.componentType??{}),f=Ps(this._lContainer,p?.id??null),h=f?.firstChild??null,m=u.create(d,o,h,i,s,a);return this.insertImpl(m.hostView,c,Pn(this._hostTNode,f)),m}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){let o=n._lView;if(Pf(o)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let l=o[K],c=new fg(l,l[Ce],l[K]);c.detach(c.indexOf(n))}}let i=this._adjustIndex(t),s=this._lContainer;return Or(s,o,i,r),n.attachToViewContainerRef(),wl(uc(s),i,n),n}move(n,t){return this.insert(n,t)}indexOf(n){let t=Sp(this._lContainer);return t!==null?t.indexOf(n):-1}remove(n){let t=this._adjustIndex(n,-1),r=Ao(this._lContainer,t);r&&(mo(uc(this._lContainer),t),Js(r[b],r))}detach(n){let t=this._adjustIndex(n,-1),r=Ao(this._lContainer,t);return r&&mo(uc(this._lContainer),t)!=null?new nn(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function Sp(e){return e[Eo]}function uc(e){return e[Eo]||(e[Eo]=[])}function pg(e,n){let t,r=n[e.index];return Ke(r)?t=r:(t=eg(r,n,null,e),n[e.index]=t,iu(n,t)),bC(t,n,e,r),new fg(t,e,n)}function vC(e,n){let t=e[L],r=t.createComment(""),o=Xe(n,e),i=t.parentNode(o);return Rs(t,i,r,t.nextSibling(o),!1),r}var bC=EC,DC=()=>!1;function hg(e,n,t){return DC(e,n,t)}function EC(e,n,t,r){if(e[Zt])return;let o;t.type&8?o=Ue(r):o=vC(n,t),e[Zt]=o}var Oc=class e{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Rc=class e{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let t=n.queries;if(t!==null){let r=n.contentQueries!==null?n.contentQueries[0]:t.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],u=n[-l];for(let d=U;dn.trim())}function bg(e,n,t){e.queries===null&&(e.queries=new kc),e.queries.track(new Fc(n,t))}function TC(e,n){let t=e.contentQueries||(e.contentQueries=[]),r=t.length?t[t.length-1]:-1;n!==r&&t.push(e.queries.length-1,n)}function wu(e,n){return e.queries.getByIndex(n)}function Dg(e,n){let t=e[b],r=wu(t,n);return r.crossesNgTemplate?Lc(t,e,n,[]):gg(t,e,r,n)}function Eg(e,n,t){let r,o=to(()=>{r._dirtyCounter();let i=NC(r,e);if(n&&i===void 0)throw new T(-951,!1);return i});return r=o[ie],r._dirtyCounter=ee(0),r._flatValue=void 0,o}function Su(e){return Eg(!0,!1,e)}function _u(e){return Eg(!0,!0,e)}function Cg(e,n){let t=e[ie];t._lView=E(),t._queryIndex=n,t._queryList=Iu(t._lView,n),t._queryList.onDirty(()=>t._dirtyCounter.update(r=>r+1))}function NC(e,n){let t=e._lView,r=e._queryIndex;if(t===void 0||r===void 0||t[S]&4)return n?void 0:he;let o=Iu(t,r),i=Dg(t,r);return o.reset(i,nh),n?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}var jn=class{},Ig=class{};var Hs=class extends jn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Bs(this);constructor(n,t,r,o=!0){super(),this.ngModuleType=n,this._parent=t;let i=Tl(n);this._bootstrapComponents=wh(i.bootstrap),this._r3Injector=ec(n,t,[{provide:jn,useValue:this},{provide:Vo,useValue:this.componentFactoryResolver},...r],Nt(n),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},Us=class extends Ig{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new Hs(this.moduleType,n,[])}};var Ro=class extends jn{injector;componentFactoryResolver=new Bs(this);instance=null;constructor(n){super();let t=new wn([...n.providers,{provide:jn,useValue:this},{provide:Vo,useValue:this.componentFactoryResolver}],n.parent||bo(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function Tu(e,n,t=null){return new Ro({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}var MC=(()=>{class e{_injector;cachedInjectors=new Map;constructor(t){this._injector=t}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){let r=is(!1,t.type),o=r.length>0?Tu([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=I({token:e,providedIn:"environment",factory:()=>new e(ue(Le))})}return e})();function ke(e){return Fo(()=>{let n=wg(e),t=H(D({},n),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Qc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:n.standalone?o=>o.get(MC).getOrCreateStandaloneInjector(t):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||wr.Emulated,styles:e.styles||he,_:null,schemas:e.schemas||null,tView:null,id:""});n.standalone&&Rt("NgStandalone"),Sg(t);let r=e.dependencies;return t.directiveDefs=_p(r,xC),t.pipeDefs=_p(r,Nl),t.id=RC(t),t})}function xC(e){return xt(e)||vo(e)}function Fe(e){return Fo(()=>({type:e.type,bootstrap:e.bootstrap||he,declarations:e.declarations||he,imports:e.imports||he,exports:e.exports||he,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function AC(e,n){if(e==null)return Ye;let t={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,l;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,l=o[3]||null):(i=o,s=o,a=Qs.None,l=null),t[i]=[r,a,l],n[i]=s}return t}function OC(e){if(e==null)return Ye;let n={};for(let t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}function z(e){return Fo(()=>{let n=wg(e);return Sg(n),n})}function Nu(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 wg(e){let n={};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:n,inputConfig:e.inputs||Ye,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||he,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:AC(e.inputs,n),outputs:OC(e.outputs),debugInfo:null}}function Sg(e){e.features?.forEach(n=>n(e))}function _p(e,n){return e?()=>{let t=typeof e=="function"?e():e,r=[];for(let o of t){let i=n(o);i!==null&&r.push(i)}return r}:null}function RC(e){let n=0,t=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,t,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];for(let i of r.join("|"))n=Math.imul(31,n)+i.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function kC(e){return Object.getPrototypeOf(e.prototype).constructor}function ne(e){let n=kC(e.type),t=!0,r=[e];for(;n;){let o;if(Je(e))o=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new T(903,!1);o=n.\u0275dir}if(o){if(t){r.push(o);let s=e;s.inputs=dc(e.inputs),s.declaredInputs=dc(e.declaredInputs),s.outputs=dc(e.outputs);let a=o.hostBindings;a&&BC(e,a);let l=o.viewQuery,c=o.contentQueries;if(l&&PC(e,l),c&&jC(e,c),FC(e,o),bf(e.outputs,o.outputs),Je(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Cr(o.hostAttrs,t=Cr(t,o.hostAttrs))}}function dc(e){return e===Ye?{}:e===he?[]:e}function PC(e,n){let t=e.viewQuery;t?e.viewQuery=(r,o)=>{n(r,o),t(r,o)}:e.viewQuery=n}function jC(e,n){let t=e.contentQueries;t?e.contentQueries=(r,o,i)=>{n(r,o,i),t(r,o,i)}:e.contentQueries=n}function BC(e,n){let t=e.hostBindings;t?e.hostBindings=(r,o)=>{n(r,o),t(r,o)}:e.hostBindings=n}function vt(e){let n=t=>{let r=Array.isArray(e);t.hostDirectives===null?(t.resolveHostDirectives=VC,t.hostDirectives=r?e.map(Pc):[e]):r?t.hostDirectives.unshift(...e.map(Pc)):t.hostDirectives.unshift(e)};return n.ngInherit=!0,n}function VC(e){let n=[],t=!1,r=null,o=null;for(let i=0;i{class e{cachedInjectors=new Map;getOrCreateInjector(t,r,o,i){if(!this.cachedInjectors.has(t)){let s=o.length>0?Tu(o,r,i):null;this.cachedInjectors.set(t,s)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=I({token:e,providedIn:"environment",factory:()=>new e})}return e})();var Ag=new C("");function pc(e,n,t){return e.get(oI).getOrCreateInjector(n,e,t,"")}function iI(e,n,t){if(e instanceof Er){let o=e.injector,i=e.parentInjector,s=pc(i,n,t);return new Er(o,s)}let r=e.get(Le);if(r!==e){let o=pc(r,n,t);return new Er(e,o)}return pc(e,n,t)}function tn(e,n,t,r=!1){let o=t[K],i=o[b];if(Qt(o))return;let s=kr(o,n),a=s[$o],l=s[QC];if(!(l!==null&&eo.data[Jc]===n[$o])??-1;return{dehydratedView:t>-1?e[qt][t]:null,dehydratedViewIx:t}}function aI(e,n,t,r,o){R(20);let i=tI(e,o,r);if(i!==null){n[$o]=e;let s=o[b],a=i+P,l=Rn(s,a),c=0;bu(t,c);let u;if(e===Z.Complete){let h=Fr(s,r),m=h.providers;m&&m.length>0&&(u=iI(o[xe],h,m))}let{dehydratedView:d,dehydratedViewIx:p}=sI(t,n),f=Ar(o,l,null,{injector:u,dehydratedView:d});if(Or(t,f,c,Pn(l,d)),ta(f,2),p>-1&&t[qt]?.splice(p,1),(e===Z.Complete||e===Z.Error)&&Array.isArray(n[fc])){for(let h of n[fc])h();n[fc]=null}}R(21)}function Op(e,n){return e{e.loadingState===Oe.COMPLETE?tn(Z.Complete,n,t):e.loadingState===Oe.FAILED&&tn(Z.Error,n,t)})}var cI=null;var uI=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Og=new C("");function la(e){return!!e&&typeof e.then=="function"}function xu(e){return!!e&&typeof e.subscribe=="function"}var Au=new C("");function Ou(e){return zt([{provide:Au,multi:!0,useValue:e}])}var Ru=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r});appInits=g(Au,{optional:!0})??[];injector=g($e);constructor(){}runInitializers(){if(this.initialized)return;let t=[];for(let o of this.appInits){let i=ss(this.injector,o);if(la(i))t.push(i);else if(xu(i)){let s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});t.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),t.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Rg=new C("");function kg(){ja(()=>{let e="";throw new T(600,e)})}function Fg(e){return e.isBoundToModule}var dI=10;var Ho=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(et);afterRenderManager=g(cu);zonelessEnabled=g(wo);rootEffectScheduler=g(So);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new se;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(en);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Vt(t=>!t))}constructor(){g(jo,{optional:!0})}whenStable(){let t;return new Promise(r=>{t=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{t.unsubscribe()})}_injector=g(Le);_rendererFactory=null;get injector(){return this._injector}bootstrap(t,r){return this.bootstrapImpl(t,r)}bootstrapImpl(t,r,o=$e.NULL){return this._injector.get(de).run(()=>{R(10);let s=t instanceof ra;if(!this._injector.get(Ru).done){let h="";throw new T(405,h)}let l;s?l=t:l=this._injector.get(Vo).resolveComponentFactory(t),this.componentTypes.push(l.componentType);let c=Fg(l)?void 0:this._injector.get(jn),u=r||l.selector,d=l.create(o,[],u,c),p=d.location.nativeElement,f=d.injector.get(Og,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),To(this.components,d),f?.unregisterApplication(p)}),this._loadComponent(d),R(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){R(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ks.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new T(101,!1);let t=w(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,w(t),this.afterTick.next(),R(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Oo,null,{optional:!0}));let t=0;for(;this.dirtyFlags!==0&&t++pr(t))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(t){let r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){let r=t;To(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(t),this._injector.get(Rg,[]).forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>To(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new T(406,!1);let t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function To(e,n){let t=e.indexOf(n);t>-1&&e.splice(t,1)}function Lg(e,n,t){let r=n[xe],o=n[b];if(e.loadingState!==Oe.NOT_STARTED)return e.loadingPromise??Promise.resolve();let i=kr(n,t),s=rI(o,e);e.loadingState=Oe.IN_PROGRESS,Ss(1,i);let a=e.dependencyResolverFn,l=r.get(bs).add();return a?(e.loadingPromise=Promise.allSettled(a()).then(c=>{let u=!1,d=[],p=[];for(let f of c)if(f.status==="fulfilled"){let h=f.value,m=xt(h)||vo(h);if(m)d.push(m);else{let y=Nl(h);y&&p.push(y)}}else{u=!0;break}if(u){if(e.loadingState=Oe.FAILED,e.errorTmplIndex===null){let h=new T(-750,!1);mu(n,h)}}else{e.loadingState=Oe.COMPLETE;let f=s.tView;if(d.length>0){f.directiveRegistry=Ap(f.directiveRegistry,d);let h=d.map(y=>y.type),m=is(!1,...h);e.providers=m}p.length>0&&(f.pipeRegistry=Ap(f.pipeRegistry,p))}}),e.loadingPromise.finally(()=>{e.loadingPromise=null,l()})):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=Oe.COMPLETE,l()}),e.loadingPromise)}function fI(e,n){return n[xe].get(Ag,null,{optional:!0})?.behavior!==Mu.Manual}function pI(e,n,t){let r=n[b],o=n[t.index];if(!fI(e,n))return;let i=kr(n,t),s=Fr(r,t);switch(Mg(i),s.loadingState){case Oe.NOT_STARTED:tn(Z.Loading,t,o),Lg(s,n,t),s.loadingState===Oe.IN_PROGRESS&&Rp(s,t,o);break;case Oe.IN_PROGRESS:tn(Z.Loading,t,o),Rp(s,t,o);break;case Oe.COMPLETE:tn(Z.Complete,t,o);break;case Oe.FAILED:tn(Z.Error,t,o);break;default:}}function hI(e,n,t){return e===0?kp(n,t):e===2?!kp(n,t):!0}function gI(e){return e!=null&&(e&1)===1}function kp(e,n){let t=e[xe],r=Fr(e[b],n),o=Xc(t),i=gI(r.flags),a=kr(e,n)[YC]!==null;return!(i&&a&&o)}function mI(e,n,t,r,o,i,s,a,l,c){let u=E(),d=B(),p=e+P,f=Bn(u,d,e,null,0,0),h=u[xe],m=Xc(h);if(d.firstCreatePass){Rt("NgDefer");let at={primaryTmplIndex:n,loadingTmplIndex:r??null,placeholderTmplIndex:o??null,errorTmplIndex:i??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:t??null,loadingState:Oe.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:c??0};l?.(d,at,a,s),eI(d,p,at)}let y=u[p];hg(y,f,u);let v=null,A=null;if(y[qt]?.length>0){let at=y[qt][0].data;A=at[Kc]??null,v=at[Jc]}let ce=[null,Ws.Initial,null,null,null,null,A,v,null,null];XC(u,p,ce);let jt=null;A!==null&&m&&(jt=h.get(hh),jt.add(A,{lView:u,tNode:f,lContainer:y}));let pn=()=>{Mg(ce),A!==null&&jt?.cleanup([A])};JC(0,ce,()=>Vl(u,pn)),ds(u,pn)}function yI(e){let n=E(),t=mr();if(!hI(0,n,t))return;let r=Ot();if(we(n,r,e)){let o=w(null);try{let i=!!e,a=kr(n,t)[$o];i===!1&&a===Ws.Initial?lI(n,t):i===!0&&(a===Ws.Initial||a===Z.Placeholder)&&pI(0,n,t)}finally{w(o)}}}function Ft(e,n,t,r){let o=E(),i=Ot();if(we(o,i,n)){let s=B(),a=mr();bE(a,o,e,n,t,r)}return Ft}var DR=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var jc=class{destroy(n){}updateValue(n,t){}swap(n,t){let r=Math.min(n,t),o=Math.max(n,t),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(n,t){this.attach(t,this.detach(n))}};function hc(e,n,t,r,o){return e===t&&Object.is(n,r)?1:Object.is(o(e,n),o(t,r))?-1:0}function vI(e,n,t){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(n)){let l=n.length-1;for(;i<=s&&i<=l;){let c=e.at(i),u=n[i],d=hc(i,c,i,u,t);if(d!==0){d<0&&e.updateValue(i,u),i++;continue}let p=e.at(s),f=n[l],h=hc(s,p,l,f,t);if(h!==0){h<0&&e.updateValue(s,f),s--,l--;continue}let m=t(i,c),y=t(s,p),v=t(i,u);if(Object.is(v,y)){let A=t(l,f);Object.is(A,m)?(e.swap(i,s),e.updateValue(s,f),l--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new zs,o??=Lp(e,i,s,t),Bc(e,r,i,v))e.updateValue(i,u),i++,s++;else if(o.has(v))r.set(m,e.detach(i)),s--;else{let A=e.create(i,n[i]);e.attach(i,A),i++,s++}}for(;i<=l;)Fp(e,r,t,i,n[i]),i++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&i<=s;){let u=e.at(i),d=c.value,p=hc(i,u,i,d,t);if(p!==0)p<0&&e.updateValue(i,d),i++,c=l.next();else{r??=new zs,o??=Lp(e,i,s,t);let f=t(i,d);if(Bc(e,r,i,f))e.updateValue(i,d),i++,s++,c=l.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=l.next();else{let h=t(i,u);r.set(h,e.detach(i)),s--}}}for(;!c.done;)Fp(e,r,t,e.length,c.value),c=l.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(l=>{e.destroy(l)})}function Bc(e,n,t,r){return n!==void 0&&n.has(r)?(e.attach(t,n.get(r)),n.delete(r),!0):!1}function Fp(e,n,t,r,o){if(Bc(e,n,r,t(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Lp(e,n,t,r){let o=new Set;for(let i=n;i<=t;i++)o.add(r(i,e.at(i)));return o}var zs=class{kvMap=new Map;_vMap=void 0;has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;let t=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(n,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,t){if(this.kvMap.has(n)){let r=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,t)}else this.kvMap.set(n,t)}forEach(n){for(let[t,r]of this.kvMap)if(n(r,t),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),n(r,t)}}};function bI(e,n,t,r,o,i,s,a){Rt("NgControlFlow");let l=E(),c=B(),u=je(c.consts,i);return Bn(l,c,e,n,t,r,o,u,256,s,a),ku}function ku(e,n,t,r,o,i,s,a){Rt("NgControlFlow");let l=E(),c=B(),u=je(c.consts,i);return Bn(l,c,e,n,t,r,o,u,512,s,a),ku}function DI(e,n){Rt("NgControlFlow");let t=E(),r=Ot(),o=t[r]!==Se?t[r]:-1,i=o!==-1?Gs(t,P+o):void 0,s=0;if(we(t,r,e)){let a=w(null);try{if(i!==void 0&&bu(i,s),e!==-1){let l=P+e,c=Gs(t,l),u=Uc(t[b],l),d=rg(c,u,t),p=Ar(t,u,n,{dehydratedView:d});Or(c,p,s,Pn(u,d))}}finally{w(a)}}else if(i!==void 0){let a=tg(i,s);a!==void 0&&(a[q]=n)}}var Vc=class{lContainer;$implicit;$index;constructor(n,t,r){this.lContainer=n,this.$implicit=t,this.$index=r}get $count(){return this.lContainer.length-U}};function EI(e){return e}var $c=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,t,r){this.hasEmptyBlock=n,this.trackByFn=t,this.liveCollection=r}};function CI(e,n,t,r,o,i,s,a,l,c,u,d,p){Rt("NgControlFlow");let f=E(),h=B(),m=l!==void 0,y=E(),v=a?s.bind(y[Ie][q]):s,A=new $c(m,v);y[P+e]=A,Bn(f,h,e+1,n,t,r,o,je(h.consts,i),256),m&&Bn(f,h,e+2,l,c,u,d,je(h.consts,p),512)}var Hc=class extends jc{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,t,r){super(),this.lContainer=n,this.hostLView=t,this.templateTNode=r}get length(){return this.lContainer.length-U}at(n){return this.getLView(n)[q].$implicit}attach(n,t){let r=t[Tn];this.needsIndexUpdate||=n!==this.length,Or(this.lContainer,t,n,Pn(this.templateTNode,r)),wI(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,SI(this.lContainer,n),_I(this.lContainer,n)}create(n,t){let r=Ps(this.lContainer,this.templateTNode.tView.ssrId),o=Ar(this.hostLView,this.templateTNode,new Vc(this.lContainer,t,n),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(n){Js(n[b],n),this.operationsCounter?.recordDestroy()}updateValue(n,t){this.getLView(n)[q].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let i=r[xe];KD(i,o),Mo.delete(r),o.detachedLeaveAnimationFns=void 0}}function SI(e,n){if(e.length<=U)return;let t=U+n,r=e[t],o=r?r[An]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function _I(e,n){return Ao(e,n)}function TI(e,n){return tg(e,n)}function Uc(e,n){return Rn(e,n)}function G(e,n,t){let r=E(),o=Ot();if(we(r,o,n)){let i=B(),s=mr();Uh(s,r,e,n,r[L],t)}return G}function Wc(e,n,t,r,o){yu(n,e,t,o?"class":"style",r)}function Lr(e,n,t,r){let o=E(),i=o[b],s=e+P,a=i.firstCreatePass?Du(s,o,2,n,pu,fs(),t,r):i.data[s];if(hu(a,o,e,n,Pg),dr(a)){let l=o[b];ea(l,o,a),eu(l,a,o)}return r!=null&&Bo(o,a),Lr}function Pr(){let e=B(),n=ae(),t=gu(n);return e.firstCreatePass&&Eu(e,t),zl(t)&&Gl(),Ul(),t.classesWithoutHost!=null&&Vb(t)&&Wc(e,t,E(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&$b(t)&&Wc(e,t,E(),t.stylesWithoutHost,!1),Pr}function Hn(e,n,t,r){return Lr(e,n,t,r),Pr(),Hn}function jr(e,n,t,r){let o=E(),i=o[b],s=e+P,a=i.firstCreatePass?oC(s,i,2,n,t,r):i.data[s];return hu(a,o,e,n,Pg),r!=null&&Bo(o,a),jr}function Br(){let e=ae(),n=gu(e);return zl(n)&&Gl(),Ul(),Br}function Uo(e,n,t,r){return jr(e,n,t,r),Br(),Uo}var Pg=(e,n,t,r,o)=>(Io(!0),Dh(n[L],r,Xl()));function Un(e,n,t){let r=E(),o=r[b],i=e+P,s=o.firstCreatePass?Du(i,r,8,"ng-container",pu,fs(),n,t):o.data[i];if(hu(s,r,e,"ng-container",NI),dr(s)){let a=r[b];ea(a,r,s),eu(a,s,r)}return t!=null&&Bo(r,s),Un}function Wn(){let e=B(),n=ae(),t=gu(n);return e.firstCreatePass&&Eu(e,t),Wn}function ca(e,n,t){return Un(e,n,t),Wn(),ca}var NI=(e,n,t,r,o)=>(Io(!0),ED(n[L],""));function MI(){return E()}function ua(e,n,t){let r=E(),o=Ot();if(we(r,o,n)){let i=B(),s=mr();Wh(s,r,e,n,r[L],t)}return ua}var Wo="en-US";var xI=Wo;function jg(e){typeof e=="string"&&(xI=e.toLowerCase().replace(/_/g,"-"))}function da(e,n,t){let r=E(),o=B(),i=ae();return Bg(o,r,r[L],i,e,n,t),da}function Bg(e,n,t,r,o,i,s){let a=!0,l=null;if((r.type&3||s)&&(l??=cc(r,n,i),iC(r,e,n,s,t,o,i,l)&&(a=!1)),a){let c=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d>17&32767}function LI(e){return(e&2)==2}function PI(e,n){return e&131071|n<<17}function zc(e){return e|2}function Nr(e){return(e&131068)>>2}function gc(e,n){return e&-131069|n<<2}function jI(e){return(e&1)===1}function Gc(e){return e|1}function BI(e,n,t,r,o,i){let s=i?n.classBindings:n.styleBindings,a=Vn(s),l=Nr(s);e[r]=t;let c=!1,u;if(Array.isArray(t)){let d=t;u=d[1],(u===null||lr(d,u)>0)&&(c=!0)}else u=t;if(o)if(l!==0){let p=Vn(e[a+1]);e[r+1]=Ds(p,a),p!==0&&(e[p+1]=gc(e[p+1],r)),e[a+1]=PI(e[a+1],r)}else e[r+1]=Ds(a,0),a!==0&&(e[a+1]=gc(e[a+1],r)),a=r;else e[r+1]=Ds(l,0),a===0?a=r:e[l+1]=gc(e[l+1],r),l=r;c&&(e[r+1]=zc(e[r+1])),Pp(e,u,r,!0),Pp(e,u,r,!1),VI(n,u,e,r,i),s=Ds(a,l),i?n.classBindings=s:n.styleBindings=s}function VI(e,n,t,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof n=="string"&&lr(i,n)>=0&&(t[r+1]=Gc(t[r+1]))}function Pp(e,n,t,r){let o=e[t+1],i=n===null,s=r?Vn(o):Nr(o),a=!1;for(;s!==0&&(a===!1||i);){let l=e[s],c=e[s+1];$I(l,n)&&(a=!0,e[s+1]=r?Gc(c):zc(c)),s=r?Vn(c):Nr(c)}a&&(e[t+1]=r?zc(o):Gc(o))}function $I(e,n){return e===null||n==null||(Array.isArray(e)?e[1]:e)===n?!0:Array.isArray(e)&&typeof n=="string"?lr(e,n)>=0:!1}var te={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Vg(e){return e.substring(te.key,te.keyEnd)}function HI(e){return e.substring(te.value,te.valueEnd)}function UI(e){return Ug(e),$g(e,Mr(e,0,te.textEnd))}function $g(e,n){let t=te.textEnd;return t===n?-1:(n=te.keyEnd=zI(e,te.key=n,t),Mr(e,n,t))}function WI(e){return Ug(e),Hg(e,Mr(e,0,te.textEnd))}function Hg(e,n){let t=te.textEnd,r=te.key=Mr(e,n,t);return t===r?-1:(r=te.keyEnd=GI(e,r,t),r=jp(e,r,t,58),r=te.value=Mr(e,r,t),r=te.valueEnd=qI(e,r,t),jp(e,r,t,59))}function Ug(e){te.key=0,te.keyEnd=0,te.value=0,te.valueEnd=0,te.textEnd=e.length}function Mr(e,n,t){for(;n32;)n++;return n}function GI(e,n,t){let r;for(;n=65&&(r&-33)<=90||r>=48&&r<=57);)n++;return n}function jp(e,n,t,r){return n=Mr(e,n,t),n32&&(a=s),i=o,o=r,r=l&-33}return a}function Bp(e,n,t,r){let o=-1,i=t;for(;i=0;t=Hg(n,t))Zg(e,Vg(n),HI(n))}function _e(e){zg(tw,YI,e,!0)}function YI(e,n){for(let t=UI(n);t>=0;t=$g(n,t))yo(e,Vg(n),!0)}function Wg(e,n,t,r){let o=E(),i=B(),s=ps(2);if(i.firstUpdatePass&&qg(i,e,s,r),n!==Se&&we(o,s,n)){let a=i.data[gt()];Yg(i,a,o,o[L],e,o[s+1]=rw(n,t),r,s)}}function zg(e,n,t,r){let o=B(),i=ps(2);o.firstUpdatePass&&qg(o,null,i,r);let s=E();if(t!==Se&&we(s,i,t)){let a=o.data[gt()];if(Qg(a,r)&&!Gg(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(t=Xi(l,t||"")),Wc(o,a,s,t,r)}else nw(o,a,s,s[L],s[i+1],s[i+1]=ew(e,n,t),r,i)}}function Gg(e,n){return n>=e.expandoStartIndex}function qg(e,n,t,r){let o=e.data;if(o[t+1]===null){let i=o[gt()],s=Gg(e,t);Qg(i,r)&&n===null&&!s&&(n=!1),n=QI(o,i,n,r),BI(o,i,n,t,s,r)}}function QI(e,n,t,r){let o=Kf(e),i=r?n.residualClasses:n.residualStyles;if(o===null)(r?n.classBindings:n.styleBindings)===0&&(t=mc(null,e,n,t,r),t=ko(t,n.attrs,r),i=null);else{let s=n.directiveStylingLast;if(s===-1||e[s]!==o)if(t=mc(o,e,n,t,r),i===null){let l=KI(e,n,r);l!==void 0&&Array.isArray(l)&&(l=mc(null,e,n,l[1],r),l=ko(l,n.attrs,r),JI(e,n,r,l))}else i=XI(e,n,r)}return i!==void 0&&(r?n.residualClasses=i:n.residualStyles=i),t}function KI(e,n,t){let r=t?n.classBindings:n.styleBindings;if(Nr(r)!==0)return e[Vn(r)]}function JI(e,n,t,r){let o=t?n.classBindings:n.styleBindings;e[Vn(o)]=r}function XI(e,n,t){let r,o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0;){let l=e[o],c=Array.isArray(l),u=c?l[1]:l,d=u===null,p=t[o+1];p===Se&&(p=d?he:void 0);let f=d?os(p,r):u===r?p:void 0;if(c&&!qs(f)&&(f=os(l,r)),qs(f)&&(a=f,s))return a;let h=e[o+1];o=s?Vn(h):Nr(h)}if(n!==null){let l=i?n.residualClasses:n.residualStyles;l!=null&&(a=os(l,r))}return a}function qs(e){return e!==void 0}function rw(e,n){return e==null||e===""||(typeof n=="string"?e=e+n:typeof e=="object"&&(e=Nt(Po(e)))),e}function Qg(e,n){return(e.flags&(n?8:16))!==0}function zo(e,n=""){let t=E(),r=B(),o=e+P,i=r.firstCreatePass?Rr(r,o,1,n,null):r.data[o],s=ow(r,t,i,n,e);t[o]=s,vs()&&du(r,t,s,i),hr(i,!1)}var ow=(e,n,t,r,o)=>(Io(!0),bD(n[L],r));function Kg(e,n,t,r=""){return we(e,Ot(),t)?n+_n(t)+r:Se}function iw(e,n,t,r,o,i=""){let s=Gf(),a=_r(e,s,t,o);return ps(2),a?n+_n(t)+r+_n(o)+i:Se}function Wr(e){return Pu("",e),Wr}function Pu(e,n,t){let r=E(),o=Kg(r,e,n,t);return o!==Se&&Xg(r,gt(),o),Pu}function Jg(e,n,t,r,o){let i=E(),s=iw(i,e,n,t,r,o);return s!==Se&&Xg(i,gt(),s),Jg}function Xg(e,n,t){let r=Ll(n,e);DD(e[L],r,t)}function em(e,n,t){rc(n)&&(n=n());let r=E(),o=Ot();if(we(r,o,n)){let i=B(),s=mr();Uh(s,r,e,n,r[L],t)}return em}function sw(e,n){let t=rc(e);return t&&e.set(n),t}function tm(e,n){let t=E(),r=B(),o=ae();return Bg(r,t,t[L],o,e,n),tm}function aw(e,n,t=""){return Kg(E(),e,n,t)}function lw(e,n,t){let r=B();if(r.firstCreatePass){let o=Je(e);qc(t,r.data,r.blueprint,o,!0),qc(n,r.data,r.blueprint,o,!1)}}function qc(e,n,t,r,o){if(e=X(e),Array.isArray(e))for(let i=0;i>20;if(In(e)||!e.multi){let f=new Ln(c,o,W,null),h=vc(l,n,o?u:u+p,d);h===-1?(Dc(xs(a,s),i,l),yc(i,e,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(f),s.push(f)):(t[h]=f,s[h]=f)}else{let f=vc(l,n,u+p,d),h=vc(l,n,u,u+p),m=f>=0&&t[f],y=h>=0&&t[h];if(o&&!y||!o&&!m){Dc(xs(a,s),i,l);let v=dw(o?uw:cw,t.length,o,r,c,e);!o&&y&&(t[h].providerFactory=v),yc(i,e,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(v),s.push(v)}else{let v=nm(t[o?h:f],c,!o&&r);yc(i,e,f>-1?f:h,v)}!o&&r&&y&&t[h].componentProviders++}}}function yc(e,n,t,r){let o=In(n),i=Of(n);if(o||i){let l=(i?X(n.useClass):n).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){let u=c.indexOf(t);u===-1?c.push(t,[r,l]):c[u+1].push(r,l)}else c.push(t,l)}}}function nm(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function vc(e,n,t,r){for(let o=t;o{t.providersResolver=(r,o)=>lw(r,o?o(e):e,n)}}function fw(e,n,t){let r=ht()+e,o=E();return o[r]===Se?on(o,r,t?n.call(t):n()):ia(o,r)}function pw(e,n,t,r){return bw(E(),ht(),e,n,t,r)}function ha(e,n,t,r,o){return Dw(E(),ht(),e,n,t,r,o)}function hw(e,n,t,r,o,i){return rm(E(),ht(),e,n,t,r,o,i)}function gw(e,n,t,r,o,i,s){return Ew(E(),ht(),e,n,t,r,o,i,s)}function mw(e,n,t,r,o,i,s,a){let l=ht()+e,c=E(),u=sa(c,l,t,r,o,i);return we(c,l+4,s)||u?on(c,l+5,a?n.call(a,t,r,o,i,s):n(t,r,o,i,s)):ia(c,l+5)}function yw(e,n,t,r,o,i,s,a,l){let c=ht()+e,u=E(),d=sa(u,c,t,r,o,i);return _r(u,c+4,s,a)||d?on(u,c+6,l?n.call(l,t,r,o,i,s,a):n(t,r,o,i,s,a)):ia(u,c+6)}function vw(e,n,t,r,o,i,s,a,l,c){let u=ht()+e,d=E(),p=sa(d,u,t,r,o,i);return cg(d,u+4,s,a,l)||p?on(d,u+7,c?n.call(c,t,r,o,i,s,a,l):n(t,r,o,i,s,a,l)):ia(d,u+7)}function ga(e,n){let t=e[n];return t===Se?void 0:t}function bw(e,n,t,r,o,i){let s=n+t;return we(e,s,o)?on(e,s+1,i?r.call(i,o):r(o)):ga(e,s+1)}function Dw(e,n,t,r,o,i,s){let a=n+t;return _r(e,a,o,i)?on(e,a+2,s?r.call(s,o,i):r(o,i)):ga(e,a+2)}function rm(e,n,t,r,o,i,s,a){let l=n+t;return cg(e,l,o,i,s)?on(e,l+3,a?r.call(a,o,i,s):r(o,i,s)):ga(e,l+3)}function Ew(e,n,t,r,o,i,s,a,l){let c=n+t;return sa(e,c,o,i,s,a)?on(e,c+4,l?r.call(l,o,i,s,a):r(o,i,s,a)):ga(e,c+4)}function Cw(e,n){let t=B(),r,o=e+P;t.firstCreatePass?(r=Iw(n,t.pipeRegistry),t.data[o]=r,r.onDestroy&&(t.destroyHooks??=[]).push(o,r.onDestroy)):r=t.data[o];let i=r.factory||(r.factory=Ht(r.type,!0)),s,a=De(W);try{let l=Ms(!1),c=i();return Ms(l),jl(t,E(),o,c),c}finally{De(a)}}function Iw(e,n){if(n)for(let t=n.length-1;t>=0;t--){let r=n[t];if(e===r.name)return r}}function ww(e,n,t,r,o){let i=e+P,s=E(),a=Pl(s,i);return Sw(s,i)?rm(s,ht(),n,a.transform,t,r,o,a):a.transform(t,r,o)}function Sw(e,n){return e[b].data[n].pure}function _w(e,n){return na(e,n)}var Zs=class{ngModuleFactory;componentFactories;constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}},Tw=(()=>{class e{compileModuleSync(t){return new Us(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){let r=this.compileModuleSync(t),o=Tl(t),i=wh(o.declarations).reduce((s,a)=>{let l=xt(a);return l&&s.push(new Tr(l)),s},[]);return new Zs(r,i)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Nw=(()=>{class e{zone=g(de);changeDetectionScheduler=g(Ze);applicationRef=g(Ho);applicationErrorHandler=g(et);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(t){this.applicationErrorHandler(t)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),om=new C("",{factory:()=>!1});function ju({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new de(H(D({},Bu()),{scheduleInRootZone:t})),[{provide:de,useFactory:e},{provide:Wt,multi:!0,useFactory:()=>{let r=g(Nw,{optional:!0});return()=>r.initialize()}},{provide:Wt,multi:!0,useFactory:()=>{let r=g(xw);return()=>{r.initialize()}}},n===!0?{provide:oc,useValue:!0}:[],{provide:ic,useValue:t??xh},{provide:et,useFactory:()=>{let r=g(de),o=g(Le),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(Mt),i.handleError(s))})}}}]}function Mw(e){let n=e?.ignoreChangesOutsideZone,t=e?.scheduleInRootZone,r=ju({ngZoneFactory:()=>{let o=Bu(e);return o.scheduleInRootZone=t,o.shouldCoalesceEventChangeDetection&&Rt("NgZone_CoalesceEvent"),new de(o)},ignoreChangesOutsideZone:n,scheduleInRootZone:t});return zt([{provide:om,useValue:!0},{provide:wo,useValue:!1},r])}function Bu(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var xw=(()=>{class e{subscription=new Q;initialized=!1;zone=g(de);pendingTasks=g(en);initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{de.assertNotInAngularZone(),queueMicrotask(()=>{t!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{de.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var im=(()=>{class e{applicationErrorHandler=g(et);appRef=g(Ho);taskService=g(en);ngZone=g(de);zonelessEnabled=g(wo);tracing=g(jo,{optional:!0});disableScheduling=g(oc,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Q;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ks):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(ic,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){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 Fs||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&t===5)return;let r=!1;switch(t){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?pp:Ah;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(t){return!(this.disableScheduling&&!t||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ks+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.taskService.remove(t),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,pp(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Aw(){return typeof $localize<"u"&&$localize.locale||Wo}var ma=new C("",{providedIn:"root",factory:()=>g(ma,{optional:!0,skipSelf:!0})||Aw()});function ya(e){return hf(e)}function nt(e,n){return to(e,n?.equal)}var Vu=class{[ie];constructor(n){this[ie]=n}destroy(){this[ie].destroy()}};function ye(e,n){let t=n?.injector??g($e),r=n?.manualCleanup!==!0?t.get(Xt):null,o,i=t.get(vr,null,{optional:!0}),s=t.get(Ze);return i!==null?(o=kw(i.view,s,e),r instanceof po&&r._lView===i.view&&(r=null)):o=Fw(e,t.get(So),s),o.injector=t,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new Vu(o)}var sm=H(D({},gf),{cleanupFns:void 0,zone:null,onDestroyFn:kn,run(){let e=gr(!1);try{mf(this)}finally{gr(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=w(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],w(e)}}}),Ow=H(D({},sm),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){mn(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),Rw=H(D({},sm),{consumerMarkedDirty(){this.view[S]|=8192,Kt(this.view),this.notifier.notify(13)},destroy(){mn(this),this.onDestroyFn(),this.cleanup(),this.view[At]?.delete(this)}});function kw(e,n,t){let r=Object.create(Rw);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=n,r.fn=am(r,t),e[At]??=new Set,e[At].add(r),r.consumerMarkedDirty(r),r}function Fw(e,n,t){let r=Object.create(Ow);return r.fn=am(r,e),r.scheduler=n,r.notifier=t,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function am(e,n){return()=>{n(t=>(e.cleanupFns??=[]).push(t))}}var hm=Symbol("InputSignalNode#UNSET"),zw=H(D({},Ei),{transformFn:void 0,applyValueToInputSignal(e,n){Jn(e,n)}});function gm(e,n){let t=Object.create(zw);t.value=e,t.transformFn=n?.transform;function r(){if(Zn(t),t.value===hm){let o=null;throw new T(-950,o)}return t.value}return r[ie]=t,r}var Gw=new C("");Gw.__NG_ELEMENT_ID__=e=>{let n=ae();if(n===null)throw new T(204,!1);if(n.type&2)return n.value;if(e&8)return null;throw new T(204,!1)};function lm(e,n){return gm(e,n)}function qw(e){return gm(hm,e)}var J=(lm.required=qw,lm);function cm(e,n){return Su(n)}function Zw(e,n){return _u(n)}var o2=(cm.required=Zw,cm);function um(e,n){return Su(n)}function Yw(e,n){return _u(n)}var Yu=(um.required=Yw,um);var $u=new C(""),Qw=new C("");function Go(e){return!e.moduleRef}function Kw(e){let n=Go(e)?e.r3Injector:e.moduleRef.injector,t=n.get(de);return t.run(()=>{Go(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=n.get(et),o;if(t.runOutsideAngular(()=>{o=t.onError.subscribe({next:r})}),Go(e)){let i=()=>n.destroy(),s=e.platformInjector.get($u);s.add(i),n.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get($u);s.add(i),e.moduleRef.onDestroy(()=>{To(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Xw(r,t,()=>{let i=n.get(en),s=i.add(),a=n.get(Ru);return a.runInitializers(),a.donePromise.then(()=>{let l=n.get(ma,Wo);if(jg(l||Wo),!n.get(Qw,!0))return Go(e)?n.get(Ho):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Go(e)){let u=n.get(Ho);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return Jw?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var Jw;function Xw(e,n,t){try{let r=t();return la(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e(r)),r}}var va=null;function eS(e=[],n){return $e.create({name:n,providers:[{provide:xl,useValue:"platform"},{provide:$u,useValue:new Set([()=>va=null])},...e]})}function tS(e=[]){if(va)return va;let n=eS(e);return va=n,kg(),nS(n),n}function nS(e){let n=e.get(ch,null);ss(e,()=>{n?.forEach(t=>t())})}var Qu=(()=>{class e{static __NG_ELEMENT_ID__=rS}return e})();function rS(e){return oS(ae(),E(),(e&16)===16)}function oS(e,n,t){if(Yt(e)&&!t){let r=We(e.index,n);return new nn(r,r)}else if(e.type&175){let r=n[Ie];return new nn(r,n)}return null}var Hu=class{constructor(){}supports(n){return Cu(n)}create(n){return new Uu(n)}},iS=(e,n)=>n,Uu=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||iS}forEachItem(n){let t;for(t=this._itHead;t!==null;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,i=null;for(;t||r;){let s=!r||t&&t.currentIndex{s=this._trackByFn(o,a),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,a,s,o),r=!0):(r&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,o){let i;return n===null?i=this._itTail:(i=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),n!==null?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,i,o)):(n=this._linkedRecords===null?null:this._linkedRecords.get(r,o),n!==null?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,i,o)):n=this._addAfter(new Wu(t,r),i,o)),n}_verifyReinsertion(n,t,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;n!==null;){let t=n._next;this._addToRemovals(this._unlink(n)),n=t}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(n,t,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let o=n._prevRemoved,i=n._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){let o=t===null?this._itHead:t._next;return n._next=o,n._prev=t,o===null?this._itTail=n:o._prev=n,t===null?this._itHead=n:t._next=n,this._linkedRecords===null&&(this._linkedRecords=new ba),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let t=n._prev,r=n._next;return t===null?this._itHead=r:t._next=r,r===null?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ba),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},Wu=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,t){this.item=n,this.trackById=t}},zu=class{_head=null;_tail=null;add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;r!==null;r=r._nextDup)if((t===null||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){let t=n._prevDup,r=n._nextDup;return t===null?this._head=r:t._nextDup=r,r===null?this._tail=t:r._prevDup=t,this._head===null}},ba=class{map=new Map;put(n){let t=n.trackById,r=this.map.get(t);r||(r=new zu,this.map.set(t,r)),r.add(n)}get(n,t){let r=n,o=this.map.get(r);return o?o.get(n,t):null}remove(n){let t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function dm(e,n,t){let r=e.previousIndex;if(r===null)return r;let o=0;return t&&r{if(t&&t.key===o)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{let i=this._getOrCreateRecordForKey(o,r);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;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(n,t){if(n){let r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){let o=this._records.get(n);this._maybeAddToChanges(o,t);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 Zu(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(r=>t(n[r],r))}},Zu=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n}};function fm(){return new Ku([new Hu])}var Ku=(()=>{class e{factories;static \u0275prov=I({token:e,providedIn:"root",factory:fm});constructor(t){this.factories=t}static create(t,r){if(r!=null){let o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:()=>{let r=g(e,{optional:!0,skipSelf:!0});return e.create(t,r||fm())}}}find(t){let r=this.factories.find(o=>o.supports(t));if(r!=null)return r;throw new T(901,!1)}}return e})();function pm(){return new Ju([new Gu])}var Ju=(()=>{class e{static \u0275prov=I({token:e,providedIn:"root",factory:pm});factories;constructor(t){this.factories=t}static create(t,r){if(r){let o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:()=>{let r=g(e,{optional:!0,skipSelf:!0});return e.create(t,r||pm())}}}find(t){let r=this.factories.find(o=>o.supports(t));if(r)return r;throw new T(901,!1)}}return e})();function i2(e){let{rootComponent:n,appProviders:t,platformProviders:r,platformRef:o}=e;R(8);try{let i=o?.injector??tS(r),s=[ju({}),{provide:Ze,useExisting:im},rp,...t||[]],a=new Ro({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return Kw({r3Injector:a.injector,platformInjector:i,rootComponent:n})}catch(i){return Promise.reject(i)}finally{R(9)}}function Y(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function mm(e,n=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):n}var bm=null;function Da(){return bm}function sS(e){bm??=e}var Xu=class{},ed=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>g(Dm),providedIn:"platform"})}return e})();var Dm=(()=>{class e extends ed{_location;_history;_doc=g(Ae);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Da().getBaseHref(this._doc)}onPopState(t){let r=Da().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){let r=Da().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}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(t){this._location.pathname=t}pushState(t,r,o){this._history.pushState(t,r,o)}replaceState(t,r,o){this._history.replaceState(t,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Em(e,n){return e?n?e.endsWith("/")?n.startsWith("/")?e+n.slice(1):e+n:n.startsWith("/")?e+n:`${e}/${n}`:e:n}function ym(e){let n=e.search(/#|\?|$/);return e[n-1]==="/"?e.slice(0,n-1)+e.slice(n):e}function an(e){return e&&e[0]!=="?"?`?${e}`:e}var Ea=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>g(Im),providedIn:"root"})}return e})(),Cm=new C(""),Im=(()=>{class e extends Ea{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,r){super(),this._platformLocation=t,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(Ae).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Em(this._baseHref,t)}path(t=!1){let r=this._platformLocation.pathname+an(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,i){let s=this.prepareExternalUrl(o+an(i));this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){let s=this.prepareExternalUrl(o+an(i));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(r){return new(r||e)(ue(ed),ue(Cm,8))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wm=(()=>{class e{_subject=new se;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let r=this._locationStrategy.getBaseHref();this._basePath=cS(ym(vm(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+an(r))}normalize(t){return e.stripTrailingSlash(lS(this._basePath,vm(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",o=null){this._locationStrategy.pushState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+an(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+an(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(o=>o(t,r))}subscribe(t,r,o){return this._subject.subscribe({next:t,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=an;static joinWithSlash=Em;static stripTrailingSlash=ym;static \u0275fac=function(r){return new(r||e)(ue(Ea))};static \u0275prov=I({token:e,factory:()=>aS(),providedIn:"root"})}return e})();function aS(){return new wm(ue(Ea))}function lS(e,n){if(!e||!n.startsWith(e))return n;let t=n.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:n}function vm(e){return e.replace(/\/index.html$/,"")}function cS(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var td=/\s+/,Sm=[],uS=(()=>{class e{_ngEl;_renderer;initialClasses=Sm;rawClass;stateMap=new Map;constructor(t,r){this._ngEl=t,this._renderer=r}set klass(t){this.initialClasses=t!=null?t.trim().split(td):Sm}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(td):t}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let r of t)this._updateState(r,!0);else if(t!=null)for(let r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){let o=this.stateMap.get(t);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let r=t[0],o=t[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(t,r){t=t.trim(),t.length>0&&t.split(td).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(W(Re),W(rn))};static \u0275dir=z({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var Ca=class{$implicit;ngForOf;index;count;constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Nm=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let r=this._viewContainer;t.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Ca(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),_m(a,o)}});for(let o=0,i=r.length;o{let i=r.get(o.currentIndex);_m(i,o)})}static ngTemplateContextGuard(t,r){return!0}static \u0275fac=function(r){return new(r||e)(W(sn),W(yt),W(Ku))};static \u0275dir=z({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function _m(e,n){e.context.$implicit=n.item}var nd=(()=>{class e{_viewContainer;_context=new Ia;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,r){this._viewContainer=t,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Tm(t,!1),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Tm(t,!1),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,r){return!0}static \u0275fac=function(r){return new(r||e)(W(sn),W(yt))};static \u0275dir=z({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Ia=class{$implicit=null;ngIf=null};function Tm(e,n){if(e&&!e.createEmbeddedView)throw new T(2020,!1)}var rd=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,r,o){this._ngEl=t,this._differs=r,this._renderer=o}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,r){let[o,i]=t.split("."),s=o.indexOf("-")===-1?void 0:Sr.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(t){t.forEachRemovedItem(r=>this._setStyle(r.key,null)),t.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),t.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||e)(W(Re),W(Ju),W(rn))};static \u0275dir=z({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),od=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(t,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(W(sn))};static \u0275dir=z({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Lo]})}return e})();function dS(e,n){return new T(2100,!1)}var fS=(()=>{class e{transform(t,r,o){if(t==null)return null;if(!(typeof t=="string"||Array.isArray(t)))throw dS(e,t);return t.slice(r,o)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Nu({name:"slice",type:e,pure:!1})}return e})();var Et=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fe({type:e});static \u0275inj=Ee({})}return e})();function pS(e,n){n=encodeURIComponent(n);for(let t of e.split(";")){let r=t.indexOf("="),[o,i]=r==-1?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}var id=class{};var hS="browser",gS="server";function zr(e){return e===hS}function sd(e){return e===gS}function ln(...e){if(e){let n=[];for(let t=0;ta?s:void 0);n=i.length?n.concat(i.filter(s=>!!s)):n}}return n.join(" ").trim()}}function Mm(e,n){return e?e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className):!1}function zn(e,n){if(e&&n){let t=r=>{Mm(e,r)||(e.classList?e.classList.add(r):e.className+=" "+r)};[n].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(t))}}function yS(){return window.innerWidth-document.documentElement.offsetWidth}function xm(e){typeof e=="string"?zn(document.body,e||"p-overflow-hidden"):(e!=null&&e.variableName&&document.body.style.setProperty(e.variableName,yS()+"px"),zn(document.body,e?.className||"p-overflow-hidden"))}function cn(e,n){if(e&&n){let t=r=>{e.classList?e.classList.remove(r):e.className=e.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[n].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(t))}}function Am(e){typeof e=="string"?cn(document.body,e||"p-overflow-hidden"):(e!=null&&e.variableName&&document.body.style.removeProperty(e.variableName),cn(document.body,e?.className||"p-overflow-hidden"))}function qo(e){for(let n of document?.styleSheets)try{for(let t of n?.cssRules)for(let r of t?.style)if(e.test(r))return{name:r,value:t.style.getPropertyValue(r).trim()}}catch{}return null}function Om(e){let n={width:0,height:0};if(e){let[t,r]=[e.style.visibility,e.style.display],o=e.getBoundingClientRect();e.style.visibility="hidden",e.style.display="block",n.width=o.width||e.offsetWidth,n.height=o.height||e.offsetHeight,e.style.display=r,e.style.visibility=t}return n}function Rm(){let e=window,n=document,t=n.documentElement,r=n.getElementsByTagName("body")[0],o=e.innerWidth||t.clientWidth||r.clientWidth,i=e.innerHeight||t.clientHeight||r.clientHeight;return{width:o,height:i}}function ad(e){return e?Math.abs(e.scrollLeft):0}function vS(){let e=document.documentElement;return(window.pageXOffset||ad(e))-(e.clientLeft||0)}function bS(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function DS(e){return e?getComputedStyle(e).direction==="rtl":!1}function PB(e,n,t=!0){var r,o,i,s;if(e){let a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Om(e),l=a.height,c=a.width,u=n.offsetHeight,d=n.offsetWidth,p=n.getBoundingClientRect(),f=bS(),h=vS(),m=Rm(),y,v,A="top";p.top+u+l>m.height?(y=p.top+f-l,A="bottom",y<0&&(y=f)):y=u+p.top+f,p.left+c>m.width?v=Math.max(0,p.left+h+d-c):v=p.left+h,DS(e)?e.style.insetInlineEnd=v+"px":e.style.insetInlineStart=v+"px",e.style.top=y+"px",e.style.transformOrigin=A,t&&(e.style.marginTop=A==="bottom"?`calc(${(o=(r=qo(/-anchor-gutter$/))==null?void 0:r.value)!=null?o:"2px"} * -1)`:(s=(i=qo(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function jB(e,n){e&&(typeof n=="string"?e.style.cssText=n:Object.entries(n||{}).forEach(([t,r])=>e.style[t]=r))}function km(e,n){if(e instanceof HTMLElement){let t=e.offsetWidth;if(n){let r=getComputedStyle(e);t+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return t}return 0}function BB(e,n,t=!0,r=void 0){var o;if(e){let i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Om(e),s=n.offsetHeight,a=n.getBoundingClientRect(),l=Rm(),c,u,d=r??"top";if(!r&&a.top+s+i.height>l.height?(c=-1*i.height,d="bottom",a.top+c<0&&(c=-1*a.top)):c=s,i.width>l.width?u=a.left*-1:a.left+i.width>l.width?u=(a.left+i.width-l.width)*-1:u=0,e.style.top=c+"px",e.style.insetInlineStart=u+"px",e.style.transformOrigin=d,t){let p=(o=qo(/-anchor-gutter$/))==null?void 0:o.value;e.style.marginTop=d==="bottom"?`calc(${p??"2px"} * -1)`:p??""}}}function Fm(e){if(e){let n=e.parentNode;return n&&n instanceof ShadowRoot&&n.host&&(n=n.host),n}return null}function ES(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&Fm(e))}function Zo(e){return typeof Element<"u"?e instanceof Element:e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.nodeName=="string"}function Lm(e){let n=e;return e&&typeof e=="object"&&(Object.hasOwn(e,"current")?n=e.current:Object.hasOwn(e,"el")&&(Object.hasOwn(e.el,"nativeElement")?n=e.el.nativeElement:n=e.el)),Zo(n)?n:void 0}function CS(e,n){var t,r,o;if(e)switch(e){case"document":return document;case"window":return window;case"body":return document.body;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@first":return n?.firstElementChild;case"@last":return n?.lastElementChild;case"@child":return(t=n?.children)==null?void 0:t[0];case"@parent":return n?.parentElement;case"@grandparent":return(r=n?.parentElement)==null?void 0:r.parentElement;default:{if(typeof e=="string"){let a=e.match(/^@child\[(\d+)]/);return a?((o=n?.children)==null?void 0:o[parseInt(a[1],10)])||null:document.querySelector(e)||null}let i=(a=>typeof a=="function"&&"call"in a&&"apply"in a)(e)?e():e,s=Lm(i);return ES(s)?s:i?.nodeType===9?i:void 0}}}function VB(e,n){let t=CS(e,n);if(t)t.appendChild(n);else throw new Error("Cannot append "+n+" to "+e)}function wa(e,n={}){if(Zo(e)){let t=(r,o)=>{var i,s;let a=(i=e?.$attrs)!=null&&i[r]?[(s=e?.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((l,c)=>{if(c!=null){let u=typeof c;if(u==="string"||u==="number")l.push(c);else if(u==="object"){let d=Array.isArray(c)?t(r,c):Object.entries(c).map(([p,f])=>r==="style"&&(f||f===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${f}`:f?p:void 0);l=d.length?l.concat(d.filter(p=>!!p)):l}}return l},a)};Object.entries(n).forEach(([r,o])=>{if(o!=null){let i=r.match(/^on(.+)/);i?e.addEventListener(i[1].toLowerCase(),o):r==="p-bind"||r==="pBind"?wa(e,o):(o=r==="class"?[...new Set(t("class",o))].join(" ").trim():r==="style"?t("style",o).join(";").trim():o,(e.$attrs=e.$attrs||{})&&(e.$attrs[r]=o),e.setAttribute(r,o))}})}}function Sa(e,n={},...t){if(e){let r=document.createElement(e);return wa(r,n),r.append(...t),r}}function $B(e,n){if(e){e.style.opacity="0";let t=+new Date,r="0",o=function(){r=`${+e.style.opacity+(new Date().getTime()-t)/n}`,e.style.opacity=r,t=+new Date,+r<1&&("requestAnimationFrame"in window?requestAnimationFrame(o):setTimeout(o,16))};o()}}function IS(e,n){return Zo(e)?Array.from(e.querySelectorAll(n)):[]}function Gr(e,n){return Zo(e)?e.matches(n)?e:e.querySelector(n):null}function HB(e,n){e&&document.activeElement!==e&&e.focus(n)}function Pm(e,n=""){let t=IS(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, - [href]:not([tabindex = "-1"]):not([style*="display:none"]):not([hidden])${n}, - input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, - select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, - textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, - [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, - [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`),r=[];for(let o of t)getComputedStyle(o).display!="none"&&getComputedStyle(o).visibility!="hidden"&&r.push(o);return r}function UB(e,n){let t=Pm(e,n);return t.length>0?t[0]:null}function ld(e){if(e){let n=e.offsetHeight,t=getComputedStyle(e);return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),n}return 0}function WB(e){var n;if(e){let t=(n=Fm(e))==null?void 0:n.childNodes,r=0;if(t)for(let o=0;o0?t[t.length-1]:null}function jm(e){if(e){let n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||ad(document.documentElement)||ad(document.body)||0)}}return{top:"auto",left:"auto"}}function cd(e,n){if(e){let t=e.offsetHeight;if(n){let r=getComputedStyle(e);t+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return t}return 0}function GB(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function ud(e){if(e){let n=e.offsetWidth,t=getComputedStyle(e);return n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)+parseFloat(t.borderLeftWidth)+parseFloat(t.borderRightWidth),n}return 0}function qB(e){return!!(e&&e.offsetParent!=null)}function ZB(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Bm(e){var n;e&&("remove"in Element.prototype?e.remove():(n=e.parentNode)==null||n.removeChild(e))}function YB(e,n){let t=Lm(e);if(t)t.removeChild(n);else throw new Error("Cannot remove "+n+" from "+e)}function QB(e,n){let t=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=t?parseFloat(t):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),i=o?parseFloat(o):0,s=e.getBoundingClientRect(),a=n.getBoundingClientRect().top+document.body.scrollTop-(s.top+document.body.scrollTop)-r-i,l=e.scrollTop,c=e.clientHeight,u=cd(n);a<0?e.scrollTop=l+a:a+u>c&&(e.scrollTop=l+a-c+u)}function Vm(e,n="",t){Zo(e)&&t!==null&&t!==void 0&&e.setAttribute(n,t)}function $m(){let e=new Map;return{on(n,t){let r=e.get(n);return r?r.push(t):r=[t],e.set(n,r),this},off(n,t){let r=e.get(n);return r&&r.splice(r.indexOf(t)>>>0,1),this},emit(n,t){let r=e.get(n);r&&r.forEach(o=>{o(t)})},clear(){e.clear()}}}var wS=Object.defineProperty,Hm=Object.getOwnPropertySymbols,SS=Object.prototype.hasOwnProperty,_S=Object.prototype.propertyIsEnumerable,Um=(e,n,t)=>n in e?wS(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Wm=(e,n)=>{for(var t in n||(n={}))SS.call(n,t)&&Um(e,t,n[t]);if(Hm)for(var t of Hm(n))_S.call(n,t)&&Um(e,t,n[t]);return e};function zm(...e){if(e){let n=[];for(let t=0;ta?s:void 0);n=i.length?n.concat(i.filter(s=>!!s)):n}}return n.join(" ").trim()}}function TS(e){return typeof e=="function"&&"call"in e&&"apply"in e}function NS({skipUndefined:e=!1},...n){return n?.reduce((t,r={})=>{for(let o in r){let i=r[o];if(!(e&&i===void 0))if(o==="style")t.style=Wm(Wm({},t.style),r.style);else if(o==="class"||o==="className")t[o]=zm(t[o],r[o]);else if(TS(i)){let s=t[o];t[o]=s?(...a)=>{s(...a),i(...a)}:i}else t[o]=i}return t},{})}function dd(...e){return NS({skipUndefined:!1},...e)}var MS=Object.defineProperty,Gm=Object.getOwnPropertySymbols,xS=Object.prototype.hasOwnProperty,AS=Object.prototype.propertyIsEnumerable,qm=(e,n,t)=>n in e?MS(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,OS=(e,n)=>{for(var t in n||(n={}))xS.call(n,t)&&qm(e,t,n[t]);if(Gm)for(var t of Gm(n))AS.call(n,t)&&qm(e,t,n[t]);return e};function Ct(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0}function fd(e,n,t=new WeakSet){if(e===n)return!0;if(!e||!n||typeof e!="object"||typeof n!="object"||t.has(e)||t.has(n))return!1;t.add(e).add(n);let r=Array.isArray(e),o=Array.isArray(n),i,s,a;if(r&&o){if(s=e.length,s!=n.length)return!1;for(i=s;i--!==0;)if(!fd(e[i],n[i],t))return!1;return!0}if(r!=o)return!1;let l=e instanceof Date,c=n instanceof Date;if(l!=c)return!1;if(l&&c)return e.getTime()==n.getTime();let u=e instanceof RegExp,d=n instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==n.toString();let p=Object.keys(e);if(s=p.length,s!==Object.keys(n).length)return!1;for(i=s;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,p[i]))return!1;for(i=s;i--!==0;)if(a=p[i],!fd(e[a],n[a],t))return!1;return!0}function RS(e,n){return fd(e,n)}function Ta(e){return typeof e=="function"&&"call"in e&&"apply"in e}function F(e){return!Ct(e)}function _a(e,n){if(!e||!n)return null;try{let t=e[n];if(F(t))return t}catch{}if(Object.keys(e).length){if(Ta(n))return n(e);if(n.indexOf(".")===-1)return e[n];{let t=n.split("."),r=e;for(let o=0,i=t.length;o{let o=r;rt(n[o])&&o in e&&rt(e[o])?t[o]=Zm(e[o],n[o]):t[o]=n[o]}),t}function Ym(...e){return e.reduce((n,t,r)=>r===0?t:Zm(n,t),{})}function tV(e,n){let t=-1;if(F(e))try{t=e.findLastIndex(n)}catch{t=e.lastIndexOf([...e].reverse().find(n))}return t}function le(e,...n){return Ta(e)?e(...n):e}function Ge(e,n=!0){return typeof e=="string"&&(n||e!=="")}function un(e){return Ge(e)?e.replace(/(-|_)/g,"").toLowerCase():e}function Na(e,n="",t={}){let r=un(n).split("."),o=r.shift();if(o){if(rt(e)){let i=Object.keys(e).find(s=>un(s)===o)||"";return Na(le(e[i],t),r.join("."),t)}return}return le(e,t)}function pd(e,n=!0){return Array.isArray(e)&&(n||e.length!==0)}function nV(e){return e instanceof Date}function Qm(e){return F(e)&&!isNaN(e)}function rV(e=""){return F(e)&&e.length===1&&!!e.match(/\S| /)}function ot(e,n){if(n){let t=n.test(e);return n.lastIndex=0,t}return!1}function Gn(e){return e&&e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function Ve(e){if(e&&/[\xC0-\xFF\u0100-\u017E]/.test(e)){let n={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let t in n)e=e.replace(n[t],t)}return e}function Ma(e){return Ge(e)?e.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():e}var xa={};function Qo(e="pui_id_"){return Object.hasOwn(xa,e)||(xa[e]=0),xa[e]++,`${e}${xa[e]}`}var Km=["*"];var fe=(()=>{class e{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return e})(),cV=(()=>{class e{static AND="and";static OR="or"}return e})(),uV=(()=>{class e{filter(t,r,o,i,s){let a=[];if(t)for(let l of t)for(let c of r){let u=_a(l,c);if(this.filters[i](u,o,s)){a.push(l);break}}return a}filters={startsWith:(t,r,o)=>{if(r==null||r.trim()==="")return!0;if(t==null)return!1;let i=Ve(r.toString()).toLocaleLowerCase(o);return Ve(t.toString()).toLocaleLowerCase(o).slice(0,i.length)===i},contains:(t,r,o)=>{if(r==null||typeof r=="string"&&r.trim()==="")return!0;if(t==null)return!1;let i=Ve(r.toString()).toLocaleLowerCase(o);return Ve(t.toString()).toLocaleLowerCase(o).indexOf(i)!==-1},notContains:(t,r,o)=>{if(r==null||typeof r=="string"&&r.trim()==="")return!0;if(t==null)return!1;let i=Ve(r.toString()).toLocaleLowerCase(o);return Ve(t.toString()).toLocaleLowerCase(o).indexOf(i)===-1},endsWith:(t,r,o)=>{if(r==null||r.trim()==="")return!0;if(t==null)return!1;let i=Ve(r.toString()).toLocaleLowerCase(o),s=Ve(t.toString()).toLocaleLowerCase(o);return s.indexOf(i,s.length-i.length)!==-1},equals:(t,r,o)=>r==null||typeof r=="string"&&r.trim()===""?!0:t==null?!1:t.getTime&&r.getTime?t.getTime()===r.getTime():t==r?!0:Ve(t.toString()).toLocaleLowerCase(o)==Ve(r.toString()).toLocaleLowerCase(o),notEquals:(t,r,o)=>r==null||typeof r=="string"&&r.trim()===""?!1:t==null?!0:t.getTime&&r.getTime?t.getTime()!==r.getTime():t==r?!1:Ve(t.toString()).toLocaleLowerCase(o)!=Ve(r.toString()).toLocaleLowerCase(o),in:(t,r)=>{if(r==null||r.length===0)return!0;for(let o=0;or==null||r[0]==null||r[1]==null?!0:t==null?!1:t.getTime?r[0].getTime()<=t.getTime()&&t.getTime()<=r[1].getTime():r[0]<=t&&t<=r[1],lt:(t,r,o)=>r==null?!0:t==null?!1:t.getTime&&r.getTime?t.getTime()r==null?!0:t==null?!1:t.getTime&&r.getTime?t.getTime()<=r.getTime():t<=r,gt:(t,r,o)=>r==null?!0:t==null?!1:t.getTime&&r.getTime?t.getTime()>r.getTime():t>r,gte:(t,r,o)=>r==null?!0:t==null?!1:t.getTime&&r.getTime?t.getTime()>=r.getTime():t>=r,is:(t,r,o)=>this.filters.equals(t,r,o),isNot:(t,r,o)=>this.filters.notEquals(t,r,o),before:(t,r,o)=>this.filters.lt(t,r,o),after:(t,r,o)=>this.filters.gt(t,r,o),dateIs:(t,r)=>r==null?!0:t==null?!1:t.toDateString()===r.toDateString(),dateIsNot:(t,r)=>r==null?!0:t==null?!1:t.toDateString()!==r.toDateString(),dateBefore:(t,r)=>r==null?!0:t==null?!1:t.getTime()r==null?!0:t==null?!1:(t.setHours(0,0,0,0),t.getTime()>r.getTime())};register(t,r){this.filters[t]=r}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var dV=(()=>{class e{clickSource=new se;clickObservable=this.clickSource.asObservable();add(t){t&&this.clickSource.next(t)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var fV=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=ke({type:e,selectors:[["p-header"]],standalone:!1,ngContentSelectors:Km,decls:1,vars:0,template:function(r,o){r&1&&(bt(),Dt(0))},encapsulation:2})}return e})(),pV=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=ke({type:e,selectors:[["p-footer"]],standalone:!1,ngContentSelectors:Km,decls:1,vars:0,template:function(r,o){r&1&&(bt(),Dt(0))},encapsulation:2})}return e})(),Jm=(()=>{class e{template;type;name;constructor(t){this.template=t}getType(){return this.name}static \u0275fac=function(r){return new(r||e)(W(yt))};static \u0275dir=z({type:e,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]}})}return e})(),dn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fe({type:e});static \u0275inj=Ee({imports:[Et]})}return e})(),hV=(()=>{class e{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return e})();var kS=Object.defineProperty,FS=Object.defineProperties,LS=Object.getOwnPropertyDescriptors,Aa=Object.getOwnPropertySymbols,ty=Object.prototype.hasOwnProperty,ny=Object.prototype.propertyIsEnumerable,Xm=(e,n,t)=>n in e?kS(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,st=(e,n)=>{for(var t in n||(n={}))ty.call(n,t)&&Xm(e,t,n[t]);if(Aa)for(var t of Aa(n))ny.call(n,t)&&Xm(e,t,n[t]);return e},hd=(e,n)=>FS(e,LS(n)),Lt=(e,n)=>{var t={};for(var r in e)ty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&Aa)for(var r of Aa(e))n.indexOf(r)<0&&ny.call(e,r)&&(t[r]=e[r]);return t};function yV(...e){return Ym(...e)}var PS=$m(),re=PS,Ko=/{([^}]*)}/g,ry=/(\d+\s+[\+\-\*\/]\s+\d+)/g,oy=/var\([^)]+\)/g;function ey(e){return Ge(e)?e.replace(/[A-Z]/g,(n,t)=>t===0?n:"."+n.toLowerCase()).toLowerCase():e}function jS(e){return rt(e)&&e.hasOwnProperty("$value")&&e.hasOwnProperty("$type")?e.$value:e}function BS(e){return e.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function gd(e="",n=""){return BS(`${Ge(e,!1)&&Ge(n,!1)?`${e}-`:e}${n}`)}function iy(e="",n=""){return`--${gd(e,n)}`}function VS(e=""){let n=(e.match(/{/g)||[]).length,t=(e.match(/}/g)||[]).length;return(n+t)%2!==0}function sy(e,n="",t="",r=[],o){if(Ge(e)){let i=e.trim();if(VS(i))return;if(ot(i,Ko)){let s=i.replaceAll(Ko,a=>{let l=a.replace(/{|}/g,"").split(".").filter(c=>!r.some(u=>ot(c,u)));return`var(${iy(t,Ma(l.join("-")))}${F(o)?`, ${o}`:""})`});return ot(s.replace(oy,"0"),ry)?`calc(${s})`:s}return i}else if(Qm(e))return e}function $S(e,n,t){Ge(n,!1)&&e.push(`${n}:${t};`)}function qr(e,n){return e?`${e}{${n}}`:""}function ay(e,n){if(e.indexOf("dt(")===-1)return e;function t(s,a){let l=[],c=0,u="",d=null,p=0;for(;c<=s.length;){let f=s[c];if((f==='"'||f==="'"||f==="`")&&s[c-1]!=="\\"&&(d=d===f?null:f),!d&&(f==="("&&p++,f===")"&&p--,(f===","||c===s.length)&&p===0)){let h=u.trim();h.startsWith("dt(")?l.push(ay(h,a)):l.push(r(h)),u="",c++;continue}f!==void 0&&(u+=f),c++}return l}function r(s){let a=s[0];if((a==='"'||a==="'"||a==="`")&&s[s.length-1]===a)return s.slice(1,-1);let l=Number(s);return isNaN(l)?s:l}let o=[],i=[];for(let s=0;s0){let a=i.pop();i.length===0&&o.push([a,s])}if(!o.length)return e;for(let s=o.length-1;s>=0;s--){let[a,l]=o[s],c=e.slice(a+3,l),u=t(c,n),d=n(...u);e=e.slice(0,a)+d+e.slice(l+1)}return e}var yd=e=>{var n;let t=j.getTheme(),r=md(t,e,void 0,"variable"),o=(n=r?.match(/--[\w-]+/g))==null?void 0:n[0],i=md(t,e,void 0,"value");return{name:o,variable:r,value:i}},Pt=(...e)=>md(j.getTheme(),...e),md=(e={},n,t,r)=>{if(n){let{variable:o,options:i}=j.defaults||{},{prefix:s,transform:a}=e?.options||i||{},l=ot(n,Ko)?n:`{${n}}`;return r==="value"||Ct(r)&&a==="strict"?j.getTokenValue(n):sy(l,void 0,s,[o.excludedKeyRegex],t)}return""};function Zr(e,...n){if(e instanceof Array){let t=e.reduce((r,o,i)=>{var s;return r+o+((s=le(n[i],{dt:Pt}))!=null?s:"")},"");return ay(t,Pt)}return le(e,{dt:Pt})}function HS(e,n={}){let t=j.defaults.variable,{prefix:r=t.prefix,selector:o=t.selector,excludedKeyRegex:i=t.excludedKeyRegex}=n,s=[],a=[],l=[{node:e,path:r}];for(;l.length;){let{node:u,path:d}=l.pop();for(let p in u){let f=u[p],h=jS(f),m=ot(p,i)?gd(d):gd(d,Ma(p));if(rt(h))l.push({node:h,path:m});else{let y=iy(m),v=sy(h,m,r,[i]);$S(a,y,v);let A=m;r&&A.startsWith(r+"-")&&(A=A.slice(r.length+1)),s.push(A.replace(/-/g,"."))}}}let c=a.join("");return{value:a,tokens:s,declarations:c,css:qr(o,c)}}var it={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(e){return{type:"class",selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(e){return{type:"attr",selector:`:root${e},:host${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:"media",selector:e,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(e.trim())}}},custom:{resolve(e){return{type:"custom",selector:e,matched:!0}}}},resolve(e){let n=Object.keys(this.rules).filter(t=>t!=="custom").map(t=>this.rules[t]);return[e].flat().map(t=>{var r;return(r=n.map(o=>o.resolve(t)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(t)})}},_toVariables(e,n){return HS(e,{prefix:n?.prefix})},getCommon({name:e="",theme:n={},params:t,set:r,defaults:o}){var i,s,a,l,c,u,d;let{preset:p,options:f}=n,h,m,y,v,A,ce,jt;if(F(p)&&f.transform!=="strict"){let{primitive:pn,semantic:at,extend:Jo}=p,Kr=at||{},{colorScheme:Xo}=Kr,ei=Lt(Kr,["colorScheme"]),ti=Jo||{},{colorScheme:ni}=ti,Jr=Lt(ti,["colorScheme"]),Xr=Xo||{},{dark:ri}=Xr,oi=Lt(Xr,["dark"]),ii=ni||{},{dark:si}=ii,ai=Lt(ii,["dark"]),li=F(pn)?this._toVariables({primitive:pn},f):{},ci=F(ei)?this._toVariables({semantic:ei},f):{},ui=F(oi)?this._toVariables({light:oi},f):{},Id=F(ri)?this._toVariables({dark:ri},f):{},wd=F(Jr)?this._toVariables({semantic:Jr},f):{},Sd=F(ai)?this._toVariables({light:ai},f):{},_d=F(si)?this._toVariables({dark:si},f):{},[ky,Fy]=[(i=li.declarations)!=null?i:"",li.tokens],[Ly,Py]=[(s=ci.declarations)!=null?s:"",ci.tokens||[]],[jy,By]=[(a=ui.declarations)!=null?a:"",ui.tokens||[]],[Vy,$y]=[(l=Id.declarations)!=null?l:"",Id.tokens||[]],[Hy,Uy]=[(c=wd.declarations)!=null?c:"",wd.tokens||[]],[Wy,zy]=[(u=Sd.declarations)!=null?u:"",Sd.tokens||[]],[Gy,qy]=[(d=_d.declarations)!=null?d:"",_d.tokens||[]];h=this.transformCSS(e,ky,"light","variable",f,r,o),m=Fy;let Zy=this.transformCSS(e,`${Ly}${jy}`,"light","variable",f,r,o),Yy=this.transformCSS(e,`${Vy}`,"dark","variable",f,r,o);y=`${Zy}${Yy}`,v=[...new Set([...Py,...By,...$y])];let Qy=this.transformCSS(e,`${Hy}${Wy}color-scheme:light`,"light","variable",f,r,o),Ky=this.transformCSS(e,`${Gy}color-scheme:dark`,"dark","variable",f,r,o);A=`${Qy}${Ky}`,ce=[...new Set([...Uy,...zy,...qy])],jt=le(p.css,{dt:Pt})}return{primitive:{css:h,tokens:m},semantic:{css:y,tokens:v},global:{css:A,tokens:ce},style:jt}},getPreset({name:e="",preset:n={},options:t,params:r,set:o,defaults:i,selector:s}){var a,l,c;let u,d,p;if(F(n)&&t.transform!=="strict"){let f=e.replace("-directive",""),h=n,{colorScheme:m,extend:y,css:v}=h,A=Lt(h,["colorScheme","extend","css"]),ce=y||{},{colorScheme:jt}=ce,pn=Lt(ce,["colorScheme"]),at=m||{},{dark:Jo}=at,Kr=Lt(at,["dark"]),Xo=jt||{},{dark:ei}=Xo,ti=Lt(Xo,["dark"]),ni=F(A)?this._toVariables({[f]:st(st({},A),pn)},t):{},Jr=F(Kr)?this._toVariables({[f]:st(st({},Kr),ti)},t):{},Xr=F(Jo)?this._toVariables({[f]:st(st({},Jo),ei)},t):{},[ri,oi]=[(a=ni.declarations)!=null?a:"",ni.tokens||[]],[ii,si]=[(l=Jr.declarations)!=null?l:"",Jr.tokens||[]],[ai,li]=[(c=Xr.declarations)!=null?c:"",Xr.tokens||[]],ci=this.transformCSS(f,`${ri}${ii}`,"light","variable",t,o,i,s),ui=this.transformCSS(f,ai,"dark","variable",t,o,i,s);u=`${ci}${ui}`,d=[...new Set([...oi,...si,...li])],p=le(v,{dt:Pt})}return{css:u,tokens:d,style:p}},getPresetC({name:e="",theme:n={},params:t,set:r,defaults:o}){var i;let{preset:s,options:a}=n,l=(i=s?.components)==null?void 0:i[e];return this.getPreset({name:e,preset:l,options:a,params:t,set:r,defaults:o})},getPresetD({name:e="",theme:n={},params:t,set:r,defaults:o}){var i,s;let a=e.replace("-directive",""),{preset:l,options:c}=n,u=((i=l?.components)==null?void 0:i[a])||((s=l?.directives)==null?void 0:s[a]);return this.getPreset({name:a,preset:u,options:c,params:t,set:r,defaults:o})},applyDarkColorScheme(e){return!(e.darkModeSelector==="none"||e.darkModeSelector===!1)},getColorSchemeOption(e,n){var t;return this.applyDarkColorScheme(e)?this.regex.resolve(e.darkModeSelector===!0?n.options.darkModeSelector:(t=e.darkModeSelector)!=null?t:n.options.darkModeSelector):[]},getLayerOrder(e,n={},t,r){let{cssLayer:o}=n;return o?`@layer ${le(o.order||o.name||"primeui",t)}`:""},getCommonStyleSheet({name:e="",theme:n={},params:t,props:r={},set:o,defaults:i}){let s=this.getCommon({name:e,theme:n,params:t,set:o,defaults:i}),a=Object.entries(r).reduce((l,[c,u])=>l.push(`${c}="${u}"`)&&l,[]).join(" ");return Object.entries(s||{}).reduce((l,[c,u])=>{if(rt(u)&&Object.hasOwn(u,"css")){let d=Gn(u.css),p=`${c}-variables`;l.push(``)}return l},[]).join("")},getStyleSheet({name:e="",theme:n={},params:t,props:r={},set:o,defaults:i}){var s;let a={name:e,theme:n,params:t,set:o,defaults:i},l=(s=e.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:s.css,c=Object.entries(r).reduce((u,[d,p])=>u.push(`${d}="${p}"`)&&u,[]).join(" ");return l?``:""},createTokens(e={},n,t="",r="",o={}){let i=function(a,l={},c=[]){if(c.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:a,path:this.path,paths:l,value:void 0};c.push(this.path),l.name=this.path,l.binding||(l.binding={});let u=this.value;if(typeof this.value=="string"&&Ko.test(this.value)){let d=this.value.trim().replace(Ko,p=>{var f;let h=p.slice(1,-1),m=this.tokens[h];if(!m)return console.warn(`Token not found for path: ${h}`),"__UNRESOLVED__";let y=m.computed(a,l,c);return Array.isArray(y)&&y.length===2?`light-dark(${y[0].value},${y[1].value})`:(f=y?.value)!=null?f:"__UNRESOLVED__"});u=ry.test(d.replace(oy,"0"))?`calc(${d})`:d}return Ct(l.binding)&&delete l.binding,c.pop(),{colorScheme:a,path:this.path,paths:l,value:u.includes("__UNRESOLVED__")?void 0:u}},s=(a,l,c)=>{Object.entries(a).forEach(([u,d])=>{let p=ot(u,n.variable.excludedKeyRegex)?l:l?`${l}.${ey(u)}`:ey(u),f=c?`${c}.${u}`:u;rt(d)?s(d,p,f):(o[p]||(o[p]={paths:[],computed:(h,m={},y=[])=>{if(o[p].paths.length===1)return o[p].paths[0].computed(o[p].paths[0].scheme,m.binding,y);if(h&&h!=="none")for(let v=0;vv.computed(v.scheme,m[v.scheme],y))}}),o[p].paths.push({path:f,value:d,scheme:f.includes("colorScheme.light")?"light":f.includes("colorScheme.dark")?"dark":"none",computed:i,tokens:o}))})};return s(e,t,r),o},getTokenValue(e,n,t){var r;let o=(a=>a.split(".").filter(l=>!ot(l.toLowerCase(),t.variable.excludedKeyRegex)).join("."))(n),i=n.includes("colorScheme.light")?"light":n.includes("colorScheme.dark")?"dark":void 0,s=[(r=e[o])==null?void 0:r.computed(i)].flat().filter(a=>a);return s.length===1?s[0].value:s.reduce((a={},l)=>{let c=l,{colorScheme:u}=c,d=Lt(c,["colorScheme"]);return a[u]=d,a},void 0)},getSelectorRule(e,n,t,r){return t==="class"||t==="attr"?qr(F(n)?`${e}${n},${e} ${n}`:e,r):qr(e,qr(n??":root,:host",r))},transformCSS(e,n,t,r,o={},i,s,a){if(F(n)){let{cssLayer:l}=o;if(r!=="style"){let c=this.getColorSchemeOption(o,s);n=t==="dark"?c.reduce((u,{type:d,selector:p})=>(F(p)&&(u+=p.includes("[CSS]")?p.replace("[CSS]",n):this.getSelectorRule(p,a,d,n)),u),""):qr(a??":root,:host",n)}if(l){let c={name:"primeui",order:"primeui"};rt(l)&&(c.name=le(l.name,{name:e,type:r})),F(c.name)&&(n=qr(`@layer ${c.name}`,n),i?.layerNames(c.name))}return n}return""}},j={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){let{theme:n}=e;n&&(this._theme=hd(st({},n),{options:st(st({},this.defaults.options),n.options)}),this._tokens=it.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var e;return((e=this.theme)==null?void 0:e.preset)||{}},get options(){var e;return((e=this.theme)==null?void 0:e.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),re.emit("theme:change",e)},getPreset(){return this.preset},setPreset(e){this._theme=hd(st({},this.theme),{preset:e}),this._tokens=it.createTokens(e,this.defaults),this.clearLoadedStyleNames(),re.emit("preset:change",e),re.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=hd(st({},this.theme),{options:e}),this.clearLoadedStyleNames(),re.emit("options:change",e),re.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return it.getTokenValue(this.tokens,e,this.defaults)},getCommon(e="",n){return it.getCommon({name:e,theme:this.theme,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e="",n){let t={name:e,theme:this.theme,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return it.getPresetC(t)},getDirective(e="",n){let t={name:e,theme:this.theme,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return it.getPresetD(t)},getCustomPreset(e="",n,t,r){let o={name:e,preset:n,options:this.options,selector:t,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return it.getPreset(o)},getLayerOrderCSS(e=""){return it.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e="",n,t="style",r){return it.transformCSS(e,n,r,t,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e="",n,t={}){return it.getCommonStyleSheet({name:e,theme:this.theme,params:n,props:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,n,t={}){return it.getStyleSheet({name:e,theme:this.theme,params:n,props:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:n}){this._loadingStyles.size&&(this._loadingStyles.delete(n),re.emit(`theme:${n}:load`,e),!this._loadingStyles.size&&re.emit("theme:load"))}};var ly=` - *, - ::before, - ::after { - box-sizing: border-box; - } - - /* Non vue overlay animations */ - .p-connected-overlay { - opacity: 0; - transform: scaleY(0.8); - transition: - transform 0.12s cubic-bezier(0, 0, 0.2, 1), - opacity 0.12s cubic-bezier(0, 0, 0.2, 1); - } - - .p-connected-overlay-visible { - opacity: 1; - transform: scaleY(1); - } - - .p-connected-overlay-hidden { - opacity: 0; - transform: scaleY(1); - transition: opacity 0.1s linear; - } - - /* Vue based overlay animations */ - .p-connected-overlay-enter-from { - opacity: 0; - transform: scaleY(0.8); - } - - .p-connected-overlay-leave-to { - opacity: 0; - } - - .p-connected-overlay-enter-active { - transition: - transform 0.12s cubic-bezier(0, 0, 0.2, 1), - opacity 0.12s cubic-bezier(0, 0, 0.2, 1); - } - - .p-connected-overlay-leave-active { - transition: opacity 0.1s linear; - } - - /* Toggleable Content */ - .p-toggleable-content-enter-from, - .p-toggleable-content-leave-to { - max-height: 0; - } - - .p-toggleable-content-enter-to, - .p-toggleable-content-leave-from { - max-height: 1000px; - } - - .p-toggleable-content-leave-active { - overflow: hidden; - transition: max-height 0.45s cubic-bezier(0, 1, 0, 1); - } - - .p-toggleable-content-enter-active { - overflow: hidden; - transition: max-height 1s ease-in-out; - } - - .p-disabled, - .p-disabled * { - cursor: default; - pointer-events: none; - user-select: none; - } - - .p-disabled, - .p-component:disabled { - opacity: dt('disabled.opacity'); - } - - .pi { - font-size: dt('icon.size'); - } - - .p-icon { - width: dt('icon.size'); - height: dt('icon.size'); - } - - .p-overlay-mask { - background: dt('mask.background'); - color: dt('mask.color'); - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - } - - .p-overlay-mask-enter { - animation: p-overlay-mask-enter-animation dt('mask.transition.duration') forwards; - } - - .p-overlay-mask-leave { - animation: p-overlay-mask-leave-animation dt('mask.transition.duration') forwards; - } - - @keyframes p-overlay-mask-enter-animation { - from { - background: transparent; - } - to { - background: dt('mask.background'); - } - } - @keyframes p-overlay-mask-leave-animation { - from { - background: dt('mask.background'); - } - to { - background: transparent; - } - } -`;var US=0,cy=(()=>{class e{document=g(Ae);use(t,r={}){let o=!1,i=t,s=null,{immediate:a=!0,manual:l=!1,name:c=`style_${++US}`,id:u=void 0,media:d=void 0,nonce:p=void 0,first:f=!1,props:h={}}=r;if(this.document){if(s=this.document.querySelector(`style[data-primeng-style-id="${c}"]`)||u&&this.document.getElementById(u)||this.document.createElement("style"),s){if(!s.isConnected){i=t;let m=this.document.head;Vm(s,"nonce",p),f&&m.firstChild?m.insertBefore(s,m.firstChild):m.appendChild(s),wa(s,{type:"text/css",media:d,nonce:p,"data-primeng-style-id":c})}s.textContent!==i&&(s.textContent=i)}return{id:u,name:c,el:s,css:i}}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Yr={_loadedStyleNames:new Set,getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()}},WS=` -.p-hidden-accessible { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; -} - -.p-hidden-accessible input, -.p-hidden-accessible select { - transform: scale(0); -} - -.p-overflow-hidden { - overflow: hidden; - padding-right: dt('scrollbar.width'); -} -`,ve=(()=>{class e{name="base";useStyle=g(cy);css=void 0;style=void 0;classes={};inlineStyles={};load=(t,r={},o=i=>i)=>{let i=o(Zr`${le(t,{dt:Pt})}`);return i?this.useStyle.use(Gn(i),D({name:this.name},r)):{}};loadCSS=(t={})=>this.load(this.css,t);loadStyle=(t={},r="")=>this.load(this.style,t,(o="")=>j.transformCSS(t.name||this.name,`${o}${Zr`${r}`}`));loadBaseCSS=(t={})=>this.load(WS,t);loadBaseStyle=(t={},r="")=>this.load(ly,t,(o="")=>j.transformCSS(t.name||this.name,`${o}${Zr`${r}`}`));getCommonTheme=t=>j.getCommon(this.name,t);getComponentTheme=t=>j.getComponent(this.name,t);getPresetTheme=(t,r,o)=>j.getCustomPreset(this.name,t,r,o);getLayerOrderThemeCSS=()=>j.getLayerOrderCSS(this.name);getStyleSheet=(t="",r={})=>{if(this.css){let o=le(this.css,{dt:Pt}),i=Gn(Zr`${o}${t}`),s=Object.entries(r).reduce((a,[l,c])=>a.push(`${l}="${c}"`)&&a,[]).join(" ");return``}return""};getCommonThemeStyleSheet=(t,r={})=>j.getCommonStyleSheet(this.name,t,r);getThemeStyleSheet=(t,r={})=>{let o=[j.getStyleSheet(this.name,t,r)];if(this.style){let i=this.name==="base"?"global-style":`${this.name}-style`,s=Zr`${le(this.style,{dt:Pt})}`,a=Gn(j.transformCSS(i,s)),l=Object.entries(r).reduce((c,[u,d])=>c.push(`${u}="${d}"`)&&c,[]).join(" ");o.push(``)}return o.join("")};static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var zS=(()=>{class e{theme=ee(void 0);csp=ee({nonce:void 0});isThemeChanged=!1;document=g(Ae);baseStyle=g(ve);constructor(){ye(()=>{re.on("theme:change",t=>{ya(()=>{this.isThemeChanged=!0,this.theme.set(t)})})}),ye(()=>{let t=this.theme();this.document&&t&&(this.isThemeChanged||this.onThemeChange(t),this.isThemeChanged=!1)})}ngOnDestroy(){j.clearLoadedStyleNames(),re.clear()}onThemeChange(t){j.setTheme(t),this.document&&this.loadCommonTheme()}loadCommonTheme(){if(this.theme()!=="none"&&!j.isStyleNameLoaded("common")){let{primitive:t,semantic:r,global:o,style:i}=this.baseStyle.getCommonTheme?.()||{},s={nonce:this.csp?.()?.nonce};this.baseStyle.load(t?.css,D({name:"primitive-variables"},s)),this.baseStyle.load(r?.css,D({name:"semantic-variables"},s)),this.baseStyle.load(o?.css,D({name:"global-variables"},s)),this.baseStyle.loadBaseStyle(D({name:"global-style"},s),i),j.setLoadedStyleName("common")}}setThemeConfig(t){let{theme:r,csp:o}=t||{};r&&this.theme.set(r),o&&this.csp.set(o)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vd=(()=>{class e extends zS{ripple=ee(!1);platformId=g($n);inputStyle=ee(null);inputVariant=ee(null);overlayAppendTo=ee("self");overlayOptions={};csp=ee({nonce:void 0});unstyled=ee(void 0);pt=ee(void 0);ptOptions=ee(void 0);filterMatchModeOptions={text:[fe.STARTS_WITH,fe.CONTAINS,fe.NOT_CONTAINS,fe.ENDS_WITH,fe.EQUALS,fe.NOT_EQUALS],numeric:[fe.EQUALS,fe.NOT_EQUALS,fe.LESS_THAN,fe.LESS_THAN_OR_EQUAL_TO,fe.GREATER_THAN,fe.GREATER_THAN_OR_EQUAL_TO],date:[fe.DATE_IS,fe.DATE_IS_NOT,fe.DATE_BEFORE,fe.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",completed:"Completed",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"Search results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",fileChosenMessage:"Files",noFileChosenMessage:"No file chosen",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize",minimizeLabel:"Minimize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new se;translationObserver=this.translationSource.asObservable();getTranslation(t){return this.translation[t]}setTranslation(t){this.translation=D(D({},this.translation),t),this.translationSource.next(this.translation)}setConfig(t){let{csp:r,ripple:o,inputStyle:i,inputVariant:s,theme:a,overlayOptions:l,translation:c,filterMatchModeOptions:u,overlayAppendTo:d,zIndex:p,ptOptions:f,pt:h,unstyled:m}=t||{};r&&this.csp.set(r),d&&this.overlayAppendTo.set(d),o&&this.ripple.set(o),i&&this.inputStyle.set(i),s&&this.inputVariant.set(s),l&&(this.overlayOptions=l),c&&this.setTranslation(c),u&&(this.filterMatchModeOptions=u),p&&(this.zIndex=p),h&&this.pt.set(h),f&&this.ptOptions.set(f),m&&this.unstyled.set(m),a&&this.setThemeConfig({theme:a,csp:r})}static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),GS=new C("PRIME_NG_CONFIG");function GV(...e){let n=e?.map(r=>({provide:GS,useValue:r,multi:!1})),t=Ou(()=>{let r=g(vd);e?.forEach(o=>r.setConfig(o))});return zt([...n,t])}var uy=(()=>{class e extends ve{name="common";static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),It=new C("PARENT_INSTANCE"),Ne=(()=>{class e{document=g(Ae);platformId=g($n);el=g(Re);injector=g($e);cd=g(Qu);renderer=g(rn);config=g(vd);$parentInstance=g(It,{optional:!0,skipSelf:!0})??void 0;baseComponentStyle=g(uy);baseStyle=g(ve);scopedStyleEl;parent=this.$params.parent;cn=ln;_themeScopedListener;dt=J();unstyled=J();pt=J();ptOptions=J();$attrSelector=Qo("pc");get $name(){return this.componentName||this.constructor?.name?.replace(/^_/,"")||"UnknownComponent"}get $hostName(){return this.hostName}$unstyled=nt(()=>this.unstyled()!==void 0?this.unstyled():this.config?.unstyled()||!1);$pt=nt(()=>le(this.pt()||this.directivePT(),this.$params));directivePT=ee(void 0);get $globalPT(){return this._getPT(this.config?.pt(),void 0,t=>le(t,this.$params))}get $defaultPT(){return this._getPT(this.config?.pt(),void 0,t=>this._getOptionValue(t,this.$hostName||this.$name,this.$params)||le(t,this.$params))}get $style(){return D(D({theme:void 0,css:void 0,classes:void 0,inlineStyles:void 0},(this._getHostInstance(this)||{}).$style),this._componentStyle)}get $styleOptions(){return{nonce:this.config?.csp().nonce}}get $params(){let t=this._getHostInstance(this)||this.$parentInstance;return{instance:this,parent:{instance:t}}}onInit(){}onChanges(t){}onDoCheck(){}onAfterContentInit(){}onAfterContentChecked(){}onAfterViewInit(){}onAfterViewChecked(){}onDestroy(){}constructor(){ye(t=>{this.document&&!sd(this.platformId)&&(re.off("theme:change",this._themeScopedListener),this.dt()?(this._loadScopedThemeStyles(this.dt()),this._themeScopedListener=()=>this._loadScopedThemeStyles(this.dt()),this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()),t(()=>{re.off("theme:change",this._themeScopedListener)})}),ye(t=>{this.document&&!sd(this.platformId)&&(re.off("theme:change",this._loadCoreStyles),this.$unstyled()||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))),t(()=>{re.off("theme:change",this._loadCoreStyles)})}),this._hook("onBeforeInit")}ngOnInit(){this._loadCoreStyles(),this._loadStyles(),this.onInit(),this._hook("onInit")}ngOnChanges(t){this.onChanges(t),this._hook("onChanges",t)}ngDoCheck(){this.onDoCheck(),this._hook("onDoCheck")}ngAfterContentInit(){this.onAfterContentInit(),this._hook("onAfterContentInit")}ngAfterContentChecked(){this.onAfterContentChecked(),this._hook("onAfterContentChecked")}ngAfterViewInit(){this.el?.nativeElement?.setAttribute(this.$attrSelector,""),this.onAfterViewInit(),this._hook("onAfterViewInit")}ngAfterViewChecked(){this.onAfterViewChecked(),this._hook("onAfterViewChecked")}ngOnDestroy(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this.onDestroy(),this._hook("onDestroy")}_mergeProps(t,...r){return Ta(t)?t(...r):dd(...r)}_getHostInstance(t){return t?this.$hostName?this.$name===this.$hostName?t:this._getHostInstance(t.$parentInstance):t.$parentInstance:void 0}_getPropValue(t){return this[t]||this._getHostInstance(this)?.[t]}_getOptionValue(t,r="",o={}){return Na(t,r,o)}_hook(t,...r){if(!this.$hostName){let o=this._usePT(this._getPT(this.$pt(),this.$name),this._getOptionValue,`hooks.${t}`),i=this._useDefaultPT(this._getOptionValue,`hooks.${t}`);o?.(...r),i?.(...r)}}_load(){Yr.isStyleNameLoaded("base")||(this.baseStyle.loadBaseCSS(this.$styleOptions),this._loadGlobalStyles(),Yr.setLoadedStyleName("base")),this._loadThemeStyles()}_loadStyles(){this._load(),this._themeChangeListener(()=>this._load())}_loadGlobalStyles(){let t=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);F(t)&&this.baseStyle.load(t,D({name:"global"},this.$styleOptions))}_loadCoreStyles(){!Yr.isStyleNameLoaded(this.$style?.name)&&this.$style?.name&&(this.baseComponentStyle.loadCSS(this.$styleOptions),this.$style.loadCSS(this.$styleOptions),Yr.setLoadedStyleName(this.$style.name))}_loadThemeStyles(){if(!(this.$unstyled()||this.config?.theme()==="none")){if(!j.isStyleNameLoaded("common")){let{primitive:t,semantic:r,global:o,style:i}=this.$style?.getCommonTheme?.()||{};this.baseStyle.load(t?.css,D({name:"primitive-variables"},this.$styleOptions)),this.baseStyle.load(r?.css,D({name:"semantic-variables"},this.$styleOptions)),this.baseStyle.load(o?.css,D({name:"global-variables"},this.$styleOptions)),this.baseStyle.loadBaseStyle(D({name:"global-style"},this.$styleOptions),i),j.setLoadedStyleName("common")}if(!j.isStyleNameLoaded(this.$style?.name)&&this.$style?.name){let{css:t,style:r}=this.$style?.getComponentTheme?.()||{};this.$style?.load(t,D({name:`${this.$style?.name}-variables`},this.$styleOptions)),this.$style?.loadStyle(D({name:`${this.$style?.name}-style`},this.$styleOptions),r),j.setLoadedStyleName(this.$style?.name)}if(!j.isStyleNameLoaded("layer-order")){let t=this.$style?.getLayerOrderThemeCSS?.();this.baseStyle.load(t,D({name:"layer-order",first:!0},this.$styleOptions)),j.setLoadedStyleName("layer-order")}}}_loadScopedThemeStyles(t){let{css:r}=this.$style?.getPresetTheme?.(t,`[${this.$attrSelector}]`)||{},o=this.$style?.load(r,D({name:`${this.$attrSelector}-${this.$style?.name}`},this.$styleOptions));this.scopedStyleEl=o?.el}_unloadScopedThemeStyles(){this.scopedStyleEl?.remove()}_themeChangeListener(t=()=>{}){Yr.clearLoadedStyleNames(),re.on("theme:change",t.bind(this))}_removeThemeListeners(){re.off("theme:change",this._loadCoreStyles),re.off("theme:change",this._load),re.off("theme:change",this._themeScopedListener)}_getPTValue(t={},r="",o={},i=!0){let s=/./g.test(r)&&!!o[r.split(".")[0]],{mergeSections:a=!0,mergeProps:l=!1}=this._getPropValue("ptOptions")?.()||this.config?.ptOptions?.()||{},c=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,u=s?void 0:this._usePT(this._getPT(t,this.$hostName||this.$name),this._getPTClassValue,r,H(D({},o),{global:c||{}})),d=this._getPTDatasets(r);return a||!a&&u?l?this._mergeProps(l,c,u,d):D(D(D({},c),u),d):D(D({},u),d)}_getPTDatasets(t=""){let r="data-pc-",o=t==="root"&&F(this.$pt()?.["data-pc-section"]);return t!=="transition"&&H(D({},t==="root"&&H(D({[`${r}name`]:un(o?this.$pt()?.["data-pc-section"]:this.$name)},o&&{[`${r}extend`]:un(this.$name)}),{[`${this.$attrSelector}`]:""})),{[`${r}section`]:un(t.includes(".")?t.split(".").at(-1)??"":t)})}_getPTClassValue(t,r,o){let i=this._getOptionValue(t,r,o);return Ge(i)||pd(i)?{class:i}:i}_getPT(t,r="",o){let i=(s,a=!1)=>{let l=o?o(s):s,c=un(r),u=un(this.$hostName||this.$name);return(a?c!==u?l?.[c]:void 0:l?.[c])??l};return t?.hasOwnProperty("_usept")?{_usept:t._usept,originalValue:i(t.originalValue),value:i(t.value)}:i(t,!0)}_usePT(t,r,o,i){let s=a=>r?.call(this,a,o,i);if(t?.hasOwnProperty("_usept")){let{mergeSections:a=!0,mergeProps:l=!1}=t._usept||this.config?.ptOptions()||{},c=s(t.originalValue),u=s(t.value);return c===void 0&&u===void 0?void 0:Ge(u)?u:Ge(c)?c:a||!a&&u?l?this._mergeProps(l,c,u):D(D({},c),u):u}return s(t)}_useGlobalPT(t,r,o){return this._usePT(this.$globalPT,t,r,o)}_useDefaultPT(t,r,o){return this._usePT(this.$defaultPT,t,r,o)}ptm(t="",r={}){return this._getPTValue(this.$pt(),t,D(D({},this.$params),r))}ptms(t,r={}){return t.reduce((o,i)=>(o=dd(o,this.ptm(i,r))||{},o),{})}ptmo(t={},r="",o={}){return this._getPTValue(t,r,D({instance:this},o),!1)}cx(t,r={}){return this.$unstyled()?void 0:ln(this._getOptionValue(this.$style.classes,t,D(D({},this.$params),r)))}sx(t="",r=!0,o={}){if(r){let i=this._getOptionValue(this.$style.inlineStyles,t,D(D({},this.$params),o)),s=this._getOptionValue(this.baseComponentStyle.inlineStyles,t,D(D({},this.$params),o));return D(D({},s),i)}}static \u0275fac=function(r){return new(r||e)};static \u0275dir=z({type:e,inputs:{dt:[1,"dt"],unstyled:[1,"unstyled"],pt:[1,"pt"],ptOptions:[1,"ptOptions"]},features:[me([uy,ve]),Lo]})}return e})();var bd=(()=>{class e{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(t,r){t&&r&&(t.classList?t.classList.add(r):t.className+=" "+r)}static addMultipleClasses(t,r){if(t&&r)if(t.classList){let o=r.trim().split(" ");for(let i=0;io.split(" ").forEach(i=>this.removeClass(t,i)))}static hasClass(t,r){return t&&r?t.classList?t.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(t.className):!1}static siblings(t){return Array.prototype.filter.call(t.parentNode.children,function(r){return r!==t})}static find(t,r){return Array.from(t.querySelectorAll(r))}static findSingle(t,r){return this.isElement(t)?t.querySelector(r):null}static index(t){let r=t.parentNode.childNodes,o=0;for(var i=0;i{if(ce)return getComputedStyle(ce).getPropertyValue("position")==="relative"?ce:i(ce.parentElement)},s=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),a=r.offsetHeight,l=r.getBoundingClientRect(),c=this.getWindowScrollTop(),u=this.getWindowScrollLeft(),d=this.getViewport(),f=i(t)?.getBoundingClientRect()||{top:-1*c,left:-1*u},h,m,y="top";l.top+a+s.height>d.height?(h=l.top-f.top-s.height,y="bottom",l.top+h<0&&(h=-1*l.top)):(h=a+l.top-f.top,y="top");let v=l.left+s.width-d.width,A=l.left-f.left;if(s.width>d.width?m=(l.left-f.left)*-1:v>0?m=A-v:m=l.left-f.left,t.style.top=h+"px",t.style.left=m+"px",t.style.transformOrigin=y,o){let ce=qo(/-anchor-gutter$/)?.value;t.style.marginTop=y==="bottom"?`calc(${ce??"2px"} * -1)`:ce??""}}static absolutePosition(t,r,o=!0){let i=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),s=i.height,a=i.width,l=r.offsetHeight,c=r.offsetWidth,u=r.getBoundingClientRect(),d=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),f=this.getViewport(),h,m;u.top+l+s>f.height?(h=u.top+d-s,t.style.transformOrigin="bottom",h<0&&(h=d)):(h=l+u.top+d,t.style.transformOrigin="top"),u.left+a>f.width?m=Math.max(0,u.left+p+c-a):m=u.left+p,t.style.top=h+"px",t.style.left=m+"px",o&&(t.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(t,r=[]){return t.parentNode===null?r:this.getParents(t.parentNode,r.concat([t.parentNode]))}static getScrollableParents(t){let r=[];if(t){let o=this.getParents(t),i=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return i.test(l.getPropertyValue("overflow"))||i.test(l.getPropertyValue("overflowX"))||i.test(l.getPropertyValue("overflowY"))};for(let a of o){let l=a.nodeType===1&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&s(d)&&r.push(d)}}a.nodeType!==9&&s(a)&&r.push(a)}}return r}static getHiddenElementOuterHeight(t){t.style.visibility="hidden",t.style.display="block";let r=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",r}static getHiddenElementOuterWidth(t){t.style.visibility="hidden",t.style.display="block";let r=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",r}static getHiddenElementDimensions(t){let r={};return t.style.visibility="hidden",t.style.display="block",r.width=t.offsetWidth,r.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",r}static scrollInView(t,r){let o=getComputedStyle(t).getPropertyValue("borderTopWidth"),i=o?parseFloat(o):0,s=getComputedStyle(t).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=t.getBoundingClientRect(),u=r.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-i-a,d=t.scrollTop,p=t.clientHeight,f=this.getOuterHeight(r);u<0?t.scrollTop=d+u:u+f>p&&(t.scrollTop=d+u-p+f)}static fadeIn(t,r){t.style.opacity=0;let o=+new Date,i=0,s=function(){i=+t.style.opacity.replace(",",".")+(new Date().getTime()-o)/r,t.style.opacity=i,o=+new Date,+i<1&&(window.requestAnimationFrame?window.requestAnimationFrame(s):setTimeout(s,16))};s()}static fadeOut(t,r){var o=1,i=50,s=r,a=i/s;let l=setInterval(()=>{o=o-a,o<=0&&(o=0,clearInterval(l)),t.style.opacity=o},i)}static getWindowScrollTop(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}static getWindowScrollLeft(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}static matches(t,r){var o=Element.prototype,i=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(s){return[].indexOf.call(document.querySelectorAll(s),this)!==-1};return i.call(t,r)}static getOuterWidth(t,r){let o=t.offsetWidth;if(r){let i=getComputedStyle(t);o+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)}return o}static getHorizontalPadding(t){let r=getComputedStyle(t);return parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)}static getHorizontalMargin(t){let r=getComputedStyle(t);return parseFloat(r.marginLeft)+parseFloat(r.marginRight)}static innerWidth(t){let r=t.offsetWidth,o=getComputedStyle(t);return r+=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),r}static width(t){let r=t.offsetWidth,o=getComputedStyle(t);return r-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),r}static getInnerHeight(t){let r=t.offsetHeight,o=getComputedStyle(t);return r+=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),r}static getOuterHeight(t,r){let o=t.offsetHeight;if(r){let i=getComputedStyle(t);o+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return o}static getHeight(t){let r=t.offsetHeight,o=getComputedStyle(t);return r-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),r}static getWidth(t){let r=t.offsetWidth,o=getComputedStyle(t);return r-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),r}static getViewport(){let t=window,r=document,o=r.documentElement,i=r.getElementsByTagName("body")[0],s=t.innerWidth||o.clientWidth||i.clientWidth,a=t.innerHeight||o.clientHeight||i.clientHeight;return{width:s,height:a}}static getOffset(t){var r=t.getBoundingClientRect();return{top:r.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:r.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(t,r){let o=t.parentNode;if(!o)throw"Can't replace element";return o.replaceChild(r,t)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var t=window.navigator.userAgent,r=t.indexOf("MSIE ");if(r>0)return!0;var o=t.indexOf("Trident/");if(o>0){var i=t.indexOf("rv:");return!0}var s=t.indexOf("Edge/");return s>0}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(t,r){if(this.isElement(r))r.appendChild(t);else if(r&&r.el&&r.el.nativeElement)r.el.nativeElement.appendChild(t);else throw"Cannot append "+r+" to "+t}static removeChild(t,r){if(this.isElement(r))r.removeChild(t);else if(r.el&&r.el.nativeElement)r.el.nativeElement.removeChild(t);else throw"Cannot remove "+t+" from "+r}static removeElement(t){"remove"in Element.prototype?t.remove():t.parentNode?.removeChild(t)}static isElement(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}static calculateScrollbarWidth(t){if(t){let r=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.borderRightWidth)}else{if(this.calculatedScrollbarWidth!==null)return this.calculatedScrollbarWidth;let r=document.createElement("div");r.className="p-scrollbar-measure",document.body.appendChild(r);let o=r.offsetWidth-r.clientWidth;return document.body.removeChild(r),this.calculatedScrollbarWidth=o,o}}static calculateScrollbarHeight(){if(this.calculatedScrollbarHeight!==null)return this.calculatedScrollbarHeight;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let r=t.offsetHeight-t.clientHeight;return document.body.removeChild(t),this.calculatedScrollbarWidth=r,r}static invokeElementMethod(t,r,o){t[r].apply(t,o)}static clearSelection(){if(window.getSelection&&window.getSelection())window.getSelection()?.empty?window.getSelection()?.empty():window.getSelection()?.removeAllRanges&&(window.getSelection()?.rangeCount||0)>0&&(window.getSelection()?.getRangeAt(0)?.getClientRects()?.length||0)>0&&window.getSelection()?.removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let t=this.resolveUserAgent();this.browser={},t.browser&&(this.browser[t.browser]=!0,this.browser.version=t.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let t=navigator.userAgent.toLowerCase(),r=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:r[1]||"",version:r[2]||"0"}}static isInteger(t){return Number.isInteger?Number.isInteger(t):typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}static isHidden(t){return!t||t.offsetParent===null}static isVisible(t){return t&&t.offsetParent!=null}static isExist(t){return t!==null&&typeof t<"u"&&t.nodeName&&t.parentNode}static focus(t,r){t&&document.activeElement!==t&&t.focus(r)}static getFocusableSelectorString(t=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, - [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, - input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, - select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, - textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, - [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, - [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, - .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, - .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`}static getFocusableElements(t,r=""){let o=this.find(t,this.getFocusableSelectorString(r)),i=[];for(let s of o){let a=getComputedStyle(s);this.isVisible(s)&&a.display!="none"&&a.visibility!="hidden"&&i.push(s)}return i}static getFocusableElement(t,r=""){let o=this.findSingle(t,this.getFocusableSelectorString(r));if(o){let i=getComputedStyle(o);if(this.isVisible(o)&&i.display!="none"&&i.visibility!="hidden")return o}return null}static getFirstFocusableElement(t,r=""){let o=this.getFocusableElements(t,r);return o.length>0?o[0]:null}static getLastFocusableElement(t,r){let o=this.getFocusableElements(t,r);return o.length>0?o[o.length-1]:null}static getNextFocusableElement(t,r=!1){let o=e.getFocusableElements(t),i=0;if(o&&o.length>0){let s=o.indexOf(o[0].ownerDocument.activeElement);r?s==-1||s===0?i=o.length-1:i=s-1:s!=-1&&s!==o.length-1&&(i=s+1)}return o[i]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection()?.toString():document.getSelection?document.getSelection()?.toString():document.selection?document.selection.createRange().text:null}static getTargetElement(t,r){if(!t)return null;switch(t){case"document":return document;case"window":return window;case"@next":return r?.nextElementSibling;case"@prev":return r?.previousElementSibling;case"@parent":return r?.parentElement;case"@grandparent":return r?.parentElement?.parentElement;default:let o=typeof t;if(o==="string")return document.querySelector(t);if(o==="object"&&t.hasOwnProperty("nativeElement"))return this.isExist(t.nativeElement)?t.nativeElement:void 0;let s=(a=>!!(a&&a.constructor&&a.call&&a.apply))(t)?t():t;return s&&s.nodeType===9||this.isExist(s)?s:null}}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(t,r){if(t){let o=t.getAttribute(r);return isNaN(o)?o==="true"||o==="false"?o==="true":o:+o}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(t="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,t)}static unblockBodyScroll(t="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,t)}static createElement(t,r={},...o){if(t){let i=document.createElement(t);return this.setAttributes(i,r),i.append(...o),i}}static setAttribute(t,r="",o){this.isElement(t)&&o!==null&&o!==void 0&&t.setAttribute(r,o)}static setAttributes(t,r={}){if(this.isElement(t)){let o=(i,s)=>{let a=t?.$attrs?.[i]?[t?.$attrs?.[i]]:[];return[s].flat().reduce((l,c)=>{if(c!=null){let u=typeof c;if(u==="string"||u==="number")l.push(c);else if(u==="object"){let d=Array.isArray(c)?o(i,c):Object.entries(c).map(([p,f])=>i==="style"&&(f||f===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${f}`:f?p:void 0);l=d.length?l.concat(d.filter(p=>!!p)):l}}return l},a)};Object.entries(r).forEach(([i,s])=>{if(s!=null){let a=i.match(/^on(.+)/);a?t.addEventListener(a[1].toLowerCase(),s):i==="pBind"?this.setAttributes(t,s):(s=i==="class"?[...new Set(o("class",s))].join(" ").trim():i==="style"?o("style",s).join(";").trim():s,(t.$attrs=t.$attrs||{})&&(t.$attrs[i]=s),t.setAttribute(i,s))}})}}static isFocusableElement(t,r=""){return this.isElement(t)?t.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, - [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, - input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, - select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, - textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, - [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, - [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}`):!1}}return e})();function l$(){xm({variableName:yd("scrollbar.width").name})}function c$(){Am({variableName:yd("scrollbar.width").name})}var dy=class{element;listener;scrollableParents;constructor(n,t=()=>{}){this.element=n,this.listener=t}bindScrollListener(){this.scrollableParents=bd.getScrollableParents(this.element);for(let n=0;n{class e extends Ne{autofocus=!1;focused=!1;platformId=g($n);document=g(Ae);host=g(Re);onAfterContentChecked(){this.autofocus===!1?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}onAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){zr(this.platformId)&&this.autofocus&&setTimeout(()=>{let t=bd.getFocusableElements(this.host?.nativeElement);t.length===0&&this.host.nativeElement.focus(),t.length>0&&t[0].focus(),this.focused=!0})}static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275dir=z({type:e,selectors:[["","pAutoFocus",""]],inputs:{autofocus:[0,"pAutoFocus","autofocus"]},features:[ne]})}return e})();var oe=(()=>{class e{el;renderer;pBind=J(void 0);_attrs=ee(void 0);attrs=nt(()=>this._attrs()||this.pBind());styles=nt(()=>this.attrs()?.style);classes=nt(()=>ln(this.attrs()?.class));listeners=[];constructor(t,r){this.el=t,this.renderer=r,ye(()=>{let a=this.attrs()||{},{style:o,class:i}=a,s=xd(a,["style","class"]);for(let[l,c]of Object.entries(s))if(l.startsWith("on")&&typeof c=="function"){let u=l.slice(2).toLowerCase();if(!this.listeners.some(d=>d.eventName===u)){let d=this.renderer.listen(this.el.nativeElement,u,c);this.listeners.push({eventName:u,unlisten:d})}}else c==null?this.renderer.removeAttribute(this.el.nativeElement,l):(this.renderer.setAttribute(this.el.nativeElement,l,c.toString()),l in this.el.nativeElement&&(this.el.nativeElement[l]=c))})}ngOnDestroy(){this.clearListeners()}setAttrs(t){Yo(this._attrs(),t)||this._attrs.set(t)}clearListeners(){this.listeners.forEach(({unlisten:t})=>t()),this.listeners=[]}static \u0275fac=function(r){return new(r||e)(W(Re),W(rn))};static \u0275dir=z({type:e,selectors:[["","pBind",""]],hostVars:4,hostBindings:function(r,o){r&2&&(Lu(o.styles()),_e(o.classes()))},inputs:{pBind:[1,"pBind"]}})}return e})(),py=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fe({type:e});static \u0275inj=Ee({})}return e})();var hy=` - .p-badge { - display: inline-flex; - border-radius: dt('badge.border.radius'); - align-items: center; - justify-content: center; - padding: dt('badge.padding'); - background: dt('badge.primary.background'); - color: dt('badge.primary.color'); - font-size: dt('badge.font.size'); - font-weight: dt('badge.font.weight'); - min-width: dt('badge.min.width'); - height: dt('badge.height'); - } - - .p-badge-dot { - width: dt('badge.dot.size'); - min-width: dt('badge.dot.size'); - height: dt('badge.dot.size'); - border-radius: 50%; - padding: 0; - } - - .p-badge-circle { - padding: 0; - border-radius: 50%; - } - - .p-badge-secondary { - background: dt('badge.secondary.background'); - color: dt('badge.secondary.color'); - } - - .p-badge-success { - background: dt('badge.success.background'); - color: dt('badge.success.color'); - } - - .p-badge-info { - background: dt('badge.info.background'); - color: dt('badge.info.color'); - } - - .p-badge-warn { - background: dt('badge.warn.background'); - color: dt('badge.warn.color'); - } - - .p-badge-danger { - background: dt('badge.danger.background'); - color: dt('badge.danger.color'); - } - - .p-badge-contrast { - background: dt('badge.contrast.background'); - color: dt('badge.contrast.color'); - } - - .p-badge-sm { - font-size: dt('badge.sm.font.size'); - min-width: dt('badge.sm.min.width'); - height: dt('badge.sm.height'); - } - - .p-badge-lg { - font-size: dt('badge.lg.font.size'); - min-width: dt('badge.lg.min.width'); - height: dt('badge.lg.height'); - } - - .p-badge-xl { - font-size: dt('badge.xl.font.size'); - min-width: dt('badge.xl.min.width'); - height: dt('badge.xl.height'); - } -`;var qS=` - ${hy} - - /* For PrimeNG (directive)*/ - .p-overlay-badge { - position: relative; - } - - .p-overlay-badge > .p-badge { - position: absolute; - top: 0; - inset-inline-end: 0; - transform: translate(50%, -50%); - transform-origin: 100% 0; - margin: 0; - } -`,ZS={root:({instance:e})=>{let n=typeof e.value=="function"?e.value():e.value,t=typeof e.size=="function"?e.size():e.size,r=typeof e.badgeSize=="function"?e.badgeSize():e.badgeSize,o=typeof e.severity=="function"?e.severity():e.severity;return["p-badge p-component",{"p-badge-circle":F(n)&&String(n).length===1,"p-badge-dot":Ct(n),"p-badge-sm":t==="small"||r==="small","p-badge-lg":t==="large"||r==="large","p-badge-xl":t==="xlarge"||r==="xlarge","p-badge-info":o==="info","p-badge-success":o==="success","p-badge-warn":o==="warn","p-badge-danger":o==="danger","p-badge-secondary":o==="secondary","p-badge-contrast":o==="contrast"}]}},gy=(()=>{class e extends ve{name="badge";style=qS;classes=ZS;static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})();var my=new C("BADGE_INSTANCE");var Ed=(()=>{class e extends Ne{$pcBadge=g(my,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=g(oe,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass=J();badgeSize=J();size=J();severity=J();value=J();badgeDisabled=J(!1,{transform:Y});_componentStyle=g(gy);static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275cmp=ke({type:e,selectors:[["p-badge"]],hostVars:4,hostBindings:function(r,o){r&2&&(_e(o.cn(o.cx("root"),o.styleClass())),pa("display",o.badgeDisabled()?"none":null))},inputs:{styleClass:[1,"styleClass"],badgeSize:[1,"badgeSize"],size:[1,"size"],severity:[1,"severity"],value:[1,"value"],badgeDisabled:[1,"badgeDisabled"]},features:[me([gy,{provide:my,useExisting:e},{provide:It,useExisting:e}]),vt([oe]),ne],decls:1,vars:1,template:function(r,o){r&1&&zo(0),r&2&&Wr(o.value())},dependencies:[Et,dn,py],encapsulation:2,changeDetection:0})}return e})(),yy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fe({type:e});static \u0275inj=Ee({imports:[Ed,dn,dn]})}return e})();var QS=["*"],KS={root:"p-fluid"},vy=(()=>{class e extends ve{name="fluid";classes=KS;static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})();var by=new C("FLUID_INSTANCE"),Cd=(()=>{class e extends Ne{$pcFluid=g(by,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=g(oe,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}_componentStyle=g(vy);static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275cmp=ke({type:e,selectors:[["p-fluid"]],hostVars:2,hostBindings:function(r,o){r&2&&_e(o.cx("root"))},features:[me([vy,{provide:by,useExisting:e},{provide:It,useExisting:e}]),vt([oe]),ne],ngContentSelectors:QS,decls:1,vars:0,template:function(r,o){r&1&&(bt(),Dt(0))},dependencies:[Et],encapsulation:2,changeDetection:0})}return e})();var JS=["*"],XS=` -.p-icon { - display: inline-block; - vertical-align: baseline; - flex-shrink: 0; -} - -.p-icon-spin { - -webkit-animation: p-icon-spin 2s infinite linear; - animation: p-icon-spin 2s infinite linear; -} - -@-webkit-keyframes p-icon-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} - -@keyframes p-icon-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} -`,Dy=(()=>{class e extends ve{name="baseicon";css=XS;static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ey=(()=>{class e extends Ne{spin=!1;_componentStyle=g(Dy);getClassNames(){return ln("p-icon",{"p-icon-spin":this.spin})}static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275cmp=ke({type:e,selectors:[["ng-component"]],hostAttrs:["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],hostVars:2,hostBindings:function(r,o){r&2&&_e(o.getClassNames())},inputs:{spin:[2,"spin","spin",Y]},features:[me([Dy]),ne],ngContentSelectors:JS,decls:1,vars:0,template:function(r,o){r&1&&(bt(),Dt(0))},encapsulation:2,changeDetection:0})}return e})();var e_=["data-p-icon","spinner"],Cy=(()=>{class e extends Ey{pathId;onInit(){this.pathId="url(#"+Qo()+")"}static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275cmp=ke({type:e,selectors:[["","data-p-icon","spinner"]],features:[ne],attrs:e_,decls:5,vars:2,consts:[["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,o){r&1&&(yr(),jr(0,"g"),Uo(1,"path",0),Br(),jr(2,"defs")(3,"clipPath",1),Uo(4,"rect",2),Br()()),r&2&&(Ft("clip-path",o.pathId),ge(3),ua("id",o.pathId))},encapsulation:2})}return e})();var Iy=` - .p-ink { - display: block; - position: absolute; - background: dt('ripple.background'); - border-radius: 100%; - transform: scale(0); - pointer-events: none; - } - - .p-ink-active { - animation: ripple 0.4s linear; - } - - @keyframes ripple { - 100% { - opacity: 0; - transform: scale(2.5); - } - } -`;var t_=` - ${Iy} - - /* For PrimeNG */ - .p-ripple { - overflow: hidden; - position: relative; - } - - .p-ripple-disabled .p-ink { - display: none !important; - } - - @keyframes ripple { - 100% { - opacity: 0; - transform: scale(2.5); - } - } -`,n_={root:"p-ink"},wy=(()=>{class e extends ve{name="ripple";style=t_;classes=n_;static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})();var Sy=(()=>{class e extends Ne{zone=g(de);_componentStyle=g(wy);animationListener;mouseDownListener;timeout;constructor(){super(),ye(()=>{zr(this.platformId)&&(this.config.ripple()?this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))}):this.remove())})}onAfterViewInit(){}onMouseDown(t){let r=this.getInk();if(!r||this.document.defaultView?.getComputedStyle(r,null).display==="none")return;if(cn(r,"p-ink-active"),!ld(r)&&!ud(r)){let a=Math.max(km(this.el.nativeElement),cd(this.el.nativeElement));r.style.height=a+"px",r.style.width=a+"px"}let o=jm(this.el.nativeElement),i=t.pageX-o.left+this.document.body.scrollTop-ud(r)/2,s=t.pageY-o.top+this.document.body.scrollLeft-ld(r)/2;this.renderer.setStyle(r,"top",s+"px"),this.renderer.setStyle(r,"left",i+"px"),zn(r,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&cn(a,"p-ink-active")},401)}getInk(){let t=this.el.nativeElement.children;for(let r=0;r({class:e,pt:n});function a_(e,n){e&1&&ca(0)}function l_(e,n){if(e&1&&Hn(0,"span",7),e&2){let t=ze(3);_e(t.cn(t.cx("loadingIcon"),"pi-spin",t.loadingIcon)),G("pBind",t.ptm("loadingIcon")),Ft("aria-hidden",!0)}}function c_(e,n){if(e&1&&(yr(),Hn(0,"svg",8)),e&2){let t=ze(3);_e(t.cn(t.cx("loadingIcon"),t.spinnerIconClass())),G("pBind",t.ptm("loadingIcon"))("spin",!0),Ft("aria-hidden",!0)}}function u_(e,n){if(e&1&&(Un(0),kt(1,l_,1,4,"span",3)(2,c_,1,5,"svg",6),Wn()),e&2){let t=ze(2);ge(),G("ngIf",t.loadingIcon),ge(),G("ngIf",!t.loadingIcon)}}function d_(e,n){}function f_(e,n){if(e&1&&kt(0,d_,0,0,"ng-template",9),e&2){let t=ze(2);G("ngIf",t.loadingIconTemplate||t._loadingIconTemplate)}}function p_(e,n){if(e&1&&(Un(0),kt(1,u_,3,2,"ng-container",2)(2,f_,1,1,null,5),Wn()),e&2){let t=ze();ge(),G("ngIf",!t.loadingIconTemplate&&!t._loadingIconTemplate),ge(),G("ngTemplateOutlet",t.loadingIconTemplate||t._loadingIconTemplate)("ngTemplateOutletContext",ha(3,Ry,t.cx("loadingIcon"),t.ptm("loadingIcon")))}}function h_(e,n){if(e&1&&Hn(0,"span",7),e&2){let t=ze(2);_e(t.cn("icon",t.iconClass())),G("pBind",t.ptm("icon"))}}function g_(e,n){}function m_(e,n){if(e&1&&kt(0,g_,0,0,"ng-template",9),e&2){let t=ze(2);G("ngIf",!t.icon&&(t.iconTemplate||t._iconTemplate))}}function y_(e,n){if(e&1&&(Un(0),kt(1,h_,1,3,"span",3)(2,m_,1,1,null,5),Wn()),e&2){let t=ze();ge(),G("ngIf",t.icon&&!t.iconTemplate&&!t._iconTemplate),ge(),G("ngTemplateOutlet",t.iconTemplate||t._iconTemplate)("ngTemplateOutletContext",ha(3,Ry,t.cx("icon"),t.ptm("icon")))}}function v_(e,n){if(e&1&&(Lr(0,"span",7),zo(1),Pr()),e&2){let t=ze();_e(t.cx("label")),G("pBind",t.ptm("label")),Ft("aria-hidden",t.icon&&!t.label),ge(),Wr(t.label)}}function b_(e,n){if(e&1&&Hn(0,"p-badge",10),e&2){let t=ze();G("value",t.badge)("severity",t.badgeSeverity)("pt",t.ptm("pcBadge"))}}var D_={root:({instance:e})=>["p-button p-component",{"p-button-icon-only":(e.icon||e.buttonProps?.icon||e.iconTemplate||e._iconTemplate||e.loadingIcon||e.loadingIconTemplate||e._loadingIconTemplate)&&!e.label&&!e.buttonProps?.label,"p-button-vertical":(e.iconPos==="top"||e.iconPos==="bottom")&&e.label,"p-button-loading":e.loading||e.buttonProps?.loading,"p-button-link":e.link||e.buttonProps?.link,[`p-button-${e.severity||e.buttonProps?.severity}`]:e.severity||e.buttonProps?.severity,"p-button-raised":e.raised||e.buttonProps?.raised,"p-button-rounded":e.rounded||e.buttonProps?.rounded,"p-button-text":e.text||e.variant==="text"||e.buttonProps?.text||e.buttonProps?.variant==="text","p-button-outlined":e.outlined||e.variant==="outlined"||e.buttonProps?.outlined||e.buttonProps?.variant==="outlined","p-button-sm":e.size==="small"||e.buttonProps?.size==="small","p-button-lg":e.size==="large"||e.buttonProps?.size==="large","p-button-plain":e.plain||e.buttonProps?.plain,"p-button-fluid":e.hasFluid}],loadingIcon:"p-button-loading-icon",icon:({instance:e})=>["p-button-icon",{[`p-button-icon-${e.iconPos||e.buttonProps?.iconPos}`]:e.label||e.buttonProps?.label,"p-button-icon-left":(e.iconPos==="left"||e.buttonProps?.iconPos==="left")&&e.label||e.buttonProps?.label,"p-button-icon-right":(e.iconPos==="right"||e.buttonProps?.iconPos==="right")&&e.label||e.buttonProps?.label},e.icon,e.buttonProps?.icon],spinnerIcon:({instance:e})=>Object.entries(e.iconClass()).filter(([,n])=>!!n).reduce((n,[t])=>n+` ${t}`,"p-button-loading-icon"),label:"p-button-label"},Qr=(()=>{class e extends ve{name="button";style=_y;classes=D_;static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),E_=(function(e){return e.root="p-button",e.loadingIcon="p-button-loading-icon",e.icon="p-button-icon",e.label="p-button-label",e})(E_||{}),Ty=new C("BUTTON_INSTANCE"),Ny=new C("BUTTON_DIRECTIVE_INSTANCE"),My=new C("BUTTON_LABEL_INSTANCE"),xy=new C("BUTTON_ICON_INSTANCE"),fn={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"},Ay=(()=>{class e extends Ne{ptButtonLabel=J();$pcButtonLabel=g(My,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=g(oe,{self:!0});constructor(){super(),ye(()=>{this.ptButtonLabel()&&this.directivePT.set(this.ptButtonLabel())})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=function(r){return new(r||e)};static \u0275dir=z({type:e,selectors:[["","pButtonLabel",""]],hostVars:2,hostBindings:function(r,o){r&2&&Ur("p-button-label",!0)},inputs:{ptButtonLabel:[1,"ptButtonLabel"]},features:[me([Qr,{provide:My,useExisting:e},{provide:It,useExisting:e}]),vt([oe]),ne]})}return e})(),Oy=(()=>{class e extends Ne{ptButtonIcon=J();$pcButtonIcon=g(xy,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=g(oe,{self:!0});constructor(){super(),ye(()=>{this.ptButtonIcon()&&this.directivePT.set(this.ptButtonIcon())})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=function(r){return new(r||e)};static \u0275dir=z({type:e,selectors:[["","pButtonIcon",""]],hostVars:2,hostBindings:function(r,o){r&2&&Ur("p-button-icon",!0)},inputs:{ptButtonIcon:[1,"ptButtonIcon"]},features:[me([Qr,{provide:xy,useExisting:e},{provide:It,useExisting:e}]),vt([oe]),ne]})}return e})(),GH=(()=>{class e extends Ne{$pcButtonDirective=g(Ny,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=g(oe,{self:!0});_componentStyle=g(Qr);ptButtonDirective=J();hostName="";onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("root"))}constructor(){super(),ye(()=>{this.ptButtonDirective()&&this.directivePT.set(this.ptButtonDirective())})}text=!1;plain=!1;raised=!1;size;outlined=!1;rounded=!1;iconPos="left";loadingIcon;fluid=J(void 0,{transform:Y});iconSignal=Yu(Oy);labelSignal=Yu(Ay);isIconOnly=nt(()=>!!(!this.labelSignal()&&this.iconSignal()));_label;_icon;_loading=!1;_severity;_buttonProps;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(fn);pcFluid=g(Cd,{optional:!0,host:!0,skipSelf:!0});isTextButton=nt(()=>!!(!this.iconSignal()&&this.labelSignal()&&this.text));get label(){return this._label}set label(t){this._label=t,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(t){this._icon=t,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(t){this._loading=t,this.initialized&&(this.updateIcon(),this.setStyleClass())}get buttonProps(){return this._buttonProps}set buttonProps(t){this._buttonProps=t,t&&typeof t=="object"&&Object.entries(t).forEach(([r,o])=>this[`_${r}`]!==o&&(this[`_${r}`]=o))}get severity(){return this._severity}set severity(t){this._severity=t,this.initialized&&this.setStyleClass()}spinnerIcon=` - - - - - - - - - `;onAfterViewInit(){zn(this.htmlElement,this.getStyleClass().join(" ")),zr(this.platformId)&&(this.createIcon(),this.createLabel(),this.initialized=!0)}getStyleClass(){let t=[fn.button,fn.component];return this.icon&&!this.label&&Ct(this.htmlElement.textContent)&&t.push(fn.iconOnly),this.loading&&(t.push(fn.disabled,fn.loading),!this.icon&&this.label&&t.push(fn.labelOnly),this.icon&&!this.label&&!Ct(this.htmlElement.textContent)&&t.push(fn.iconOnly)),this.text&&t.push("p-button-text"),this.severity&&t.push(`p-button-${this.severity}`),this.plain&&t.push("p-button-plain"),this.raised&&t.push("p-button-raised"),this.size&&t.push(`p-button-${this.size}`),this.outlined&&t.push("p-button-outlined"),this.rounded&&t.push("p-button-rounded"),this.size==="small"&&t.push("p-button-sm"),this.size==="large"&&t.push("p-button-lg"),this.hasFluid&&t.push("p-button-fluid"),t}get hasFluid(){return this.fluid()??!!this.pcFluid}setStyleClass(){let t=this.getStyleClass();this.removeExistingSeverityClass(),this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...t)}removeExistingSeverityClass(){let t=["success","info","warn","danger","help","primary","secondary","contrast"],r=this.htmlElement.classList.value.split(" ").find(o=>t.some(i=>o===`p-button-${i}`));r&&this.htmlElement.classList.remove(r)}createLabel(){if(!Gr(this.htmlElement,".p-button-label")&&this.label){let r=Sa("span",{class:this.cx("label"),"p-bind":this.ptm("label"),"aria-hidden":this.icon&&!this.label?"true":null});r.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(r)}}createIcon(){if(!Gr(this.htmlElement,".p-button-icon")&&(this.icon||this.loading)){let r=this.label?"p-button-icon-"+this.iconPos:null,o=this.getIconClass(),i=Sa("span",{class:this.cn(this.cx("icon"),r,o),"aria-hidden":"true","p-bind":this.ptm("icon")});!this.loadingIcon&&this.loading&&(i.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(i,this.htmlElement.firstChild)}}updateLabel(){let t=Gr(this.htmlElement,".p-button-label");if(!this.label){t&&this.htmlElement.removeChild(t);return}t?t.textContent=this.label:this.createLabel()}updateIcon(){let t=Gr(this.htmlElement,".p-button-icon"),r=Gr(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&t?t.innerHTML=this.spinnerIcon:t?.innerHTML&&(t.innerHTML=""),t?this.iconPos?t.className="p-button-icon "+(r?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():t.className="p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}onDestroy(){this.initialized=!1}static \u0275fac=function(r){return new(r||e)};static \u0275dir=z({type:e,selectors:[["","pButton",""]],contentQueries:function(r,o,i){r&1&&(fa(i,o.iconSignal,Oy,5),fa(i,o.labelSignal,Ay,5)),r&2&&Fu(2)},hostVars:4,hostBindings:function(r,o){r&2&&Ur("p-button-icon-only",o.isIconOnly())("p-button-text",o.isTextButton())},inputs:{ptButtonDirective:[1,"ptButtonDirective"],hostName:"hostName",text:[2,"text","text",Y],plain:[2,"plain","plain",Y],raised:[2,"raised","raised",Y],size:"size",outlined:[2,"outlined","outlined",Y],rounded:[2,"rounded","rounded",Y],iconPos:"iconPos",loadingIcon:"loadingIcon",fluid:[1,"fluid"],label:"label",icon:"icon",loading:"loading",buttonProps:"buttonProps",severity:"severity"},features:[me([Qr,{provide:Ny,useExisting:e},{provide:It,useExisting:e}]),vt([oe]),ne]})}return e})(),C_=(()=>{class e extends Ne{hostName="";$pcButton=g(Ty,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=g(oe,{self:!0});_componentStyle=g(Qr);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}type="button";badge;disabled;raised=!1;rounded=!1;text=!1;plain=!1;outlined=!1;link=!1;tabindex;size;variant;style;styleClass;badgeClass;badgeSeverity="secondary";ariaLabel;autofocus;iconPos="left";icon;label;loading=!1;loadingIcon;severity;buttonProps;fluid=J(void 0,{transform:Y});onClick=new Be;onFocus=new Be;onBlur=new Be;contentTemplate;loadingIconTemplate;iconTemplate;templates;pcFluid=g(Cd,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}_contentTemplate;_iconTemplate;_loadingIconTemplate;onAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"content":this._contentTemplate=t.template;break;case"icon":this._iconTemplate=t.template;break;case"loadingicon":this._loadingIconTemplate=t.template;break;default:this._contentTemplate=t.template;break}})}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,t])=>!!t).reduce((t,[r])=>t+` ${r}`,"p-button-loading-icon")}iconClass(){return{[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]:this.loading,"p-button-icon":!0,[this.icon]:!0,"p-button-icon-left":this.iconPos==="left"&&this.label,"p-button-icon-right":this.iconPos==="right"&&this.label,"p-button-icon-top":this.iconPos==="top"&&this.label,"p-button-icon-bottom":this.iconPos==="bottom"&&this.label}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=$(e)))(o||e)}})();static \u0275cmp=ke({type:e,selectors:[["p-button"]],contentQueries:function(r,o,i){if(r&1&&(Vr(i,r_,5),Vr(i,o_,5),Vr(i,i_,5),Vr(i,Jm,4)),r&2){let s;$r(s=Hr())&&(o.contentTemplate=s.first),$r(s=Hr())&&(o.loadingIconTemplate=s.first),$r(s=Hr())&&(o.iconTemplate=s.first),$r(s=Hr())&&(o.templates=s)}},inputs:{hostName:"hostName",type:"type",badge:"badge",disabled:[2,"disabled","disabled",Y],raised:[2,"raised","raised",Y],rounded:[2,"rounded","rounded",Y],text:[2,"text","text",Y],plain:[2,"plain","plain",Y],outlined:[2,"outlined","outlined",Y],link:[2,"link","link",Y],tabindex:[2,"tabindex","tabindex",mm],size:"size",variant:"variant",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",badgeSeverity:"badgeSeverity",ariaLabel:"ariaLabel",autofocus:[2,"autofocus","autofocus",Y],iconPos:"iconPos",icon:"icon",label:"label",loading:[2,"loading","loading",Y],loadingIcon:"loadingIcon",severity:"severity",buttonProps:"buttonProps",fluid:[1,"fluid"]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[me([Qr,{provide:Ty,useExisting:e},{provide:It,useExisting:e}]),vt([oe]),ne],ngContentSelectors:s_,decls:7,vars:14,consts:[["pRipple","",3,"click","focus","blur","ngStyle","disabled","pAutoFocus","pBind"],[4,"ngTemplateOutlet"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"value","severity","pt",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","spinner",3,"class","pBind","spin",4,"ngIf"],[3,"pBind"],["data-p-icon","spinner",3,"pBind","spin"],[3,"ngIf"],[3,"value","severity","pt"]],template:function(r,o){r&1&&(bt(),Lr(0,"button",0),da("click",function(s){return o.onClick.emit(s)})("focus",function(s){return o.onFocus.emit(s)})("blur",function(s){return o.onBlur.emit(s)}),Dt(1),kt(2,a_,1,0,"ng-container",1)(3,p_,3,6,"ng-container",2)(4,y_,3,6,"ng-container",2)(5,v_,2,5,"span",3)(6,b_,1,3,"p-badge",4),Pr()),r&2&&(_e(o.cn(o.cx("root"),o.styleClass,o.buttonProps==null?null:o.buttonProps.styleClass)),G("ngStyle",o.style||(o.buttonProps==null?null:o.buttonProps.style))("disabled",o.disabled||o.loading||(o.buttonProps==null?null:o.buttonProps.disabled))("pAutoFocus",o.autofocus||(o.buttonProps==null?null:o.buttonProps.autofocus))("pBind",o.ptm("root")),Ft("type",o.type||(o.buttonProps==null?null:o.buttonProps.type))("aria-label",o.ariaLabel||(o.buttonProps==null?null:o.buttonProps.ariaLabel))("tabindex",o.tabindex||(o.buttonProps==null?null:o.buttonProps.tabindex)),ge(2),G("ngTemplateOutlet",o.contentTemplate||o._contentTemplate),ge(),G("ngIf",o.loading),ge(),G("ngIf",!o.loading),ge(),G("ngIf",!o.contentTemplate&&!o._contentTemplate&&o.label),ge(),G("ngIf",!o.contentTemplate&&!o._contentTemplate&&o.badge))},dependencies:[Et,nd,od,rd,Sy,fy,Cy,yy,Ed,dn,oe],encapsulation:2,changeDetection:0})}return e})(),qH=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fe({type:e});static \u0275inj=Ee({imports:[Et,C_,dn,dn]})}return e})();export{D as a,H as b,I_ as c,xd as d,Oa as e,nv as f,w_ as g,Q as h,pv as i,O as j,Ya as k,Qa as l,se as m,ro as n,io as o,mv as p,St as q,Zd as r,ao as s,ut as t,Xa as u,el as v,Sv as w,_t as x,_v as y,Vt as z,kv as A,$t as B,qi as C,Lv as D,Pv as E,jv as F,Bv as G,sr as H,tl as I,Vv as J,$v as K,lo as L,nl as M,Hv as N,ff as O,zv as P,rl as Q,Gv as R,qv as S,Zv as T,il as U,Yv as V,Qv as W,Kv as X,Jv as Y,pf as Z,T as _,ho as $,es as aa,I as ba,Ee as ca,tb as da,C as ea,ue as fa,g as ga,zt as ha,xl as ia,Le as ja,ss as ka,Hf as la,Uf as ma,yr as na,$e as oa,Ae as pa,Xt as qa,Mt as ra,et as sa,wb as ta,ee as ua,Ze as va,en as wa,bs as xa,Lo as ya,$ as za,Re as Aa,oD as Ba,iD as Ca,ch as Da,$n as Ea,aD as Fa,lD as Ga,wr as Ha,wD as Ia,ge as Ja,Sr as Ka,Mo as La,jo as Ma,Rt as Na,Be as Oa,de as Pa,ZD as Qa,jE as Ra,BE as Sa,Vo as Ta,Oo as Ua,rn as Va,W as Wa,sn as Xa,Ig as Ya,Tu as Za,ke as _a,Fe as $a,z as ab,ne as bb,vt as cb,kt as db,Ng as eb,uI as fb,la as gb,Ou as hb,Rg as ib,Ho as jb,mI as kb,yI as lb,Ft as mb,bI as nb,DI as ob,EI as pb,CI as qb,II as rb,G as sb,Lr as tb,Pr as ub,Hn as vb,jr as wb,Br as xb,Uo as yb,Un as zb,Wn as Ab,ca as Bb,MI as Cb,ua as Db,da as Eb,ze as Fb,bt as Gb,Dt as Hb,Vr as Ib,RI as Jb,$r as Kb,Hr as Lb,kI as Mb,Fu as Nb,FI as Ob,pa as Pb,Ur as Qb,Lu as Rb,_e as Sb,zo as Tb,Wr as Ub,Pu as Vb,Jg as Wb,em as Xb,sw as Yb,tm as Zb,aw as _b,me as $b,fw as ac,pw as bc,ha as cc,hw as dc,gw as ec,mw as fc,yw as gc,vw as hc,Cw as ic,ww as jc,_w as kc,Tw as lc,Mw as mc,ya as nc,nt as oc,ye as pc,J as qc,o2 as rc,Qu as sc,i2 as tc,Y as uc,mm as vc,Da as wc,sS as xc,Xu as yc,Cm as zc,wm as Ac,uS as Bc,Nm as Cc,nd as Dc,rd as Ec,od as Fc,fS as Gc,Et as Hc,pS as Ic,id as Jc,hS as Kc,zr as Lc,Mm as Mc,zn as Nc,cn as Oc,Rm as Pc,vS as Qc,bS as Rc,PB as Sc,jB as Tc,km as Uc,BB as Vc,CS as Wc,VB as Xc,Sa as Yc,$B as Zc,IS as _c,Gr as $c,HB as ad,Pm as bd,UB as cd,ld as dd,WB as ed,zB as fd,cd as gd,GB as hd,ud as id,qB as jd,ZB as kd,YB as ld,QB as md,Vm as nd,Ct as od,RS as pd,F as qd,_a as rd,Yo as sd,eV as td,tV as ud,nV as vd,rV as wd,Qo as xd,fe as yd,cV as zd,uV as Ad,dV as Bd,fV as Cd,pV as Dd,Jm as Ed,dn as Fd,hV as Gd,yV as Hd,ve as Id,GV as Jd,It as Kd,Ne as Ld,bd as Md,l$ as Nd,c$ as Od,dy as Pd,fy as Qd,oe as Rd,py as Sd,yy as Td,Cd as Ud,Ey as Vd,Cy as Wd,Sy as Xd,Qr as Yd,E_ as Zd,Ay as _d,Oy as $d,GH as ae,C_ as be,qH as ce}; diff --git a/latest/chunk-SPIR5TD3.js b/latest/chunk-SPIR5TD3.js deleted file mode 100644 index 90876a4..0000000 --- a/latest/chunk-SPIR5TD3.js +++ /dev/null @@ -1 +0,0 @@ -import{p as a}from"./chunk-YBGBPGZM.js";import"./chunk-SK2T2ZXR.js";export{a as Base}; diff --git a/latest/chunk-YBGBPGZM.js b/latest/chunk-YBGBPGZM.js deleted file mode 100644 index 809688e..0000000 --- a/latest/chunk-YBGBPGZM.js +++ /dev/null @@ -1,62 +0,0 @@ -import{$ as Cn,$b as ei,$c as Nt,A as bn,Ac as Pt,B as z,Ba as Nr,C as Tr,Ca as Pn,Cb as Wr,D as Tt,Da as Lr,Ea as St,Eb as Xr,Fb as Zr,Ga as An,Gb as Jr,H as Z,Ha as Dn,Hb as Yr,I as we,Ic as At,Id as mi,J as ue,Ja as xn,Jc as Dt,Ka as qe,Kc as ci,Kd as vi,L as Rn,La as kr,Lc as li,Ld as yi,M as be,Ma as Ur,Mc as Ze,O as Re,Oa as Ee,P as te,Pa as ne,Pc as ui,Pd as wi,Q as En,Qc as di,R as Cr,Rc as hi,T as Sr,Tb as Kr,Ua as jr,Ub as Qr,Uc as V,W as Mr,Wa as Nn,X as P,Xa as Mt,Xc as kn,Y as Tn,Ya as Fr,Yc as xt,Z as _,Za as Ln,Zc as pi,_ as E,_a as Ot,a as d,ab as _t,b as U,ba as w,bb as zr,be as bi,da as Or,ea as C,fa as R,fb as $r,ga as h,gb as Br,gd as ie,h as wr,ha as Ct,i as br,ia as _r,ib as Hr,j as Et,ja as de,jb as Vr,k as yn,ka as N,l as wn,la as Ir,lc as ti,ld as fi,m as ee,ma as Pr,n as j,nb as qr,nc as he,oa as Sn,ob as Gr,oc as ni,pa as x,pc as ri,q as X,qa as Mn,qc as re,ra as On,sa as _n,sc as ii,t as F,tb as Ge,tc as oi,u as p,ua as In,ub as We,uc as Te,v as He,vb as It,vc as Ce,w as Rr,wa as Ar,wc as Xe,x as Er,xa as Dr,xc as si,xd as gi,ya as xr,yc as ai,z as y,za as Ve}from"./chunk-SK2T2ZXR.js";var Je=class{_doc;constructor(t){this._doc=t}manager},Lt=(()=>{class n extends Je{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i,o){return e.addEventListener(r,i,o),()=>this.removeEventListener(e,r,i,o)}removeEventListener(e,r,i,o){return e.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||n)(R(x))};static \u0275prov=w({token:n,factory:n.\u0275fac})}return n})(),Ut=new C(""),$n=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(s=>{s.manager=this});let i=e.filter(s=>!(s instanceof Lt));this._plugins=i.slice().reverse();let o=e.find(s=>s instanceof Lt);o&&this._plugins.push(o)}addEventListener(e,r,i,o){return this._findPluginFor(r).addEventListener(e,r,i,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(o=>o.supports(e)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||n)(R(Ut),R(ne))};static \u0275prov=w({token:n,factory:n.\u0275fac})}return n})(),Un="ng-app-id";function Ri(n){for(let t of n)t.remove()}function Ei(n,t){let e=t.createElement("style");return e.textContent=n,e}function Ho(n,t,e,r){let i=n.head?.querySelectorAll(`style[${Un}="${t}"],link[${Un}="${t}"]`);if(i)for(let o of i)o.removeAttribute(Un),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Fn(n,t){let e=t.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var Bn=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,i,o={}){this.doc=e,this.appId=r,this.nonce=i,Ho(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let i of e)this.addUsage(i,this.inline,Ei);r?.forEach(i=>this.addUsage(i,this.external,Fn))}removeStyles(e,r){for(let i of e)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,r,i){let o=r.get(e);o?o.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,r){let i=r.get(e);i&&(i.usage--,i.usage<=0&&(Ri(i.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Ri(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(e,Ei(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(e,Fn(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),e.appendChild(r)}static \u0275fac=function(r){return new(r||n)(R(x),R(Pn),R(An,8),R(St))};static \u0275prov=w({token:n,factory:n.\u0275fac})}return n})(),jn={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"},Hn=/%COMP%/g;var Ci="%COMP%",Vo=`_nghost-${Ci}`,qo=`_ngcontent-${Ci}`,Go=!0,Wo=new C("",{providedIn:"root",factory:()=>Go});function Xo(n){return qo.replace(Hn,n)}function Zo(n){return Vo.replace(Hn,n)}function Si(n,t){return t.map(e=>e.replace(Hn,n))}var Vn=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,r,i,o,s,a,c=null,l=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.platformIsServer=!1,this.defaultRenderer=new Ye(e,s,a,this.platformIsServer,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,r);return i instanceof kt?i.applyToHost(e):i instanceof Ke&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,g=this.platformIsServer,m=this.tracingService;switch(r.encapsulation){case Dn.Emulated:o=new kt(c,l,r,this.appId,u,s,a,g,m);break;case Dn.ShadowDom:return new zn(c,l,e,r,s,a,this.nonce,g,m);default:o=new Ke(c,l,r,u,s,a,g,m);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||n)(R($n),R(Bn),R(Pn),R(Wo),R(x),R(ne),R(An),R(Ur,8))};static \u0275prov=w({token:n,factory:n.\u0275fac})}return n})(),Ye=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,r,i,o){this.eventManager=t,this.doc=e,this.ngZone=r,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(jn[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(Ti(t)?t.content:t).appendChild(e)}insertBefore(t,e,r){t&&(Ti(t)?t.content:t).insertBefore(e,r)}removeChild(t,e){e.remove()}selectRootElement(t,e){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new E(-5104,!1);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,i){if(i){e=i+":"+e;let o=jn[i];o?t.setAttributeNS(o,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){let i=jn[r];i?t.removeAttributeNS(i,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,i){i&(qe.DashCase|qe.Important)?t.style.setProperty(e,r,i&qe.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&qe.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t!=null&&(t[e]=r)}setValue(t,e){t.nodeValue=e}listen(t,e,r,i){if(typeof t=="string"&&(t=Xe().getGlobalEventTarget(this.doc,t),!t))throw new E(5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(t,e,o)),this.eventManager.addEventListener(t,e,o,i)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;t(e)===!1&&e.preventDefault()}}};function Ti(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var zn=class extends Ye{sharedStylesHost;hostEl;shadowRoot;constructor(t,e,r,i,o,s,a,c,l){super(t,o,s,c,l),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=i.styles;u=Si(i.id,u);for(let m of u){let S=document.createElement("style");a&&S.setAttribute("nonce",a),S.textContent=m,this.shadowRoot.appendChild(S)}let g=i.getExternalStyles?.();if(g)for(let m of g){let S=Fn(m,o);a&&S.setAttribute("nonce",a),this.shadowRoot.appendChild(S)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ke=class extends Ye{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,r,i,o,s,a,c,l){super(t,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let u=r.styles;this.styles=l?Si(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&kr.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},kt=class extends Ke{contentAttr;hostAttr;constructor(t,e,r,i,o,s,a,c,l){let u=i+"-"+r.id;super(t,e,r,o,s,a,c,l,u),this.contentAttr=Xo(u),this.hostAttr=Zo(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}};var jt=class n extends ai{supportsDOMEvents=!0;static makeCurrent(){si(new n)}onAndCancel(t,e,r,i){return t.addEventListener(e,r,i),()=>{t.removeEventListener(e,r,i)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=Jo();return e==null?null:Yo(e)}resetBaseElement(){Qe=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return At(document.cookie,t)}},Qe=null;function Jo(){return Qe=Qe||document.head.querySelector("base"),Qe?Qe.getAttribute("href"):null}function Yo(n){return new URL(n,document.baseURI).pathname}var Ko=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||n)};static \u0275prov=w({token:n,factory:n.\u0275fac})}return n})(),Mi=["alt","control","meta","shift"],Qo={"\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"},es={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Oi=(()=>{class n extends Je{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,r,i,o){let s=n.parseEventName(r),a=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xe().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=n._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Mi.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,r){let i=Qo[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Mi.forEach(s=>{if(s!==i){let a=es[s];a(e)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{n.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||n)(R(x))};static \u0275prov=w({token:n,factory:n.\u0275fac})}return n})();function ts(n){return oi(ns(n))}function ns(n){return{appProviders:[...as,...n?.providers??[]],platformProviders:ss}}function rs(){jt.makeCurrent()}function is(){return new On}function os(){return Nr(document),document}var ss=[{provide:St,useValue:ci},{provide:Lr,useValue:rs,multi:!0},{provide:x,useFactory:os}];var as=[{provide:_r,useValue:"root"},{provide:On,useFactory:is},{provide:Ut,useClass:Lt,multi:!0,deps:[x]},{provide:Ut,useClass:Oi,multi:!0,deps:[x]},Vn,Bn,$n,{provide:jr,useExisting:Vn},{provide:Dt,useClass:Ko},[]];var _e=class{},et=class{},oe=class n{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` -`).forEach(e=>{let r=e.indexOf(":");if(r>0){let i=e.slice(0,r),o=e.slice(r+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new n;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,e);let i=(t.op==="a"?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":let o=t.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(t,e){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(t,e){let r=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var zt=class{encodeKey(t){return _i(t)}encodeValue(t){return _i(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function ls(n,t){let e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var us=/%(\d[a-f0-9])/gi,ds={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _i(n){return encodeURIComponent(n).replace(us,(t,e)=>ds[e]??t)}function Ft(n){return`${n}`}var J=class n{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new zt,t.fromString){if(t.fromObject)throw new E(2805,!1);this.map=ls(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let r=t.fromObject[e],i=Array.isArray(r)?r.map(Ft):[Ft(r)];this.map.set(e,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(r=>{let i=t[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new n({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(Ft(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],i=r.indexOf(Ft(t.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var $t=class{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function hs(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Ii(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Pi(n){return typeof Blob<"u"&&n instanceof Blob}function Ai(n){return typeof FormData<"u"&&n instanceof FormData}function ps(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Di="Content-Type",xi="Accept",Ni="X-Request-URL",Li="text/plain",ki="application/json",fs=`${ki}, ${Li}, */*`,Me=class n{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,e,r,i){this.url=e,this.method=t.toUpperCase();let o;if(hs(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new E(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new oe,this.context??=new $t,!this.params)this.params=new J,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":ace.set(le,t.setHeaders[le]),D)),t.setParams&&(B=Object.keys(t.setParams).reduce((ce,le)=>ce.set(le,t.setParams[le]),B)),new n(e,r,$,{params:B,headers:D,context:I,reportProgress:T,responseType:i,withCredentials:v,transferCache:S,keepalive:o,cache:a,priority:s,timeout:M,mode:c,redirect:l,credentials:u,referrer:g,integrity:m})}},pe=(function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n})(pe||{}),Ie=class{headers;status;statusText;url;ok;type;redirected;constructor(t,e=200,r="OK"){this.headers=t.headers||new oe,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.ok=this.status>=200&&this.status<300}},Bt=class n extends Ie{constructor(t={}){super(t)}type=pe.ResponseHeader;clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},tt=class n extends Ie{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=pe.Response;clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},Oe=class extends Ie{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},gs=200,ms=204;function Wn(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,credentials:n.credentials,transferCache:n.transferCache,timeout:n.timeout,keepalive:n.keepalive,priority:n.priority,cache:n.cache,mode:n.mode,redirect:n.redirect,integrity:n.integrity,referrer:n.referrer}}var Ui=(()=>{class n{handler;constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof Me)o=e;else{let c;i.headers instanceof oe?c=i.headers:c=new oe(i.headers);let l;i.params&&(i.params instanceof J?l=i.params:l=new J({fromObject:i.params})),o=new Me(e,r,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,integrity:i.integrity,timeout:i.timeout})}let s=p(o).pipe(ue(c=>this.handler.handle(c)));if(e instanceof Me||i.observe==="events")return s;let a=s.pipe(Z(c=>c instanceof tt));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(y(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new E(2806,!1);return c.body}));case"blob":return a.pipe(y(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new E(2807,!1);return c.body}));case"text":return a.pipe(y(c=>{if(c.body!==null&&typeof c.body!="string")throw new E(2808,!1);return c.body}));default:return a.pipe(y(c=>c.body))}case"response":return a;default:throw new E(2809,!1)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new J().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,Wn(i,r))}post(e,r,i={}){return this.request("POST",e,Wn(i,r))}put(e,r,i={}){return this.request("PUT",e,Wn(i,r))}static \u0275fac=function(r){return new(r||n)(R(_e))};static \u0275prov=w({token:n,factory:n.\u0275fac})}return n})();var vs=new C("");function ys(n,t){return t(n)}function ws(n,t,e){return(r,i)=>N(e,()=>t(r,o=>n(o,i)))}var ji=new C(""),Fi=new C(""),zi=new C("",{providedIn:"root",factory:()=>!0});var Ht=(()=>{class n extends _e{backend;injector;chain=null;pendingTasks=h(Dr);contributeToStability=h(zi);constructor(e,r){super(),this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(ji),...this.injector.get(Fi,[])]));this.chain=r.reduceRight((i,o)=>ws(i,o,this.injector),ys)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(Re(r))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||n)(R(et),R(de))};static \u0275prov=w({token:n,factory:n.\u0275fac})}return n})();var bs=/^\)\]\}',?\n/,Rs=RegExp(`^${Ni}:`,"m");function Es(n){return"responseURL"in n&&n.responseURL?n.responseURL:Rs.test(n.getAllResponseHeaders())?n.getResponseHeader(Ni):null}var Xn=(()=>{class n{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new E(-2800,!1);let r=this.xhrFactory;return p(null).pipe(P(()=>new Et(o=>{let s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((v,T)=>s.setRequestHeader(v,T.join(","))),e.headers.has(xi)||s.setRequestHeader(xi,fs),!e.headers.has(Di)){let v=e.detectContentTypeHeader();v!==null&&s.setRequestHeader(Di,v)}if(e.timeout&&(s.timeout=e.timeout),e.responseType){let v=e.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let a=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let v=s.statusText||"OK",T=new oe(s.getAllResponseHeaders()),D=Es(s)||e.url;return c=new Bt({headers:T,status:s.status,statusText:v,url:D}),c},u=()=>{let{headers:v,status:T,statusText:D,url:B}=l(),I=null;T!==ms&&(I=typeof s.response>"u"?s.responseText:s.response),T===0&&(T=I?gs:0);let ce=T>=200&&T<300;if(e.responseType==="json"&&typeof I=="string"){let le=I;I=I.replace(bs,"");try{I=I!==""?JSON.parse(I):null}catch(Bo){I=le,ce&&(ce=!1,I={error:Bo,text:I})}}ce?(o.next(new tt({body:I,headers:v,status:T,statusText:D,url:B||void 0})),o.complete()):o.error(new Oe({error:I,headers:v,status:T,statusText:D,url:B||void 0}))},g=v=>{let{url:T}=l(),D=new Oe({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:T||void 0});o.error(D)},m=g;e.timeout&&(m=v=>{let{url:T}=l(),D=new Oe({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:T||void 0});o.error(D)});let S=!1,M=v=>{S||(o.next(l()),S=!0);let T={type:pe.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(T.total=v.total),e.responseType==="text"&&s.responseText&&(T.partialText=s.responseText),o.next(T)},$=v=>{let T={type:pe.UploadProgress,loaded:v.loaded};v.lengthComputable&&(T.total=v.total),o.next(T)};return s.addEventListener("load",u),s.addEventListener("error",g),s.addEventListener("timeout",m),s.addEventListener("abort",g),e.reportProgress&&(s.addEventListener("progress",M),a!==null&&s.upload&&s.upload.addEventListener("progress",$)),s.send(a),o.next({type:pe.Sent}),()=>{s.removeEventListener("error",g),s.removeEventListener("abort",g),s.removeEventListener("load",u),s.removeEventListener("timeout",m),e.reportProgress&&(s.removeEventListener("progress",M),a!==null&&s.upload&&s.upload.removeEventListener("progress",$)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||n)(R(Dt))};static \u0275prov=w({token:n,factory:n.\u0275fac})}return n})(),$i=new C(""),Ts="XSRF-TOKEN",Cs=new C("",{providedIn:"root",factory:()=>Ts}),Ss="X-XSRF-TOKEN",Ms=new C("",{providedIn:"root",factory:()=>Ss}),nt=class{},Os=(()=>{class n{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,r){this.doc=e,this.cookieName=r}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=At(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||n)(R(x),R(Cs))};static \u0275prov=w({token:n,factory:n.\u0275fac})}return n})(),_s=/^(?:https?:)?\/\//i;function Is(n,t){if(!h($i)||n.method==="GET"||n.method==="HEAD"||_s.test(n.url))return t(n);let e=h(nt).getToken(),r=h(Ms);return e!=null&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,e)})),t(n)}function Ps(...n){let t=[Ui,Xn,Ht,{provide:_e,useExisting:Ht},{provide:et,useFactory:()=>h(vs,{optional:!0})??h(Xn)},{provide:ji,useValue:Is,multi:!0},{provide:$i,useValue:!0},{provide:nt,useClass:Os}];for(let e of n)t.push(...e.\u0275providers);return Ct(t)}var Bi=(()=>{class n{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||n)(R(x))};static \u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var f="primary",vt=Symbol("RouteTitle"),Qn=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function me(n){return new Qn(n)}function Ji(n,t,e){let r=e.path.split("/");if(r.length>n.length||e.pathMatch==="full"&&(t.hasChildren()||r.lengthr[o]===i)}else return n===t}function Ki(n){return n.length>0?n[n.length-1]:null}function Q(n){return Rr(n)?n:Br(n)?F(Promise.resolve(n)):p(n)}var xs={exact:eo,subset:to},Qi={exact:Ns,subset:Ls,ignored:()=>!0};function Hi(n,t,e){return xs[e.paths](n.root,t.root,e.matrixParams)&&Qi[e.queryParams](n.queryParams,t.queryParams)&&!(e.fragment==="exact"&&n.fragment!==t.fragment)}function Ns(n,t){return q(n,t)}function eo(n,t,e){if(!fe(n.segments,t.segments)||!Gt(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!n.children[r]||!eo(n.children[r],t.children[r],e))return!1;return!0}function Ls(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>Yi(n[e],t[e]))}function to(n,t,e){return no(n,t,t.segments,e)}function no(n,t,e,r){if(n.segments.length>e.length){let i=n.segments.slice(0,e.length);return!(!fe(i,e)||t.hasChildren()||!Gt(i,e,r))}else if(n.segments.length===e.length){if(!fe(n.segments,e)||!Gt(n.segments,e,r))return!1;for(let i in t.children)if(!n.children[i]||!to(n.children[i],t.children[i],r))return!1;return!0}else{let i=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!fe(n.segments,i)||!Gt(n.segments,i,r)||!n.children[f]?!1:no(n.children[f],t,o,r)}}function Gt(n,t,e){return t.every((r,i)=>Qi[e](n[i].parameters,r.parameters))}var W=class{root;queryParams;fragment;_queryParamMap;constructor(t=new b([],{}),e={},r=null){this.root=t,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=me(this.queryParams),this._queryParamMap}toString(){return js.serialize(this)}},b=class{segments;children;parent=null;constructor(t,e){this.segments=t,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Wt(this)}},se=class{path;parameters;_parameterMap;constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=me(this.parameters),this._parameterMap}toString(){return io(this)}};function ks(n,t){return fe(n,t)&&n.every((e,r)=>q(e.parameters,t[r].parameters))}function fe(n,t){return n.length!==t.length?!1:n.every((e,r)=>e.path===t[r].path)}function Us(n,t){let e=[];return Object.entries(n.children).forEach(([r,i])=>{r===f&&(e=e.concat(t(i,r)))}),Object.entries(n.children).forEach(([r,i])=>{r!==f&&(e=e.concat(t(i,r)))}),e}var yt=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=w({token:n,factory:()=>new ve,providedIn:"root"})}return n})(),ve=class{parse(t){let e=new nr(t);return new W(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${rt(t.root,!0)}`,r=$s(t.queryParams),i=typeof t.fragment=="string"?`#${Fs(t.fragment)}`:"";return`${e}${r}${i}`}},js=new ve;function Wt(n){return n.segments.map(t=>io(t)).join("/")}function rt(n,t){if(!n.hasChildren())return Wt(n);if(t){let e=n.children[f]?rt(n.children[f],!1):"",r=[];return Object.entries(n.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${rt(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=Us(n,(r,i)=>i===f?[rt(n.children[f],!1)]:[`${i}:${rt(r,!1)}`]);return Object.keys(n.children).length===1&&n.children[f]!=null?`${Wt(n)}/${e[0]}`:`${Wt(n)}/(${e.join("//")})`}}function ro(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vt(n){return ro(n).replace(/%3B/gi,";")}function Fs(n){return encodeURI(n)}function tr(n){return ro(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xt(n){return decodeURIComponent(n)}function Vi(n){return Xt(n.replace(/\+/g,"%20"))}function io(n){return`${tr(n.path)}${zs(n.parameters)}`}function zs(n){return Object.entries(n).map(([t,e])=>`;${tr(t)}=${tr(e)}`).join("")}function $s(n){let t=Object.entries(n).map(([e,r])=>Array.isArray(r)?r.map(i=>`${Vt(e)}=${Vt(i)}`).join("&"):`${Vt(e)}=${Vt(r)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}var Bs=/^[^\/()?;#]+/;function Zn(n){let t=n.match(Bs);return t?t[0]:""}var Hs=/^[^\/()?;=#]+/;function Vs(n){let t=n.match(Hs);return t?t[0]:""}var qs=/^[^=?&#]+/;function Gs(n){let t=n.match(qs);return t?t[0]:""}var Ws=/^[^&#]+/;function Xs(n){let t=n.match(Ws);return t?t[0]:""}var nr=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new b([],{}):new b([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[f]=new b(t,e)),r}parseSegment(){let t=Zn(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(t),new se(Xt(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=Vs(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Zn(this.remaining);i&&(r=i,this.capture(r))}t[Xt(e)]=Xt(r)}parseQueryParam(t){let e=Gs(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=Xs(this.remaining);s&&(r=s,this.capture(r))}let i=Vi(e),o=Vi(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Zn(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new E(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=f);let s=this.parseChildren();e[o??f]=Object.keys(s).length===1&&s[f]?s[f]:new b([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new E(4011,!1)}};function oo(n){return n.segments.length>0?new b([],{[f]:n}):n}function so(n){let t={};for(let[r,i]of Object.entries(n.children)){let o=so(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let e=new b(n.segments,t);return Zs(e)}function Zs(n){if(n.numberOfChildren===1&&n.children[f]){let t=n.children[f];return new b(n.segments.concat(t.segments),t.children)}return n}function Ne(n){return n instanceof W}function ao(n,t,e=null,r=null){let i=co(n);return lo(i,t,e,r)}function co(n){let t;function e(o){let s={};for(let c of o.children){let l=e(c);s[c.outlet]=l}let a=new b(o.url,s);return o===n&&(t=a),a}let r=e(n.root),i=oo(r);return t??i}function lo(n,t,e,r){let i=n;for(;i.parent;)i=i.parent;if(t.length===0)return Jn(i,i,i,e,r);let o=Js(t);if(o.toRoot())return Jn(i,i,new b([],{}),e,r);let s=Ys(o,i,n),a=s.processChildren?ot(s.segmentGroup,s.index,o.commands):ho(s.segmentGroup,s.index,o.commands);return Jn(i,s.segmentGroup,a,e,r)}function Zt(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function ct(n){return typeof n=="object"&&n!=null&&n.outlets}function Jn(n,t,e,r,i){let o={};r&&Object.entries(r).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;n===t?s=e:s=uo(n,t,e);let a=oo(so(s));return new W(a,o,i)}function uo(n,t,e){let r={};return Object.entries(n.children).forEach(([i,o])=>{o===t?r[i]=e:r[i]=uo(o,t,e)}),new b(n.segments,r)}var Jt=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&Zt(r[0]))throw new E(4003,!1);let i=r.find(ct);if(i&&i!==Ki(r))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Js(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Jt(!0,0,n);let t=0,e=!1,r=n.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Jt(e,t,r)}var De=class{segmentGroup;processChildren;index;constructor(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r}};function Ys(n,t,e){if(n.isAbsolute)return new De(t,!0,0);if(!e)return new De(t,!1,NaN);if(e.parent===null)return new De(e,!0,0);let r=Zt(n.commands[0])?0:1,i=e.segments.length-1+r;return Ks(e,i,n.numberOfDoubleDots)}function Ks(n,t,e){let r=n,i=t,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new E(4005,!1);i=r.segments.length}return new De(r,!1,i-o)}function Qs(n){return ct(n[0])?n[0].outlets:{[f]:n}}function ho(n,t,e){if(n??=new b([],{}),n.segments.length===0&&n.hasChildren())return ot(n,t,e);let r=ea(n,t,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndexo!==f)&&n.children[f]&&n.numberOfChildren===1&&n.children[f].segments.length===0){let o=ot(n.children[f],t,e);return new b(n.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=ho(n.children[o],t,s))}),Object.entries(n.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new b(n.segments,i)}}function ea(n,t,e){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=e.length)return o;let s=n.segments[i],a=e[r];if(ct(a))break;let c=`${a}`,l=r0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Gi(c,l,s))return o;r+=2}else{if(!Gi(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function rr(n,t,e){let r=n.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[e]=rr(new b([],{}),0,r))}),t}function qi(n){let t={};return Object.entries(n).forEach(([e,r])=>t[e]=`${r}`),t}function Gi(n,t,e){return n==e.path&&q(t,e.parameters)}var st="imperative",O=(function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n})(O||{}),k=class{id;url;constructor(t,e){this.id=t,this.url=e}},ye=class extends k{type=O.NavigationStart;navigationTrigger;restoredState;constructor(t,e,r="imperative",i=null){super(t,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Y=class extends k{urlAfterRedirects;type=O.NavigationEnd;constructor(t,e,r){super(t,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},A=(function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n[n.Aborted=4]="Aborted",n})(A||{}),lt=(function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n})(lt||{}),G=class extends k{reason;code;type=O.NavigationCancel;constructor(t,e,r,i){super(t,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},K=class extends k{reason;code;type=O.NavigationSkipped;constructor(t,e,r,i){super(t,e),this.reason=r,this.code=i}},Le=class extends k{error;target;type=O.NavigationError;constructor(t,e,r,i){super(t,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ut=class extends k{urlAfterRedirects;state;type=O.RoutesRecognized;constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yt=class extends k{urlAfterRedirects;state;type=O.GuardsCheckStart;constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Kt=class extends k{urlAfterRedirects;state;shouldActivate;type=O.GuardsCheckEnd;constructor(t,e,r,i,o){super(t,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Qt=class extends k{urlAfterRedirects;state;type=O.ResolveStart;constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},en=class extends k{urlAfterRedirects;state;type=O.ResolveEnd;constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tn=class{route;type=O.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},nn=class{route;type=O.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},rn=class{snapshot;type=O.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},on=class{snapshot;type=O.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},sn=class{snapshot;type=O.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},an=class{snapshot;type=O.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var dt=class{},ke=class{url;navigationBehaviorOptions;constructor(t,e){this.url=t,this.navigationBehaviorOptions=e}};function na(n){return!(n instanceof dt)&&!(n instanceof ke)}function ra(n,t){return n.providers&&!n._injector&&(n._injector=Ln(n.providers,t,`Route: ${n.path}`)),n._injector??t}function H(n){return n.outlet||f}function ia(n,t){let e=n.filter(r=>H(r)===t);return e.push(...n.filter(r=>H(r)!==t)),e}function Fe(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var cn=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Fe(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new ze(this.rootInjector)}},ze=(()=>{class n{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new cn(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||n)(R(de))};static \u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ln=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=ir(t,this._root);return e?e.children.map(r=>r.value):[]}firstChild(t){let e=ir(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=or(t,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return or(t,this._root).map(e=>e.value)}};function ir(n,t){if(n===t.value)return t;for(let e of t.children){let r=ir(n,e);if(r)return r}return null}function or(n,t){if(n===t.value)return[t];for(let e of t.children){let r=or(n,e);if(r.length)return r.unshift(t),r}return[]}var L=class{value;children;constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ae(n){let t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}var ht=class extends ln{snapshot;constructor(t,e){super(t),this.snapshot=e,pr(this,t)}toString(){return this.snapshot.toString()}};function po(n){let t=oa(n),e=new j([new se("",{})]),r=new j({}),i=new j({}),o=new j({}),s=new j(""),a=new ae(e,r,o,s,i,f,n,t.root);return a.snapshot=t.root,new ht(new L(a,[]),t)}function oa(n){let t={},e={},r={},o=new ge([],t,r,"",e,f,n,null,{});return new pt("",new L(o,[]))}var ae=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,e,r,i,o,s,a,c){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(y(l=>l[vt]))??p(void 0),this.url=t,this.params=e,this.queryParams=r,this.fragment=i,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(y(t=>me(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(y(t=>me(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function un(n,t,e="emptyOnly"){let r,{routeConfig:i}=n;return t!==null&&(e==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:d(d({},t.params),n.params),data:d(d({},t.data),n.data),resolve:d(d(d(d({},n.data),t.data),i?.data),n._resolvedData)}:r={params:d({},n.params),data:d({},n.data),resolve:d(d({},n.data),n._resolvedData??{})},i&&go(i)&&(r.resolve[vt]=i.title),r}var ge=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[vt]}constructor(t,e,r,i,o,s,a,c,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}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??=me(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=me(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},pt=class extends ln{url;constructor(t,e){super(e),this.url=t,pr(this,e)}toString(){return fo(this._root)}};function pr(n,t){t.value._routerState=n,t.children.forEach(e=>pr(n,e))}function fo(n){let t=n.children.length>0?` { ${n.children.map(fo).join(", ")} } `:"";return`${n.value}${t}`}function Yn(n){if(n.snapshot){let t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,q(t.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),q(t.params,e.params)||n.paramsSubject.next(e.params),Ds(t.url,e.url)||n.urlSubject.next(e.url),q(t.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function sr(n,t){let e=q(n.params,t.params)&&ks(n.url,t.url),r=!n.parent!=!t.parent;return e&&!r&&(!n.parent||sr(n.parent,t.parent))}function go(n){return typeof n.title=="string"||n.title===null}var mo=new C(""),fr=(()=>{class n{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new Ee;deactivateEvents=new Ee;attachEvents=new Ee;detachEvents=new Ee;routerOutletData=re();parentContexts=h(ze);location=h(Mt);changeDetector=h(ii);inputBinder=h(fn,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new E(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new ar(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||n)};static \u0275dir=_t({type:n,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[xr]})}return n})(),ar=class{route;childContexts;parent;outletData;constructor(t,e,r,i){this.route=t,this.childContexts=e,this.parent=r,this.outletData=i}get(t,e){return t===ae?this.route:t===ze?this.childContexts:t===mo?this.outletData:this.parent.get(t,e)}},fn=new C("");var gr=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275cmp=Ot({type:n,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&It(0,"router-outlet")},dependencies:[fr],encapsulation:2})}return n})();function mr(n){let t=n.children&&n.children.map(mr),e=t?U(d({},n),{children:t}):d({},n);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=gr),e}function sa(n,t,e){let r=ft(n,t._root,e?e._root:void 0);return new ht(r,t)}function ft(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=t.value;let i=aa(n,t,e);return new L(r,i)}else{if(n.shouldAttach(t.value)){let o=n.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ft(n,a)),s}}let r=ca(t.value),i=t.children.map(o=>ft(n,o));return new L(r,i)}}function aa(n,t,e){return t.children.map(r=>{for(let i of e.children)if(n.shouldReuseRoute(r.value,i.value.snapshot))return ft(n,r,i);return ft(n,r)})}function ca(n){return new ae(new j(n.url),new j(n.params),new j(n.queryParams),new j(n.fragment),new j(n.data),n.outlet,n.component,n)}var Ue=class{redirectTo;navigationBehaviorOptions;constructor(t,e){this.redirectTo=t,this.navigationBehaviorOptions=e}},vo="ngNavigationCancelingError";function dn(n,t){let{redirectTo:e,navigationBehaviorOptions:r}=Ne(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=yo(!1,A.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function yo(n,t){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[vo]=!0,e.cancellationCode=t,e}function la(n){return wo(n)&&Ne(n.url)}function wo(n){return!!n&&n[vo]}var ua=(n,t,e,r)=>y(i=>(new cr(t,i.targetRouterState,i.currentRouterState,e,r).activate(n),i)),cr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,e,r,i,o){this.routeReuseStrategy=t,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),Yn(this.futureState.root),this.activateChildRoutes(e,r,t)}deactivateChildRoutes(t,e,r){let i=Ae(e);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,e,r){let i=t.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let r=e.getContext(t.value.outlet),i=r&&t.value.component?r.children:e,o=Ae(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){let r=e.getContext(t.value.outlet),i=r&&t.value.component?r.children:e,o=Ae(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,e,r){let i=Ae(e);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new an(o.value.snapshot))}),t.children.length&&this.forwardEvent(new on(t.value.snapshot))}activateRoutes(t,e,r){let i=t.value,o=e?e.value:null;if(Yn(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Yn(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},hn=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},xe=class{component;route;constructor(t,e){this.component=t,this.route=e}};function da(n,t,e){let r=n._root,i=t?t._root:null;return it(r,i,e,[r.value])}function ha(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function $e(n,t){let e=Symbol(),r=t.get(n,e);return r===e?typeof n=="function"&&!Or(n)?n:t.get(n):r}function it(n,t,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ae(t);return n.children.forEach(s=>{pa(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>at(a,e.getContext(s),i)),i}function pa(n,t,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=fa(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new hn(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?it(n,t,a?a.children:null,r,i):it(n,t,e,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new xe(a.outlet.component,s))}else s&&at(t,a,i),i.canActivateChecks.push(new hn(r)),o.component?it(n,null,a?a.children:null,r,i):it(n,null,e,r,i);return i}function fa(n,t,e){if(typeof e=="function")return e(n,t);switch(e){case"pathParamsChange":return!fe(n.url,t.url);case"pathParamsOrQueryParamsChange":return!fe(n.url,t.url)||!q(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!sr(n,t)||!q(n.queryParams,t.queryParams);default:return!sr(n,t)}}function at(n,t,e){let r=Ae(n),i=n.value;Object.entries(r).forEach(([o,s])=>{i.component?t?at(s,t.children.getContext(o),e):at(s,null,e):at(s,t,e)}),i.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new xe(t.outlet.component,i)):e.canDeactivateChecks.push(new xe(null,i)):e.canDeactivateChecks.push(new xe(null,i))}function wt(n){return typeof n=="function"}function ga(n){return typeof n=="boolean"}function ma(n){return n&&wt(n.canLoad)}function va(n){return n&&wt(n.canActivate)}function ya(n){return n&&wt(n.canActivateChild)}function wa(n){return n&&wt(n.canDeactivate)}function ba(n){return n&&wt(n.canMatch)}function bo(n){return n instanceof Er||n?.name==="EmptyError"}var qt=Symbol("INITIAL_VALUE");function je(){return P(n=>bn(n.map(t=>t.pipe(be(1),Mr(qt)))).pipe(y(t=>{for(let e of t)if(e!==!0){if(e===qt)return qt;if(e===!1||Ra(e))return e}return!0}),Z(t=>t!==qt),be(1)))}function Ra(n){return Ne(n)||n instanceof Ue}function Ea(n,t){return z(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?p(U(d({},e),{guardsResult:!0})):Ta(s,r,i,n).pipe(z(a=>a&&ga(a)?Ca(r,o,n,t):p(a)),y(a=>U(d({},e),{guardsResult:a})))})}function Ta(n,t,e,r){return F(n).pipe(z(i=>Ia(i.component,i.route,e,t,r)),te(i=>i!==!0,!0))}function Ca(n,t,e,r){return F(t).pipe(ue(i=>Tr(Ma(i.route.parent,r),Sa(i.route,r),_a(n,i.path,e),Oa(n,i.route,e))),te(i=>i!==!0,!0))}function Sa(n,t){return n!==null&&t&&t(new sn(n)),p(!0)}function Ma(n,t){return n!==null&&t&&t(new rn(n)),p(!0)}function Oa(n,t,e){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return p(!0);let i=r.map(o=>Tt(()=>{let s=Fe(t)??e,a=$e(o,s),c=va(a)?a.canActivate(t,n):N(s,()=>a(t,n));return Q(c).pipe(te())}));return p(i).pipe(je())}function _a(n,t,e){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>ha(s)).filter(s=>s!==null).map(s=>Tt(()=>{let a=s.guards.map(c=>{let l=Fe(s.node)??e,u=$e(c,l),g=ya(u)?u.canActivateChild(r,n):N(l,()=>u(r,n));return Q(g).pipe(te())});return p(a).pipe(je())}));return p(o).pipe(je())}function Ia(n,t,e,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return p(!0);let s=o.map(a=>{let c=Fe(t)??i,l=$e(a,c),u=wa(l)?l.canDeactivate(n,t,e,r):N(c,()=>l(n,t,e,r));return Q(u).pipe(te())});return p(s).pipe(je())}function Pa(n,t,e,r){let i=t.canLoad;if(i===void 0||i.length===0)return p(!0);let o=i.map(s=>{let a=$e(s,n),c=ma(a)?a.canLoad(t,e):N(n,()=>a(t,e));return Q(c)});return p(o).pipe(je(),Ro(r))}function Ro(n){return br(_(t=>{if(typeof t!="boolean")throw dn(n,t)}),y(t=>t===!0))}function Aa(n,t,e,r){let i=t.canMatch;if(!i||i.length===0)return p(!0);let o=i.map(s=>{let a=$e(s,n),c=ba(a)?a.canMatch(t,e):N(n,()=>a(t,e));return Q(c)});return p(o).pipe(je(),Ro(r))}var gt=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},mt=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function Pe(n){return He(new gt(n))}function Da(n){return He(new E(4e3,!1))}function xa(n){return He(yo(!1,A.GuardRejected))}var lr=class{urlSerializer;urlTree;constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return p(r);if(i.numberOfChildren>1||!i.children[f])return Da(`${t.redirectTo}`);i=i.children[f]}}applyRedirectCommands(t,e,r,i,o){return Na(e,i,o).pipe(y(s=>{if(s instanceof W)throw new mt(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new mt(a);return a}))}applyRedirectCreateUrlTree(t,e,r,i){let o=this.createSegmentGroup(t,e.root,r,i);return new W(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(t,e,r,i){let o=this.createSegments(t,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,i)}),new b(o,s)}createSegments(t,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,e,r){let i=r[e.path.substring(1)];if(!i)throw new E(4001,!1);return i}findOrReturn(t,e){let r=0;for(let i of e){if(i.path===t.path)return e.splice(r),i;r++}return t}};function Na(n,t,e){if(typeof n=="string")return p(n);let r=n,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:l,data:u,title:g}=t;return Q(N(e,()=>r({params:l,data:u,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:g})))}var ur={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function La(n,t,e,r,i){let o=Eo(n,t,e);return o.matched?(r=ra(t,r),Aa(r,t,e,i).pipe(y(s=>s===!0?o:d({},ur)))):p(o)}function Eo(n,t,e){if(t.path==="**")return ka(e);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||e.length>0)?d({},ur):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(t.matcher||Ji)(e,n,t);if(!i)return d({},ur);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?d(d({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function ka(n){return{matched:!0,parameters:n.length>0?Ki(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function Wi(n,t,e,r){return e.length>0&&Fa(n,e,r)?{segmentGroup:new b(t,ja(r,new b(e,n.children))),slicedSegments:[]}:e.length===0&&za(n,e,r)?{segmentGroup:new b(n.segments,Ua(n,e,r,n.children)),slicedSegments:e}:{segmentGroup:new b(n.segments,n.children),slicedSegments:e}}function Ua(n,t,e,r){let i={};for(let o of e)if(gn(n,t,o)&&!r[H(o)]){let s=new b([],{});i[H(o)]=s}return d(d({},r),i)}function ja(n,t){let e={};e[f]=t;for(let r of n)if(r.path===""&&H(r)!==f){let i=new b([],{});e[H(r)]=i}return e}function Fa(n,t,e){return e.some(r=>gn(n,t,r)&&H(r)!==f)}function za(n,t,e){return e.some(r=>gn(n,t,r))}function gn(n,t,e){return(n.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function $a(n,t,e){return t.length===0&&!n.children[e]}var dr=class{};function Ba(n,t,e,r,i,o,s="emptyOnly"){return new hr(n,t,e,r,i,s,o).recognize()}var Ha=31,hr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,e,r,i,o,s,a){this.injector=t,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new lr(this.urlSerializer,this.urlTree)}noMatchError(t){return new E(4002,`'${t.segmentGroup}'`)}recognize(){let t=Wi(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(y(({children:e,rootSnapshot:r})=>{let i=new L(r,e),o=new pt("",i),s=ao(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let e=new ge([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,f,e).pipe(y(r=>({children:r,rootSnapshot:e})),we(r=>{if(r instanceof mt)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof gt?this.noMatchError(r):r}))}processSegmentGroup(t,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,e,r,o):this.processSegment(t,e,r,r.segments,i,!0,o).pipe(y(s=>s instanceof L?[s]:[]))}processChildren(t,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return F(o).pipe(ue(s=>{let a=r.children[s],c=ia(e,s);return this.processSegmentGroup(t,c,a,s,i)}),Sr((s,a)=>(s.push(...a),s)),Rn(null),Cr(),z(s=>{if(s===null)return Pe(r);let a=To(s);return Va(a),p(a)}))}processSegment(t,e,r,i,o,s,a){return F(e).pipe(ue(c=>this.processSegmentAgainstRoute(c._injector??t,e,c,r,i,o,s,a).pipe(we(l=>{if(l instanceof gt)return p(null);throw l}))),te(c=>!!c),we(c=>{if(bo(c))return $a(r,i,o)?p(new dr):Pe(r);throw c}))}processSegmentAgainstRoute(t,e,r,i,o,s,a,c){return H(r)!==s&&(s===f||!gn(i,o,r))?Pe(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,e,r,o,s,c):Pe(i)}expandSegmentAgainstRouteUsingRedirect(t,e,r,i,o,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:g,remainingSegments:m}=Eo(e,i,o);if(!c)return Pe(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ha&&(this.allowRedirects=!1));let S=new ge(o,l,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Xi(i),H(i),i.component??i._loadedComponent??null,i,Zi(i)),M=un(S,a,this.paramsInheritanceStrategy);return S.params=Object.freeze(M.params),S.data=Object.freeze(M.data),this.applyRedirects.applyRedirectCommands(u,i.redirectTo,g,S,t).pipe(P(v=>this.applyRedirects.lineralizeSegments(i,v)),z(v=>this.processSegment(t,r,e,v.concat(m),s,!1,a)))}matchSegmentAgainstRoute(t,e,r,i,o,s){let a=La(e,r,i,t,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(P(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(P(({routes:l})=>{let u=r._loadedInjector??t,{parameters:g,consumedSegments:m,remainingSegments:S}=c,M=new ge(m,g,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Xi(r),H(r),r.component??r._loadedComponent??null,r,Zi(r)),$=un(M,s,this.paramsInheritanceStrategy);M.params=Object.freeze($.params),M.data=Object.freeze($.data);let{segmentGroup:v,slicedSegments:T}=Wi(e,m,S,l);if(T.length===0&&v.hasChildren())return this.processChildren(u,l,v,M).pipe(y(B=>new L(M,B)));if(l.length===0&&T.length===0)return p(new L(M,[]));let D=H(r)===o;return this.processSegment(u,l,v,T,D?f:o,!0,M).pipe(y(B=>new L(M,B instanceof L?[B]:[])))}))):Pe(e)))}getChildConfig(t,e,r){return e.children?p({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?p({routes:e._loadedRoutes,injector:e._loadedInjector}):Pa(t,e,r,this.urlSerializer).pipe(z(i=>i?this.configLoader.loadChildren(t,e).pipe(_(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):xa(e))):p({routes:[],injector:t})}};function Va(n){n.sort((t,e)=>t.value.outlet===f?-1:e.value.outlet===f?1:t.value.outlet.localeCompare(e.value.outlet))}function qa(n){let t=n.value.routeConfig;return t&&t.path===""}function To(n){let t=[],e=new Set;for(let r of n){if(!qa(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):t.push(r)}for(let r of e){let i=To(r.children);t.push(new L(r.value,i))}return t.filter(r=>!e.has(r))}function Xi(n){return n.data||{}}function Zi(n){return n.resolve||{}}function Ga(n,t,e,r,i,o){return z(s=>Ba(n,t,e,r,s.extractedUrl,i,o).pipe(y(({state:a,tree:c})=>U(d({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function Wa(n,t){return z(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return p(e);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of Co(c))s.add(l);let a=0;return F(s).pipe(ue(c=>o.has(c)?Xa(c,r,n,t):(c.data=un(c,c.parent,n).resolve,p(void 0))),_(()=>a++),En(1),z(c=>a===s.size?p(e):X))})}function Co(n){let t=n.children.map(e=>Co(e)).flat();return[n,...t]}function Xa(n,t,e,r){let i=n.routeConfig,o=n._resolve;return i?.title!==void 0&&!go(i)&&(o[vt]=i.title),Tt(()=>(n.data=un(n,n.parent,e).resolve,Za(o,n,t,r).pipe(y(s=>(n._resolvedData=s,n.data=d(d({},n.data),s),null)))))}function Za(n,t,e,r){let i=er(n);if(i.length===0)return p({});let o={};return F(i).pipe(z(s=>Ja(n[s],t,e,r).pipe(te(),_(a=>{if(a instanceof Ue)throw dn(new ve,a);o[s]=a}))),En(1),y(()=>o),we(s=>bo(s)?X:He(s)))}function Ja(n,t,e,r){let i=Fe(t)??r,o=$e(n,i),s=o.resolve?o.resolve(t,e):N(i,()=>o(t,e));return Q(s)}function Kn(n){return P(t=>{let e=n(t);return e?F(e).pipe(y(()=>t)):p(t)})}var vr=(()=>{class n{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[vt]}static \u0275fac=function(r){return new(r||n)};static \u0275prov=w({token:n,factory:()=>h(So),providedIn:"root"})}return n})(),So=(()=>{class n extends vr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||n)(R(Bi))};static \u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),bt=new C("",{providedIn:"root",factory:()=>({})}),Rt=new C(""),Mo=(()=>{class n{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(ti);loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return p(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=Q(N(e,()=>r.loadComponent())).pipe(y(_o),P(Io),_(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Re(()=>{this.componentLoaders.delete(r)})),o=new wn(i,()=>new ee).pipe(yn());return this.componentLoaders.set(r,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return p({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=Oo(r,this.compiler,e,this.onLoadEndListener).pipe(Re(()=>{this.childrenLoaders.delete(r)})),s=new wn(o,()=>new ee).pipe(yn());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||n)};static \u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Oo(n,t,e,r){return Q(N(e,()=>n.loadChildren())).pipe(y(_o),P(Io),z(i=>i instanceof Fr||Array.isArray(i)?p(i):F(t.compileModuleAsync(i))),y(i=>{r&&r(n);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Rt,[],{optional:!0,self:!0}).flat()),{routes:s.map(mr),injector:o}}))}function Ya(n){return n&&typeof n=="object"&&"default"in n}function _o(n){return Ya(n)?n.default:n}function Io(n){return p(n)}var mn=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=w({token:n,factory:()=>h(Ka),providedIn:"root"})}return n})(),Ka=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||n)};static \u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Po=new C("");var Ao=new C(""),Do=(()=>{class n{currentNavigation=In(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new ee;transitionAbortWithErrorSubject=new ee;configLoader=h(Mo);environmentInjector=h(de);destroyRef=h(Mn);urlSerializer=h(yt);rootContexts=h(ze);location=h(Pt);inputBindingEnabled=h(fn,{optional:!0})!==null;titleStrategy=h(vr);options=h(bt,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=h(mn);createViewTransition=h(Po,{optional:!0});navigationErrorHandler=h(Ao,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>p(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new tn(i)),r=i=>this.events.next(new nn(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;he(()=>{this.transitions?.next(U(d({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))})}setupNavigations(e){return this.transitions=new j(null),this.transitions.pipe(Z(r=>r!==null),P(r=>{let i=!1;return p(r).pipe(P(o=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),X;this.currentTransition=r,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?U(d({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new K(o.id,this.urlSerializer.serialize(o.rawUrl),"",lt.IgnoredSameUrlNavigation)),o.resolve(!1),X;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return p(o).pipe(P(c=>(this.events.next(new ye(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?X:Promise.resolve(c))),Ga(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),_(c=>{r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation.update(u=>(u.finalUrl=c.urlAfterRedirects,u));let l=new ut(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:c,extractedUrl:l,source:u,restoredState:g,extras:m}=o,S=new ye(c,this.urlSerializer.serialize(l),u,g);this.events.next(S);let M=po(this.rootComponentType).snapshot;return this.currentTransition=r=U(d({},o),{targetSnapshot:M,urlAfterRedirects:l,extras:U(d({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update($=>($.finalUrl=l,$)),p(r)}else return this.events.next(new K(o.id,this.urlSerializer.serialize(o.extractedUrl),"",lt.IgnoredByUrlHandlingStrategy)),o.resolve(!1),X}),_(o=>{let s=new Yt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),y(o=>(this.currentTransition=r=U(d({},o),{guards:da(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),Ea(this.environmentInjector,o=>this.events.next(o)),_(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw dn(this.urlSerializer,o.guardsResult);let s=new Kt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),Z(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",A.GuardRejected),!1)),Kn(o=>{if(o.guards.canActivateChecks.length!==0)return p(o).pipe(_(s=>{let a=new Qt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),P(s=>{let a=!1;return p(s).pipe(Wa(this.paramsInheritanceStrategy,this.environmentInjector),_({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",A.NoDataFromResolver)}}))}),_(s=>{let a=new en(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),Kn(o=>{let s=a=>{let c=[];if(a.routeConfig?.loadComponent){let l=Fe(a)??this.environmentInjector;c.push(this.configLoader.loadComponent(l,a.routeConfig).pipe(_(u=>{a.component=u}),y(()=>{})))}for(let l of a.children)c.push(...s(l));return c};return bn(s(o.targetSnapshot.root)).pipe(Rn(null),be(1))}),Kn(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:o,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?F(a).pipe(y(()=>r)):p(r)}),y(o=>{let s=sa(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=U(d({},o),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),_(()=>{this.events.next(new dt)}),ua(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),be(1),Tn(new Et(o=>{let s=r.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(Z(()=>!i&&!r.targetRouterState),_(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",A.Aborted)}))),_({next:o=>{i=!0,this.lastSuccessfulNavigation=he(this.currentNavigation),this.events.next(new Y(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),Tn(this.transitionAbortWithErrorSubject.pipe(_(o=>{throw o}))),Re(()=>{i||this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),we(o=>{if(this.destroyed)return r.resolve(!1),X;if(i=!0,wo(o))this.events.next(new G(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),la(o)?this.events.next(new ke(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let s=new Le(r.id,this.urlSerializer.serialize(r.extractedUrl),o,r.targetSnapshot??void 0);try{let a=N(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof Ue){let{message:c,cancellationCode:l}=dn(this.urlSerializer,a);this.events.next(new G(r.id,this.urlSerializer.serialize(r.extractedUrl),c,l)),this.events.next(new ke(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return X}))}))}cancelNavigationTransition(e,r,i){let o=new G(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=he(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||n)};static \u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Qa(n){return n!==st}var xo=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=w({token:n,factory:()=>h(ec),providedIn:"root"})}return n})(),pn=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},ec=(()=>{class n extends pn{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ve(n)))(i||n)}})();static \u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),No=(()=>{class n{urlSerializer=h(yt);options=h(bt,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(Pt);urlHandlingStrategy=h(mn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new W;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof W?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=po(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(r){return new(r||n)};static \u0275prov=w({token:n,factory:()=>h(tc),providedIn:"root"})}return n})(),tc=(()=>{class n extends No{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof ye?this.updateStateMemento():e instanceof K?this.commitTransition(r):e instanceof ut?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof dt?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof G&&e.code!==A.SupersededByNewNavigation&&e.code!==A.Redirect?this.restoreHistory(r):e instanceof Le?this.restoreHistory(r,!0):e instanceof Y&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=d(d({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=d(d({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ve(n)))(i||n)}})();static \u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function yr(n,t){n.events.pipe(Z(e=>e instanceof Y||e instanceof G||e instanceof Le||e instanceof K),y(e=>e instanceof Y||e instanceof K?0:(e instanceof G?e.code===A.Redirect||e.code===A.SupersededByNewNavigation:!1)?2:1),Z(e=>e!==2),be(1)).subscribe(()=>{t()})}var nc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},rc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Be=(()=>{class n{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=h($r);stateManager=h(No);options=h(bt,{optional:!0})||{};pendingTasks=h(Ar);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(Do);urlSerializer=h(yt);location=h(Pt);urlHandlingStrategy=h(mn);injector=h(de);_events=new ee;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=h(xo);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(Rt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!h(fn,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new wr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=he(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof G&&r.code!==A.Redirect&&r.code!==A.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Y)this.navigated=!0;else if(r instanceof ke){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=d({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Qa(i.source)},s);this.scheduleNavigation(a,st,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}na(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),st,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=d({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(_n)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return he(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(mr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=d(d({},this.currentUrlTree.queryParams),o);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}u!==null&&(u=this.removeEmptyProps(u));let g;try{let m=i?i.snapshot:this.routerState.snapshot.root;g=co(m)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root}return lo(g,e,u,l??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=Ne(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,st,null,r)}navigate(e,r={skipLocationChange:!1}){return ic(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Cn(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=d({},nc):r===!1?i=d({},rc):i=r,Ne(e))return Hi(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Hi(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((g,m)=>{a=g,c=m});let u=this.pendingTasks.add();return yr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(g=>Promise.reject(g))}static \u0275fac=function(r){return new(r||n)};static \u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function ic(n){for(let t=0;te.\u0275providers)])}function cc(n){return n.routerState.root}function lc(){let n=h(Sn);return t=>{let e=n.get(Vr);if(t!==e.components[0])return;let r=n.get(Be),i=n.get(uc);n.get(dc)===1&&r.initialNavigation(),n.get(hc,null,{optional:!0})?.setUpPreloading(),n.get(sc,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var uc=new C("",{factory:()=>new ee}),dc=new C("",{providedIn:"root",factory:()=>1});var hc=new C("");var Lo=class n{static isArray(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}static isObject(t,e=!0){return typeof t=="object"&&!Array.isArray(t)&&t!=null&&(e||Object.keys(t).length!==0)}static equals(t,e,r){return r?this.resolveFieldData(t,r)===this.resolveFieldData(e,r):this.equalsByValue(t,e)}static equalsByValue(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var r=Array.isArray(t),i=Array.isArray(e),o,s,a;if(r&&i){if(s=t.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!this.equalsByValue(t[o],e[o]))return!1;return!0}if(r!=i)return!1;var c=this.isDate(t),l=this.isDate(e);if(c!=l)return!1;if(c&&l)return t.getTime()==e.getTime();var u=t instanceof RegExp,g=e instanceof RegExp;if(u!=g)return!1;if(u&&g)return t.toString()==e.toString();var m=Object.keys(t);if(s=m.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=s;o--!==0;)if(a=m[o],!this.equalsByValue(t[a],e[a]))return!1;return!0}return t!==t&&e!==e}static resolveFieldData(t,e){if(t&&e){if(this.isFunction(e))return e(t);if(e.indexOf(".")==-1)return t[e];{let r=e.split("."),i=t;for(let o=0,s=r.length;o=t.length&&(r%=t.length,e%=t.length),t.splice(r,0,t.splice(e,1)[0]))}static insertIntoOrderedArray(t,e,r,i){if(r.length>0){let o=!1;for(let s=0;se){r.splice(s,0,t),o=!0;break}o||r.push(t)}else r.push(t)}static findIndexInList(t,e){let r=-1;if(e){for(let i=0;ie?1:0,o}static sort(t,e,r=1,i,o=1){let s=n.compare(t,e,i,r),a=r;return(n.isEmpty(t)||n.isEmpty(e))&&(a=o===1?r:o),a*s}static merge(t,e){if(!(t==null&&e==null)){{if((t==null||typeof t=="object")&&(e==null||typeof e=="object"))return d(d({},t||{}),e||{});if((t==null||typeof t=="string")&&(e==null||typeof e=="string"))return[t||"",e||""].join(" ")}return e||t}}static isPrintableCharacter(t=""){return this.isNotEmpty(t)&&t.length===1&&t.match(/\S| /)}static getItemValue(t,...e){return this.isFunction(t)?t(...e):t}static findLastIndex(t,e){let r=-1;if(this.isNotEmpty(t))try{r=t.findLastIndex(e)}catch{r=t.lastIndexOf([...t].reverse().find(e))}return r}static findLast(t,e){let r;if(this.isNotEmpty(t))try{r=t.findLast(e)}catch{r=[...t].reverse().find(e)}return r}static deepEquals(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var r=Array.isArray(t),i=Array.isArray(e),o,s,a;if(r&&i){if(s=t.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!this.deepEquals(t[o],e[o]))return!1;return!0}if(r!=i)return!1;var c=t instanceof Date,l=e instanceof Date;if(c!=l)return!1;if(c&&l)return t.getTime()==e.getTime();var u=t instanceof RegExp,g=e instanceof RegExp;if(u!=g)return!1;if(u&&g)return t.toString()==e.toString();var m=Object.keys(t);if(s=m.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=s;o--!==0;)if(a=m[o],!this.deepEquals(t[a],e[a]))return!1;return!0}return t!==t&&e!==e}static minifyCSS(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}static toFlatCase(t){return this.isString(t)?t.replace(/(-|_)/g,"").toLowerCase():t}static isString(t,e=!0){return typeof t=="string"&&(e||t!=="")}},ko=0;function zu(n="pn_id_"){return ko++,`${n}${ko}`}function fc(){let n=[],t=(o,s)=>{let a=n.length>0?n[n.length-1]:{key:o,value:s},c=a.value+(a.key===o?0:s)+2;return n.push({key:o,value:c}),c},e=o=>{n=n.filter(s=>s.value!==o)},r=()=>n.length>0?n[n.length-1].value:0,i=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:i,set:(o,s,a)=>{s&&(s.style.zIndex=String(t(o,a)))},clear:o=>{o&&(e(i(o)),o.style.zIndex="")},getCurrent:()=>r(),generateZIndex:t,revertZIndex:e}}var vn=fc();var Uo=` - .p-tooltip { - position: absolute; - display: none; - max-width: dt('tooltip.max.width'); - } - - .p-tooltip-right, - .p-tooltip-left { - padding: 0 dt('tooltip.gutter'); - } - - .p-tooltip-top, - .p-tooltip-bottom { - padding: dt('tooltip.gutter') 0; - } - - .p-tooltip-text { - white-space: pre-line; - word-break: break-word; - background: dt('tooltip.background'); - color: dt('tooltip.color'); - padding: dt('tooltip.padding'); - box-shadow: dt('tooltip.shadow'); - border-radius: dt('tooltip.border.radius'); - } - - .p-tooltip-arrow { - position: absolute; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; - } - - .p-tooltip-right .p-tooltip-arrow { - margin-top: calc(-1 * dt('tooltip.gutter')); - border-width: dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter') 0; - border-right-color: dt('tooltip.background'); - } - - .p-tooltip-left .p-tooltip-arrow { - margin-top: calc(-1 * dt('tooltip.gutter')); - border-width: dt('tooltip.gutter') 0 dt('tooltip.gutter') dt('tooltip.gutter'); - border-left-color: dt('tooltip.background'); - } - - .p-tooltip-top .p-tooltip-arrow { - margin-left: calc(-1 * dt('tooltip.gutter')); - border-width: dt('tooltip.gutter') dt('tooltip.gutter') 0 dt('tooltip.gutter'); - border-top-color: dt('tooltip.background'); - border-bottom-color: dt('tooltip.background'); - } - - .p-tooltip-bottom .p-tooltip-arrow { - margin-left: calc(-1 * dt('tooltip.gutter')); - border-width: 0 dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter'); - border-top-color: dt('tooltip.background'); - border-bottom-color: dt('tooltip.background'); - } -`;var gc={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},jo=(()=>{class n extends mi{name="tooltip";style=Uo;classes=gc;static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ve(n)))(i||n)}})();static \u0275prov=w({token:n,factory:n.\u0275fac})}return n})();var Fo=new C("TOOLTIP_INSTANCE"),zo=(()=>{class n extends yi{zone;viewContainer;$pcTooltip=h(Fo,{optional:!0,skipSelf:!0})??void 0;tooltipPosition;tooltipEvent="hover";positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;appendTo=re(void 0);$appendTo=ni(()=>this.appendTo()||this.config.overlayAppendTo());_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:gi("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;rootPTClasses="";showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=h(jo);interactionInProgress=!1;ptTooltip=re();constructor(e,r){super(),this.zone=e,this.viewContainer=r,ri(()=>{this.ptTooltip()&&this.directivePT.set(this.ptTooltip())})}onAfterViewInit(){li(this.platformId)&&this.zone.runOutsideAngular(()=>{let e=this.getOption("tooltipEvent");if((e==="hover"||e==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),e==="focus"||e==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let r=this.el.nativeElement.querySelector(".p-component");r||(r=this.getTarget(this.el.nativeElement)),r.addEventListener("focus",this.focusListener),r.addEventListener("blur",this.blurListener)}})}onChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions=d(d({},this._tooltipOptions),e.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.isAutoHide()?this.deactivate():!(Ze(e.relatedTarget,"p-tooltip")||Ze(e.relatedTarget,"p-tooltip-text")||Ze(e.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}activate(){if(!this.interactionInProgress){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener?.()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=xt("div",{class:this.cx("root"),role:"tooltip","p-bind":this.ptm("root"),"data-pc-section":"root"});let e=xt("div",{class:"p-tooltip-arrow","p-bind":this.ptm("arrow"),"data-pc-section":"arrow"});this.container.appendChild(e),this.tooltipText=xt("div",{class:"p-tooltip-text","p-bind":this.ptm("text"),"data-pc-section":"text"}),this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?kn(this.container,this.el.nativeElement):kn(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let e=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(e,"mouseleave",r=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),pi(this.container,250),this.getOption("tooltipZIndex")==="auto"?vn.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&vn.clear(this.container),this.remove()}updateText(){let e=this.getOption("tooltipLabel");if(e&&typeof e.createEmbeddedView=="function"){let r=this.viewContainer.createEmbeddedView(e);r.detectChanges(),r.rootNodes.forEach(i=>this.tooltipText.appendChild(i))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){let e=this.getOption("tooltipPosition"),i={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]}[e]||[];for(let[o,s]of i.entries())if(o===0)s.call(this);else if(this.isOutOfBounds())s.call(this);else break}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let e=this.el.nativeElement.getBoundingClientRect(),r=e.left+di(),i=e.top+hi();return{left:r,top:i}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?Nt(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");let e=this.activeElement,r=V(e),i=(ie(e)-ie(this.container))/2;this.alignTooltip(r,i);let o=this.getArrowElement();o.style.top="50%",o.style.right=null,o.style.bottom=null,o.style.left="0"}alignLeft(){this.preAlign("left");let e=this.getArrowElement(),r=V(this.container),i=(ie(this.el.nativeElement)-ie(this.container))/2;this.alignTooltip(-r,i),e.style.top="50%",e.style.right="0",e.style.bottom=null,e.style.left=null}alignTop(){this.preAlign("top");let e=this.getArrowElement(),r=this.getHostOffset(),i=V(this.container),o=(V(this.el.nativeElement)-V(this.container))/2,s=ie(this.container);this.alignTooltip(o,-s);let a=r.left-this.getHostOffset().left+i/2;e.style.top=null,e.style.right=null,e.style.bottom="0",e.style.left=a+"px"}getArrowElement(){return Nt(this.container,'[data-pc-section="arrow"]')}alignBottom(){this.preAlign("bottom");let e=this.getArrowElement(),r=V(this.container),i=this.getHostOffset(),o=(V(this.el.nativeElement)-V(this.container))/2,s=ie(this.el.nativeElement);this.alignTooltip(o,s);let a=i.left-this.getHostOffset().left+r/2;e.style.top="0",e.style.right=null,e.style.bottom=null,e.style.left=a+"px"}alignTooltip(e,r){let i=this.getHostOffset(),o=i.left+e,s=i.top+r;this.container.style.left=o+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=d(d({},this._tooltipOptions),e)}getOption(e){return this._tooltipOptions[e]}getTarget(e){return Ze(e,"p-inputwrapper")?Nt(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px",this.container.className=this.cn(this.cx("root"),this.ptm("root")?.class,"p-tooltip-"+e,this.getOption("tooltipStyleClass"))}isOutOfBounds(){let e=this.container.getBoundingClientRect(),r=e.top,i=e.left,o=V(this.container),s=ie(this.container),a=ui();return i+o>a.width||i<0||r<0||r+s>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new wi(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let e=this.getOption("tooltipEvent");if((e==="hover"||e==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),e==="focus"||e==="both"){let r=this.el.nativeElement.querySelector(".p-component");r||(r=this.getTarget(this.el.nativeElement)),r.removeEventListener("focus",this.focusListener),r.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):fi(this.getOption("appendTo"),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}onDestroy(){this.unbindEvents(),this.container&&vn.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(r){return new(r||n)(Nn(ne),Nn(Mt))};static \u0275dir=_t({type:n,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",Te],showDelay:[2,"showDelay","showDelay",Ce],hideDelay:[2,"hideDelay","hideDelay",Ce],life:[2,"life","life",Ce],positionTop:[2,"positionTop","positionTop",Ce],positionLeft:[2,"positionLeft","positionLeft",Ce],autoHide:[2,"autoHide","autoHide",Te],fitContent:[2,"fitContent","fitContent",Te],hideOnEscape:[2,"hideOnEscape","hideOnEscape",Te],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions",appendTo:[1,"appendTo"],ptTooltip:[1,"ptTooltip"]},features:[ei([jo,{provide:Fo,useExisting:n},{provide:vi,useExisting:n}]),zr]})}return n})();var mc=["*"];function vc(n,t){if(n&1){let e=Wr();Ge(0,"p-button",9),Xr("click",function(){Ir(e);let i=Zr();return Pr(i.router.navigate(["/"]))}),We()}}var $o=class n{title=re.required();router=h(Be);noHomeButton=re(!1);static \u0275fac=function(e){return new(e||n)};static \u0275cmp=Ot({type:n,selectors:[["app-base"]],inputs:{title:[1,"title"],noHomeButton:[1,"noHomeButton"]},ngContentSelectors:mc,decls:11,vars:2,consts:[[1,"min-h-screen","flex","items-center","justify-center","p-4"],[1,"border-2","rounded-2xl","bg-gray-100/50","drop-shadow-2xl","w-full","mx-auto","p-4",2,"max-width","800px"],[1,"flex","justify-between","items-center"],[1,"flex","items-center","gap-2","w-full"],[1,"text-2xl","font-bold"],[1,"flex","items-center","gap-2"],["icon","fa fa-home","text","","rounded","","outlined","","pTooltip","Home","tooltipPosition","left"],[1,"my-4"],[1,"mt-4"],["icon","fa fa-home","text","","rounded","","outlined","","pTooltip","Home","tooltipPosition","left",3,"click"]],template:function(e,r){e&1&&(Jr(),Ge(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),Kr(5),We()(),Ge(6,"div",5),qr(7,vc,1,0,"p-button",6),We()(),It(8,"hr",7),Ge(9,"div",8),Yr(10),We()()()),e&2&&(xn(5),Qr(r.title()),xn(2),Gr(r.noHomeButton()?-1:7))},dependencies:[bi,zo],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};export{Vn as a,ts as b,oe as c,$t as d,Oe as e,Ui as f,Ps as g,ae as h,fr as i,Be as j,ac as k,Lo as l,zu as m,vn as n,zo as o,$o as p}; diff --git a/latest/main.js b/latest/main.js index cffd48c..66016ed 100644 --- a/latest/main.js +++ b/latest/main.js @@ -1,14 +1,1055 @@ -import{a as Gp,b as ra,c as el,d as $p,e as Wp,f as Kp,g as Yp,h as Zp,i as Jp,j as Tn,k as Xp,l as be,m as Cf,n as Sn,o as xf,p as la}from"./chunk-YBGBPGZM.js";import{$a as je,$b as Ee,$c as et,Aa as Yo,Ab as ie,Ad as co,B as Wo,Bb as J,Bc as Cn,Bd as uo,C as Jr,Cb as te,Cc as xn,Cd as mf,Db as ct,Dc as ht,Dd as gf,E as gp,Eb as Q,Ec as an,Ed as Xe,F as bp,Fa as Qs,Fb as u,Fc as ot,Fd as ve,G as _p,Gb as en,Gc as Up,Gd as Tt,H as Ko,Hb as zt,Hc as $e,Hd as bf,I as Xr,Ia as so,Ib as F,Id as Ge,Ja as f,Jb as Fe,Jd as _f,K as yp,Kb as M,Kd as Ae,Lb as D,Lc as kn,Ld as vt,Mb as Ap,Mc as sn,Md as he,N as ea,Na as Ep,Nb as Lp,Nc as lo,Nd as yf,O as vp,Oa as H,Ob as kt,Oc as ef,Od as aa,Pa as It,Pb as bn,Pd as nr,Qa as qs,Qb as na,Qd as di,Ra as Mp,Rb as jt,Rd as X,S as wp,Sa as Dp,Sb as I,Sc as tf,Sd as dt,Ta as Us,Tb as oe,Tc as nf,Td as vf,U as Mi,Ua as Op,Ub as Ue,Uc as Jo,Ud as sa,V as ao,Va as Gs,Vb as ft,Vc as of,Vd as ce,W as Cp,Wa as ye,Wb as ia,Wc as rf,Wd as Ri,X as xp,Xb as _n,Xc as af,Xd as ui,Yb as yn,Z as si,Zb as vn,_ as Se,_a as U,_b as Np,_c as qn,a as T,aa as _t,ab as yt,ac as Qn,ad as ln,b as N,ba as pe,bb as L,bc as de,bd as Xo,be as $n,c as Yr,ca as ze,cb as He,cc as at,cd as sf,ce as wf,d as it,db as _,dc as zp,dd as Pi,e as Ze,ea as we,eb as Pp,ec as Ks,ed as er,f as dp,fa as Wt,fc as oa,fd as lf,g as up,ga as G,gb as Fp,gc as Zo,hb as Rp,hc as jp,hd as cf,ic as Ys,id as Fi,j as Je,ja as kp,jb as $s,jc as Zs,jd as tl,kb as Vp,kc as Me,kd as Un,la as w,lb as Bp,m as Nt,ma as C,mb as Y,mc as Hp,md as df,n as pp,na as j,nb as Re,nc as li,nd as nl,o as Zr,oa as Hn,ob as Ve,oc as Be,od as il,p as fp,pa as Tp,pb as Ws,pc as wn,pd as uf,q as Ii,qb as Di,qc as ue,qd as ci,r as Hs,rb as Oi,rc as Qp,rd as Kt,s as hp,sb as d,sc as Js,sd as Gn,t as gn,ta as Sp,tb as k,td as pf,u as Ei,ua as Ie,ub as x,uc as P,ud as ol,v as mp,va as Ip,vb as Z,vc as xe,vd as tr,wb as Qe,wc as Xs,wd as ff,xb as qe,xd as rt,y as rn,ya as ta,yb as ae,yd as hf,z as xt,za as A,zb as ne,zc as qp,zd as rl}from"./chunk-SK2T2ZXR.js";function po(t,n){if(!!!t)throw new Error(n)}function kf(t){return typeof t=="object"&&t!==null}function Tf(t,n){if(!!!t)throw new Error(n??"Unexpected invariant triggered.")}var Ub=/\r\n|[\n\r]/g;function fo(t,n){let e=0,i=1;for(let o of t.body.matchAll(Ub)){if(typeof o.index=="number"||Tf(!1),o.index>=n)break;e=o.index+o[0].length,i+=1}return{line:i,column:n+1-e}}function al(t){return ca(t.source,fo(t.source,t.start))}function ca(t,n){let e=t.locationOffset.column-1,i="".padStart(e)+t.body,o=n.line-1,r=t.locationOffset.line-1,a=n.line+r,s=n.line===1?e:0,l=n.column+s,c=`${t.name}:${a}:${l} -`,p=i.split(/\r\n|[\n\r]/g),h=p[o];if(h.length>120){let m=Math.floor(l/80),g=l%80,b=[];for(let y=0;y["|",y]),["|","^".padStart(g)],["|",b[m+1]]])}return c+Sf([[`${a-1} |`,p[o-1]],[`${a} |`,h],["|","^".padStart(l)],[`${a+1} |`,p[o+1]]])}function Sf(t){let n=t.filter(([i,o])=>o!==void 0),e=Math.max(...n.map(([i])=>i.length));return n.map(([i,o])=>i.padStart(e)+(o?" "+o:"")).join(` -`)}function Gb(t){let n=t[0];return n==null||"kind"in n||"length"in n?{nodes:n,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:n}var da=class t extends Error{constructor(n,...e){var i,o,r;let{nodes:a,source:s,positions:l,path:c,originalError:p,extensions:h}=Gb(e);super(n),this.name="GraphQLError",this.path=c??void 0,this.originalError=p??void 0,this.nodes=If(Array.isArray(a)?a:a?[a]:void 0);let m=If((i=this.nodes)===null||i===void 0?void 0:i.map(b=>b.loc).filter(b=>b!=null));this.source=s??(m==null||(o=m[0])===null||o===void 0?void 0:o.source),this.positions=l??m?.map(b=>b.start),this.locations=l&&s?l.map(b=>fo(s,b)):m?.map(b=>fo(b.source,b.start));let g=kf(p?.extensions)?p?.extensions:void 0;this.extensions=(r=h??g)!==null&&r!==void 0?r: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}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let n=this.message;if(this.nodes)for(let e of this.nodes)e.loc&&(n+=` +var LA=Object.defineProperty,BA=Object.defineProperties;var VA=Object.getOwnPropertyDescriptors;var Yu=Object.getOwnPropertySymbols;var rx=Object.prototype.hasOwnProperty,ix=Object.prototype.propertyIsEnumerable;var jA=(t,n)=>(n=Symbol[t])?n:Symbol.for("Symbol."+t);var nx=(t,n,e)=>n in t?LA(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,_=(t,n)=>{for(var e in n||={})rx.call(n,e)&&nx(t,e,n[e]);if(Yu)for(var e of Yu(n))ix.call(n,e)&&nx(t,e,n[e]);return t},A=(t,n)=>BA(t,VA(n));var Zu=t=>typeof t=="symbol"?t:t+"",Et=(t,n)=>{var e={};for(var r in t)rx.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&Yu)for(var r of Yu(t))n.indexOf(r)<0&&ix.call(t,r)&&(e[r]=t[r]);return e};var pt=(t,n,e)=>new Promise((r,i)=>{var o=l=>{try{a(e.next(l))}catch(c){i(c)}},s=l=>{try{a(e.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((e=e.apply(t,n)).next())}),kg=function(t,n){this[0]=t,this[1]=n},ox=(t,n,e)=>{var r=(a,l,c,d)=>{try{var u=e[a](l),p=(l=u.value)instanceof kg,f=u.done;Promise.resolve(p?l[0]:l).then(y=>p?r(a==="return"?a:"next",l[1]?{done:y.done,value:y.value}:y,c,d):c({value:y,done:f})).catch(y=>r("throw",y,c,d))}catch(y){d(y)}},i=(a,l,c,d)=>s[a]=u=>(l=new Promise((p,f,y)=>(y=()=>r(a,u,p,f),o?o.then(y):y())),d=()=>o===c&&(o=0),o=c=l.then(d,d),l),o,s={};return e=e.apply(t,n),s[jA("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s};var Mg;function Ju(){return Mg}function bi(t){let n=Mg;return Mg=t,n}var sx=Symbol("NotFound");function Fa(t){return t===sx||t?.name==="\u0275NotFound"}var Ln=null,Xu=!1,Og=1,zA=null,yn=Symbol("SIGNAL");function Re(t){let n=Ln;return Ln=t,n}function rp(){return Ln}var Es={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function La(t){if(Xu)throw new Error("");if(Ln===null)return;Ln.consumerOnSignalRead(t);let n=Ln.producersTail;if(n!==void 0&&n.producer===t)return;let e,r=Ln.recomputing;if(r&&(e=n!==void 0?n.nextProducer:Ln.producers,e!==void 0&&e.producer===t)){Ln.producersTail=e,e.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Ln&&(!r||$A(i,Ln)))return;let o=ja(Ln),s={producer:t,consumer:Ln,nextProducer:e,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Ln.producersTail=s,n!==void 0?n.nextProducer=s:Ln.producers=s,o&&dx(t,s)}function ax(){Og++}function ip(t){if(!(ja(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Og)){if(!t.producerMustRecompute(t)&&!Va(t)){np(t);return}t.producerRecomputeValue(t),np(t)}}function Rg(t){if(t.consumers===void 0)return;let n=Xu;Xu=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let r=e.consumer;r.dirty||HA(r)}}finally{Xu=n}}function Pg(){return Ln?.consumerAllowSignalWrites!==!1}function HA(t){t.dirty=!0,Rg(t),t.consumerMarkedDirty?.(t)}function np(t){t.dirty=!1,t.lastCleanEpoch=Og}function Ss(t){return t&&lx(t),Re(t)}function lx(t){t.producersTail=void 0,t.recomputing=!0}function Ba(t,n){Re(n),t&&cx(t)}function cx(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(ja(t))do e=Ag(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function Va(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,r=n.lastReadVersion;if(r!==e.version||(ip(e),r!==e.version))return!0}return!1}function Is(t){if(ja(t)){let n=t.producers;for(;n!==void 0;)n=Ag(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function dx(t,n){let e=t.consumersTail,r=ja(t);if(e!==void 0?(n.nextConsumer=e.nextConsumer,e.nextConsumer=n):(n.nextConsumer=void 0,t.consumers=n),n.prevConsumer=e,t.consumersTail=n,!r)for(let i=t.producers;i!==void 0;i=i.nextProducer)dx(i.producer,i)}function Ag(t){let n=t.producer,e=t.nextProducer,r=t.nextConsumer,i=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=i:n.consumersTail=i,i!==void 0)i.nextConsumer=r;else if(n.consumers=r,!ja(n)){let o=n.producers;for(;o!==void 0;)o=Ag(o)}return e}function ja(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function op(t){zA?.(t)}function $A(t,n){let e=n.producersTail;if(e!==void 0){let r=n.producers;do{if(r===t)return!0;if(r===e)break;r=r.nextProducer}while(r!==void 0)}return!1}function sp(t,n){return Object.is(t,n)}function Mc(t,n){let e=Object.create(UA);e.computation=t,n!==void 0&&(e.equal=n);let r=()=>{if(ip(e),La(e),e.value===kc)throw e.error;return e.value};return r[yn]=e,op(e),r}var ep=Symbol("UNSET"),tp=Symbol("COMPUTING"),kc=Symbol("ERRORED"),UA=A(_({},Es),{value:ep,dirty:!0,error:null,equal:sp,kind:"computed",producerMustRecompute(t){return t.value===ep||t.value===tp},producerRecomputeValue(t){if(t.value===tp)throw new Error("");let n=t.value;t.value=tp;let e=Ss(t),r,i=!1;try{r=t.computation(),Re(null),i=n!==ep&&n!==kc&&r!==kc&&t.equal(n,r)}catch(o){r=kc,t.error=o}finally{Ba(t,e)}if(i){t.value=n;return}t.value=r,t.version++}});function WA(){throw new Error}var ux=WA;function px(t){ux(t)}function Ng(t){ux=t}var GA=null;function Fg(t,n){let e=Object.create(ap);e.value=t,n!==void 0&&(e.equal=n);let r=()=>fx(e);return r[yn]=e,op(e),[r,s=>za(e,s),s=>Lg(e,s)]}function fx(t){return La(t),t.value}function za(t,n){Pg()||px(t),t.equal(t.value,n)||(t.value=n,qA(t))}function Lg(t,n){Pg()||px(t),za(t,n(t.value))}var ap=A(_({},Es),{equal:sp,value:void 0,kind:"signal"});function qA(t){t.version++,ax(),Rg(t),GA?.(t)}function Le(t){return typeof t=="function"}function Ha(t){let e=t(r=>{Error.call(r),r.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var lp=Ha(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +${e.map((r,i)=>`${i+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Ds(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var qt=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:r}=this;if(Le(r))try{r()}catch(o){n=o instanceof lp?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{hx(o)}catch(s){n=n??[],s instanceof lp?n=[...n,...s.errors]:n.push(s)}}if(n)throw new lp(n)}}add(n){var e;if(n&&n!==this)if(this.closed)hx(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Ds(e,n)}remove(n){let{_finalizers:e}=this;e&&Ds(e,n),n instanceof t&&n._removeParent(this)}};qt.EMPTY=(()=>{let t=new qt;return t.closed=!0,t})();var Bg=qt.EMPTY;function cp(t){return t instanceof qt||t&&"closed"in t&&Le(t.remove)&&Le(t.add)&&Le(t.unsubscribe)}function hx(t){Le(t)?t():t.unsubscribe()}var jr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var $a={setTimeout(t,n,...e){let{delegate:r}=$a;return r?.setTimeout?r.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=$a;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function dp(t){$a.setTimeout(()=>{let{onUnhandledError:n}=jr;if(n)n(t);else throw t})}function Oc(){}var mx=Vg("C",void 0,void 0);function gx(t){return Vg("E",void 0,t)}function yx(t){return Vg("N",t,void 0)}function Vg(t,n,e){return{kind:t,value:n,error:e}}var ks=null;function Ua(t){if(jr.useDeprecatedSynchronousErrorHandling){let n=!ks;if(n&&(ks={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:r}=ks;if(ks=null,e)throw r}}else t()}function bx(t){jr.useDeprecatedSynchronousErrorHandling&&ks&&(ks.errorThrown=!0,ks.error=t)}var Ms=class extends qt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,cp(n)&&n.add(this)):this.destination=YA}static create(n,e,r){return new io(n,e,r)}next(n){this.isStopped?zg(yx(n),this):this._next(n)}error(n){this.isStopped?zg(gx(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?zg(mx,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},QA=Function.prototype.bind;function jg(t,n){return QA.call(t,n)}var Hg=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(r){up(r)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(r){up(r)}else up(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){up(e)}}},io=class extends Ms{constructor(n,e,r){super();let i;if(Le(n)||!n)i={next:n??void 0,error:e??void 0,complete:r??void 0};else{let o;this&&jr.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&jg(n.next,o),error:n.error&&jg(n.error,o),complete:n.complete&&jg(n.complete,o)}):i=n}this.destination=new Hg(i)}};function up(t){jr.useDeprecatedSynchronousErrorHandling?bx(t):dp(t)}function KA(t){throw t}function zg(t,n){let{onStoppedNotification:e}=jr;e&&$a.setTimeout(()=>e(t,n))}var YA={closed:!0,next:Oc,error:KA,complete:Oc};var Wa=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Hn(t){return t}function $g(...t){return Ug(t)}function Ug(t){return t.length===0?Hn:t.length===1?t[0]:function(e){return t.reduce((r,i)=>i(r),e)}}var pe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let r=new t;return r.source=this,r.operator=e,r}subscribe(e,r,i){let o=JA(e)?e:new io(e,r,i);return Ua(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return r=vx(r),new r((i,o)=>{let s=new io({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)}[Wa](){return this}pipe(...e){return Ug(e)(this)}toPromise(e){return e=vx(e),new e((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=n=>new t(n),t})();function vx(t){var n;return(n=t??jr.Promise)!==null&&n!==void 0?n:Promise}function ZA(t){return t&&Le(t.next)&&Le(t.error)&&Le(t.complete)}function JA(t){return t&&t instanceof Ms||ZA(t)&&cp(t)}function Wg(t){return Le(t?.lift)}function ze(t){return n=>{if(Wg(n))return n.lift(function(e){try{return t(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function He(t,n,e,r,i){return new Gg(t,n,e,r,i)}var Gg=class extends Ms{constructor(n,e,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function Ga(){return ze((t,n)=>{let e=null;t._refCount++;let r=He(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let i=t._connection,o=e;e=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()});t.subscribe(r),r.closed||(e=t.connect())})}var qa=class extends pe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Wg(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new qt;let e=this.getSubject();n.add(this.source.subscribe(He(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=qt.EMPTY)}return n}refCount(){return Ga()(this)}};var _x=Ha(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var qe=(()=>{class t extends pe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let r=new pp(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new _x}next(e){Ua(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(e)}})}error(e){Ua(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){Ua(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:r,isStopped:i,observers:o}=this;return r||i?Bg:(this.currentObservers=null,o.push(e),new qt(()=>{this.currentObservers=null,Ds(o,e)}))}_checkFinalizedStatuses(e){let{hasError:r,thrownError:i,isStopped:o}=this;r?e.error(i):o&&e.complete()}asObservable(){let e=new pe;return e.source=this,e}}return t.create=(n,e)=>new pp(n,e),t})(),pp=class extends qe{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.next)===null||r===void 0||r.call(e,n)}error(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.error)===null||r===void 0||r.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,r;return(r=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&r!==void 0?r:Bg}};var an=class extends qe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:r}=this;if(n)throw e;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}};var Rc={now(){return(Rc.delegate||Date).now()},delegate:void 0};var oo=class extends qe{constructor(n=1/0,e=1/0,r=Rc){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;e||(r.push(n),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;s0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(n,e,r):(n.flush(this),0)}};var mp=class extends Ya{};var Qg=new mp(hp);var Pt=new pe(t=>t.complete());function gp(t){return t&&Le(t.schedule)}function Kg(t){return t[t.length-1]}function yp(t){return Le(Kg(t))?t.pop():void 0}function vi(t){return gp(Kg(t))?t.pop():void 0}function Cx(t,n){return typeof Kg(t)=="number"?t.pop():n}var Ac=function(){return Ac=Object.assign||function(n){for(var e,r=1,i=arguments.length;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Os(t){return this instanceof Os?(this.v=t,this):new Os(t)}function Ex(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(t,n||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(y){return Promise.resolve(y).then(f,u)}}function a(f,y){r[f]&&(i[f]=function(b){return new Promise(function(v,w){o.push([f,b,v,w])>1||l(f,b)})},y&&(i[f]=y(i[f])))}function l(f,y){try{c(r[f](y))}catch(b){p(o[0][3],b)}}function c(f){f.value instanceof Os?Promise.resolve(f.value.v).then(d,u):p(o[0][2],f)}function d(f){l("next",f)}function u(f){l("throw",f)}function p(f,y){f(y),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Sx(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof xx=="function"?xx(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var bp=t=>t&&typeof t.length=="number"&&typeof t!="function";function vp(t){return Le(t?.then)}function _p(t){return Le(t[Wa])}function wp(t){return Symbol.asyncIterator&&Le(t?.[Symbol.asyncIterator])}function Cp(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function XA(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var xp=XA();function Tp(t){return Le(t?.[xp])}function Ep(t){return Ex(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:r,done:i}=yield Os(e.read());if(i)return yield Os(void 0);yield yield Os(r)}}finally{e.releaseLock()}})}function Sp(t){return Le(t?.getReader)}function At(t){if(t instanceof pe)return t;if(t!=null){if(_p(t))return eN(t);if(bp(t))return tN(t);if(vp(t))return nN(t);if(wp(t))return Ix(t);if(Tp(t))return rN(t);if(Sp(t))return iN(t)}throw Cp(t)}function eN(t){return new pe(n=>{let e=t[Wa]();if(Le(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function tN(t){return new pe(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,dp)})}function rN(t){return new pe(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function Ix(t){return new pe(n=>{oN(t,n).catch(e=>n.error(e))})}function iN(t){return Ix(Ep(t))}function oN(t,n){var e,r,i,o;return Tx(this,void 0,void 0,function*(){try{for(e=Sx(t);r=yield e.next(),!r.done;){let s=r.value;if(n.next(s),n.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=e.return)&&(yield o.call(e))}finally{if(i)throw i.error}}n.complete()})}function Zn(t,n,e,r=0,i=!1){let o=n.schedule(function(){e(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function Rs(t,n=0){return ze((e,r)=>{e.subscribe(He(r,i=>Zn(r,t,()=>r.next(i),n),()=>Zn(r,t,()=>r.complete(),n),i=>Zn(r,t,()=>r.error(i),n)))})}function Ip(t,n=0){return ze((e,r)=>{r.add(t.schedule(()=>e.subscribe(r),n))})}function Dx(t,n){return At(t).pipe(Ip(n),Rs(n))}function kx(t,n){return At(t).pipe(Ip(n),Rs(n))}function Mx(t,n){return new pe(e=>{let r=0;return n.schedule(function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())})})}function Ox(t,n){return new pe(e=>{let r;return Zn(e,n,()=>{r=t[xp](),Zn(e,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){e.error(s);return}o?e.complete():e.next(i)},0,!0)}),()=>Le(r?.return)&&r.return()})}function Dp(t,n){if(!t)throw new Error("Iterable cannot be null");return new pe(e=>{Zn(e,n,()=>{let r=t[Symbol.asyncIterator]();Zn(e,n,()=>{r.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function Rx(t,n){return Dp(Ep(t),n)}function Px(t,n){if(t!=null){if(_p(t))return Dx(t,n);if(bp(t))return Mx(t,n);if(vp(t))return kx(t,n);if(wp(t))return Dp(t,n);if(Tp(t))return Ox(t,n);if(Sp(t))return Rx(t,n)}throw Cp(t)}function ft(t,n){return n?Px(t,n):At(t)}function ve(...t){let n=vi(t);return ft(t,n)}function _i(t,n){let e=Le(t)?t:()=>t,r=i=>i.error(e());return new pe(n?i=>n.schedule(r,0,i):r)}var Bo=class t{constructor(n,e,r){this.kind=n,this.value=e,this.error=r,this.hasValue=n==="N"}observe(n){return sN(this,n)}do(n,e,r){let{kind:i,value:o,error:s}=this;return i==="N"?n?.(o):i==="E"?e?.(s):r?.()}accept(n,e,r){var i;return Le((i=n)===null||i===void 0?void 0:i.next)?this.observe(n):this.do(n,e,r)}toObservable(){let{kind:n,value:e,error:r}=this,i=n==="N"?ve(e):n==="E"?_i(()=>r):n==="C"?Pt:0;if(!i)throw new TypeError(`Unexpected notification kind ${n}`);return i}static createNext(n){return new t("N",n)}static createError(n){return new t("E",void 0,n)}static createComplete(){return t.completeNotification}};Bo.completeNotification=new Bo("C");function sN(t,n){var e,r,i;let{kind:o,value:s,error:a}=t;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(e=n.next)===null||e===void 0||e.call(n,s):o==="E"?(r=n.error)===null||r===void 0||r.call(n,a):(i=n.complete)===null||i===void 0||i.call(n)}function Yg(t){return!!t&&(t instanceof pe||Le(t.lift)&&Le(t.subscribe))}var zr=Ha(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Cr(t,n){let e=typeof n=="object";return new Promise((r,i)=>{let o=!1,s;t.subscribe({next:a=>{s=a,o=!0},error:i,complete:()=>{o?r(s):e?r(n.defaultValue):i(new zr)}})})}function Ax(t){return t instanceof Date&&!isNaN(t)}function be(t,n){return ze((e,r)=>{let i=0;e.subscribe(He(r,o=>{r.next(t.call(n,o,i++))}))})}var{isArray:aN}=Array;function lN(t,n){return aN(n)?t(...n):t(n)}function kp(t){return be(n=>lN(t,n))}var{isArray:cN}=Array,{getPrototypeOf:dN,prototype:uN,keys:pN}=Object;function Mp(t){if(t.length===1){let n=t[0];if(cN(n))return{args:n,keys:null};if(fN(n)){let e=pN(n);return{args:e.map(r=>n[r]),keys:e}}}return{args:t,keys:null}}function fN(t){return t&&typeof t=="object"&&dN(t)===uN}function Op(t,n){return t.reduce((e,r,i)=>(e[r]=n[i],e),{})}function Rp(...t){let n=vi(t),e=yp(t),{args:r,keys:i}=Mp(t);if(r.length===0)return ft([],n);let o=new pe(hN(r,n,i?s=>Op(i,s):Hn));return e?o.pipe(kp(e)):o}function hN(t,n,e=Hn){return r=>{Nx(n,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let l=0;l{let c=ft(t[l],n),d=!1;c.subscribe(He(r,u=>{o[l]=u,d||(d=!0,a--),a||r.next(e(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Nx(t,n,e){t?Zn(e,t,n):n()}function Fx(t,n,e,r,i,o,s,a){let l=[],c=0,d=0,u=!1,p=()=>{u&&!l.length&&!c&&n.complete()},f=b=>c{o&&n.next(b),c++;let v=!1;At(e(b,d++)).subscribe(He(n,w=>{i?.(w),o?f(w):n.next(w)},()=>{v=!0},void 0,()=>{if(v)try{for(c--;l.length&&cy(w)):y(w)}p()}catch(w){n.error(w)}}))};return t.subscribe(He(n,f,()=>{u=!0,p()})),()=>{a?.()}}function Nt(t,n,e=1/0){return Le(n)?Nt((r,i)=>be((o,s)=>n(r,o,i,s))(At(t(r,i))),e):(typeof n=="number"&&(e=n),ze((r,i)=>Fx(r,i,t,e)))}function Pp(t=1/0){return Nt(Hn,t)}function Lx(){return Pp(1)}function wi(...t){return Lx()(ft(t,vi(t)))}function Nc(t){return new pe(n=>{At(t()).subscribe(n)})}function Zg(...t){let n=yp(t),{args:e,keys:r}=Mp(t),i=new pe(o=>{let{length:s}=e;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let d=0;d{u||(u=!0,c--),a[d]=p},()=>l--,void 0,()=>{(!l||!u)&&(c||o.next(r?Op(r,a):a),o.complete())}))}});return n?i.pipe(kp(n)):i}function Jg(t=0,n,e=wx){let r=-1;return n!=null&&(gp(n)?e=n:r=n),new pe(i=>{let o=Ax(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Xg(...t){let n=vi(t),e=Cx(t,1/0),r=t;return r.length?r.length===1?At(r[0]):Pp(e)(ft(r,n)):Pt}function nn(t,n){return ze((e,r)=>{let i=0;e.subscribe(He(r,o=>t.call(n,o,i++)&&r.next(o)))})}function dr(t){return ze((n,e)=>{let r=null,i=!1,o;r=n.subscribe(He(e,void 0,void 0,s=>{o=At(t(s,dr(t)(n))),r?(r.unsubscribe(),r=null,o.subscribe(e)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(e))})}function Bx(t,n,e,r,i){return(o,s)=>{let a=e,l=n,c=0;o.subscribe(He(s,d=>{let u=c++;l=a?t(l,d,u):(a=!0,d),r&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}function Vo(t,n){return Le(n)?Nt(t,n,1):Nt(t,1)}function e0(t,n=qg){return ze((e,r)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,r.next(c)}};function l(){let c=s+t,d=n.now();if(d{o=c,s=n.now(),i||(i=n.schedule(l,t),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function jo(t){return ze((n,e)=>{let r=!1;n.subscribe(He(e,i=>{r=!0,e.next(i)},()=>{r||e.next(t),e.complete()}))})}function so(t){return t<=0?()=>Pt:ze((n,e)=>{let r=0;n.subscribe(He(e,i=>{++r<=t&&(e.next(i),t<=r&&e.complete())}))})}function Fc(t,n=Hn){return t=t??mN,ze((e,r)=>{let i,o=!0;e.subscribe(He(r,s=>{let a=n(s);(o||!t(i,a))&&(o=!1,i=a,r.next(s))}))})}function mN(t,n){return t===n}function Ap(t=gN){return ze((n,e)=>{let r=!1;n.subscribe(He(e,i=>{r=!0,e.next(i)},()=>r?e.complete():e.error(t())))})}function gN(){return new zr}function Ci(t){return ze((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function ao(t,n){let e=arguments.length>=2;return r=>r.pipe(t?nn((i,o)=>t(i,o,r)):Hn,so(1),e?jo(n):Ap(()=>new zr))}function Za(t){return t<=0?()=>Pt:ze((n,e)=>{let r=[];n.subscribe(He(e,i=>{r.push(i),t{for(let i of r)e.next(i);e.complete()},void 0,()=>{r=null}))})}function t0(t,n){let e=arguments.length>=2;return r=>r.pipe(t?nn((i,o)=>t(i,o,r)):Hn,Za(1),e?jo(n):Ap(()=>new zr))}function n0(){return ze((t,n)=>{t.subscribe(He(n,e=>{n.next(Bo.createNext(e))},()=>{n.next(Bo.createComplete()),n.complete()},e=>{n.next(Bo.createError(e)),n.complete()}))})}function r0(t,n){return ze(Bx(t,n,arguments.length>=2,!0))}function xi(t={}){let{connector:n=()=>new qe,resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,l,c=0,d=!1,u=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=l=void 0,d=u=!1},y=()=>{let b=s;f(),b?.unsubscribe()};return ze((b,v)=>{c++,!u&&!d&&p();let w=l=l??n();v.add(()=>{c--,c===0&&!u&&!d&&(a=i0(y,i))}),w.subscribe(v),!s&&c>0&&(s=new io({next:D=>w.next(D),error:D=>{u=!0,p(),a=i0(f,e,D),w.error(D)},complete:()=>{d=!0,p(),a=i0(f,r),w.complete()}}),At(b).subscribe(s))})(o)}}function i0(t,n,...e){if(n===!0){t();return}if(n===!1)return;let r=new io({next:()=>{r.unsubscribe(),t()}});return At(n(...e)).subscribe(r)}function Ps(t,n,e){let r,i=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:n=1/0,refCount:i=!1,scheduler:e}=t:r=t??1/0,xi({connector:()=>new oo(r,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Lc(...t){let n=vi(t);return ze((e,r)=>{(n?wi(t,e,n):wi(t,e)).subscribe(r)})}function bn(t,n){return ze((e,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();e.subscribe(He(r,l=>{i?.unsubscribe();let c=0,d=o++;At(t(l,d)).subscribe(i=He(r,u=>r.next(n?n(l,u,d,c++):u),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Np(t){return ze((n,e)=>{At(t).subscribe(He(e,()=>e.complete(),Oc)),!e.closed&&n.subscribe(e)})}function St(t,n,e){let r=Le(t)||n||e?{next:t,error:n,complete:e}:t;return r?ze((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(He(o,l=>{var c;(c=r.next)===null||c===void 0||c.call(r,l),o.next(l)},()=>{var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),o.complete()},l=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,l),o.error(l)},()=>{var l,c;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Hn}function Vx(t){let n=Re(null);try{return t()}finally{Re(n)}}var jx=A(_({},Es),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function zx(t){if(t.dirty=!1,t.version>0&&!Va(t))return;t.version++;let n=Ss(t);try{t.cleanup(),t.fn()}finally{Ba(t,n)}}var Vp="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",U=class extends Error{code;constructor(n,e){super($o(n,e)),this.code=n}};function yN(t){return`NG0${Math.abs(t)}`}function $o(t,n){return`${yN(t)}${n?": "+n:""}`}function yt(t){for(let n in t)if(t[n]===yt)return n;throw Error("")}function Ux(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function co(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(co).join(", ")}]`;if(t==null)return""+t;let n=t.overriddenName||t.name;if(n)return`${n}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r>=0?e.slice(0,r):e}function jp(t,n){return t?n?`${t} ${n}`:t:n||""}var bN=yt({__forward_ref__:yt});function $t(t){return t.__forward_ref__=$t,t.toString=function(){return co(this())},t}function ln(t){return m0(t)?t():t}function m0(t){return typeof t=="function"&&t.hasOwnProperty(bN)&&t.__forward_ref__===$t}function N(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ie(t){return{providers:t.providers||[],imports:t.imports||[]}}function Hc(t){return vN(t,zp)}function g0(t){return Hc(t)!==null}function vN(t,n){return t.hasOwnProperty(n)&&t[n]||null}function _N(t){let n=t?.[zp]??null;return n||null}function s0(t){return t&&t.hasOwnProperty(Lp)?t[Lp]:null}var zp=yt({\u0275prov:yt}),Lp=yt({\u0275inj:yt}),H=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,e){this._desc=n,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=N({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function y0(t){return t&&!!t.\u0275providers}var b0=yt({\u0275cmp:yt}),v0=yt({\u0275dir:yt}),_0=yt({\u0275pipe:yt}),w0=yt({\u0275mod:yt}),Vc=yt({\u0275fac:yt}),Bs=yt({__NG_ELEMENT_ID__:yt}),Hx=yt({__NG_ENV_ID__:yt});function Vs(t){return typeof t=="string"?t:t==null?"":String(t)}function Wx(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Vs(t)}var Gx=yt({ngErrorCode:yt}),wN=yt({ngErrorMessage:yt}),CN=yt({ngTokenPath:yt});function C0(t,n){return qx("",-200,n)}function Hp(t,n){throw new U(-201,!1)}function qx(t,n,e){let r=new U(n,t);return r[Gx]=n,r[wN]=t,e&&(r[CN]=e),r}function xN(t){return t[Gx]}var a0;function Qx(){return a0}function $n(t){let n=a0;return a0=t,n}function x0(t,n,e){let r=Hc(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(e&8)return null;if(n!==void 0)return n;Hp(t,"Injector")}var TN={},As=TN,EN="__NG_DI_FLAG__",l0=class{injector;constructor(n){this.injector=n}retrieve(n,e){let r=Ns(e)||0;try{return this.injector.get(n,r&8?null:As,r)}catch(i){if(Fa(i))return i;throw i}}};function SN(t,n=0){let e=Ju();if(e===void 0)throw new U(-203,!1);if(e===null)return x0(t,void 0,n);{let r=IN(n),i=e.retrieve(t,r);if(Fa(i)){if(r.optional)return null;throw i}return i}}function me(t,n=0){return(Qx()||SN)(ln(t),n)}function x(t,n){return me(t,Ns(n))}function Ns(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function IN(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function c0(t){let n=[];for(let e=0;eArray.isArray(e)?$p(e,n):n(e))}function T0(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function $c(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Zx(t,n){let e=[];for(let r=0;rn;){let o=i-2;t[i]=t[o],i--}t[n]=e,t[n+1]=r}}function Uc(t,n,e){let r=Xa(t,n);return r>=0?t[r|1]=e:(r=~r,Jx(t,r,n,e)),r}function Up(t,n){let e=Xa(t,n);if(e>=0)return t[e|1]}function Xa(t,n){return kN(t,n,1)}function kN(t,n,e){let r=0,i=t.length>>e;for(;i!==r;){let o=r+(i-r>>1),s=t[o<n?i=o:r=o+1}return~(i<{e.push(s)};return $p(n,s=>{let a=s;Bp(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&nT(i,o),e}function nT(t,n){for(let e=0;e{n(o,r)})}}function Bp(t,n,e,r){if(t=ln(t),!t)return!1;let i=null,o=s0(t),s=!o&&Uo(t);if(!o&&!s){let l=t.ngModule;if(o=s0(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)Bp(c,n,e,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;$p(o.imports,d=>{Bp(d,n,e,r)&&(c||=[],c.push(d))}),c!==void 0&&nT(c,n)}if(!a){let c=zo(i)||(()=>new i);n({provide:i,useFactory:c,deps:Bn},i),n({provide:S0,useValue:i,multi:!0},i),n({provide:uo,useValue:()=>me(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let c=t;k0(l,d=>{n(d,c)})}}else return!1;return i!==t&&t.providers!==void 0}function k0(t,n){for(let e of t)y0(e)&&(e=e.\u0275providers),Array.isArray(e)?k0(e,n):n(e)}var MN=yt({provide:String,useValue:yt});function rT(t){return t!==null&&typeof t=="object"&&MN in t}function ON(t){return!!(t&&t.useExisting)}function RN(t){return!!(t&&t.useFactory)}function Fs(t){return typeof t=="function"}function iT(t){return!!t.useClass}var Wc=new H(""),Fp={},$x={},o0;function Gc(){return o0===void 0&&(o0=new jc),o0}var Jt=class{},Ls=class extends Jt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,r,i){super(),this.parent=e,this.source=r,this.scopes=i,u0(n,s=>this.processProvider(s)),this.records.set(E0,Ja(void 0,this)),i.has("environment")&&this.records.set(Jt,Ja(void 0,this));let o=this.records.get(Wc);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(S0,Bn,{self:!0}))}retrieve(n,e){let r=Ns(e)||0;try{return this.get(n,As,r)}catch(i){if(Fa(i))return i;throw i}}destroy(){Bc(this),this._destroyed=!0;let n=Re(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Re(n)}}onDestroy(n){return Bc(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Bc(this);let e=bi(this),r=$n(void 0),i;try{return n()}finally{bi(e),$n(r)}}get(n,e=As,r){if(Bc(this),n.hasOwnProperty(Hx))return n[Hx](this);let i=Ns(r),o,s=bi(this),a=$n(void 0);try{if(!(i&4)){let c=this.records.get(n);if(c===void 0){let d=LN(n)&&Hc(n);d&&this.injectableDefInScope(d)?c=Ja(d0(n),Fp):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,i)}let l=i&2?Gc():this.parent;return e=i&8&&e===As?null:e,l.get(n,e)}catch(l){let c=xN(l);throw c===-200||c===-201?new U(c,null):l}finally{$n(a),bi(s)}}resolveInjectorInitializers(){let n=Re(null),e=bi(this),r=$n(void 0),i;try{let o=this.get(uo,Bn,{self:!0});for(let s of o)s()}finally{bi(e),$n(r),Re(n)}}toString(){let n=[],e=this.records;for(let r of e.keys())n.push(co(r));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=ln(n);let e=Fs(n)?n:ln(n&&n.provide),r=AN(n);if(!Fs(n)&&n.multi===!0){let i=this.records.get(e);i||(i=Ja(void 0,Fp,!0),i.factory=()=>c0(i.multi),this.records.set(e,i)),e=n,i.multi.push(n)}this.records.set(e,r)}hydrate(n,e,r){let i=Re(null);try{if(e.value===$x)throw C0(co(n));return e.value===Fp&&(e.value=$x,e.value=e.factory(void 0,r)),typeof e.value=="object"&&e.value&&FN(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Re(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=ln(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function d0(t){let n=Hc(t),e=n!==null?n.factory:zo(t);if(e!==null)return e;if(t instanceof H)throw new U(204,!1);if(t instanceof Function)return PN(t);throw new U(204,!1)}function PN(t){if(t.length>0)throw new U(204,!1);let e=_N(t);return e!==null?()=>e.factory(t):()=>new t}function AN(t){if(rT(t))return Ja(void 0,t.useValue);{let n=M0(t);return Ja(n,Fp)}}function M0(t,n,e){let r;if(Fs(t)){let i=ln(t);return zo(i)||d0(i)}else if(rT(t))r=()=>ln(t.useValue);else if(RN(t))r=()=>t.useFactory(...c0(t.deps||[]));else if(ON(t))r=(i,o)=>me(ln(t.useExisting),o!==void 0&&o&8?8:void 0);else{let i=ln(t&&(t.useClass||t.provide));if(NN(t))r=()=>new i(...c0(t.deps));else return zo(i)||d0(i)}return r}function Bc(t){if(t.destroyed)throw new U(205,!1)}function Ja(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function NN(t){return!!t.deps}function FN(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function LN(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function u0(t,n){for(let e of t)Array.isArray(e)?u0(e,n):e&&y0(e)?u0(e.\u0275providers,n):n(e)}function In(t,n){let e;t instanceof Ls?(Bc(t),e=t):e=new l0(t);let r,i=bi(e),o=$n(void 0);try{return n()}finally{bi(i),$n(o)}}function oT(){return Qx()!==void 0||Ju()!=null}var $r=0,Ce=1,Se=2,cn=3,Er=4,Un=5,js=6,el=7,Xt=8,po=9,Ti=10,It=11,tl=12,O0=13,zs=14,Wn=15,Wo=16,Hs=17,Ei=18,qc=19,R0=20,lo=21,Gp=22,fo=23,pr=24,$s=25,Us=26,jt=27,sT=1,P0=6,Go=7,Qc=8,Ws=9,Qt=10;function Si(t){return Array.isArray(t)&&typeof t[sT]=="object"}function Ur(t){return Array.isArray(t)&&t[sT]===!0}function A0(t){return(t.flags&4)!==0}function qo(t){return t.componentOffset>-1}function nl(t){return(t.flags&1)===1}function Wr(t){return!!t.template}function rl(t){return(t[Se]&512)!==0}function Gs(t){return(t[Se]&256)===256}var N0="svg",aT="math";function Sr(t){for(;Array.isArray(t);)t=t[$r];return t}function F0(t,n){return Sr(n[t])}function Gr(t,n){return Sr(n[t.index])}function Kc(t,n){return t.data[n]}function L0(t,n){return t[n]}function B0(t,n,e,r){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=r}function Ir(t,n){let e=n[t];return Si(e)?e:e[$r]}function lT(t){return(t[Se]&4)===4}function qp(t){return(t[Se]&128)===128}function cT(t){return Ur(t[cn])}function Dr(t,n){return n==null?null:t[n]}function V0(t){t[Hs]=0}function Qp(t){t[Se]&1024||(t[Se]|=1024,qp(t)&&Qo(t))}function dT(t,n){for(;t>0;)n=n[zs],t--;return n}function il(t){return!!(t[Se]&9216||t[pr]?.dirty)}function Kp(t){t[Ti].changeDetectionScheduler?.notify(8),t[Se]&64&&(t[Se]|=1024),il(t)&&Qo(t)}function Qo(t){t[Ti].changeDetectionScheduler?.notify(0);let n=Ho(t);for(;n!==null&&!(n[Se]&8192||(n[Se]|=8192,!qp(n)));)n=Ho(n)}function j0(t,n){if(Gs(t))throw new U(911,!1);t[lo]===null&&(t[lo]=[]),t[lo].push(n)}function uT(t,n){if(t[lo]===null)return;let e=t[lo].indexOf(n);e!==-1&&t[lo].splice(e,1)}function Ho(t){let n=t[cn];return Ur(n)?n[cn]:n}function z0(t){return t[el]??=[]}function H0(t){return t.cleanup??=[]}function pT(t,n,e,r){let i=z0(n);i.push(e),t.firstCreatePass&&H0(t).push(r,i.length-1)}var Ge={lFrame:TT(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var p0=!1;function fT(){return Ge.lFrame.elementDepthCount}function hT(){Ge.lFrame.elementDepthCount++}function $0(){Ge.lFrame.elementDepthCount--}function Yp(){return Ge.bindingsEnabled}function U0(){return Ge.skipHydrationRootTNode!==null}function W0(t){return Ge.skipHydrationRootTNode===t}function G0(){Ge.skipHydrationRootTNode=null}function _e(){return Ge.lFrame.lView}function zt(){return Ge.lFrame.tView}function S(t){return Ge.lFrame.contextLView=t,t[Xt]}function I(t){return Ge.lFrame.contextLView=null,t}function vn(){let t=q0();for(;t!==null&&t.type===64;)t=t.parent;return t}function q0(){return Ge.lFrame.currentTNode}function mT(){let t=Ge.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function ol(t,n){let e=Ge.lFrame;e.currentTNode=t,e.isParent=n}function Q0(){return Ge.lFrame.isParent}function K0(){Ge.lFrame.isParent=!1}function gT(){return Ge.lFrame.contextLView}function Y0(){return p0}function sl(t){let n=p0;return p0=t,n}function Ii(){let t=Ge.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function yT(){return Ge.lFrame.bindingIndex}function bT(t){return Ge.lFrame.bindingIndex=t}function Ko(){return Ge.lFrame.bindingIndex++}function Zp(t){let n=Ge.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function vT(){return Ge.lFrame.inI18n}function _T(t,n){let e=Ge.lFrame;e.bindingIndex=e.bindingRootIndex=t,Jp(n)}function wT(){return Ge.lFrame.currentDirectiveIndex}function Jp(t){Ge.lFrame.currentDirectiveIndex=t}function CT(t){let n=Ge.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function Xp(){return Ge.lFrame.currentQueryIndex}function Yc(t){Ge.lFrame.currentQueryIndex=t}function BN(t){let n=t[Ce];return n.type===2?n.declTNode:n.type===1?t[Un]:null}function Z0(t,n,e){if(e&4){let i=n,o=t;for(;i=i.parent,i===null&&!(e&1);)if(i=BN(o),i===null||(o=o[zs],i.type&10))break;if(i===null)return!1;n=i,t=o}let r=Ge.lFrame=xT();return r.currentTNode=n,r.lView=t,!0}function ef(t){let n=xT(),e=t[Ce];Ge.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function xT(){let t=Ge.lFrame,n=t===null?null:t.child;return n===null?TT(t):n}function TT(t){let n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n}function ET(){let t=Ge.lFrame;return Ge.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var J0=ET;function tf(){let t=ET();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ST(t){return(Ge.lFrame.contextLView=dT(t,Ge.lFrame.contextLView))[Xt]}function Di(){return Ge.lFrame.selectedIndex}function Yo(t){Ge.lFrame.selectedIndex=t}function Zc(){let t=Ge.lFrame;return Kc(t.tView,t.selectedIndex)}function G(){Ge.lFrame.currentNamespace=N0}function X0(){return Ge.lFrame.currentNamespace}var IT=!0;function nf(){return IT}function Jc(t){IT=t}function f0(t,n=null,e=null,r){let i=ey(t,n,e,r);return i.resolveInjectorInitializers(),i}function ey(t,n=null,e=null,r,i=new Set){let o=[e||Bn,tT(t)];return r=r||(typeof t=="object"?void 0:co(t)),new Ls(o,n||Gc(),r||null,i)}var Vt=class t{static THROW_IF_NOT_FOUND=As;static NULL=new jc;static create(n,e){if(Array.isArray(n))return f0({name:""},e,n,"");{let r=n.name??"";return f0({name:r},n.parent,n.providers,r)}}static \u0275prov=N({token:t,providedIn:"any",factory:()=>me(E0)});static __NG_ELEMENT_ID__=-1},bt=new H(""),kr=(()=>{class t{static __NG_ELEMENT_ID__=VN;static __NG_ENV_ID__=e=>e}return t})(),zc=class extends kr{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Gs(this._lView)}onDestroy(n){let e=this._lView;return j0(e,n),()=>uT(e,n)}};function VN(){return new zc(_e())}var xr=class{_console=console;handleError(n){this._console.error("ERROR",n)}},Jn=new H("",{providedIn:"root",factory:()=>{let t=x(Jt),n;return e=>{t.destroyed&&!n?setTimeout(()=>{throw e}):(n??=t.get(xr),n.handleError(e))}}}),DT={provide:uo,useValue:()=>{x(xr)},multi:!0},jN=new H("",{providedIn:"root",factory:()=>{let t=x(bt).defaultView;if(!t)return;let n=x(Jn),e=o=>{n(o.reason),o.preventDefault()},r=o=>{o.error?n(o.error):n(new Error(o.message,{cause:o})),o.preventDefault()},i=()=>{t.addEventListener("unhandledrejection",e),t.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(i):i(),x(kr).onDestroy(()=>{t.removeEventListener("error",r),t.removeEventListener("unhandledrejection",e)})}});function ty(){return Tr([eT(()=>{x(jN)})])}function ny(t){return typeof t=="function"&&t[yn]!==void 0}function ge(t,n){let[e,r,i]=Fg(t,n?.equal),o=e,s=o[yn];return o.set=r,o.update=i,o.asReadonly=ry.bind(o),o}function ry(){let t=this[yn];if(t.readonlyFn===void 0){let n=()=>this();n[yn]=t,t.readonlyFn=n}return t.readonlyFn}function iy(t){return ny(t)&&typeof t.set=="function"}var al=(()=>{class t{view;node;constructor(e,r){this.view=e,this.node=r}static __NG_ELEMENT_ID__=zN}return t})();function zN(){return new al(_e(),vn())}var ur=class{},Xc=new H("",{providedIn:"root",factory:()=>!1});var oy=new H(""),sy=new H(""),ki=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new an(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new pe(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})(),ed=(()=>{class t{internalPendingTasks=x(ki);scheduler=x(ur);errorHandler=x(Jn);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let r=this.add();e().catch(this.errorHandler).finally(r)}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})();function qs(...t){}var td=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:()=>new h0})}return t})(),h0=class{dirtyEffectCount=0;queues=new Map;add(n){this.enqueue(n),this.schedule(n)}schedule(n){n.dirty&&this.dirtyEffectCount++}remove(n){let e=n.zone,r=this.queues.get(e);r.has(n)&&(r.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let r=this.queues.get(e);r.has(n)||r.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,r]of this.queues)e===null?n||=this.flushQueue(r):n||=e.run(()=>this.flushQueue(r));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let r of n)r.dirty&&(this.dirtyEffectCount--,e=!0,r.run());return e}};function dd(t){return{toString:t}.toString()}function QN(t){return typeof t=="function"}var cf=class{previousValue;currentValue;firstChange;constructor(n,e,r){this.previousValue=n,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}};function lE(t,n,e,r){n!==null?n.applyValueToInputSignal(n,r):t[e]=r}var Kr=(()=>{let t=()=>cE;return t.ngInherit=!0,t})();function cE(t){return t.type.prototype.ngOnChanges&&(t.setInput=YN),KN}function KN(){let t=uE(this),n=t?.current;if(n){let e=t.previous;if(e===Hr)t.previous=n;else for(let r in n)e[r]=n[r];t.current=null,this.ngOnChanges(n)}}function YN(t,n,e,r,i){let o=this.declaredInputs[r],s=uE(t)||ZN(t,{previous:Hr,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new cf(c&&c.currentValue,e,l===Hr),lE(t,n,i,e)}var dE="__ngSimpleChanges__";function uE(t){return t[dE]||null}function ZN(t,n){return t[dE]=n}var kT=[];var _t=function(t,n=null,e){for(let r=0;r=r)break}else n[l]<0&&(t[Hs]+=65536),(a>14>16&&(t[Se]&3)===n&&(t[Se]+=16384,MT(a,o)):MT(a,o)}var cl=-1,Ks=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,r,i){this.factory=n,this.name=i,this.canSeeViewProviders=e,this.injectImpl=r}};function eF(t){return(t.flags&8)!==0}function tF(t){return(t.flags&16)!==0}function nF(t,n,e){let r=0;for(;rn){s=o-1;break}}}for(;o>16}function uf(t,n){let e=oF(t),r=n;for(;e>0;)r=r[zs],e--;return r}var by=!0;function pf(t){let n=by;return by=t,n}var sF=256,mE=sF-1,gE=5,aF=0,Mi={};function lF(t,n,e){let r;typeof e=="string"?r=e.charCodeAt(0)||0:e.hasOwnProperty(Bs)&&(r=e[Bs]),r==null&&(r=e[Bs]=aF++);let i=r&mE,o=1<>gE)]|=o}function ff(t,n){let e=yE(t,n);if(e!==-1)return e;let r=n[Ce];r.firstCreatePass&&(t.injectorIndex=n.length,ly(r.data,t),ly(n,null),ly(r.blueprint,null));let i=Ky(t,n),o=t.injectorIndex;if(hE(i)){let s=df(i),a=uf(i,n),l=a[Ce].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=i,o}function ly(t,n){t.push(0,0,0,0,0,0,0,0,n)}function yE(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function Ky(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,r=null,i=n;for(;i!==null;){if(r=CE(i),r===null)return cl;if(e++,i=i[zs],r.injectorIndex!==-1)return r.injectorIndex|e<<16}return cl}function vy(t,n,e){lF(t,n,e)}function bE(t,n,e){if(e&8||t!==void 0)return t;Hp(n,"NodeInjector")}function vE(t,n,e,r){if(e&8&&r===void 0&&(r=null),(e&3)===0){let i=t[po],o=$n(void 0);try{return i?i.get(n,r,e&8):x0(n,r,e&8)}finally{$n(o)}}return bE(r,n,e)}function _E(t,n,e,r=0,i){if(t!==null){if(n[Se]&2048&&!(r&2)){let s=pF(t,n,e,r,Mi);if(s!==Mi)return s}let o=wE(t,n,e,r,Mi);if(o!==Mi)return o}return vE(n,e,r,i)}function wE(t,n,e,r,i){let o=dF(e);if(typeof o=="function"){if(!Z0(n,t,r))return r&1?bE(i,e,r):vE(n,e,r,i);try{let s;if(s=o(r),s==null&&!(r&8))Hp(e);else return s}finally{J0()}}else if(typeof o=="number"){let s=null,a=yE(t,n),l=cl,c=r&1?n[Wn][Un]:null;for((a===-1||r&4)&&(l=a===-1?Ky(t,n):n[a+8],l===cl||!PT(r,!1)?a=-1:(s=n[Ce],a=df(l),n=uf(l,n)));a!==-1;){let d=n[Ce];if(RT(o,a,d.data)){let u=cF(a,n,e,s,r,c);if(u!==Mi)return u}l=n[a+8],l!==cl&&PT(r,n[Ce].data[a+8]===c)&&RT(o,a,n)?(s=d,a=df(l),n=uf(l,n)):a=-1}}return i}function cF(t,n,e,r,i,o){let s=n[Ce],a=s.data[t+8],l=r==null?qo(a)&&by:r!=s&&(a.type&3)!==0,c=i&1&&o===a,d=af(a,s,e,l,c);return d!==null?id(n,s,d,a,i):Mi}function af(t,n,e,r,i){let o=t.providerIndexes,s=n.data,a=o&1048575,l=t.directiveStart,c=t.directiveEnd,d=o>>20,u=r?a:a+d,p=i?a+d:c;for(let f=u;f=l&&y.type===e)return f}if(i){let f=s[l];if(f&&Wr(f)&&f.type===e)return l}return null}function id(t,n,e,r,i){let o=t[e],s=n.data;if(o instanceof Ks){let a=o;if(a.resolving){let f=Wx(s[e]);throw C0(f)}let l=pf(a.canSeeViewProviders);a.resolving=!0;let c=s[e].type||s[e],d,u=a.injectImpl?$n(a.injectImpl):null,p=Z0(t,r,0);try{o=t[e]=a.factory(void 0,i,s,t,r),n.firstCreatePass&&e>=r.directiveStart&&JN(e,s[e],n)}finally{u!==null&&$n(u),pf(l),a.resolving=!1,J0()}}return o}function dF(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(Bs)?t[Bs]:void 0;return typeof n=="number"?n>=0?n&mE:uF:n}function RT(t,n,e){let r=1<>gE)]&r)}function PT(t,n){return!(t&2)&&!(t&1&&n)}var Qs=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,r){return _E(this._tNode,this._lView,n,Ns(r),e)}};function uF(){return new Qs(vn(),_e())}function F(t){return dd(()=>{let n=t.prototype.constructor,e=n[Vc]||_y(n),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[Vc]||_y(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function _y(t){return m0(t)?()=>{let n=_y(ln(t));return n&&n()}:zo(t)}function pF(t,n,e,r,i){let o=t,s=n;for(;o!==null&&s!==null&&s[Se]&2048&&!rl(s);){let a=wE(o,s,e,r|2,Mi);if(a!==Mi)return a;let l=o.parent;if(!l){let c=s[R0];if(c){let d=c.get(e,Mi,r);if(d!==Mi)return d}l=CE(s),s=s[zs]}o=l}return i}function CE(t){let n=t[Ce],e=n.type;return e===2?n.declTNode:e===1?t[Un]:null}function fF(){return yl(vn(),_e())}function yl(t,n){return new un(Gr(t,n))}var un=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=fF}return t})();function xE(t){return t instanceof un?t.nativeElement:t}function hF(){return this._results[Symbol.iterator]()}var hf=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new qe}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let r=Yx(n);(this._changesDetected=!Kx(this._results,r,e))&&(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.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=hF};function TE(t){return(t.flags&128)===128}var Yy=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(Yy||{}),EE=new Map,mF=0;function gF(){return mF++}function yF(t){EE.set(t[qc],t)}function wy(t){EE.delete(t[qc])}var AT="__ngContext__";function ul(t,n){Si(n)?(t[AT]=n[qc],yF(n)):t[AT]=n}function SE(t){return DE(t[tl])}function IE(t){return DE(t[Er])}function DE(t){for(;t!==null&&!Ur(t);)t=t[Er];return t}var Cy;function Zy(t){Cy=t}function kE(){if(Cy!==void 0)return Cy;if(typeof document<"u")return document;throw new U(210,!1)}var Of=new H("",{providedIn:"root",factory:()=>bF}),bF="ng",Rf=new H(""),Yr=new H("",{providedIn:"platform",factory:()=>"unknown"});var Pf=new H(""),Af=new H("",{providedIn:"root",factory:()=>kE().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var vF="h",_F="b";var ME="r";var OE="di";var RE=!1,PE=new H("",{providedIn:"root",factory:()=>RE});var wF=(t,n,e,r)=>{};function CF(t,n,e,r){wF(t,n,e,r)}function Nf(t){return(t.flags&32)===32}var xF=()=>null;function AE(t,n,e=!1){return xF(t,n,e)}function NE(t,n){let e=t.contentQueries;if(e!==null){let r=Re(null);try{for(let i=0;i|^->||--!>|)/g,IF="\u200B$1\u200B";function DF(t){return t.replace(EF,n=>n.replace(SF,IF))}function kF(t,n){return t.createText(n)}function MF(t,n,e){t.setValue(n,e)}function OF(t,n){return t.createComment(DF(n))}function VE(t,n,e){return t.createElement(n,e)}function gf(t,n,e,r,i){t.insertBefore(n,e,r,i)}function jE(t,n,e){t.appendChild(n,e)}function NT(t,n,e,r,i){r!==null?gf(t,n,e,r,i):jE(t,n,e)}function zE(t,n,e,r){t.removeChild(null,n,e,r)}function RF(t,n,e){t.setAttribute(n,"style",e)}function PF(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function HE(t,n,e){let{mergedAttrs:r,classes:i,styles:o}=e;r!==null&&nF(t,n,r),i!==null&&PF(t,n,i),o!==null&&RF(t,n,o)}var Xy=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Xy||{});function Xs(t){let n=AF();return n?n.sanitize(Xy.URL,t)||"":FE(t,"URL")?ud(t):BE(Vs(t))}function AF(){let t=_e();return t&&t[Ti].sanitizer}function $E(t){return t instanceof Function?t():t}function NF(t,n,e){let r=t.length;for(;;){let i=t.indexOf(n,e);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=n.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}e=i+1}}var UE="ng-template";function FF(t,n,e,r){let i=0;if(r){for(;i-1){let o;for(;++io?u="":u=i[d+1].toLowerCase(),r&2&&c!==u){if(qr(r))return!1;s=!0}}}}return qr(r)||s}function qr(t){return(t&1)===0}function VF(t,n,e,r){if(n===null)return-1;let i=0;if(r||!e){let o=!1;for(;i-1)for(e++;e0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!qr(s)&&(n+=FT(o,i),i=""),r=s,o=o||!qr(r);e++}return i!==""&&(n+=FT(o,i)),n}function WF(t){return t.map(UF).join(",")}function GF(t){let n=[],e=[],r=1,i=2;for(;rnull),s=r;if(n&&typeof n=="object"){let l=n;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return n instanceof qt&&n.add(a),a}wrapInTimeout(n){return e=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},z=Ey;function YE(t){let n,e;function r(){t=qs;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),r()})),()=>r()}function BT(t){return queueMicrotask(()=>t()),()=>{t=qs}}var ob="isAngularZone",yf=ob+"_ID",ZF=0,$e=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new z(!1);onMicrotaskEmpty=new z(!1);onStable=new z(!1);onError=new z(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=KE}=n;if(typeof Zone>"u")throw new U(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,eL(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ob)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new U(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new U(909,!1)}run(n,e,r){return this._inner.run(n,e,r)}runTask(n,e,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,JF,qs,qs);try{return o.runTask(s,e,r)}finally{o.cancelTask(s)}}runGuarded(n,e,r){return this._inner.runGuarded(n,e,r)}runOutsideAngular(n){return this._outer.run(n)}},JF={};function sb(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function XF(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){YE(()=>{t.callbackScheduled=!1,Sy(t),t.isCheckStableRunning=!0,sb(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),Sy(t)}function eL(t){let n=()=>{XF(t)},e=ZF++;t._inner=t._inner.fork({name:"angular",properties:{[ob]:!0,[yf]:e,[yf+e]:!0},onInvokeTask:(r,i,o,s,a,l)=>{if(tL(l))return r.invokeTask(o,s,a,l);try{return VT(t),r.invokeTask(o,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),jT(t)}},onInvoke:(r,i,o,s,a,l,c)=>{try{return VT(t),r.invoke(o,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!nL(l)&&n(),jT(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Sy(t),sb(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Sy(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function VT(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function jT(t){t._nesting--,sb(t)}var bf=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new z;onMicrotaskEmpty=new z;onStable=new z;onError=new z;run(n,e,r){return n.apply(e,r)}runGuarded(n,e,r){return n.apply(e,r)}runOutsideAngular(n){return n()}runTask(n,e,r,i){return n.apply(e,r)}};function tL(t){return ZE(t,"__ignore_ng_zone__")}function nL(t){return ZE(t,"__scheduler_tick__")}function ZE(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var ab=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})(),JE=[0,1,2,3],XE=(()=>{class t{ngZone=x($e);scheduler=x(ur);errorHandler=x(xr,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){x(ea,{optional:!0})}execute(){let e=this.sequences.size>0;e&&_t(16),this.executing=!0;for(let r of JE)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[r];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&_t(17)}register(e){let{view:r}=e;r!==void 0?((r[$s]??=[]).push(e),Qo(r),r[Se]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,r){return r?r.run(Lf.AFTER_NEXT_RENDER,e):e()}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})(),vf=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,r,i,o,s=null){this.impl=n,this.hooks=e,this.view=r,this.once=i,this.snapshot=s,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let n=this.view?.[$s];n&&(this.view[$s]=n.filter(e=>e!==this))}};function pd(t,n){let e=n?.injector??x(Vt);return Zr("NgAfterNextRender"),iL(t,e,n,!0)}function rL(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function iL(t,n,e,r){let i=n.get(ab);i.impl??=n.get(XE);let o=n.get(ea,null,{optional:!0}),s=e?.manualCleanup!==!0?n.get(kr):null,a=n.get(al,null,{optional:!0}),l=new vf(i.impl,rL(t),a?.view,r,s,o?.snapshot(null));return i.impl.register(l),l}var eS=new H("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function tS(t,n,e){let r=t.get(eS);if(Array.isArray(n))for(let i of n)r.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);else r.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);r.scheduler&&r.scheduler(t)}function oL(t,n){let e=t.get(eS);if(n.detachedLeaveAnimationFns){for(let r of n.detachedLeaveAnimationFns)e.queue.delete(r);n.detachedLeaveAnimationFns=void 0}}function sL(t,n){for(let[e,r]of n)tS(t,r.animateFns)}function zT(t,n,e,r){let i=t?.[Us]?.enter;n!==null&&i&&i.has(e.index)&&sL(r,i)}function ll(t,n,e,r,i,o,s,a){if(i!=null){let l,c=!1;Ur(i)?l=i:Si(i)&&(c=!0,i=i[$r]);let d=Sr(i);t===0&&r!==null?(zT(a,r,o,e),s==null?jE(n,r,d):gf(n,r,d,s||null,!0)):t===1&&r!==null?(zT(a,r,o,e),gf(n,r,d,s||null,!0)):t===2?HT(a,o,e,u=>{zE(n,d,c,u)}):t===3&&HT(a,o,e,()=>{n.destroyNode(d)}),l!=null&&yL(n,t,e,l,o,r,s)}}function aL(t,n){nS(t,n),n[$r]=null,n[Un]=null}function lL(t,n,e,r,i,o){r[$r]=i,r[Un]=n,Vf(t,r,e,1,i,o)}function nS(t,n){n[Ti].changeDetectionScheduler?.notify(9),Vf(t,n,n[It],2,null,null)}function cL(t){let n=t[tl];if(!n)return cy(t[Ce],t);for(;n;){let e=null;if(Si(n))e=n[tl];else{let r=n[Qt];r&&(e=r)}if(!e){for(;n&&!n[Er]&&n!==t;)Si(n)&&cy(n[Ce],n),n=n[cn];n===null&&(n=t),Si(n)&&cy(n[Ce],n),e=n&&n[Er]}n=e}}function lb(t,n){let e=t[Ws],r=e.indexOf(n);e.splice(r,1)}function Bf(t,n){if(Gs(n))return;let e=n[It];e.destroyNode&&Vf(t,n,e,3,null,null),cL(n)}function cy(t,n){if(Gs(n))return;let e=Re(null);try{n[Se]&=-129,n[Se]|=256,n[pr]&&Is(n[pr]),pL(t,n),uL(t,n),n[Ce].type===1&&n[It].destroy();let r=n[Wo];if(r!==null&&Ur(n[cn])){r!==n[cn]&&lb(r,n);let i=n[Ei];i!==null&&i.detachView(t)}wy(n)}finally{Re(e)}}function HT(t,n,e,r){let i=t?.[Us];if(i==null||i.leave==null||!i.leave.has(n.index))return r(!1);t&&Ys.add(t),tS(e,()=>{if(i.leave&&i.leave.has(n.index)){let s=i.leave.get(n.index),a=[];if(s){for(let l=0;l{t[Us].running=void 0,Ys.delete(t),n(!0)});return}n(!1)}function uL(t,n){let e=t.cleanup,r=n[el];if(e!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[e[s+1]];e[s].call(a)}r!==null&&(n[el]=null);let i=n[lo];if(i!==null){n[lo]=null;for(let s=0;sjt&&QE(t,n,jt,!1),_t(s?2:0,i,e),e(r,i)}finally{Yo(o),_t(s?3:1,i,e)}}function jf(t,n,e){TL(t,n,e),(e.flags&64)===64&&EL(t,n,e)}function fd(t,n,e=Gr){let r=n.localNames;if(r!==null){let i=n.index+1;for(let o=0;onull;function CL(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function lS(t,n,e,r,i,o){let s=n[Ce];if(hb(t,s,n,e,r)){qo(t)&&xL(n,t.index);return}t.type&3&&(e=CL(e)),cS(t,n,e,r,i,o)}function cS(t,n,e,r,i,o){if(t.type&3){let s=Gr(t,n);r=o!=null?o(r,t.value||"",e):r,i.setProperty(s,e,r)}else t.type&12}function xL(t,n){let e=Ir(n,t);e[Se]&16||(e[Se]|=64)}function TL(t,n,e){let r=e.directiveStart,i=e.directiveEnd;qo(e)&&KF(n,e,t.data[r+e.componentOffset]),t.firstCreatePass||ff(e,n);let o=e.initialInputs;for(let s=r;s{Qo(t.lView)},consumerOnSignalRead(){this.lView[pr]=this}});function BL(t){let n=t[pr]??Object.create(VL);return n.lView=t,n}var VL=A(_({},Es),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Ho(t.lView);for(;n&&!fS(n[Ce]);)n=Ho(n);n&&Qp(n)},consumerOnSignalRead(){this.lView[pr]=this}});function fS(t){return t.type!==2}function hS(t){if(t[fo]===null)return;let n=!0;for(;n;){let e=!1;for(let r of t[fo])r.dirty&&(e=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));n=e&&!!(t[Se]&8192)}}var jL=100;function mS(t,n=0){let r=t[Ti].rendererFactory,i=!1;i||r.begin?.();try{zL(t,n)}finally{i||r.end?.()}}function zL(t,n){let e=Y0();try{sl(!0),Dy(t,n);let r=0;for(;il(t);){if(r===jL)throw new U(103,!1);r++,Dy(t,1)}}finally{sl(e)}}function HL(t,n,e,r){if(Gs(n))return;let i=n[Se],o=!1,s=!1;ef(n);let a=!0,l=null,c=null;o||(fS(t)?(c=AL(n),l=Ss(c)):rp()===null?(a=!1,c=BL(n),l=Ss(c)):n[pr]&&(Is(n[pr]),n[pr]=null));try{V0(n),bT(t.bindingStartIndex),e!==null&&aS(t,n,e,2,r);let d=(i&3)===3;if(!o)if(d){let f=t.preOrderCheckHooks;f!==null&&of(n,f,null)}else{let f=t.preOrderHooks;f!==null&&sf(n,f,0,null),ay(n,0)}if(s||$L(n),hS(n),gS(n,0),t.contentQueries!==null&&NE(t,n),!o)if(d){let f=t.contentCheckHooks;f!==null&&of(n,f)}else{let f=t.contentHooks;f!==null&&sf(n,f,1),ay(n,1)}WL(t,n);let u=t.components;u!==null&&bS(n,u,0);let p=t.viewQuery;if(p!==null&&xy(2,p,r),!o)if(d){let f=t.viewCheckHooks;f!==null&&of(n,f)}else{let f=t.viewHooks;f!==null&&sf(n,f,2),ay(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Gp]){for(let f of n[Gp])f();n[Gp]=null}o||(uS(n),n[Se]&=-73)}catch(d){throw o||Qo(n),d}finally{c!==null&&(Ba(c,l),a&&FL(c)),tf()}}function gS(t,n){for(let e=SE(t);e!==null;e=IE(e))for(let r=Qt;r0&&(t[e-1][Er]=r[Er]);let o=$c(t,Qt+n);aL(r[Ce],r);let s=o[Ei];s!==null&&s.detachView(o[Ce]),r[cn]=null,r[Er]=null,r[Se]&=-129}return r}function GL(t,n,e,r){let i=Qt+r,o=e.length;r>0&&(e[i-1][Er]=n),r-1&&(sd(n,r),$c(e,r))}this._attachedToViewContainer=!1}Bf(this._lView[Ce],this._lView)}onDestroy(n){j0(this._lView,n)}markForCheck(){gb(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Se]&=-129}reattach(){Kp(this._lView),this._lView[Se]|=128}detectChanges(){this._lView[Se]|=1024,mS(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new U(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=rl(this._lView),e=this._lView[Wo];e!==null&&!n&&lb(e,this._lView),nS(this._lView[Ce],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new U(902,!1);this._appRef=n;let e=rl(this._lView),r=this._lView[Wo];r!==null&&!e&&CS(r,this._lView),Kp(this._lView)}};function yb(t){return il(t._lView)||!!(t._lView[Se]&64)}function bb(t){Qp(t._lView)}var Oi=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=qL;constructor(e,r,i){this._declarationLView=e,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,i){let o=hd(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:i});return new Zo(o)}}return t})();function qL(){return zf(vn(),_e())}function zf(t,n){return t.type&4?new Oi(n,t,yl(t,n)):null}function bl(t,n,e,r,i){let o=t.data[n];if(o===null)o=QL(t,n,e,r,i),vT()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=r,o.attrs=i;let s=mT();o.injectorIndex=s===null?-1:s.injectorIndex}return ol(o,!0),o}function QL(t,n,e,r,i){let o=q0(),s=Q0(),a=s?o:o&&o.parent,l=t.data[n]=YL(t,a,e,n,r,i);return KL(t,l,o,s),l}function KL(t,n,e,r){t.firstChild===null&&(t.firstChild=n),e!==null&&(r?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function YL(t,n,e,r,i,o){let s=n?n.injectorIndex:-1,a=0;return U0()&&(a|=128),{type:e,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,namespace:X0(),attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var Vhe=new RegExp(`^(\\d+)*(${_F}|${vF})*(.*)`);function ZL(t){let n=t[P0]??[],r=t[cn][It],i=[];for(let o of n)o.data[OE]!==void 0?i.push(o):JL(o,r);t[P0]=i}function JL(t,n){let e=0,r=t.firstChild;if(r){let i=t.data[ME];for(;enull,e3=()=>null;function _f(t,n){return XL(t,n)}function xS(t,n,e){return e3(t,n,e)}var TS=class{},Hf=class{},ky=class{resolveComponentFactory(n){throw new U(917,!1)}},Jo=class{static NULL=new ky},mo=class{},Jr=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>t3()}return t})();function t3(){let t=_e(),n=vn(),e=Ir(n.index,t);return(Si(e)?e:t)[It]}var ES=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:()=>null})}return t})();var lf={},My=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,r){let i=this.injector.get(n,lf,r);return i!==lf||e===lf?i:this.parentInjector.get(n,e,r)}};function wf(t,n,e){let r=e?t.styles:null,i=e?t.classes:null,o=0;if(n!==null)for(let s=0;s0&&(e.directiveToIndex=new Map);for(let p=0;p0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function c3(t,n,e){if(e){if(n.exportAs)for(let r=0;rr(Sr(b[t.index])):t.index;MS(y,n,e,o,a,f,!1)}}return c}function f3(t){return t.startsWith("animation")||t.startsWith("transition")}function h3(t,n,e,r){let i=t.cleanup;if(i!=null)for(let o=0;ol?a[l]:null}typeof s=="string"&&(o+=2)}return null}function MS(t,n,e,r,i,o,s){let a=n.firstCreatePass?H0(n):null,l=z0(e),c=l.length;l.push(i,o),a&&a.push(r,t,c,(c+1)*(s?-1:1))}function QT(t,n,e,r,i,o){let s=n[e],a=n[Ce],c=a.data[e].outputs[r],u=s[c].subscribe(o);MS(t.index,a,n,i,o,u,!0)}var Oy=Symbol("BINDING");var Cf=class extends Jo{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=Uo(n);return new hl(e,this.ngModule)}};function m3(t){return Object.keys(t).map(n=>{let[e,r,i]=t[n],o={propName:e,templateName:n,isSignal:(r&Ff.SignalBased)!==0};return i&&(o.transform=i),o})}function g3(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function y3(t,n,e){let r=n instanceof Jt?n:n?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new My(e,r):e}function b3(t){let n=t.get(mo,null);if(n===null)throw new U(407,!1);let e=t.get(ES,null),r=t.get(ur,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:r,ngReflect:!1}}function v3(t,n){let e=OS(t);return VE(n,e,e==="svg"?N0:e==="math"?aT:null)}function OS(t){return(t.selectors[0][0]||"div").toLowerCase()}var hl=class extends Hf{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=m3(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=g3(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=WF(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,r,i,o,s){_t(22);let a=Re(null);try{let l=this.componentDef,c=_3(r,l,s,o),d=y3(l,i||this.ngModule,n),u=b3(d),p=u.rendererFactory.createRenderer(null,l),f=r?vL(p,r,l.encapsulation,d):v3(l,p),y=s?.some(KT)||o?.some(w=>typeof w!="function"&&w.bindings.some(KT)),b=nb(null,c,null,512|GE(l),null,null,u,p,d,null,AE(f,d,!0));b[jt]=f,ef(b);let v=null;try{let w=vb(jt,b,2,"#host",()=>c.directiveRegistry,!0,0);HE(p,f,w),ul(f,b),jf(c,b,w),Jy(c,w,b),_b(c,w),e!==void 0&&C3(w,this.ngContentSelectors,e),v=Ir(w.index,b),b[Xt]=v[Xt],mb(c,b,null)}catch(w){throw v!==null&&wy(v),wy(b),w}finally{_t(23),tf()}return new xf(this.componentType,b,!!y)}finally{Re(a)}}};function _3(t,n,e,r){let i=t?["ng-version","20.3.24"]:GF(n.selectors[0]),o=null,s=null,a=0;if(e)for(let d of e)a+=d[Oy].requiredVars,d.create&&(d.targetIdx=0,(o??=[]).push(d)),d.update&&(d.targetIdx=0,(s??=[]).push(d));if(r)for(let d=0;d{if(e&1&&t)for(let r of t)r.create();if(e&2&&n)for(let r of n)r.update()}}function KT(t){let n=t[Oy].kind;return n==="input"||n==="twoWay"}var xf=class extends TS{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,r){super(),this._rootLView=e,this._hasInputBindings=r,this._tNode=Kc(e[Ce],jt),this.location=yl(this._tNode,e),this.instance=Ir(this._tNode.index,e)[Xt],this.hostView=this.changeDetectorRef=new Zo(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let i=this._rootLView,o=hb(r,i[Ce],i,n,e);this.previousInputValues.set(n,e);let s=Ir(r.index,i);gb(s,1)}get injector(){return new Qs(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function C3(t,n,e){let r=t.projection=[];for(let i=0;i{class t{static __NG_ELEMENT_ID__=x3}return t})();function x3(){let t=vn();return PS(t,_e())}var T3=Mr,RS=class extends T3{_lContainer;_hostTNode;_hostLView;constructor(n,e,r){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=r}get element(){return yl(this._hostTNode,this._hostLView)}get injector(){return new Qs(this._hostTNode,this._hostLView)}get parentInjector(){let n=Ky(this._hostTNode,this._hostLView);if(hE(n)){let e=uf(n,this._hostLView),r=df(n),i=e[Ce].data[r+8];return new Qs(i,e)}else return new Qs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=YT(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Qt}createEmbeddedView(n,e,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=_f(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,i,pl(this._hostTNode,s)),a}createComponent(n,e,r,i,o,s,a){let l=n&&!QN(n),c;if(l)c=e;else{let v=e||{};c=v.index,r=v.injector,i=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef,s=v.directives,a=v.bindings}let d=l?n:new hl(Uo(n)),u=r||this.parentInjector;if(!o&&d.ngModule==null){let w=(l?u:this.parentInjector).get(Jt,null);w&&(o=w)}let p=Uo(d.componentType??{}),f=_f(this._lContainer,p?.id??null),y=f?.firstChild??null,b=d.create(u,i,y,o,s,a);return this.insertImpl(b.hostView,c,pl(this._hostTNode,f)),b}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,r){let i=n._lView;if(cT(i)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let l=i[cn],c=new RS(l,l[Un],l[cn]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),s=this._lContainer;return md(s,i,o,r),n.attachToViewContainerRef(),T0(uy(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=YT(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),r=sd(this._lContainer,e);r&&($c(uy(this._lContainer),e),Bf(r[Ce],r))}detach(n){let e=this._adjustIndex(n,-1),r=sd(this._lContainer,e);return r&&$c(uy(this._lContainer),e)!=null?new Zo(r):null}_adjustIndex(n,e=0){return n??this.length+e}};function YT(t){return t[Qc]}function uy(t){return t[Qc]||(t[Qc]=[])}function PS(t,n){let e,r=n[t.index];return Ur(r)?e=r:(e=vS(r,n,null,t),n[t.index]=e,rb(n,e)),S3(e,n,t,r),new RS(e,t,n)}function E3(t,n){let e=t[It],r=e.createComment(""),i=Gr(n,t),o=e.parentNode(i);return gf(e,o,r,e.nextSibling(i),!1),r}var S3=k3,I3=()=>!1;function D3(t,n,e){return I3(t,n,e)}function k3(t,n,e,r){if(t[Go])return;let i;e.type&8?i=Sr(r):i=E3(n,e),t[Go]=i}var Ry=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Py=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let r=n.contentQueries!==null?n.contentQueries[0]:e.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let c=o[a+1],d=n[-l];for(let u=Qt;un.trim())}function LS(t,n,e){t.queries===null&&(t.queries=new Ay),t.queries.track(new Ny(n,e))}function F3(t,n){let e=t.contentQueries||(t.contentQueries=[]),r=e.length?e[e.length-1]:-1;n!==r&&e.push(t.queries.length-1,n)}function xb(t,n){return t.queries.getByIndex(n)}function BS(t,n){let e=t[Ce],r=xb(e,n);return r.crossesNgTemplate?Fy(e,t,n,[]):AS(e,t,r,n)}function VS(t,n,e){let r,i=Mc(()=>{r._dirtyCounter();let o=B3(r,t);if(n&&o===void 0)throw new U(-951,!1);return o});return r=i[yn],r._dirtyCounter=ge(0),r._flatValue=void 0,i}function jS(t){return VS(!0,!1,t)}function zS(t){return VS(!0,!0,t)}function L3(t,n){let e=t[yn];e._lView=_e(),e._queryIndex=n,e._queryList=Cb(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(r=>r+1))}function B3(t,n){let e=t._lView,r=t._queryIndex;if(e===void 0||r===void 0||e[Se]&4)return n?void 0:Bn;let i=Cb(e,r),o=BS(e,r);return i.reset(o,xE),n?i.first:i._changesDetected||t._flatValue===void 0?t._flatValue=i.toArray():t._flatValue}var Zs=class{},Gf=class{};var Ef=class extends Zs{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Cf(this);constructor(n,e,r,i=!0){super(),this.ngModuleType=n,this._parent=e;let o=I0(n);this._bootstrapComponents=$E(o.bootstrap),this._r3Injector=ey(n,e,[{provide:Zs,useValue:this},{provide:Jo,useValue:this.componentFactoryResolver},...r],co(n),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},Sf=class extends Gf{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new Ef(this.moduleType,n,[])}};var ad=class extends Zs{injector;componentFactoryResolver=new Cf(this);instance=null;constructor(n){super();let e=new Ls([...n.providers,{provide:Zs,useValue:this},{provide:Jo,useValue:this.componentFactoryResolver}],n.parent||Gc(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function gd(t,n,e=null){return new ad({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var V3=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let r=D0(!1,e.type),i=r.length>0?gd([r],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,i)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=N({token:t,providedIn:"environment",factory:()=>new t(me(Jt))})}return t})();function $(t){return dd(()=>{let n=HS(t),e=A(_({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Yy.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?i=>i.get(V3).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ho.Emulated,styles:t.styles||Bn,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&Zr("NgStandalone"),$S(e);let r=t.dependencies;return e.directiveDefs=ZT(r,j3),e.pipeDefs=ZT(r,Xx),e.id=$3(e),e})}function j3(t){return Uo(t)||Wp(t)}function ke(t){return dd(()=>({type:t.type,bootstrap:t.bootstrap||Bn,declarations:t.declarations||Bn,imports:t.imports||Bn,exports:t.exports||Bn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function z3(t,n){if(t==null)return Hr;let e={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a,l;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,l=i[3]||null):(o=i,s=i,a=Ff.None,l=null),e[o]=[r,a,l],n[o]=s}return e}function H3(t){if(t==null)return Hr;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function Ue(t){return dd(()=>{let n=HS(t);return $S(n),n})}function Tb(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function HS(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||Hr,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Bn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:z3(t.inputs,n),outputs:H3(t.outputs),debugInfo:null}}function $S(t){t.features?.forEach(n=>n(t))}function ZT(t,n){return t?()=>{let e=typeof t=="function"?t():t,r=[];for(let i of e){let o=n(i);o!==null&&r.push(o)}return r}:null}function $3(t){let n=0,e=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let o of r.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function U3(t){return Object.getPrototypeOf(t.prototype).constructor}function j(t){let n=U3(t.type),e=!0,r=[t];for(;n;){let i;if(Wr(t))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new U(903,!1);i=n.\u0275dir}if(i){if(e){r.push(i);let s=t;s.inputs=py(t.inputs),s.declaredInputs=py(t.declaredInputs),s.outputs=py(t.outputs);let a=i.hostBindings;a&&K3(t,a);let l=i.viewQuery,c=i.contentQueries;if(l&&q3(t,l),c&&Q3(t,c),W3(t,i),Ux(t.outputs,i.outputs),Wr(i)&&i.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=t[r];i.hostVars=n+=i.hostVars,i.hostAttrs=dl(i.hostAttrs,e=dl(e,i.hostAttrs))}}function py(t){return t===Hr?{}:t===Bn?[]:t}function q3(t,n){let e=t.viewQuery;e?t.viewQuery=(r,i)=>{n(r,i),e(r,i)}:t.viewQuery=n}function Q3(t,n){let e=t.contentQueries;e?t.contentQueries=(r,i,o)=>{n(r,i,o),e(r,i,o)}:t.contentQueries=n}function K3(t,n){let e=t.hostBindings;e?t.hostBindings=(r,i)=>{n(r,i),e(r,i)}:t.hostBindings=n}function et(t){let n=e=>{let r=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=Y3,e.hostDirectives=r?t.map(Ly):[t]):r?e.hostDirectives.unshift(...t.map(Ly)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function Y3(t){let n=[],e=!1,r=null,i=null;for(let o=0;o{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var Sb=new H("");function es(t){return!!t&&typeof t.then=="function"}function Ib(t){return!!t&&typeof t.subscribe=="function"}var Db=new H("");function vl(t){return Tr([{provide:Db,multi:!0,useValue:t}])}var kb=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,r)=>{this.resolve=e,this.reject=r});appInits=x(Db,{optional:!0})??[];injector=x(Vt);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let i of this.appInits){let o=In(this.injector,i);if(es(o))e.push(o);else if(Ib(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{r()}).catch(i=>{this.reject(i)}),e.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qf=new H("");function GS(){Ng(()=>{let t="";throw new U(600,t)})}function qS(t){return t.isBoundToModule}var t5=10;var Ri=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=x(Jn);afterRenderManager=x(ab);zonelessEnabled=x(Xc);rootEffectScheduler=x(td);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new qe;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=x(ki);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(be(e=>!e))}constructor(){x(ea,{optional:!0})}whenStable(){let e;return new Promise(r=>{e=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{e.unsubscribe()})}_injector=x(Jt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,r){return this.bootstrapImpl(e,r)}bootstrapImpl(e,r,i=Vt.NULL){return this._injector.get($e).run(()=>{_t(10);let s=e instanceof Hf;if(!this._injector.get(kb).done){let y="";throw new U(405,y)}let l;s?l=e:l=this._injector.get(Jo).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let c=qS(l)?void 0:this._injector.get(Zs),d=r||l.selector,u=l.create(i,[],d,c),p=u.location.nativeElement,f=u.injector.get(Sb,null);return f?.registerApplication(p),u.onDestroy(()=>{this.detachView(u.hostView),rd(this.components,u),f?.unregisterApplication(p)}),this._loadComponent(u),_t(11,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){_t(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Lf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new U(101,!1);let e=Re(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Re(e),this.afterTick.next(),_t(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(mo,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++il(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){let r=e;rd(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(i){this.internalErrorHandler(i)}this.components.push(e),this._injector.get(qf,[]).forEach(i=>i(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>rd(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new U(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rd(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function J(t,n,e,r){let i=_e(),o=Ko();if(Xn(i,o,n)){let s=zt(),a=Zc();IL(a,i,t,n,e,r)}return J}var Ghe=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var By=class{destroy(n){}updateValue(n,e){}swap(n,e){let r=Math.min(n,e),i=Math.max(n,e),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(n,e){this.attach(e,this.detach(n))}};function fy(t,n,e,r,i){return t===e&&Object.is(n,r)?1:Object.is(i(t,n),i(e,r))?-1:0}function n5(t,n,e){let r,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=s&&o<=l;){let c=t.at(o),d=n[o],u=fy(o,c,o,d,e);if(u!==0){u<0&&t.updateValue(o,d),o++;continue}let p=t.at(s),f=n[l],y=fy(s,p,l,f,e);if(y!==0){y<0&&t.updateValue(s,f),s--,l--;continue}let b=e(o,c),v=e(s,p),w=e(o,d);if(Object.is(w,v)){let D=e(l,f);Object.is(D,b)?(t.swap(o,s),t.updateValue(s,f),l--,s--):t.move(s,o),t.updateValue(o,d),o++;continue}if(r??=new If,i??=tE(t,o,s,e),Vy(t,r,o,w))t.updateValue(o,d),o++,s++;else if(i.has(w))r.set(b,t.detach(o)),s--;else{let D=t.create(o,n[o]);t.attach(o,D),o++,s++}}for(;o<=l;)eE(t,r,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=s;){let d=t.at(o),u=c.value,p=fy(o,d,o,u,e);if(p!==0)p<0&&t.updateValue(o,u),o++,c=l.next();else{r??=new If,i??=tE(t,o,s,e);let f=e(o,u);if(Vy(t,r,o,f))t.updateValue(o,u),o++,s++,c=l.next();else if(!i.has(f))t.attach(o,t.create(o,u)),o++,s++,c=l.next();else{let y=e(o,d);r.set(y,t.detach(o)),s--}}}for(;!c.done;)eE(t,r,e,t.length,c.value),c=l.next()}for(;o<=s;)t.destroy(t.detach(s--));r?.forEach(l=>{t.destroy(l)})}function Vy(t,n,e,r){return n!==void 0&&n.has(r)?(t.attach(e,n.get(r)),n.delete(r),!0):!1}function eE(t,n,e,r,i){if(Vy(t,n,r,e(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function tE(t,n,e,r){let i=new Set;for(let o=n;o<=e;o++)i.add(r(o,t.at(o)));return i}var If=class{kvMap=new Map;_vMap=void 0;has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;let e=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let r=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,r]of this.kvMap)if(n(r,e),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),n(r,e)}}};function rt(t,n,e,r,i,o,s,a){Zr("NgControlFlow");let l=_e(),c=zt(),d=Dr(c.consts,o);return ld(l,c,t,n,e,r,i,d,256,s,a),Mb}function Mb(t,n,e,r,i,o,s,a){Zr("NgControlFlow");let l=_e(),c=zt(),d=Dr(c.consts,o);return ld(l,c,t,n,e,r,i,d,512,s,a),Mb}function it(t,n){Zr("NgControlFlow");let e=_e(),r=Ko(),i=e[r]!==Gn?e[r]:-1,o=i!==-1?Df(e,jt+i):void 0,s=0;if(Xn(e,r,t)){let a=Re(null);try{if(o!==void 0&&wS(o,s),t!==-1){let l=jt+t,c=Df(e,l),d=$y(e[Ce],l),u=xS(c,d,e),p=hd(e,d,n,{dehydratedView:u});md(c,p,s,pl(d,u))}}finally{Re(a)}}else if(o!==void 0){let a=_S(o,s);a!==void 0&&(a[Xt]=n)}}var jy=class{lContainer;$implicit;$index;constructor(n,e,r){this.lContainer=n,this.$implicit=e,this.$index=r}get $count(){return this.lContainer.length-Qt}};function Qf(t){return t}var zy=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,r){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=r}};function ts(t,n,e,r,i,o,s,a,l,c,d,u,p){Zr("NgControlFlow");let f=_e(),y=zt(),b=l!==void 0,v=_e(),w=a?s.bind(v[Wn][Xt]):s,D=new zy(b,w);v[jt+t]=D,ld(f,y,t+1,n,e,r,i,Dr(y.consts,o),256),b&&ld(f,y,t+2,l,c,d,u,Dr(y.consts,p),512)}var Hy=class extends By{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,r){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=r}get length(){return this.lContainer.length-Qt}at(n){return this.getLView(n)[Xt].$implicit}attach(n,e){let r=e[js];this.needsIndexUpdate||=n!==this.length,md(this.lContainer,e,n,pl(this.templateTNode,r)),r5(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,i5(this.lContainer,n),o5(this.lContainer,n)}create(n,e){let r=_f(this.lContainer,this.templateTNode.tView.ssrId),i=hd(this.hostLView,this.templateTNode,new jy(this.lContainer,e,n),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(n){Bf(n[Ce],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[Xt].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let o=r[po];oL(o,i),Ys.delete(r),i.detachedLeaveAnimationFns=void 0}}function i5(t,n){if(t.length<=Qt)return;let e=Qt+n,r=t[e],i=r?r[Us]:void 0;i&&i.leave&&i.leave.size>0&&(i.detachedLeaveAnimationFns=[])}function o5(t,n){return sd(t,n)}function s5(t,n){return _S(t,n)}function $y(t,n){return Kc(t,n)}function h(t,n,e){let r=_e(),i=Ko();if(Xn(r,i,n)){let o=zt(),s=Zc();lS(s,r,t,n,r[It],e)}return h}function Uy(t,n,e,r,i){hb(n,t,e,i?"class":"style",r)}function E(t,n,e,r){let i=_e(),o=i[Ce],s=t+jt,a=o.firstCreatePass?vb(s,i,2,n,ub,Yp(),e,r):o.data[s];if(pb(a,i,t,n,QS),nl(a)){let l=i[Ce];jf(l,i,a),Jy(l,a,i)}return r!=null&&fd(i,a),E}function T(){let t=zt(),n=vn(),e=fb(n);return t.firstCreatePass&&_b(t,e),W0(e)&&G0(),$0(),e.classesWithoutHost!=null&&eF(e)&&Uy(t,e,_e(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&tF(e)&&Uy(t,e,_e(),e.stylesWithoutHost,!1),T}function X(t,n,e,r){return E(t,n,e,r),T(),X}function ot(t,n,e,r){let i=_e(),o=i[Ce],s=t+jt,a=o.firstCreatePass?u3(s,o,2,n,e,r):o.data[s];return pb(a,i,t,n,QS),r!=null&&fd(i,a),ot}function st(){let t=vn(),n=fb(t);return W0(n)&&G0(),$0(),st}function ue(t,n,e,r){return ot(t,n,e,r),st(),ue}var QS=(t,n,e,r,i)=>(Jc(!0),VE(n[It],r,X0()));function ie(t,n,e){let r=_e(),i=r[Ce],o=t+jt,s=i.firstCreatePass?vb(o,r,8,"ng-container",ub,Yp(),n,e):i.data[o];if(pb(s,r,t,"ng-container",a5),nl(s)){let a=r[Ce];jf(a,r,s),Jy(a,s,r)}return e!=null&&fd(r,s),ie}function oe(){let t=zt(),n=vn(),e=fb(n);return t.firstCreatePass&&_b(t,e),oe}function ne(t,n,e){return ie(t,n,e),oe(),ne}var a5=(t,n,e,r,i)=>(Jc(!0),OF(n[It],""));function se(){return _e()}function Ft(t,n,e){let r=_e(),i=Ko();if(Xn(r,i,n)){let o=zt(),s=Zc();cS(s,r,t,n,r[It],e)}return Ft}var yd="en-US";var l5=yd;function KS(t){typeof t=="string"&&(l5=t.toLowerCase().replace(/_/g,"-"))}function q(t,n,e){let r=_e(),i=zt(),o=vn();return YS(i,r,r[It],o,t,n,e),q}function YS(t,n,e,r,i,o,s){let a=!0,l=null;if((r.type&3||s)&&(l??=dy(r,n,o),p3(r,t,n,s,e,i,o,l)&&(a=!1)),a){let c=r.outputs?.[i],d=r.hostDirectiveOutputs?.[i];if(d&&d.length)for(let u=0;u>17&32767}function u5(t){return(t&2)==2}function p5(t,n){return t&131071|n<<17}function Wy(t){return t|2}function ml(t){return(t&131068)>>2}function hy(t,n){return t&-131069|n<<2}function f5(t){return(t&1)===1}function Gy(t){return t|1}function h5(t,n,e,r,i,o){let s=o?n.classBindings:n.styleBindings,a=Js(s),l=ml(s);t[r]=e;let c=!1,d;if(Array.isArray(e)){let u=e;d=u[1],(d===null||Xa(u,d)>0)&&(c=!0)}else d=e;if(i)if(l!==0){let p=Js(t[a+1]);t[r+1]=rf(p,a),p!==0&&(t[p+1]=hy(t[p+1],r)),t[a+1]=p5(t[a+1],r)}else t[r+1]=rf(a,0),a!==0&&(t[a+1]=hy(t[a+1],r)),a=r;else t[r+1]=rf(l,0),a===0?a=r:t[l+1]=hy(t[l+1],r),l=r;c&&(t[r+1]=Wy(t[r+1])),nE(t,d,r,!0),nE(t,d,r,!1),m5(n,d,t,r,o),s=rf(a,l),o?n.classBindings=s:n.styleBindings=s}function m5(t,n,e,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Xa(o,n)>=0&&(e[r+1]=Gy(e[r+1]))}function nE(t,n,e,r){let i=t[e+1],o=n===null,s=r?Js(i):ml(i),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];g5(l,n)&&(a=!0,t[s+1]=r?Gy(c):Wy(c)),s=r?Js(c):ml(c)}a&&(t[e+1]=r?Wy(i):Gy(i))}function g5(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Xa(t,n)>=0:!1}var dn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ZS(t){return t.substring(dn.key,dn.keyEnd)}function y5(t){return t.substring(dn.value,dn.valueEnd)}function b5(t){return eI(t),JS(t,gl(t,0,dn.textEnd))}function JS(t,n){let e=dn.textEnd;return e===n?-1:(n=dn.keyEnd=_5(t,dn.key=n,e),gl(t,n,e))}function v5(t){return eI(t),XS(t,gl(t,0,dn.textEnd))}function XS(t,n){let e=dn.textEnd,r=dn.key=gl(t,n,e);return e===r?-1:(r=dn.keyEnd=w5(t,r,e),r=rE(t,r,e,58),r=dn.value=gl(t,r,e),r=dn.valueEnd=C5(t,r,e),rE(t,r,e,59))}function eI(t){dn.key=0,dn.keyEnd=0,dn.value=0,dn.valueEnd=0,dn.textEnd=t.length}function gl(t,n,e){for(;n32;)n++;return n}function w5(t,n,e){let r;for(;n=65&&(r&-33)<=90||r>=48&&r<=57);)n++;return n}function rE(t,n,e,r){return n=gl(t,n,e),n32&&(a=s),o=i,i=r,r=l&-33}return a}function iE(t,n,e,r){let i=-1,o=e;for(;o=0;e=XS(n,e))oI(t,ZS(n),y5(n))}function k(t){nI(M5,T5,t,!0)}function T5(t,n){for(let e=b5(n);e>=0;e=JS(n,e))Uc(t,ZS(n),!0)}function tI(t,n,e,r){let i=_e(),o=zt(),s=Zp(2);if(o.firstUpdatePass&&iI(o,t,s,r),n!==Gn&&Xn(i,s,n)){let a=o.data[Di()];sI(o,a,i,i[It],t,i[s+1]=R5(n,e),r,s)}}function nI(t,n,e,r){let i=zt(),o=Zp(2);i.firstUpdatePass&&iI(i,null,o,r);let s=_e();if(e!==Gn&&Xn(s,o,e)){let a=i.data[Di()];if(aI(a,r)&&!rI(i,o)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(e=jp(l,e||"")),Uy(i,a,s,e,r)}else O5(i,a,s,s[It],s[o+1],s[o+1]=k5(t,n,e),r,o)}}function rI(t,n){return n>=t.expandoStartIndex}function iI(t,n,e,r){let i=t.data;if(i[e+1]===null){let o=i[Di()],s=rI(t,e);aI(o,r)&&n===null&&!s&&(n=!1),n=E5(i,o,n,r),h5(i,o,n,e,s,r)}}function E5(t,n,e,r){let i=CT(t),o=r?n.residualClasses:n.residualStyles;if(i===null)(r?n.classBindings:n.styleBindings)===0&&(e=my(null,t,n,e,r),e=cd(e,n.attrs,r),o=null);else{let s=n.directiveStylingLast;if(s===-1||t[s]!==i)if(e=my(i,t,n,e,r),o===null){let l=S5(t,n,r);l!==void 0&&Array.isArray(l)&&(l=my(null,t,n,l[1],r),l=cd(l,n.attrs,r),I5(t,n,r,l))}else o=D5(t,n,r)}return o!==void 0&&(r?n.residualClasses=o:n.residualStyles=o),e}function S5(t,n,e){let r=e?n.classBindings:n.styleBindings;if(ml(r)!==0)return t[Js(r)]}function I5(t,n,e,r){let i=e?n.classBindings:n.styleBindings;t[Js(i)]=r}function D5(t,n,e){let r,i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let l=t[i],c=Array.isArray(l),d=c?l[1]:l,u=d===null,p=e[i+1];p===Gn&&(p=u?Bn:void 0);let f=u?Up(p,r):d===r?p:void 0;if(c&&!kf(f)&&(f=Up(l,r)),kf(f)&&(a=f,s))return a;let y=t[i+1];i=s?Js(y):ml(y)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(a=Up(l,r))}return a}function kf(t){return t!==void 0}function R5(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=co(ud(t)))),t}function aI(t,n){return(t.flags&(n?8:16))!==0}function ce(t,n=""){let e=_e(),r=zt(),i=t+jt,o=r.firstCreatePass?bl(r,i,1,n,null):r.data[i],s=P5(r,e,o,n,t);e[i]=s,nf()&&cb(r,e,s,o),ol(o,!1)}var P5=(t,n,e,r,i)=>(Jc(!0),kF(n[It],r));function lI(t,n,e,r=""){return Xn(t,Ko(),e)?n+Vs(e)+r:Gn}function A5(t,n,e,r,i,o=""){let s=yT(),a=fl(t,s,e,i);return Zp(2),a?n+Vs(e)+r+Vs(i)+o:Gn}function Ze(t){return Ut("",t),Ze}function Ut(t,n,e){let r=_e(),i=lI(r,t,n,e);return i!==Gn&&cI(r,Di(),i),Ut}function _l(t,n,e,r,i){let o=_e(),s=A5(o,t,n,e,r,i);return s!==Gn&&cI(o,Di(),s),_l}function cI(t,n,e){let r=F0(n,t);MF(t[It],r,e)}function Or(t,n,e){iy(n)&&(n=n());let r=_e(),i=Ko();if(Xn(r,i,n)){let o=zt(),s=Zc();lS(s,r,t,n,r[It],e)}return Or}function Xr(t,n){let e=iy(t);return e&&t.set(n),e}function Rr(t,n){let e=_e(),r=zt(),i=vn();return YS(r,e,e[It],i,t,n),Rr}function Rb(t,n,e=""){return lI(_e(),t,n,e)}function N5(t,n,e){let r=zt();if(r.firstCreatePass){let i=Wr(t);qy(e,r.data,r.blueprint,i,!0),qy(n,r.data,r.blueprint,i,!1)}}function qy(t,n,e,r,i){if(t=ln(t),Array.isArray(t))for(let o=0;o>20;if(Fs(t)||!t.multi){let f=new Ks(c,i,de,null),y=yy(l,n,i?d:d+p,u);y===-1?(vy(ff(a,s),o,l),gy(o,t,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),e.push(f),s.push(f)):(e[y]=f,s[y]=f)}else{let f=yy(l,n,d+p,u),y=yy(l,n,d,d+p),b=f>=0&&e[f],v=y>=0&&e[y];if(i&&!v||!i&&!b){vy(ff(a,s),o,l);let w=B5(i?L5:F5,e.length,i,r,c,t);!i&&v&&(e[y].providerFactory=w),gy(o,t,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),e.push(w),s.push(w)}else{let w=dI(e[i?y:f],c,!i&&r);gy(o,t,f>-1?f:y,w)}!i&&r&&v&&e[y].componentProviders++}}}function gy(t,n,e,r){let i=Fs(n),o=iT(n);if(i||o){let l=(o?ln(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&n.multi){let d=c.indexOf(e);d===-1?c.push(e,[r,l]):c[d+1].push(r,l)}else c.push(e,l)}}}function dI(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function yy(t,n,e,r){for(let i=e;i{e.providersResolver=(r,i)=>N5(r,i?i(t):t,n)}}function Pi(t,n,e){let r=Ii()+t,i=_e();return i[r]===Gn?Xo(i,r,e?n.call(e):n()):Uf(i,r)}function Ee(t,n,e,r){return V5(_e(),Ii(),t,n,e,r)}function Dt(t,n,e,r,i){return j5(_e(),Ii(),t,n,e,r,i)}function Pb(t,n,e,r,i,o){return uI(_e(),Ii(),t,n,e,r,i,o)}function Yf(t,n,e,r,i,o,s){return z5(_e(),Ii(),t,n,e,r,i,o,s)}function bd(t,n,e,r,i,o,s,a){let l=Ii()+t,c=_e(),d=Wf(c,l,e,r,i,o);return Xn(c,l+4,s)||d?Xo(c,l+5,a?n.call(a,e,r,i,o,s):n(e,r,i,o,s)):Uf(c,l+5)}function wl(t,n,e,r,i,o,s,a,l){let c=Ii()+t,d=_e(),u=Wf(d,c,e,r,i,o);return fl(d,c+4,s,a)||u?Xo(d,c+6,l?n.call(l,e,r,i,o,s,a):n(e,r,i,o,s,a)):Uf(d,c+6)}function Ab(t,n,e,r,i,o,s,a,l,c){let d=Ii()+t,u=_e(),p=Wf(u,d,e,r,i,o);return kS(u,d+4,s,a,l)||p?Xo(u,d+7,c?n.call(c,e,r,i,o,s,a,l):n(e,r,i,o,s,a,l)):Uf(u,d+7)}function Zf(t,n){let e=t[n];return e===Gn?void 0:e}function V5(t,n,e,r,i,o){let s=n+e;return Xn(t,s,i)?Xo(t,s+1,o?r.call(o,i):r(i)):Zf(t,s+1)}function j5(t,n,e,r,i,o,s){let a=n+e;return fl(t,a,i,o)?Xo(t,a+2,s?r.call(s,i,o):r(i,o)):Zf(t,a+2)}function uI(t,n,e,r,i,o,s,a){let l=n+e;return kS(t,l,i,o,s)?Xo(t,l+3,a?r.call(a,i,o,s):r(i,o,s)):Zf(t,l+3)}function z5(t,n,e,r,i,o,s,a,l){let c=n+e;return Wf(t,c,i,o,s,a)?Xo(t,c+4,l?r.call(l,i,o,s,a):r(i,o,s,a)):Zf(t,c+4)}function Jf(t,n){let e=zt(),r,i=t+jt;e.firstCreatePass?(r=H5(n,e.pipeRegistry),e.data[i]=r,r.onDestroy&&(e.destroyHooks??=[]).push(i,r.onDestroy)):r=e.data[i];let o=r.factory||(r.factory=zo(r.type,!0)),s,a=$n(de);try{let l=pf(!1),c=o();return pf(l),B0(e,_e(),i,c),c}finally{$n(a)}}function H5(t,n){if(n)for(let e=n.length-1;e>=0;e--){let r=n[e];if(t===r.name)return r}}function Xf(t,n,e,r,i){let o=t+jt,s=_e(),a=L0(s,o);return $5(s,o)?uI(s,Ii(),n,a.transform,e,r,i,a):a.transform(e,r,i)}function $5(t,n){return t[Ce].data[n].pure}function at(t,n){return zf(t,n)}var Mf=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},Nb=(()=>{class t{compileModuleSync(e){return new Sf(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let r=this.compileModuleSync(e),i=I0(e),o=$E(i.declarations).reduce((s,a)=>{let l=Uo(a);return l&&s.push(new hl(l)),s},[]);return new Mf(r,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var U5=(()=>{class t{zone=x($e);changeDetectionScheduler=x(ur);applicationRef=x(Ri);applicationErrorHandler=x(Jn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pI=new H("",{factory:()=>!1});function Fb({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new $e(A(_({},Bb()),{scheduleInRootZone:e})),[{provide:$e,useFactory:t},{provide:uo,multi:!0,useFactory:()=>{let r=x(U5,{optional:!0});return()=>r.initialize()}},{provide:uo,multi:!0,useFactory:()=>{let r=x(W5);return()=>{r.initialize()}}},n===!0?{provide:oy,useValue:!0}:[],{provide:sy,useValue:e??KE},{provide:Jn,useFactory:()=>{let r=x($e),i=x(Jt),o;return s=>{r.runOutsideAngular(()=>{i.destroyed&&!o?setTimeout(()=>{throw s}):(o??=i.get(xr),o.handleError(s))})}}}]}function Lb(t){let n=t?.ignoreChangesOutsideZone,e=t?.scheduleInRootZone,r=Fb({ngZoneFactory:()=>{let i=Bb(t);return i.scheduleInRootZone=e,i.shouldCoalesceEventChangeDetection&&Zr("NgZone_CoalesceEvent"),new $e(i)},ignoreChangesOutsideZone:n,scheduleInRootZone:e});return Tr([{provide:pI,useValue:!0},{provide:Xc,useValue:!1},r])}function Bb(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var W5=(()=>{class t{subscription=new qt;initialized=!1;zone=x($e);pendingTasks=x(ki);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$e.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$e.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var fI=(()=>{class t{applicationErrorHandler=x(Jn);appRef=x(Ri);taskService=x(ki);ngZone=x($e);zonelessEnabled=x(Xc);tracing=x(ea,{optional:!0});disableScheduling=x(oy,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new qt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(yf):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(x(sy,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){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 bf||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let r=!1;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?BT:YE;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(yf+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.taskService.remove(e),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,BT(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function G5(){return typeof $localize<"u"&&$localize.locale||yd}var eh=new H("",{providedIn:"root",factory:()=>x(eh,{optional:!0,skipSelf:!0})||G5()});function fn(t){return Vx(t)}function We(t,n){return Mc(t,n?.equal)}var Vb=class{[yn];constructor(n){this[yn]=n}destroy(){this[yn].destroy()}};function Lt(t,n){let e=n?.injector??x(Vt),r=n?.manualCleanup!==!0?e.get(kr):null,i,o=e.get(al,null,{optional:!0}),s=e.get(ur);return o!==null?(i=K5(o.view,s,t),r instanceof zc&&r._lView===o.view&&(r=null)):i=Y5(t,e.get(td),s),i.injector=e,r!==null&&(i.onDestroyFn=r.onDestroy(()=>i.destroy())),new Vb(i)}var hI=A(_({},jx),{cleanupFns:void 0,zone:null,onDestroyFn:qs,run(){let t=sl(!1);try{zx(this)}finally{sl(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=Re(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Re(t)}}}),q5=A(_({},hI),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Is(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),Q5=A(_({},hI),{consumerMarkedDirty(){this.view[Se]|=8192,Qo(this.view),this.notifier.notify(13)},destroy(){Is(this),this.onDestroyFn(),this.cleanup(),this.view[fo]?.delete(this)}});function K5(t,n,e){let r=Object.create(Q5);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=n,r.fn=mI(r,e),t[fo]??=new Set,t[fo].add(r),r.consumerMarkedDirty(r),r}function Y5(t,n,e){let r=Object.create(q5);return r.fn=mI(r,t),r.scheduler=n,r.notifier=e,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function mI(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}var CI=Symbol("InputSignalNode#UNSET"),fB=A(_({},ap),{transformFn:void 0,applyValueToInputSignal(t,n){za(t,n)}});function xI(t,n){let e=Object.create(fB);e.value=t,e.transformFn=n?.transform;function r(){if(La(e),e.value===CI){let i=null;throw new U(-950,i)}return e.value}return r[yn]=e,r}var hB=new H("");hB.__NG_ELEMENT_ID__=t=>{let n=vn();if(n===null)throw new U(204,!1);if(n.type&2)return n.value;if(t&8)return null;throw new U(204,!1)};function gI(t,n){return xI(t,n)}function mB(t){return xI(CI,t)}var ae=(gI.required=mB,gI);function yI(t,n){return jS(n)}function gB(t,n){return zS(n)}var TI=(yI.required=gB,yI);var jb=new H(""),yB=new H("");function vd(t){return!t.moduleRef}function bB(t){let n=vd(t)?t.r3Injector:t.moduleRef.injector,e=n.get($e);return e.run(()=>{vd(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=n.get(Jn),i;if(e.runOutsideAngular(()=>{i=e.onError.subscribe({next:r})}),vd(t)){let o=()=>n.destroy(),s=t.platformInjector.get(jb);s.add(o),n.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(jb);s.add(o),t.moduleRef.onDestroy(()=>{rd(t.allPlatformModules,t.moduleRef),i.unsubscribe(),s.delete(o)})}return _B(r,e,()=>{let o=n.get(ki),s=o.add(),a=n.get(kb);return a.runInitializers(),a.donePromise.then(()=>{let l=n.get(eh,yd);if(KS(l||yd),!n.get(yB,!0))return vd(t)?n.get(Ri):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(vd(t)){let d=n.get(Ri);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return vB?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{o.remove(s)})})})}var vB;function _B(t,n,e){try{let r=e();return es(r)?r.catch(i=>{throw n.runOutsideAngular(()=>t(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>t(r)),r}}var th=null;function wB(t=[],n){return Vt.create({name:n,providers:[{provide:Wc,useValue:"platform"},{provide:jb,useValue:new Set([()=>th=null])},...t]})}function CB(t=[]){if(th)return th;let n=wB(t);return th=n,GS(),xB(n),n}function xB(t){let n=t.get(Rf,null);In(t,()=>{n?.forEach(e=>e())})}var rs=(()=>{class t{static __NG_ELEMENT_ID__=TB}return t})();function TB(t){return EB(vn(),_e(),(t&16)===16)}function EB(t,n,e){if(qo(t)&&!e){let r=Ir(t.index,n);return new Zo(r,r)}else if(t.type&175){let r=n[Wn];return new Zo(r,n)}return null}var zb=class{constructor(){}supports(n){return wb(n)}create(n){return new Hb(n)}},SB=(t,n)=>n,Hb=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||SB}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,r=this._removalsHead,i=0,o=null;for(;e||r;){let s=!r||e&&e.currentIndex{s=this._trackByFn(i,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,i),r=!0):(r&&(e=this._verifyReinsertion(e,a,s,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,r,i){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,i)):(n=this._linkedRecords===null?null:this._linkedRecords.get(r,i),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,i)):n=this._addAfter(new $b(e,r),o,i)),n}_verifyReinsertion(n,e,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let i=n._prevRemoved,o=n._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,e,r),this._addToMoves(n,r),n}_moveAfter(n,e,r){return this._unlink(n),this._insertAfter(n,e,r),this._addToMoves(n,r),n}_addAfter(n,e,r){return this._insertAfter(n,e,r),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,r){let i=e===null?this._itHead:e._next;return n._next=i,n._prev=e,i===null?this._itTail=n:i._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new nh),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,r=n._next;return e===null?this._itHead=r:e._next=r,r===null?this._itTail=e:r._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new nh),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},$b=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,e){this.item=n,this.trackById=e}},Ub=class{_head=null;_tail=null;add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let r;for(r=this._head;r!==null;r=r._nextDup)if((e===null||e<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){let e=n._prevDup,r=n._nextDup;return e===null?this._head=r:e._nextDup=r,r===null?this._tail=e:r._prevDup=e,this._head===null}},nh=class{map=new Map;put(n){let e=n.trackById,r=this.map.get(e);r||(r=new Ub,this.map.set(e,r)),r.add(n)}get(n,e){let r=n,i=this.map.get(r);return i?i.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function bI(t,n,e){let r=t.previousIndex;if(r===null)return r;let i=0;return e&&r{if(e&&e.key===i)this._maybeAddToChanges(e,r),this._appendAfter=e,e=e._next;else{let o=this._getOrCreateRecordForKey(i,r);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let r=e;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(n,e){if(n){let r=n._prev;return e._next=n,e._prev=r,n._prev=e,r&&(r._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){let i=this._records.get(n);this._maybeAddToChanges(i,e);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let r=new qb(n);return this._records.set(n,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(r=>e(n[r],r))}},qb=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n}};function vI(){return new Qb([new zb])}var Qb=(()=>{class t{factories;static \u0275prov=N({token:t,providedIn:"root",factory:vI});constructor(e){this.factories=e}static create(e,r){if(r!=null){let i=r.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let r=x(t,{optional:!0,skipSelf:!0});return t.create(e,r||vI())}}}find(e){let r=this.factories.find(i=>i.supports(e));if(r!=null)return r;throw new U(901,!1)}}return t})();function _I(){return new Kb([new Wb])}var Kb=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:_I});factories;constructor(e){this.factories=e}static create(e,r){if(r){let i=r.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let r=x(t,{optional:!0,skipSelf:!0});return t.create(e,r||_I())}}}find(e){let r=this.factories.find(i=>i.supports(e));if(r)return r;throw new U(901,!1)}}return t})();function EI(t){let{rootComponent:n,appProviders:e,platformProviders:r,platformRef:i}=t;_t(8);try{let o=i?.injector??CB(r),s=[Fb({}),{provide:ur,useExisting:fI},DT,...e||[]],a=new ad({providers:s,parent:o,debugName:"",runEnvironmentInitializers:!1});return bB({r3Injector:a.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{_t(9)}}function R(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Me(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var DI=null;function Pr(){return DI}function Yb(t){DI??=t}var _d=class{},Zb=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>x(kI),providedIn:"platform"})}return t})();var kI=(()=>{class t extends Zb{_location;_history;_doc=x(bt);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Pr().getBaseHref(this._doc)}onPopState(e){let r=Pr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){let r=Pr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,r,i){this._history.pushState(e,r,i)}replaceState(e,r,i){this._history.replaceState(e,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function MI(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function SI(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function is(t){return t&&t[0]!=="?"?`?${t}`:t}var rh=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>x(OI),providedIn:"root"})}return t})(),ih=new H(""),OI=(()=>{class t extends rh{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??x(bt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return MI(this._baseHref,e)}path(e=!1){let r=this._platformLocation.pathname+is(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${r}${i}`:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+is(o));this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+is(o));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(r){return new(r||t)(me(Zb),me(ih,8))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xl=(()=>{class t{_subject=new qe;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let r=this._locationStrategy.getBaseHref();this._basePath=kB(SI(II(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+is(r))}normalize(e){return t.stripTrailingSlash(DB(this._basePath,II(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",i=null){this._locationStrategy.pushState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+is(r)),i)}replaceState(e,r="",i=null){this._locationStrategy.replaceState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+is(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(i=>i(e,r))}subscribe(e,r,i){return this._subject.subscribe({next:e,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=is;static joinWithSlash=MI;static stripTrailingSlash=SI;static \u0275fac=function(r){return new(r||t)(me(rh))};static \u0275prov=N({token:t,factory:()=>IB(),providedIn:"root"})}return t})();function IB(){return new xl(me(rh))}function DB(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function II(t){return t.replace(/\/index.html$/,"")}function kB(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var Jb=/\s+/,RI=[],ei=(()=>{class t{_ngEl;_renderer;initialClasses=RI;rawClass;stateMap=new Map;constructor(e,r){this._ngEl=e,this._renderer=r}set klass(e){this.initialClasses=e!=null?e.trim().split(Jb):RI}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Jb):e}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let r of e)this._updateState(r,!0);else if(e!=null)for(let r of Object.keys(e))this._updateState(r,!!e[r]);this._applyStateDiff()}_updateState(e,r){let i=this.stateMap.get(e);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(e,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let r=e[0],i=e[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(e,r){e=e.trim(),e.length>0&&e.split(Jb).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(r){return new(r||t)(de(un),de(Jr))};static \u0275dir=Ue({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var oh=class{$implicit;ngForOf;index;count;constructor(n,e,r,i){this.$implicit=n,this.ngForOf=e,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ar=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,r,i){this._viewContainer=e,this._template=r,this._differs=i}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let r=this._viewContainer;e.forEachOperation((i,o,s)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new oh(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(o===null?void 0:o);else if(o!==null){let a=r.get(o);r.move(a,s),PI(a,i)}});for(let i=0,o=r.length;i{let o=r.get(i.currentIndex);PI(o,i)})}static ngTemplateContextGuard(e,r){return!0}static \u0275fac=function(r){return new(r||t)(de(Mr),de(Oi),de(Qb))};static \u0275dir=Ue({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function PI(t,n){t.context.$implicit=n.item}var Wt=(()=>{class t{_viewContainer;_context=new sh;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,r){this._viewContainer=e,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){AI(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){AI(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,r){return!0}static \u0275fac=function(r){return new(r||t)(de(Mr),de(Oi))};static \u0275dir=Ue({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),sh=class{$implicit=null;ngIf=null};function AI(t,n){if(t&&!t.createEmbeddedView)throw new U(2020,!1)}var tr=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,r,i){this._ngEl=e,this._differs=r,this._renderer=i}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,r){let[i,o]=e.split("."),s=i.indexOf("-")===-1?void 0:Qr.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||t)(de(un),de(Kb),de(Jr))};static \u0275dir=Ue({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),kt=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(e,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static \u0275fac=function(r){return new(r||t)(de(Mr))};static \u0275dir=Ue({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Kr]})}return t})();function MB(t,n){return new U(2100,!1)}var Xb=(()=>{class t{transform(e,r,i){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw MB(t,e);return e.slice(r,i)}static \u0275fac=function(r){return new(r||t)};static \u0275pipe=Tb({name:"slice",type:t,pure:!1})}return t})();var Qe=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({})}return t})();function wd(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let r=e.indexOf("="),[i,o]=r==-1?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}var na=class{};var ev="browser",PB="server";function kn(t){return t===ev}function tv(t){return t===PB}var Cd=class{_doc;constructor(n){this._doc=n}manager},ah=(()=>{class t extends Cd{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i,o){return e.addEventListener(r,i,o),()=>this.removeEventListener(e,r,i,o)}removeEventListener(e,r,i,o){return e.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||t)(me(bt))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),ch=new H(""),sv=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(s=>{s.manager=this});let i=e.filter(s=>!(s instanceof ah));this._plugins=i.slice().reverse();let o=e.find(s=>s instanceof ah);o&&this._plugins.push(o)}addEventListener(e,r,i,o){return this._findPluginFor(r).addEventListener(e,r,i,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(o=>o.supports(e)),!r)throw new U(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||t)(me(ch),me($e))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),nv="ng-app-id";function NI(t){for(let n of t)n.remove()}function FI(t,n){let e=n.createElement("style");return e.textContent=t,e}function AB(t,n,e,r){let i=t.head?.querySelectorAll(`style[${nv}="${n}"],link[${nv}="${n}"]`);if(i)for(let o of i)o.removeAttribute(nv),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function iv(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var av=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,i,o={}){this.doc=e,this.appId=r,this.nonce=i,AB(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let i of e)this.addUsage(i,this.inline,FI);r?.forEach(i=>this.addUsage(i,this.external,iv))}removeStyles(e,r){for(let i of e)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,r,i){let o=r.get(e);o?o.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,r){let i=r.get(e);i&&(i.usage--,i.usage<=0&&(NI(i.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])NI(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(e,FI(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(e,iv(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),e.appendChild(r)}static \u0275fac=function(r){return new(r||t)(me(bt),me(Of),me(Af,8),me(Yr))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),rv={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"},lv=/%COMP%/g;var BI="%COMP%",NB=`_nghost-${BI}`,FB=`_ngcontent-${BI}`,LB=!0,BB=new H("",{providedIn:"root",factory:()=>LB});function VB(t){return FB.replace(lv,t)}function jB(t){return NB.replace(lv,t)}function VI(t,n){return n.map(e=>e.replace(lv,t))}var Ed=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,r,i,o,s,a,l=null,c=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=l,this.tracingService=c,this.platformIsServer=!1,this.defaultRenderer=new xd(e,s,a,this.platformIsServer,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,r);return i instanceof lh?i.applyToHost(e):i instanceof Td&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case ho.Emulated:o=new lh(l,c,r,this.appId,d,s,a,u,p);break;case ho.ShadowDom:return new ov(l,c,e,r,s,a,this.nonce,u,p);default:o=new Td(l,c,r,d,s,a,u,p);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||t)(me(sv),me(av),me(Of),me(BB),me(bt),me($e),me(Af),me(ea,8))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),xd=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,r,i,o){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(rv[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(LI(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(LI(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){e.remove()}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new U(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;let o=rv[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=rv[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,i){i&(Qr.DashCase|Qr.Important)?n.style.setProperty(e,r,i&Qr.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Qr.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r,i){if(typeof n=="string"&&(n=Pr().getGlobalEventTarget(this.doc,n),!n))throw new U(5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,i)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function LI(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ov=class extends xd{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,r,i,o,s,a,l,c){super(n,o,s,l,c),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=i.styles;d=VI(i.id,d);for(let p of d){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=p,this.shadowRoot.appendChild(f)}let u=i.getExternalStyles?.();if(u)for(let p of u){let f=iv(p,o);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Td=class extends xd{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,r,i,o,s,a,l,c){super(n,o,s,a,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let d=r.styles;this.styles=c?VI(c,d):d,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Ys.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},lh=class extends Td{contentAttr;hostAttr;constructor(n,e,r,i,o,s,a,l,c){let d=i+"-"+r.id;super(n,e,r,o,s,a,l,c,d),this.contentAttr=VB(d),this.hostAttr=jB(d)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}};var dh=class t extends _d{supportsDOMEvents=!0;static makeCurrent(){Yb(new t)}onAndCancel(n,e,r,i){return n.addEventListener(e,r,i),()=>{n.removeEventListener(e,r,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=zB();return e==null?null:HB(e)}resetBaseElement(){Sd=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return wd(document.cookie,n)}},Sd=null;function zB(){return Sd=Sd||document.head.querySelector("base"),Sd?Sd.getAttribute("href"):null}function HB(t){return new URL(t,document.baseURI).pathname}var $B=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),jI=["alt","control","meta","shift"],UB={"\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"},WB={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},zI=(()=>{class t extends Cd{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Pr().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),jI.forEach(c=>{let d=r.indexOf(c);d>-1&&(r.splice(d,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(e,r){let i=UB[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),jI.forEach(s=>{if(s!==i){let a=WB[s];a(e)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||t)(me(bt))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function Id(t){return EI(GB(t))}function GB(t){return{appProviders:[...ZB,...t?.providers??[]],platformProviders:YB}}function qB(){dh.makeCurrent()}function QB(){return new xr}function KB(){return Zy(document),document}var YB=[{provide:Yr,useValue:ev},{provide:Rf,useValue:qB,multi:!0},{provide:bt,useFactory:KB}];var ZB=[{provide:Wc,useValue:"root"},{provide:xr,useFactory:QB},{provide:ch,useClass:ah,multi:!0,deps:[bt]},{provide:ch,useClass:zI,multi:!0,deps:[bt]},Ed,av,sv,{provide:mo,useExisting:Ed},{provide:na,useClass:$B},[]];var El=class{},Dd=class{},ti=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` +`).forEach(e=>{let r=e.indexOf(":");if(r>0){let i=e.slice(0,r),o=e.slice(r+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,e);let i=(n.op==="a"?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(n,e){let r=n.toLowerCase();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var ph=class{encodeKey(n){return HI(n)}encodeValue(n){return HI(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function JB(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}var XB=/%(\d[a-f0-9])/gi,e4={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function HI(t){return encodeURIComponent(t).replace(XB,(n,e)=>e4[e]??n)}function uh(t){return`${t}`}var go=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new ph,n.fromString){if(n.fromObject)throw new U(2805,!1);this.map=JB(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let r=n.fromObject[e],i=Array.isArray(r)?r.map(uh):[uh(r)];this.map.set(e,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(uh(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(uh(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Sl=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function t4(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function $I(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function UI(t){return typeof Blob<"u"&&t instanceof Blob}function WI(t){return typeof FormData<"u"&&t instanceof FormData}function n4(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var GI="Content-Type",qI="Accept",QI="X-Request-URL",KI="text/plain",YI="application/json",r4=`${YI}, ${KI}, */*`,Tl=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,r,i){this.url=e,this.method=n.toUpperCase();let o;if(t4(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new U(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new ti,this.context??=new Sl,!this.params)this.params=new go,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),l=a===-1?"?":aY.set(ye,n.setHeaders[ye]),D)),n.setParams&&(P=Object.keys(n.setParams).reduce((Y,ye)=>Y.set(ye,n.setParams[ye]),P)),new t(e,r,b,{params:P,headers:D,context:B,reportProgress:w,responseType:i,withCredentials:v,transferCache:f,keepalive:o,cache:a,priority:s,timeout:y,mode:l,redirect:c,credentials:d,referrer:u,integrity:p})}},ra=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(ra||{}),Il=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,r="OK"){this.headers=n.headers||new ti,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},fh=class t extends Il{constructor(n={}){super(n)}type=ra.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},kd=class t extends Il{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=ra.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0,redirected:n.redirected??this.redirected})}},os=class extends Il{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},i4=200,o4=204;function cv(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer}}var mh=(()=>{class t{handler;constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof Tl)o=e;else{let l;i.headers instanceof ti?l=i.headers:l=new ti(i.headers);let c;i.params&&(i.params instanceof go?c=i.params:c=new go({fromObject:i.params})),o=new Tl(e,r,i.body!==void 0?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,integrity:i.integrity,timeout:i.timeout})}let s=ve(o).pipe(Vo(l=>this.handler.handle(l)));if(e instanceof Tl||i.observe==="events")return s;let a=s.pipe(nn(l=>l instanceof kd));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(be(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new U(2806,!1);return l.body}));case"blob":return a.pipe(be(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new U(2807,!1);return l.body}));case"text":return a.pipe(be(l=>{if(l.body!==null&&typeof l.body!="string")throw new U(2808,!1);return l.body}));default:return a.pipe(be(l=>l.body))}case"response":return a;default:throw new U(2809,!1)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new go().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,cv(i,r))}post(e,r,i={}){return this.request("POST",e,cv(i,r))}put(e,r,i={}){return this.request("PUT",e,cv(i,r))}static \u0275fac=function(r){return new(r||t)(me(El))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var s4=new H("");function a4(t,n){return n(t)}function l4(t,n,e){return(r,i)=>In(e,()=>n(r,o=>t(o,i)))}var ZI=new H(""),JI=new H(""),XI=new H("",{providedIn:"root",factory:()=>!0});var hh=(()=>{class t extends El{backend;injector;chain=null;pendingTasks=x(ed);contributeToStability=x(XI);constructor(e,r){super(),this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(ZI),...this.injector.get(JI,[])]));this.chain=r.reduceRight((i,o)=>l4(i,o,this.injector),a4)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(Ci(r))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||t)(me(Dd),me(Jt))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var c4=/^\)\]\}',?\n/,d4=RegExp(`^${QI}:`,"m");function u4(t){return"responseURL"in t&&t.responseURL?t.responseURL:d4.test(t.getAllResponseHeaders())?t.getResponseHeader(QI):null}var dv=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new U(-2800,!1);let r=this.xhrFactory;return ve(null).pipe(bn(()=>new pe(o=>{let s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((v,w)=>s.setRequestHeader(v,w.join(","))),e.headers.has(qI)||s.setRequestHeader(qI,r4),!e.headers.has(GI)){let v=e.detectContentTypeHeader();v!==null&&s.setRequestHeader(GI,v)}if(e.timeout&&(s.timeout=e.timeout),e.responseType){let v=e.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let a=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let v=s.statusText||"OK",w=new ti(s.getAllResponseHeaders()),D=u4(s)||e.url;return l=new fh({headers:w,status:s.status,statusText:v,url:D}),l},d=()=>{let{headers:v,status:w,statusText:D,url:P}=c(),B=null;w!==o4&&(B=typeof s.response>"u"?s.responseText:s.response),w===0&&(w=B?i4:0);let Y=w>=200&&w<300;if(e.responseType==="json"&&typeof B=="string"){let ye=B;B=B.replace(c4,"");try{B=B!==""?JSON.parse(B):null}catch(Xe){B=ye,Y&&(Y=!1,B={error:Xe,text:B})}}Y?(o.next(new kd({body:B,headers:v,status:w,statusText:D,url:P||void 0})),o.complete()):o.error(new os({error:B,headers:v,status:w,statusText:D,url:P||void 0}))},u=v=>{let{url:w}=c(),D=new os({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:w||void 0});o.error(D)},p=u;e.timeout&&(p=v=>{let{url:w}=c(),D=new os({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:w||void 0});o.error(D)});let f=!1,y=v=>{f||(o.next(c()),f=!0);let w={type:ra.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(w.total=v.total),e.responseType==="text"&&s.responseText&&(w.partialText=s.responseText),o.next(w)},b=v=>{let w={type:ra.UploadProgress,loaded:v.loaded};v.lengthComputable&&(w.total=v.total),o.next(w)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",p),s.addEventListener("abort",u),e.reportProgress&&(s.addEventListener("progress",y),a!==null&&s.upload&&s.upload.addEventListener("progress",b)),s.send(a),o.next({type:ra.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",p),e.reportProgress&&(s.removeEventListener("progress",y),a!==null&&s.upload&&s.upload.removeEventListener("progress",b)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||t)(me(na))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),eD=new H(""),p4="XSRF-TOKEN",f4=new H("",{providedIn:"root",factory:()=>p4}),h4="X-XSRF-TOKEN",m4=new H("",{providedIn:"root",factory:()=>h4}),Md=class{},g4=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,r){this.doc=e,this.cookieName=r}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=wd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||t)(me(bt),me(f4))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),y4=/^(?:https?:)?\/\//i;function b4(t,n){if(!x(eD)||t.method==="GET"||t.method==="HEAD"||y4.test(t.url))return n(t);let e=x(Md).getToken(),r=x(m4);return e!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,e)})),n(t)}function uv(...t){let n=[mh,dv,hh,{provide:El,useExisting:hh},{provide:Dd,useFactory:()=>x(s4,{optional:!0})??x(dv)},{provide:ZI,useValue:b4,multi:!0},{provide:eD,useValue:!0},{provide:Md,useClass:g4}];for(let e of t)n.push(...e.\u0275providers);return Tr(n)}var tD=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||t)(me(bt))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ve="primary",Wd=Symbol("RouteTitle"),gv=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function sa(t){return new gv(t)}function cD(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.lengthr[o]===i)}else return t===n}function uD(t){return t.length>0?t[t.length-1]:null}function vo(t){return Yg(t)?t:es(t)?ft(Promise.resolve(t)):ve(t)}var C4={exact:fD,subset:hD},pD={exact:x4,subset:T4,ignored:()=>!0};function nD(t,n,e){return C4[e.paths](t.root,n.root,e.matrixParams)&&pD[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function x4(t,n){return Ai(t,n)}function fD(t,n,e){if(!ia(t.segments,n.segments)||!bh(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!fD(t.children[r],n.children[r],e))return!1;return!0}function T4(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>dD(t[e],n[e]))}function hD(t,n,e){return mD(t,n,n.segments,e)}function mD(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ia(i,e)||n.hasChildren()||!bh(i,e,r))}else if(t.segments.length===e.length){if(!ia(t.segments,e)||!bh(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!hD(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ia(t.segments,i)||!bh(t.segments,i,r)||!t.children[Ve]?!1:mD(t.children[Ve],n,o,r)}}function bh(t,n,e){return n.every((r,i)=>pD[e](t[i].parameters,r.parameters))}var Fi=class{root;queryParams;fragment;_queryParamMap;constructor(n=new mt([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=sa(this.queryParams),this._queryParamMap}toString(){return I4.serialize(this)}},mt=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vh(this)}},ss=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=sa(this.parameters),this._parameterMap}toString(){return yD(this)}};function E4(t,n){return ia(t,n)&&t.every((e,r)=>Ai(e.parameters,n[r].parameters))}function ia(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function S4(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===Ve&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==Ve&&(e=e.concat(n(i,r)))}),e}var Gd=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>new aa,providedIn:"root"})}return t})(),aa=class{parse(n){let e=new vv(n);return new Fi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Od(n.root,!0)}`,r=M4(n.queryParams),i=typeof n.fragment=="string"?`#${D4(n.fragment)}`:"";return`${e}${r}${i}`}},I4=new aa;function vh(t){return t.segments.map(n=>yD(n)).join("/")}function Od(t,n){if(!t.hasChildren())return vh(t);if(n){let e=t.children[Ve]?Od(t.children[Ve],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==Ve&&r.push(`${i}:${Od(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=S4(t,(r,i)=>i===Ve?[Od(t.children[Ve],!1)]:[`${i}:${Od(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[Ve]!=null?`${vh(t)}/${e[0]}`:`${vh(t)}/(${e.join("//")})`}}function gD(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gh(t){return gD(t).replace(/%3B/gi,";")}function D4(t){return encodeURI(t)}function bv(t){return gD(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _h(t){return decodeURIComponent(t)}function rD(t){return _h(t.replace(/\+/g,"%20"))}function yD(t){return`${bv(t.path)}${k4(t.parameters)}`}function k4(t){return Object.entries(t).map(([n,e])=>`;${bv(n)}=${bv(e)}`).join("")}function M4(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${gh(e)}=${gh(i)}`).join("&"):`${gh(e)}=${gh(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var O4=/^[^\/()?;#]+/;function pv(t){let n=t.match(O4);return n?n[0]:""}var R4=/^[^\/()?;=#]+/;function P4(t){let n=t.match(R4);return n?n[0]:""}var A4=/^[^=?&#]+/;function N4(t){let n=t.match(A4);return n?n[0]:""}var F4=/^[^&#]+/;function L4(t){let n=t.match(F4);return n?n[0]:""}var vv=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new mt([],{}):new mt([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[Ve]=new mt(n,e)),r}parseSegment(){let n=pv(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new U(4009,!1);return this.capture(n),new ss(_h(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=P4(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=pv(this.remaining);i&&(r=i,this.capture(r))}n[_h(e)]=_h(r)}parseQueryParam(n){let e=N4(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=L4(this.remaining);s&&(r=s,this.capture(r))}let i=rD(e),o=rD(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=pv(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new U(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Ve);let s=this.parseChildren();e[o??Ve]=Object.keys(s).length===1&&s[Ve]?s[Ve]:new mt([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new U(4011,!1)}};function bD(t){return t.segments.length>0?new mt([],{[Ve]:t}):t}function vD(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=vD(i);if(r===Ve&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new mt(t.segments,n);return B4(e)}function B4(t){if(t.numberOfChildren===1&&t.children[Ve]){let n=t.children[Ve];return new mt(t.segments.concat(n.segments),n.children)}return t}function Rl(t){return t instanceof Fi}function _D(t,n,e=null,r=null){let i=wD(t);return CD(i,n,e,r)}function wD(t){let n;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new mt(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=bD(r);return n??i}function CD(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return fv(i,i,i,e,r);let o=V4(n);if(o.toRoot())return fv(i,i,new mt([],{}),e,r);let s=j4(o,i,t),a=s.processChildren?Pd(s.segmentGroup,s.index,o.commands):TD(s.segmentGroup,s.index,o.commands);return fv(i,s.segmentGroup,a,e,r)}function wh(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Fd(t){return typeof t=="object"&&t!=null&&t.outlets}function fv(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===n?s=e:s=xD(t,n,e);let a=bD(vD(s));return new Fi(a,o,i)}function xD(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=xD(o,n,e)}),new mt(t.segments,r)}var Ch=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&wh(r[0]))throw new U(4003,!1);let i=r.find(Fd);if(i&&i!==uD(r))throw new U(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function V4(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ch(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Ch(e,n,r)}var Ml=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function j4(t,n,e){if(t.isAbsolute)return new Ml(n,!0,0);if(!e)return new Ml(n,!1,NaN);if(e.parent===null)return new Ml(e,!0,0);let r=wh(t.commands[0])?0:1,i=e.segments.length-1+r;return z4(e,i,t.numberOfDoubleDots)}function z4(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new U(4005,!1);i=r.segments.length}return new Ml(r,!1,i-o)}function H4(t){return Fd(t[0])?t[0].outlets:{[Ve]:t}}function TD(t,n,e){if(t??=new mt([],{}),t.segments.length===0&&t.hasChildren())return Pd(t,n,e);let r=$4(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndexo!==Ve)&&t.children[Ve]&&t.numberOfChildren===1&&t.children[Ve].segments.length===0){let o=Pd(t.children[Ve],n,e);return new mt(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=TD(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new mt(t.segments,i)}}function $4(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i=e.length)return o;let s=t.segments[i],a=e[r];if(Fd(a))break;let l=`${a}`,c=r0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!oD(l,c,s))return o;r+=2}else{if(!oD(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function _v(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=_v(new mt([],{}),0,r))}),n}function iD(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function oD(t,n,e){return t==e.path&&Ai(n,e.parameters)}var Ad="imperative",_n=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(_n||{}),hr=class{id;url;constructor(n,e){this.id=n,this.url=e}},la=class extends hr{type=_n.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},yo=class extends hr{urlAfterRedirects;type=_n.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},qn=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(qn||{}),Ld=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Ld||{}),Ni=class extends hr{reason;code;type=_n.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},bo=class extends hr{reason;code;type=_n.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},Pl=class extends hr{error;target;type=_n.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Bd=class extends hr{urlAfterRedirects;state;type=_n.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xh=class extends hr{urlAfterRedirects;state;type=_n.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Th=class extends hr{urlAfterRedirects;state;shouldActivate;type=_n.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Eh=class extends hr{urlAfterRedirects;state;type=_n.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sh=class extends hr{urlAfterRedirects;state;type=_n.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ih=class{route;type=_n.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Dh=class{route;type=_n.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},kh=class{snapshot;type=_n.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mh=class{snapshot;type=_n.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Oh=class{snapshot;type=_n.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rh=class{snapshot;type=_n.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Vd=class{},Al=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function W4(t){return!(t instanceof Vd)&&!(t instanceof Al)}function G4(t,n){return t.providers&&!t._injector&&(t._injector=gd(t.providers,n,`Route: ${t.path}`)),t._injector??n}function ni(t){return t.outlet||Ve}function q4(t,n){let e=t.filter(r=>ni(r)===n);return e.push(...t.filter(r=>ni(r)!==n)),e}function Ll(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Ph=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ll(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Bl(this.rootInjector)}},Bl=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Ph(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(me(Jt))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ah=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=wv(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=wv(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Cv(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Cv(n,this._root).map(e=>e.value)}};function wv(t,n){if(t===n.value)return n;for(let e of n.children){let r=wv(t,e);if(r)return r}return null}function Cv(t,n){if(t===n.value)return[n];for(let e of n.children){let r=Cv(t,e);if(r.length)return r.unshift(n),r}return[]}var fr=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function kl(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var jd=class extends Ah{snapshot;constructor(n,e){super(n),this.snapshot=e,Mv(this,n)}toString(){return this.snapshot.toString()}};function ED(t){let n=Q4(t),e=new an([new ss("",{})]),r=new an({}),i=new an({}),o=new an({}),s=new an(""),a=new Li(e,r,o,s,i,Ve,t,n.root);return a.snapshot=n.root,new jd(new fr(a,[]),n)}function Q4(t){let n={},e={},r={},o=new oa([],n,r,"",e,Ve,t,null,{});return new zd("",new fr(o,[]))}var Li=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(be(c=>c[Wd]))??ve(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,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(be(n=>sa(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(be(n=>sa(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Nh(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:_(_({},n.params),t.params),data:_(_({},n.data),t.data),resolve:_(_(_(_({},t.data),n.data),i?.data),t._resolvedData)}:r={params:_({},t.params),data:_({},t.data),resolve:_(_({},t.data),t._resolvedData??{})},i&&ID(i)&&(r.resolve[Wd]=i.title),r}var oa=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Wd]}constructor(n,e,r,i,o,s,a,l,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=sa(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=sa(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},zd=class extends Ah{url;constructor(n,e){super(e),this.url=n,Mv(this,e)}toString(){return SD(this._root)}};function Mv(t,n){n.value._routerState=t,n.children.forEach(e=>Mv(t,e))}function SD(t){let n=t.children.length>0?` { ${t.children.map(SD).join(", ")} } `:"";return`${t.value}${n}`}function hv(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Ai(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Ai(n.params,e.params)||t.paramsSubject.next(e.params),w4(n.url,e.url)||t.urlSubject.next(e.url),Ai(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function xv(t,n){let e=Ai(t.params,n.params)&&E4(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||xv(t.parent,n.parent))}function ID(t){return typeof t.title=="string"||t.title===null}var DD=new H(""),qd=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Ve;activateEvents=new z;deactivateEvents=new z;attachEvents=new z;detachEvents=new z;routerOutletData=ae();parentContexts=x(Bl);location=x(Mr);changeDetector=x(rs);inputBinder=x(Vh,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new U(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new U(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new U(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new U(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Tv(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Kr]})}return t})(),Tv=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Li?this.route:n===Bl?this.childContexts:n===DD?this.outletData:this.parent.get(n,e)}},Vh=new H("");var Ov=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=$({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&X(0,"router-outlet")},dependencies:[qd],encapsulation:2})}return t})();function Rv(t){let n=t.children&&t.children.map(Rv),e=n?A(_({},t),{children:n}):_({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Ve&&(e.component=Ov),e}function K4(t,n,e){let r=Hd(t,n._root,e?e._root:void 0);return new jd(r,n)}function Hd(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Y4(t,n,e);return new fr(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Hd(t,a)),s}}let r=Z4(n.value),i=n.children.map(o=>Hd(t,o));return new fr(r,i)}}function Y4(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Hd(t,r,i);return Hd(t,r)})}function Z4(t){return new Li(new an(t.url),new an(t.params),new an(t.queryParams),new an(t.fragment),new an(t.data),t.outlet,t.component,t)}var Nl=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},kD="ngNavigationCancelingError";function Fh(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Rl(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=MD(!1,qn.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function MD(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[kD]=!0,e.cancellationCode=n,e}function J4(t){return OD(t)&&Rl(t.url)}function OD(t){return!!t&&t[kD]}var X4=(t,n,e,r)=>be(i=>(new Ev(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),Ev=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),hv(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=kl(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=kl(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=kl(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=kl(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Rh(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Mh(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(hv(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),hv(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},Lh=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Ol=class{component;route;constructor(n,e){this.component=n,this.route=e}};function eV(t,n,e){let r=t._root,i=n?n._root:null;return Rd(r,i,e,[r.value])}function tV(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Vl(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!g0(t)?t:n.get(t):r}function Rd(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=kl(n);return t.children.forEach(s=>{nV(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Nd(a,e.getContext(s),i)),i}function nV(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=rV(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Lh(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Rd(t,n,a?a.children:null,r,i):Rd(t,n,e,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Ol(a.outlet.component,s))}else s&&Nd(n,a,i),i.canActivateChecks.push(new Lh(r)),o.component?Rd(t,null,a?a.children:null,r,i):Rd(t,null,e,r,i);return i}function rV(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!ia(t.url,n.url);case"pathParamsOrQueryParamsChange":return!ia(t.url,n.url)||!Ai(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xv(t,n)||!Ai(t.queryParams,n.queryParams);default:return!xv(t,n)}}function Nd(t,n,e){let r=kl(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Nd(s,n.children.getContext(o),e):Nd(s,null,e):Nd(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ol(n.outlet.component,i)):e.canDeactivateChecks.push(new Ol(null,i)):e.canDeactivateChecks.push(new Ol(null,i))}function Qd(t){return typeof t=="function"}function iV(t){return typeof t=="boolean"}function oV(t){return t&&Qd(t.canLoad)}function sV(t){return t&&Qd(t.canActivate)}function aV(t){return t&&Qd(t.canActivateChild)}function lV(t){return t&&Qd(t.canDeactivate)}function cV(t){return t&&Qd(t.canMatch)}function RD(t){return t instanceof zr||t?.name==="EmptyError"}var yh=Symbol("INITIAL_VALUE");function Fl(){return bn(t=>Rp(t.map(n=>n.pipe(so(1),Lc(yh)))).pipe(be(n=>{for(let e of n)if(e!==!0){if(e===yh)return yh;if(e===!1||dV(e))return e}return!0}),nn(n=>n!==yh),so(1)))}function dV(t){return Rl(t)||t instanceof Nl}function uV(t,n){return Nt(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?ve(A(_({},e),{guardsResult:!0})):pV(s,r,i,t).pipe(Nt(a=>a&&iV(a)?fV(r,o,t,n):ve(a)),be(a=>A(_({},e),{guardsResult:a})))})}function pV(t,n,e,r){return ft(t).pipe(Nt(i=>bV(i.component,i.route,e,n,r)),ao(i=>i!==!0,!0))}function fV(t,n,e,r){return ft(n).pipe(Vo(i=>wi(mV(i.route.parent,r),hV(i.route,r),yV(t,i.path,e),gV(t,i.route,e))),ao(i=>i!==!0,!0))}function hV(t,n){return t!==null&&n&&n(new Oh(t)),ve(!0)}function mV(t,n){return t!==null&&n&&n(new kh(t)),ve(!0)}function gV(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return ve(!0);let i=r.map(o=>Nc(()=>{let s=Ll(n)??e,a=Vl(o,s),l=sV(a)?a.canActivate(n,t):In(s,()=>a(n,t));return vo(l).pipe(ao())}));return ve(i).pipe(Fl())}function yV(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>tV(s)).filter(s=>s!==null).map(s=>Nc(()=>{let a=s.guards.map(l=>{let c=Ll(s.node)??e,d=Vl(l,c),u=aV(d)?d.canActivateChild(r,t):In(c,()=>d(r,t));return vo(u).pipe(ao())});return ve(a).pipe(Fl())}));return ve(o).pipe(Fl())}function bV(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return ve(!0);let s=o.map(a=>{let l=Ll(n)??i,c=Vl(a,l),d=lV(c)?c.canDeactivate(t,n,e,r):In(l,()=>c(t,n,e,r));return vo(d).pipe(ao())});return ve(s).pipe(Fl())}function vV(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return ve(!0);let o=i.map(s=>{let a=Vl(s,t),l=oV(a)?a.canLoad(n,e):In(t,()=>a(n,e));return vo(l)});return ve(o).pipe(Fl(),PD(r))}function PD(t){return $g(St(n=>{if(typeof n!="boolean")throw Fh(t,n)}),be(n=>n===!0))}function _V(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return ve(!0);let o=i.map(s=>{let a=Vl(s,t),l=cV(a)?a.canMatch(n,e):In(t,()=>a(n,e));return vo(l)});return ve(o).pipe(Fl(),PD(r))}var $d=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Ud=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function Dl(t){return _i(new $d(t))}function wV(t){return _i(new U(4e3,!1))}function CV(t){return _i(MD(!1,qn.GuardRejected))}var Sv=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return ve(r);if(i.numberOfChildren>1||!i.children[Ve])return wV(`${n.redirectTo}`);i=i.children[Ve]}}applyRedirectCommands(n,e,r,i,o){return xV(e,i,o).pipe(be(s=>{if(s instanceof Fi)throw new Ud(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new Ud(a);return a}))}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new Fi(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,r,i)}),new mt(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new U(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function xV(t,n,e){if(typeof t=="string")return ve(t);let r=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:l,params:c,data:d,title:u}=n;return vo(In(e,()=>r({params:c,data:d,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:l,title:u})))}var Iv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function TV(t,n,e,r,i){let o=AD(t,n,e);return o.matched?(r=G4(n,r),_V(r,n,e,i).pipe(be(s=>s===!0?o:_({},Iv)))):ve(o)}function AD(t,n,e){if(n.path==="**")return EV(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?_({},Iv):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||cD)(e,t,n);if(!i)return _({},Iv);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?_(_({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function EV(t){return{matched:!0,parameters:t.length>0?uD(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function sD(t,n,e,r){return e.length>0&&DV(t,e,r)?{segmentGroup:new mt(n,IV(r,new mt(e,t.children))),slicedSegments:[]}:e.length===0&&kV(t,e,r)?{segmentGroup:new mt(t.segments,SV(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new mt(t.segments,t.children),slicedSegments:e}}function SV(t,n,e,r){let i={};for(let o of e)if(jh(t,n,o)&&!r[ni(o)]){let s=new mt([],{});i[ni(o)]=s}return _(_({},r),i)}function IV(t,n){let e={};e[Ve]=n;for(let r of t)if(r.path===""&&ni(r)!==Ve){let i=new mt([],{});e[ni(r)]=i}return e}function DV(t,n,e){return e.some(r=>jh(t,n,r)&&ni(r)!==Ve)}function kV(t,n,e){return e.some(r=>jh(t,n,r))}function jh(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function MV(t,n,e){return n.length===0&&!t.children[e]}var Dv=class{};function OV(t,n,e,r,i,o,s="emptyOnly"){return new kv(t,n,e,r,i,s,o).recognize()}var RV=31,kv=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Sv(this.urlSerializer,this.urlTree)}noMatchError(n){return new U(4002,`'${n.segmentGroup}'`)}recognize(){let n=sD(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(be(({children:e,rootSnapshot:r})=>{let i=new fr(r,e),o=new zd("",i),s=_D(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new oa([],Object.freeze({}),Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Ve,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,Ve,e).pipe(be(r=>({children:r,rootSnapshot:e})),dr(r=>{if(r instanceof Ud)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof $d?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(be(s=>s instanceof fr?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return ft(o).pipe(Vo(s=>{let a=r.children[s],l=q4(e,s);return this.processSegmentGroup(n,l,a,s,i)}),r0((s,a)=>(s.push(...a),s)),jo(null),t0(),Nt(s=>{if(s===null)return Dl(r);let a=ND(s);return PV(a),ve(a)}))}processSegment(n,e,r,i,o,s,a){return ft(e).pipe(Vo(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,r,i,o,s,a).pipe(dr(c=>{if(c instanceof $d)return ve(null);throw c}))),ao(l=>!!l),dr(l=>{if(RD(l))return MV(r,i,o)?ve(new Dv):Dl(r);throw l}))}processSegmentAgainstRoute(n,e,r,i,o,s,a,l){return ni(r)!==s&&(s===Ve||!jh(i,o,r))?Dl(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,l):Dl(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:p}=AD(e,i,o);if(!l)return Dl(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>RV&&(this.allowRedirects=!1));let f=new oa(o,c,Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,aD(i),ni(i),i.component??i._loadedComponent??null,i,lD(i)),y=Nh(f,a,this.paramsInheritanceStrategy);return f.params=Object.freeze(y.params),f.data=Object.freeze(y.data),this.applyRedirects.applyRedirectCommands(d,i.redirectTo,u,f,n).pipe(bn(v=>this.applyRedirects.lineralizeSegments(i,v)),Nt(v=>this.processSegment(n,r,e,v.concat(p),s,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let a=TV(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(bn(l=>l.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(bn(({routes:c})=>{let d=r._loadedInjector??n,{parameters:u,consumedSegments:p,remainingSegments:f}=l,y=new oa(p,u,Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,aD(r),ni(r),r.component??r._loadedComponent??null,r,lD(r)),b=Nh(y,s,this.paramsInheritanceStrategy);y.params=Object.freeze(b.params),y.data=Object.freeze(b.data);let{segmentGroup:v,slicedSegments:w}=sD(e,p,f,c);if(w.length===0&&v.hasChildren())return this.processChildren(d,c,v,y).pipe(be(P=>new fr(y,P)));if(c.length===0&&w.length===0)return ve(new fr(y,[]));let D=ni(r)===o;return this.processSegment(d,c,v,w,D?Ve:o,!0,y).pipe(be(P=>new fr(y,P instanceof fr?[P]:[])))}))):Dl(e)))}getChildConfig(n,e,r){return e.children?ve({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?ve({routes:e._loadedRoutes,injector:e._loadedInjector}):vV(n,e,r,this.urlSerializer).pipe(Nt(i=>i?this.configLoader.loadChildren(n,e).pipe(St(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):CV(e))):ve({routes:[],injector:n})}};function PV(t){t.sort((n,e)=>n.value.outlet===Ve?-1:e.value.outlet===Ve?1:n.value.outlet.localeCompare(e.value.outlet))}function AV(t){let n=t.value.routeConfig;return n&&n.path===""}function ND(t){let n=[],e=new Set;for(let r of t){if(!AV(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=ND(r.children);n.push(new fr(r.value,i))}return n.filter(r=>!e.has(r))}function aD(t){return t.data||{}}function lD(t){return t.resolve||{}}function NV(t,n,e,r,i,o){return Nt(s=>OV(t,n,e,r,s.extractedUrl,i,o).pipe(be(({state:a,tree:l})=>A(_({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function FV(t,n){return Nt(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return ve(e);let o=new Set(i.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of FD(l))s.add(c);let a=0;return ft(s).pipe(Vo(l=>o.has(l)?LV(l,r,t,n):(l.data=Nh(l,l.parent,t).resolve,ve(void 0))),St(()=>a++),Za(1),Nt(l=>a===s.size?ve(e):Pt))})}function FD(t){let n=t.children.map(e=>FD(e)).flat();return[t,...n]}function LV(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!ID(i)&&(o[Wd]=i.title),Nc(()=>(t.data=Nh(t,t.parent,e).resolve,BV(o,t,n,r).pipe(be(s=>(t._resolvedData=s,t.data=_(_({},t.data),s),null)))))}function BV(t,n,e,r){let i=yv(t);if(i.length===0)return ve({});let o={};return ft(i).pipe(Nt(s=>VV(t[s],n,e,r).pipe(ao(),St(a=>{if(a instanceof Nl)throw Fh(new aa,a);o[s]=a}))),Za(1),be(()=>o),dr(s=>RD(s)?Pt:_i(s)))}function VV(t,n,e,r){let i=Ll(n)??r,o=Vl(t,i),s=o.resolve?o.resolve(n,e):In(i,()=>o(n,e));return vo(s)}function mv(t){return bn(n=>{let e=t(n);return e?ft(e).pipe(be(()=>n)):ve(n)})}var Pv=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===Ve);return r}getResolvedTitleForRoute(e){return e.data[Wd]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>x(LD),providedIn:"root"})}return t})(),LD=(()=>{class t extends Pv{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(me(tD))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Kd=new H("",{providedIn:"root",factory:()=>({})}),Yd=new H(""),BD=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=x(Nb);loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return ve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=vo(In(e,()=>r.loadComponent())).pipe(be(jD),bn(zD),St(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Ci(()=>{this.componentLoaders.delete(r)})),o=new qa(i,()=>new qe).pipe(Ga());return this.componentLoaders.set(r,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=VD(r,this.compiler,e,this.onLoadEndListener).pipe(Ci(()=>{this.childrenLoaders.delete(r)})),s=new qa(o,()=>new qe).pipe(Ga());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function VD(t,n,e,r){return vo(In(e,()=>t.loadChildren())).pipe(be(jD),bn(zD),Nt(i=>i instanceof Gf||Array.isArray(i)?ve(i):ft(n.compileModuleAsync(i))),be(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Yd,[],{optional:!0,self:!0}).flat()),{routes:s.map(Rv),injector:o}}))}function jV(t){return t&&typeof t=="object"&&"default"in t}function jD(t){return jV(t)?t.default:t}function zD(t){return ve(t)}var zh=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>x(zV),providedIn:"root"})}return t})(),zV=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),HD=new H("");var $D=new H(""),UD=(()=>{class t{currentNavigation=ge(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new qe;transitionAbortWithErrorSubject=new qe;configLoader=x(BD);environmentInjector=x(Jt);destroyRef=x(kr);urlSerializer=x(Gd);rootContexts=x(Bl);location=x(xl);inputBindingEnabled=x(Vh,{optional:!0})!==null;titleStrategy=x(Pv);options=x(Kd,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=x(zh);createViewTransition=x(HD,{optional:!0});navigationErrorHandler=x($D,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>ve(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Ih(i)),r=i=>this.events.next(new Dh(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;fn(()=>{this.transitions?.next(A(_({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))})}setupNavigations(e){return this.transitions=new an(null),this.transitions.pipe(nn(r=>r!==null),bn(r=>{let i=!1;return ve(r).pipe(bn(o=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",qn.SupersededByNewNavigation),Pt;this.currentTransition=r,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?A(_({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new bo(o.id,this.urlSerializer.serialize(o.rawUrl),"",Ld.IgnoredSameUrlNavigation)),o.resolve(!1),Pt;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return ve(o).pipe(bn(l=>(this.events.next(new la(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Pt:Promise.resolve(l))),NV(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),St(l=>{r.targetSnapshot=l.targetSnapshot,r.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=l.urlAfterRedirects,d));let c=new Bd(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:c,source:d,restoredState:u,extras:p}=o,f=new la(l,this.urlSerializer.serialize(c),d,u);this.events.next(f);let y=ED(this.rootComponentType).snapshot;return this.currentTransition=r=A(_({},o),{targetSnapshot:y,urlAfterRedirects:c,extras:A(_({},p),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(b=>(b.finalUrl=c,b)),ve(r)}else return this.events.next(new bo(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Ld.IgnoredByUrlHandlingStrategy)),o.resolve(!1),Pt}),St(o=>{let s=new xh(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),be(o=>(this.currentTransition=r=A(_({},o),{guards:eV(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),uV(this.environmentInjector,o=>this.events.next(o)),St(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Fh(this.urlSerializer,o.guardsResult);let s=new Th(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),nn(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",qn.GuardRejected),!1)),mv(o=>{if(o.guards.canActivateChecks.length!==0)return ve(o).pipe(St(s=>{let a=new Eh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),bn(s=>{let a=!1;return ve(s).pipe(FV(this.paramsInheritanceStrategy,this.environmentInjector),St({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",qn.NoDataFromResolver)}}))}),St(s=>{let a=new Sh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),mv(o=>{let s=a=>{let l=[];if(a.routeConfig?.loadComponent){let c=Ll(a)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,a.routeConfig).pipe(St(d=>{a.component=d}),be(()=>{})))}for(let c of a.children)l.push(...s(c));return l};return Rp(s(o.targetSnapshot.root)).pipe(jo(null),so(1))}),mv(()=>this.afterPreactivation()),bn(()=>{let{currentSnapshot:o,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?ft(a).pipe(be(()=>r)):ve(r)}),be(o=>{let s=K4(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=A(_({},o),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),St(()=>{this.events.next(new Vd)}),X4(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),so(1),Np(new pe(o=>{let s=r.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(nn(()=>!i&&!r.targetRouterState),St(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",qn.Aborted)}))),St({next:o=>{i=!0,this.lastSuccessfulNavigation=fn(this.currentNavigation),this.events.next(new yo(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),Np(this.transitionAbortWithErrorSubject.pipe(St(o=>{throw o}))),Ci(()=>{i||this.cancelNavigationTransition(r,"",qn.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),dr(o=>{if(this.destroyed)return r.resolve(!1),Pt;if(i=!0,OD(o))this.events.next(new Ni(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),J4(o)?this.events.next(new Al(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let s=new Pl(r.id,this.urlSerializer.serialize(r.extractedUrl),o,r.targetSnapshot??void 0);try{let a=In(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof Nl){let{message:l,cancellationCode:c}=Fh(this.urlSerializer,a);this.events.next(new Ni(r.id,this.urlSerializer.serialize(r.extractedUrl),l,c)),this.events.next(new Al(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return Pt}))}))}cancelNavigationTransition(e,r,i){let o=new Ni(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=fn(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function HV(t){return t!==Ad}var WD=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>x($V),providedIn:"root"})}return t})(),Bh=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},$V=(()=>{class t extends Bh{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),GD=(()=>{class t{urlSerializer=x(Gd);options=x(Kd,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=x(xl);urlHandlingStrategy=x(zh);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Fi;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof Fi?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=ED(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:()=>x(UV),providedIn:"root"})}return t})(),UV=(()=>{class t extends GD{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof la?this.updateStateMemento():e instanceof bo?this.commitTransition(r):e instanceof Bd?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Vd?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ni&&e.code!==qn.SupersededByNewNavigation&&e.code!==qn.Redirect?this.restoreHistory(r):e instanceof Pl?this.restoreHistory(r,!0):e instanceof yo&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,l=_(_({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",l)}else{let a=_(_({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Av(t,n){t.events.pipe(nn(e=>e instanceof yo||e instanceof Ni||e instanceof Pl||e instanceof bo),be(e=>e instanceof yo||e instanceof bo?0:(e instanceof Ni?e.code===qn.Redirect||e.code===qn.SupersededByNewNavigation:!1)?2:1),nn(e=>e!==2),so(1)).subscribe(()=>{n()})}var WV={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},GV={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Vn=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=x(Eb);stateManager=x(GD);options=x(Kd,{optional:!0})||{};pendingTasks=x(ki);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=x(UD);urlSerializer=x(Gd);location=x(xl);urlHandlingStrategy=x(zh);injector=x(Jt);_events=new qe;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=x(WD);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=x(Yd,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!x(Vh,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new qt;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=fn(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof Ni&&r.code!==qn.Redirect&&r.code!==qn.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof yo)this.navigated=!0;else if(r instanceof Al){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),l=_({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||HV(i.source)},s);this.scheduleNavigation(a,Ad,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}W4(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ad,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let l=_({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(l=>{this.disposed||this.injector.get(Jn)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return fn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Rv),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=_(_({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let u;try{let p=i?i.snapshot:this.routerState.snapshot.root;u=wD(p)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),u=this.currentUrlTree.root}return CD(u,e,d,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=Rl(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ad,null,r)}navigate(e,r={skipLocationChange:!1}){return qV(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn($o(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=_({},WV):r===!1?i=_({},GV):i=r,Rl(e))return nD(this.currentUrlTree,e,i);let o=this.parseUrl(e);return nD(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((u,p)=>{a=u,l=p});let d=this.pendingTasks.add();return Av(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(u=>Promise.reject(u))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qV(t){for(let n=0;ne.\u0275providers)])}function YV(t){return t.routerState.root}function ZV(){let t=x(Vt);return n=>{let e=t.get(Ri);if(n!==e.components[0])return;let r=t.get(Vn),i=t.get(JV);t.get(XV)===1&&r.initialNavigation(),t.get(e6,null,{optional:!0})?.setUpPreloading(),t.get(KV,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var JV=new H("",{factory:()=>new qe}),XV=new H("",{providedIn:"root",factory:()=>1});var e6=new H("");function as(...t){if(t){let n=[];for(let e=0;ea?s:void 0);n=o.length?n.concat(o.filter(s=>!!s)):n}}return n.join(" ").trim()}}function wn(t,n){return t?t.classList?t.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(t.className):!1}function ri(t,n){if(t&&n){let e=r=>{wn(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[n].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(e))}}function r6(){return window.innerWidth-document.documentElement.offsetWidth}function qD(t){typeof t=="string"?ri(document.body,t||"p-overflow-hidden"):(t!=null&&t.variableName&&document.body.style.setProperty(t.variableName,r6()+"px"),ri(document.body,t?.className||"p-overflow-hidden"))}function Bi(t,n){if(t&&n){let e=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[n].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(e))}}function QD(t){typeof t=="string"?Bi(document.body,t||"p-overflow-hidden"):(t!=null&&t.variableName&&document.body.style.removeProperty(t.variableName),Bi(document.body,t?.className||"p-overflow-hidden"))}function Zd(t){for(let n of document?.styleSheets)try{for(let e of n?.cssRules)for(let r of e?.style)if(t.test(r))return{name:r,value:e.style.getPropertyValue(r).trim()}}catch{}return null}function KD(t){let n={width:0,height:0};if(t){let[e,r]=[t.style.visibility,t.style.display],i=t.getBoundingClientRect();t.style.visibility="hidden",t.style.display="block",n.width=i.width||t.offsetWidth,n.height=i.height||t.offsetHeight,t.style.display=r,t.style.visibility=e}return n}function Hh(){let t=window,n=document,e=n.documentElement,r=n.getElementsByTagName("body")[0],i=t.innerWidth||e.clientWidth||r.clientWidth,o=t.innerHeight||e.clientHeight||r.clientHeight;return{width:i,height:o}}function Fv(t){return t?Math.abs(t.scrollLeft):0}function Lv(){let t=document.documentElement;return(window.pageXOffset||Fv(t))-(t.clientLeft||0)}function Bv(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function i6(t){return t?getComputedStyle(t).direction==="rtl":!1}function YD(t,n,e=!0){var r,i,o,s;if(t){let a=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:KD(t),l=a.height,c=a.width,d=n.offsetHeight,u=n.offsetWidth,p=n.getBoundingClientRect(),f=Bv(),y=Lv(),b=Hh(),v,w,D="top";p.top+d+l>b.height?(v=p.top+f-l,D="bottom",v<0&&(v=f)):v=d+p.top+f,p.left+c>b.width?w=Math.max(0,p.left+y+u-c):w=p.left+y,i6(t)?t.style.insetInlineEnd=w+"px":t.style.insetInlineStart=w+"px",t.style.top=v+"px",t.style.transformOrigin=D,e&&(t.style.marginTop=D==="bottom"?`calc(${(i=(r=Zd(/-anchor-gutter$/))==null?void 0:r.value)!=null?i:"2px"} * -1)`:(s=(o=Zd(/-anchor-gutter$/))==null?void 0:o.value)!=null?s:"")}}function ZD(t,n){t&&(typeof n=="string"?t.style.cssText=n:Object.entries(n||{}).forEach(([e,r])=>t.style[e]=r))}function Mn(t,n){if(t instanceof HTMLElement){let e=t.offsetWidth;if(n){let r=getComputedStyle(t);e+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return e}return 0}function JD(t,n,e=!0,r=void 0){var i;if(t){let o=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:KD(t),s=n.offsetHeight,a=n.getBoundingClientRect(),l=Hh(),c,d,u=r??"top";if(!r&&a.top+s+o.height>l.height?(c=-1*o.height,u="bottom",a.top+c<0&&(c=-1*a.top)):c=s,o.width>l.width?d=a.left*-1:a.left+o.width>l.width?d=(a.left+o.width-l.width)*-1:d=0,t.style.top=c+"px",t.style.insetInlineStart=d+"px",t.style.transformOrigin=u,e){let p=(i=Zd(/-anchor-gutter$/))==null?void 0:i.value;t.style.marginTop=u==="bottom"?`calc(${p??"2px"} * -1)`:p??""}}}function XD(t){if(t){let n=t.parentNode;return n&&n instanceof ShadowRoot&&n.host&&(n=n.host),n}return null}function o6(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&XD(t))}function Jd(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function ek(t){let n=t;return t&&typeof t=="object"&&(Object.hasOwn(t,"current")?n=t.current:Object.hasOwn(t,"el")&&(Object.hasOwn(t.el,"nativeElement")?n=t.el.nativeElement:n=t.el)),Jd(n)?n:void 0}function Vv(t,n){var e,r,i;if(t)switch(t){case"document":return document;case"window":return window;case"body":return document.body;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@first":return n?.firstElementChild;case"@last":return n?.lastElementChild;case"@child":return(e=n?.children)==null?void 0:e[0];case"@parent":return n?.parentElement;case"@grandparent":return(r=n?.parentElement)==null?void 0:r.parentElement;default:{if(typeof t=="string"){let a=t.match(/^@child\[(\d+)]/);return a?((i=n?.children)==null?void 0:i[parseInt(a[1],10)])||null:document.querySelector(t)||null}let o=(a=>typeof a=="function"&&"call"in a&&"apply"in a)(t)?t():t,s=ek(o);return o6(s)?s:o?.nodeType===9?o:void 0}}}function Xd(t,n){let e=Vv(t,n);if(e)e.appendChild(n);else throw new Error("Cannot append "+n+" to "+t)}function $h(t,n={}){if(Jd(t)){let e=(r,i)=>{var o,s;let a=(o=t?.$attrs)!=null&&o[r]?[(s=t?.$attrs)==null?void 0:s[r]]:[];return[i].flat().reduce((l,c)=>{if(c!=null){let d=typeof c;if(d==="string"||d==="number")l.push(c);else if(d==="object"){let u=Array.isArray(c)?e(r,c):Object.entries(c).map(([p,f])=>r==="style"&&(f||f===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${f}`:f?p:void 0);l=u.length?l.concat(u.filter(p=>!!p)):l}}return l},a)};Object.entries(n).forEach(([r,i])=>{if(i!=null){let o=r.match(/^on(.+)/);o?t.addEventListener(o[1].toLowerCase(),i):r==="p-bind"||r==="pBind"?$h(t,i):(i=r==="class"?[...new Set(e("class",i))].join(" ").trim():r==="style"?e("style",i).join(";").trim():i,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=i),t.setAttribute(r,i))}})}}function eu(t,n={},...e){if(t){let r=document.createElement(t);return $h(r,n),r.append(...e),r}}function tk(t,n){if(t){t.style.opacity="0";let e=+new Date,r="0",i=function(){r=`${+t.style.opacity+(new Date().getTime()-e)/n}`,t.style.opacity=r,e=+new Date,+r<1&&("requestAnimationFrame"in window?requestAnimationFrame(i):setTimeout(i,16))};i()}}function Vi(t,n){return Jd(t)?Array.from(t.querySelectorAll(n)):[]}function wt(t,n){return Jd(t)?t.matches(n)?t:t.querySelector(n):null}function ii(t,n){t&&document.activeElement!==t&&t.focus(n)}function ca(t,n=""){let e=Vi(t,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, + [href]:not([tabindex = "-1"]):not([style*="display:none"]):not([hidden])${n}, + input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, + select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, + textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, + [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, + [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`),r=[];for(let i of e)getComputedStyle(i).display!="none"&&getComputedStyle(i).visibility!="hidden"&&r.push(i);return r}function nk(t,n){let e=ca(t,n);return e.length>0?e[0]:null}function ji(t){if(t){let n=t.offsetHeight,e=getComputedStyle(t);return n-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),n}return 0}function tu(t){var n;if(t){let e=(n=XD(t))==null?void 0:n.childNodes,r=0;if(e)for(let i=0;i0?e[e.length-1]:null}function ik(t){if(t){let n=t.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||Fv(document.documentElement)||Fv(document.body)||0)}}return{top:"auto",left:"auto"}}function oi(t,n){if(t){let e=t.offsetHeight;if(n){let r=getComputedStyle(t);e+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return e}return 0}function ok(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function zi(t){if(t){let n=t.offsetWidth,e=getComputedStyle(t);return n-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth),n}return 0}function jv(t){return!!(t&&t.offsetParent!=null)}function _o(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function sk(t){var n;t&&("remove"in Element.prototype?t.remove():(n=t.parentNode)==null||n.removeChild(t))}function ak(t,n){let e=ek(t);if(e)e.removeChild(n);else throw new Error("Cannot remove "+n+" from "+t)}function lk(t,n){let e=getComputedStyle(t).getPropertyValue("borderTopWidth"),r=e?parseFloat(e):0,i=getComputedStyle(t).getPropertyValue("paddingTop"),o=i?parseFloat(i):0,s=t.getBoundingClientRect(),a=n.getBoundingClientRect().top+document.body.scrollTop-(s.top+document.body.scrollTop)-r-o,l=t.scrollTop,c=t.clientHeight,d=oi(n);a<0?t.scrollTop=l+a:a+d>c&&(t.scrollTop=l+a-c+d)}function nu(t,n="",e){Jd(t)&&e!==null&&e!==void 0&&t.setAttribute(n,e)}function ck(){let t=new Map;return{on(n,e){let r=t.get(n);return r?r.push(e):r=[e],t.set(n,r),this},off(n,e){let r=t.get(n);return r&&r.splice(r.indexOf(e)>>>0,1),this},emit(n,e){let r=t.get(n);r&&r.forEach(i=>{i(e)})},clear(){t.clear()}}}var s6=Object.defineProperty,dk=Object.getOwnPropertySymbols,a6=Object.prototype.hasOwnProperty,l6=Object.prototype.propertyIsEnumerable,uk=(t,n,e)=>n in t?s6(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,pk=(t,n)=>{for(var e in n||(n={}))a6.call(n,e)&&uk(t,e,n[e]);if(dk)for(var e of dk(n))l6.call(n,e)&&uk(t,e,n[e]);return t};function fk(...t){if(t){let n=[];for(let e=0;ea?s:void 0);n=o.length?n.concat(o.filter(s=>!!s)):n}}return n.join(" ").trim()}}function c6(t){return typeof t=="function"&&"call"in t&&"apply"in t}function d6({skipUndefined:t=!1},...n){return n?.reduce((e,r={})=>{for(let i in r){let o=r[i];if(!(t&&o===void 0))if(i==="style")e.style=pk(pk({},e.style),r.style);else if(i==="class"||i==="className")e[i]=fk(e[i],r[i]);else if(c6(o)){let s=e[i];e[i]=s?(...a)=>{s(...a),o(...a)}:o}else e[i]=o}return e},{})}function zv(...t){return d6({skipUndefined:!1},...t)}var u6=Object.defineProperty,hk=Object.getOwnPropertySymbols,p6=Object.prototype.hasOwnProperty,f6=Object.prototype.propertyIsEnumerable,mk=(t,n,e)=>n in t?u6(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,h6=(t,n)=>{for(var e in n||(n={}))p6.call(n,e)&&mk(t,e,n[e]);if(hk)for(var e of hk(n))f6.call(n,e)&&mk(t,e,n[e]);return t};function Hi(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Hv(t,n,e=new WeakSet){if(t===n)return!0;if(!t||!n||typeof t!="object"||typeof n!="object"||e.has(t)||e.has(n))return!1;e.add(t).add(n);let r=Array.isArray(t),i=Array.isArray(n),o,s,a;if(r&&i){if(s=t.length,s!=n.length)return!1;for(o=s;o--!==0;)if(!Hv(t[o],n[o],e))return!1;return!0}if(r!=i)return!1;let l=t instanceof Date,c=n instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==n.getTime();let d=t instanceof RegExp,u=n instanceof RegExp;if(d!=u)return!1;if(d&&u)return t.toString()==n.toString();let p=Object.keys(t);if(s=p.length,s!==Object.keys(n).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,p[o]))return!1;for(o=s;o--!==0;)if(a=p[o],!Hv(t[a],n[a],e))return!1;return!0}function $v(t,n){return Hv(t,n)}function Uh(t){return typeof t=="function"&&"call"in t&&"apply"in t}function lt(t){return!Hi(t)}function On(t,n){if(!t||!n)return null;try{let e=t[n];if(lt(e))return e}catch{}if(Object.keys(t).length){if(Uh(n))return n(t);if(n.indexOf(".")===-1)return t[n];{let e=n.split("."),r=t;for(let i=0,o=e.length;i{let i=r;si(n[i])&&i in t&&si(t[i])?e[i]=yk(t[i],n[i]):e[i]=n[i]}),e}function bk(...t){return t.reduce((n,e,r)=>r===0?e:yk(n,e),{})}function Uv(t,n){let e=-1;if(lt(t))try{e=t.findLastIndex(n)}catch{e=t.lastIndexOf([...t].reverse().find(n))}return e}function Cn(t,...n){return Uh(t)?t(...n):t}function Fr(t,n=!0){return typeof t=="string"&&(n||t!=="")}function ls(t){return Fr(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Wh(t,n="",e={}){let r=ls(n).split("."),i=r.shift();if(i){if(si(t)){let o=Object.keys(t).find(s=>ls(s)===i)||"";return Wh(Cn(t[o],e),r.join("."),e)}return}return Cn(t,e)}function Wv(t,n=!0){return Array.isArray(t)&&(n||t.length!==0)}function ru(t){return t instanceof Date}function vk(t){return lt(t)&&!isNaN(t)}function _k(t=""){return lt(t)&&t.length===1&&!!t.match(/\S| /)}function ai(t,n){if(n){let e=n.test(t);return n.lastIndex=0,e}return!1}function da(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function mr(t){if(t&&/[\xC0-\xFF\u0100-\u017E]/.test(t)){let n={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let e in n)t=t.replace(n[e],e)}return t}function Gh(t){return Fr(t)?t.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():t}var qh={};function gt(t="pui_id_"){return Object.hasOwn(qh,t)||(qh[t]=0),qh[t]++,`${t}${qh[t]}`}var wk=["*"];var hn=(()=>{class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return t})(),Gv=(()=>{class t{static AND="and";static OR="or"}return t})(),jl=(()=>{class t{filter(e,r,i,o,s){let a=[];if(e)for(let l of e)for(let c of r){let d=On(l,c);if(this.filters[o](d,i,s)){a.push(l);break}}return a}filters={startsWith:(e,r,i)=>{if(r==null||r.trim()==="")return!0;if(e==null)return!1;let o=mr(r.toString()).toLocaleLowerCase(i);return mr(e.toString()).toLocaleLowerCase(i).slice(0,o.length)===o},contains:(e,r,i)=>{if(r==null||typeof r=="string"&&r.trim()==="")return!0;if(e==null)return!1;let o=mr(r.toString()).toLocaleLowerCase(i);return mr(e.toString()).toLocaleLowerCase(i).indexOf(o)!==-1},notContains:(e,r,i)=>{if(r==null||typeof r=="string"&&r.trim()==="")return!0;if(e==null)return!1;let o=mr(r.toString()).toLocaleLowerCase(i);return mr(e.toString()).toLocaleLowerCase(i).indexOf(o)===-1},endsWith:(e,r,i)=>{if(r==null||r.trim()==="")return!0;if(e==null)return!1;let o=mr(r.toString()).toLocaleLowerCase(i),s=mr(e.toString()).toLocaleLowerCase(i);return s.indexOf(o,s.length-o.length)!==-1},equals:(e,r,i)=>r==null||typeof r=="string"&&r.trim()===""?!0:e==null?!1:e.getTime&&r.getTime?e.getTime()===r.getTime():e==r?!0:mr(e.toString()).toLocaleLowerCase(i)==mr(r.toString()).toLocaleLowerCase(i),notEquals:(e,r,i)=>r==null||typeof r=="string"&&r.trim()===""?!1:e==null?!0:e.getTime&&r.getTime?e.getTime()!==r.getTime():e==r?!1:mr(e.toString()).toLocaleLowerCase(i)!=mr(r.toString()).toLocaleLowerCase(i),in:(e,r)=>{if(r==null||r.length===0)return!0;for(let i=0;ir==null||r[0]==null||r[1]==null?!0:e==null?!1:e.getTime?r[0].getTime()<=e.getTime()&&e.getTime()<=r[1].getTime():r[0]<=e&&e<=r[1],lt:(e,r,i)=>r==null?!0:e==null?!1:e.getTime&&r.getTime?e.getTime()r==null?!0:e==null?!1:e.getTime&&r.getTime?e.getTime()<=r.getTime():e<=r,gt:(e,r,i)=>r==null?!0:e==null?!1:e.getTime&&r.getTime?e.getTime()>r.getTime():e>r,gte:(e,r,i)=>r==null?!0:e==null?!1:e.getTime&&r.getTime?e.getTime()>=r.getTime():e>=r,is:(e,r,i)=>this.filters.equals(e,r,i),isNot:(e,r,i)=>this.filters.notEquals(e,r,i),before:(e,r,i)=>this.filters.lt(e,r,i),after:(e,r,i)=>this.filters.gt(e,r,i),dateIs:(e,r)=>r==null?!0:e==null?!1:e.toDateString()===r.toDateString(),dateIsNot:(e,r)=>r==null?!0:e==null?!1:e.toDateString()!==r.toDateString(),dateBefore:(e,r)=>r==null?!0:e==null?!1:e.getTime()r==null?!0:e==null?!1:(e.setHours(0,0,0,0),e.getTime()>r.getTime())};register(e,r){this.filters[e]=r}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var zl=(()=>{class t{clickSource=new qe;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ck=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=$({type:t,selectors:[["p-header"]],standalone:!1,ngContentSelectors:wk,decls:1,vars:0,template:function(r,i){r&1&&(Ht(),Ot(0))},encapsulation:2})}return t})(),xk=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=$({type:t,selectors:[["p-footer"]],standalone:!1,ngContentSelectors:wk,decls:1,vars:0,template:function(r,i){r&1&&(Ht(),Ot(0))},encapsulation:2})}return t})(),xt=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(r){return new(r||t)(de(Oi))};static \u0275dir=Ue({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]}})}return t})(),Te=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Qe]})}return t})(),xn=(()=>{class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return t})();var m6=Object.defineProperty,g6=Object.defineProperties,y6=Object.getOwnPropertyDescriptors,Qh=Object.getOwnPropertySymbols,Sk=Object.prototype.hasOwnProperty,Ik=Object.prototype.propertyIsEnumerable,Tk=(t,n,e)=>n in t?m6(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,ci=(t,n)=>{for(var e in n||(n={}))Sk.call(n,e)&&Tk(t,e,n[e]);if(Qh)for(var e of Qh(n))Ik.call(n,e)&&Tk(t,e,n[e]);return t},qv=(t,n)=>g6(t,y6(n)),wo=(t,n)=>{var e={};for(var r in t)Sk.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&Qh)for(var r of Qh(t))n.indexOf(r)<0&&Ik.call(t,r)&&(e[r]=t[r]);return e};function Dk(...t){return bk(...t)}var b6=ck(),mn=b6,iu=/{([^}]*)}/g,kk=/(\d+\s+[\+\-\*\/]\s+\d+)/g,Mk=/var\([^)]+\)/g;function Ek(t){return Fr(t)?t.replace(/[A-Z]/g,(n,e)=>e===0?n:"."+n.toLowerCase()).toLowerCase():t}function v6(t){return si(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function _6(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Qv(t="",n=""){return _6(`${Fr(t,!1)&&Fr(n,!1)?`${t}-`:t}${n}`)}function Ok(t="",n=""){return`--${Qv(t,n)}`}function w6(t=""){let n=(t.match(/{/g)||[]).length,e=(t.match(/}/g)||[]).length;return(n+e)%2!==0}function Rk(t,n="",e="",r=[],i){if(Fr(t)){let o=t.trim();if(w6(o))return;if(ai(o,iu)){let s=o.replaceAll(iu,a=>{let l=a.replace(/{|}/g,"").split(".").filter(c=>!r.some(d=>ai(c,d)));return`var(${Ok(e,Gh(l.join("-")))}${lt(i)?`, ${i}`:""})`});return ai(s.replace(Mk,"0"),kk)?`calc(${s})`:s}return o}else if(vk(t))return t}function C6(t,n,e){Fr(n,!1)&&t.push(`${n}:${e};`)}function $l(t,n){return t?`${t}{${n}}`:""}function Pk(t,n){if(t.indexOf("dt(")===-1)return t;function e(s,a){let l=[],c=0,d="",u=null,p=0;for(;c<=s.length;){let f=s[c];if((f==='"'||f==="'"||f==="`")&&s[c-1]!=="\\"&&(u=u===f?null:f),!u&&(f==="("&&p++,f===")"&&p--,(f===","||c===s.length)&&p===0)){let y=d.trim();y.startsWith("dt(")?l.push(Pk(y,a)):l.push(r(y)),d="",c++;continue}f!==void 0&&(d+=f),c++}return l}function r(s){let a=s[0];if((a==='"'||a==="'"||a==="`")&&s[s.length-1]===a)return s.slice(1,-1);let l=Number(s);return isNaN(l)?s:l}let i=[],o=[];for(let s=0;s0){let a=o.pop();o.length===0&&i.push([a,s])}if(!i.length)return t;for(let s=i.length-1;s>=0;s--){let[a,l]=i[s],c=t.slice(a+3,l),d=e(c,n),u=n(...d);t=t.slice(0,a)+u+t.slice(l+1)}return t}var Yv=t=>{var n;let e=Mt.getTheme(),r=Kv(e,t,void 0,"variable"),i=(n=r?.match(/--[\w-]+/g))==null?void 0:n[0],o=Kv(e,t,void 0,"value");return{name:i,variable:r,value:o}},Co=(...t)=>Kv(Mt.getTheme(),...t),Kv=(t={},n,e,r)=>{if(n){let{variable:i,options:o}=Mt.defaults||{},{prefix:s,transform:a}=t?.options||o||{},l=ai(n,iu)?n:`{${n}}`;return r==="value"||Hi(r)&&a==="strict"?Mt.getTokenValue(n):Rk(l,void 0,s,[i.excludedKeyRegex],e)}return""};function Ul(t,...n){if(t instanceof Array){let e=t.reduce((r,i,o)=>{var s;return r+i+((s=Cn(n[o],{dt:Co}))!=null?s:"")},"");return Pk(e,Co)}return Cn(t,{dt:Co})}function x6(t,n={}){let e=Mt.defaults.variable,{prefix:r=e.prefix,selector:i=e.selector,excludedKeyRegex:o=e.excludedKeyRegex}=n,s=[],a=[],l=[{node:t,path:r}];for(;l.length;){let{node:d,path:u}=l.pop();for(let p in d){let f=d[p],y=v6(f),b=ai(p,o)?Qv(u):Qv(u,Gh(p));if(si(y))l.push({node:y,path:b});else{let v=Ok(b),w=Rk(y,b,r,[o]);C6(a,v,w);let D=b;r&&D.startsWith(r+"-")&&(D=D.slice(r.length+1)),s.push(D.replace(/-/g,"."))}}}let c=a.join("");return{value:a,tokens:s,declarations:c,css:$l(i,c)}}var li={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t},:host${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let n=Object.keys(this.rules).filter(e=>e!=="custom").map(e=>this.rules[e]);return[t].flat().map(e=>{var r;return(r=n.map(i=>i.resolve(e)).find(i=>i.matched))!=null?r:this.rules.custom.resolve(e)})}},_toVariables(t,n){return x6(t,{prefix:n?.prefix})},getCommon({name:t="",theme:n={},params:e,set:r,defaults:i}){var o,s,a,l,c,d,u;let{preset:p,options:f}=n,y,b,v,w,D,P,B;if(lt(p)&&f.transform!=="strict"){let{primitive:Y,semantic:ye,extend:Xe}=p,tt=ye||{},{colorScheme:vt}=tt,tn=wo(tt,["colorScheme"]),gi=Xe||{},{colorScheme:zn}=gi,_r=wo(gi,["colorScheme"]),Lo=vt||{},{dark:je}=Lo,Z=wo(Lo,["dark"]),K=zn||{},{dark:ee}=K,he=wo(K,["dark"]),Ye=lt(Y)?this._toVariables({primitive:Y},f):{},Fe=lt(tn)?this._toVariables({semantic:tn},f):{},Rt=lt(Z)?this._toVariables({light:Z},f):{},Sn=lt(je)?this._toVariables({dark:je},f):{},ht=lt(_r)?this._toVariables({semantic:_r},f):{},wr=lt(he)?this._toVariables({light:he},f):{},Zt=lt(ee)?this._toVariables({dark:ee},f):{},[nt,yi]=[(o=Ye.declarations)!=null?o:"",Ye.tokens],[Fn,Na]=[(s=Fe.declarations)!=null?s:"",Fe.tokens||[]],[Dc,TA]=[(a=Rt.declarations)!=null?a:"",Rt.tokens||[]],[EA,SA]=[(l=Sn.declarations)!=null?l:"",Sn.tokens||[]],[IA,DA]=[(c=ht.declarations)!=null?c:"",ht.tokens||[]],[kA,MA]=[(d=wr.declarations)!=null?d:"",wr.tokens||[]],[OA,RA]=[(u=Zt.declarations)!=null?u:"",Zt.tokens||[]];y=this.transformCSS(t,nt,"light","variable",f,r,i),b=yi;let PA=this.transformCSS(t,`${Fn}${Dc}`,"light","variable",f,r,i),AA=this.transformCSS(t,`${EA}`,"dark","variable",f,r,i);v=`${PA}${AA}`,w=[...new Set([...Na,...TA,...SA])];let NA=this.transformCSS(t,`${IA}${kA}color-scheme:light`,"light","variable",f,r,i),FA=this.transformCSS(t,`${OA}color-scheme:dark`,"dark","variable",f,r,i);D=`${NA}${FA}`,P=[...new Set([...DA,...MA,...RA])],B=Cn(p.css,{dt:Co})}return{primitive:{css:y,tokens:b},semantic:{css:v,tokens:w},global:{css:D,tokens:P},style:B}},getPreset({name:t="",preset:n={},options:e,params:r,set:i,defaults:o,selector:s}){var a,l,c;let d,u,p;if(lt(n)&&e.transform!=="strict"){let f=t.replace("-directive",""),y=n,{colorScheme:b,extend:v,css:w}=y,D=wo(y,["colorScheme","extend","css"]),P=v||{},{colorScheme:B}=P,Y=wo(P,["colorScheme"]),ye=b||{},{dark:Xe}=ye,tt=wo(ye,["dark"]),vt=B||{},{dark:tn}=vt,gi=wo(vt,["dark"]),zn=lt(D)?this._toVariables({[f]:ci(ci({},D),Y)},e):{},_r=lt(tt)?this._toVariables({[f]:ci(ci({},tt),gi)},e):{},Lo=lt(Xe)?this._toVariables({[f]:ci(ci({},Xe),tn)},e):{},[je,Z]=[(a=zn.declarations)!=null?a:"",zn.tokens||[]],[K,ee]=[(l=_r.declarations)!=null?l:"",_r.tokens||[]],[he,Ye]=[(c=Lo.declarations)!=null?c:"",Lo.tokens||[]],Fe=this.transformCSS(f,`${je}${K}`,"light","variable",e,i,o,s),Rt=this.transformCSS(f,he,"dark","variable",e,i,o,s);d=`${Fe}${Rt}`,u=[...new Set([...Z,...ee,...Ye])],p=Cn(w,{dt:Co})}return{css:d,tokens:u,style:p}},getPresetC({name:t="",theme:n={},params:e,set:r,defaults:i}){var o;let{preset:s,options:a}=n,l=(o=s?.components)==null?void 0:o[t];return this.getPreset({name:t,preset:l,options:a,params:e,set:r,defaults:i})},getPresetD({name:t="",theme:n={},params:e,set:r,defaults:i}){var o,s;let a=t.replace("-directive",""),{preset:l,options:c}=n,d=((o=l?.components)==null?void 0:o[a])||((s=l?.directives)==null?void 0:s[a]);return this.getPreset({name:a,preset:d,options:c,params:e,set:r,defaults:i})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,n){var e;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?n.options.darkModeSelector:(e=t.darkModeSelector)!=null?e:n.options.darkModeSelector):[]},getLayerOrder(t,n={},e,r){let{cssLayer:i}=n;return i?`@layer ${Cn(i.order||i.name||"primeui",e)}`:""},getCommonStyleSheet({name:t="",theme:n={},params:e,props:r={},set:i,defaults:o}){let s=this.getCommon({name:t,theme:n,params:e,set:i,defaults:o}),a=Object.entries(r).reduce((l,[c,d])=>l.push(`${c}="${d}"`)&&l,[]).join(" ");return Object.entries(s||{}).reduce((l,[c,d])=>{if(si(d)&&Object.hasOwn(d,"css")){let u=da(d.css),p=`${c}-variables`;l.push(``)}return l},[]).join("")},getStyleSheet({name:t="",theme:n={},params:e,props:r={},set:i,defaults:o}){var s;let a={name:t,theme:n,params:e,set:i,defaults:o},l=(s=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:s.css,c=Object.entries(r).reduce((d,[u,p])=>d.push(`${u}="${p}"`)&&d,[]).join(" ");return l?``:""},createTokens(t={},n,e="",r="",i={}){let o=function(a,l={},c=[]){if(c.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:a,path:this.path,paths:l,value:void 0};c.push(this.path),l.name=this.path,l.binding||(l.binding={});let d=this.value;if(typeof this.value=="string"&&iu.test(this.value)){let u=this.value.trim().replace(iu,p=>{var f;let y=p.slice(1,-1),b=this.tokens[y];if(!b)return console.warn(`Token not found for path: ${y}`),"__UNRESOLVED__";let v=b.computed(a,l,c);return Array.isArray(v)&&v.length===2?`light-dark(${v[0].value},${v[1].value})`:(f=v?.value)!=null?f:"__UNRESOLVED__"});d=kk.test(u.replace(Mk,"0"))?`calc(${u})`:u}return Hi(l.binding)&&delete l.binding,c.pop(),{colorScheme:a,path:this.path,paths:l,value:d.includes("__UNRESOLVED__")?void 0:d}},s=(a,l,c)=>{Object.entries(a).forEach(([d,u])=>{let p=ai(d,n.variable.excludedKeyRegex)?l:l?`${l}.${Ek(d)}`:Ek(d),f=c?`${c}.${d}`:d;si(u)?s(u,p,f):(i[p]||(i[p]={paths:[],computed:(y,b={},v=[])=>{if(i[p].paths.length===1)return i[p].paths[0].computed(i[p].paths[0].scheme,b.binding,v);if(y&&y!=="none")for(let w=0;ww.computed(w.scheme,b[w.scheme],v))}}),i[p].paths.push({path:f,value:u,scheme:f.includes("colorScheme.light")?"light":f.includes("colorScheme.dark")?"dark":"none",computed:o,tokens:i}))})};return s(t,e,r),i},getTokenValue(t,n,e){var r;let i=(a=>a.split(".").filter(l=>!ai(l.toLowerCase(),e.variable.excludedKeyRegex)).join("."))(n),o=n.includes("colorScheme.light")?"light":n.includes("colorScheme.dark")?"dark":void 0,s=[(r=t[i])==null?void 0:r.computed(o)].flat().filter(a=>a);return s.length===1?s[0].value:s.reduce((a={},l)=>{let c=l,{colorScheme:d}=c,u=wo(c,["colorScheme"]);return a[d]=u,a},void 0)},getSelectorRule(t,n,e,r){return e==="class"||e==="attr"?$l(lt(n)?`${t}${n},${t} ${n}`:t,r):$l(t,$l(n??":root,:host",r))},transformCSS(t,n,e,r,i={},o,s,a){if(lt(n)){let{cssLayer:l}=i;if(r!=="style"){let c=this.getColorSchemeOption(i,s);n=e==="dark"?c.reduce((d,{type:u,selector:p})=>(lt(p)&&(d+=p.includes("[CSS]")?p.replace("[CSS]",n):this.getSelectorRule(p,a,u,n)),d),""):$l(a??":root,:host",n)}if(l){let c={name:"primeui",order:"primeui"};si(l)&&(c.name=Cn(l.name,{name:t,type:r})),lt(c.name)&&(n=$l(`@layer ${c.name}`,n),o?.layerNames(c.name))}return n}return""}},Mt={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:n}=t;n&&(this._theme=qv(ci({},n),{options:ci(ci({},this.defaults.options),n.options)}),this._tokens=li.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),mn.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=qv(ci({},this.theme),{preset:t}),this._tokens=li.createTokens(t,this.defaults),this.clearLoadedStyleNames(),mn.emit("preset:change",t),mn.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=qv(ci({},this.theme),{options:t}),this.clearLoadedStyleNames(),mn.emit("options:change",t),mn.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return li.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",n){return li.getCommon({name:t,theme:this.theme,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",n){let e={name:t,theme:this.theme,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return li.getPresetC(e)},getDirective(t="",n){let e={name:t,theme:this.theme,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return li.getPresetD(e)},getCustomPreset(t="",n,e,r){let i={name:t,preset:n,options:this.options,selector:e,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return li.getPreset(i)},getLayerOrderCSS(t=""){return li.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",n,e="style",r){return li.transformCSS(t,n,r,e,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",n,e={}){return li.getCommonStyleSheet({name:t,theme:this.theme,params:n,props:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,n,e={}){return li.getStyleSheet({name:t,theme:this.theme,params:n,props:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:n}){this._loadingStyles.size&&(this._loadingStyles.delete(n),mn.emit(`theme:${n}:load`,t),!this._loadingStyles.size&&mn.emit("theme:load"))}};var Ak=` + *, + ::before, + ::after { + box-sizing: border-box; + } -`+al(e.loc));else if(this.source&&this.locations)for(let e of this.locations)n+=` + /* Non vue overlay animations */ + .p-connected-overlay { + opacity: 0; + transform: scaleY(0.8); + transition: + transform 0.12s cubic-bezier(0, 0, 0.2, 1), + opacity 0.12s cubic-bezier(0, 0, 0.2, 1); + } -`+ca(this.source,e);return n}toJSON(){let n={message:this.message};return this.locations!=null&&(n.locations=this.locations),this.path!=null&&(n.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(n.extensions=this.extensions),n}};function If(t){return t===void 0||t.length===0?void 0:t}function ut(t,n,e){return new da(`Syntax Error: ${e}`,{source:t,positions:[n]})}var ho=class{constructor(n,e,i){this.start=n.start,this.end=e.end,this.startToken=n,this.endToken=e,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},Vi=class{constructor(n,e,i,o,r,a){this.kind=n,this.start=e,this.end=i,this.line=o,this.column=r,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}}},sl={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},$b=new Set(Object.keys(sl));function ll(t){let n=t?.kind;return typeof n=="string"&&$b.has(n)}var Rt=(function(t){return t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription",t})(Rt||{});var ua=(function(t){return t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",t.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION",t})(ua||{});var B=(function(t){return t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.DIRECTIVE_EXTENSION="DirectiveExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",t})(B||{});function pa(t){return t===9||t===32}function mo(t){return t>=48&&t<=57}function Ef(t){return t>=97&&t<=122||t>=65&&t<=90}function cl(t){return Ef(t)||t===95}function Mf(t){return Ef(t)||mo(t)||t===95}function Df(t){var n;let e=Number.MAX_SAFE_INTEGER,i=null,o=-1;for(let a=0;as===0?a:a.slice(e)).slice((n=i)!==null&&n!==void 0?n:0,o+1)}function Wb(t){let n=0;for(;n1&&i.slice(1).every(g=>g.length===0||pa(g.charCodeAt(0))),a=e.endsWith('\\"""'),s=t.endsWith('"')&&!a,l=t.endsWith("\\"),c=s||l,p=!(n!=null&&n.minimize)&&(!o||t.length>70||c||r||a),h="",m=o&&pa(t.charCodeAt(0));return(p&&!m||r)&&(h+=` -`),h+=e,(p||c)&&(h+=` -`),'"""'+h+'"""'}var O=(function(t){return t.SOF="",t.EOF="",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.DOT=".",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment",t})(O||{});var or=class{constructor(n){let e=new Vi(O.SOF,0,0,0,0);this.source=n,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let n=this.token;if(n.kind!==O.EOF)do if(n.next)n=n.next;else{let e=Kb(this,n.end);n.next=e,e.prev=n,n=e}while(n.kind===O.COMMENT);return n}};function Ff(t){return t===O.BANG||t===O.DOLLAR||t===O.AMP||t===O.PAREN_L||t===O.PAREN_R||t===O.DOT||t===O.SPREAD||t===O.COLON||t===O.EQUALS||t===O.AT||t===O.BRACKET_L||t===O.BRACKET_R||t===O.BRACE_L||t===O.PIPE||t===O.BRACE_R}function go(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function fa(t,n){return Rf(t.charCodeAt(n))&&Vf(t.charCodeAt(n+1))}function Rf(t){return t>=55296&&t<=56319}function Vf(t){return t>=56320&&t<=57343}function Bi(t,n){let e=t.source.body.codePointAt(n);if(e===void 0)return O.EOF;if(e>=32&&e<=126){let i=String.fromCodePoint(e);return i==='"'?`'"'`:`"${i}"`}return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function mt(t,n,e,i,o){let r=t.line,a=1+e-t.lineStart;return new Vi(n,e,i,r,a,o)}function Kb(t,n){let e=t.source.body,i=e.length,o=n;for(;o=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function t_(t,n){let e=t.source.body;switch(e.charCodeAt(n+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 ut(t.source,n,`Invalid character escape sequence: "${e.slice(n,n+2)}".`)}function n_(t,n){let e=t.source.body,i=e.length,o=t.lineStart,r=n+3,a=r,s="",l=[];for(;r2?"["+l_(t)+"]":"{ "+e.map(([o,r])=>o+": "+ha(r,n)).join(", ")+" }"}function s_(t,n){if(t.length===0)return"[]";if(n.length>2)return"[Array]";let e=Math.min(10,t.length),i=t.length-e,o=[];for(let r=0;r1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}function l_(t){let n=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(n==="Object"&&typeof t.constructor=="function"){let e=t.constructor.name;if(typeof e=="string"&&e!=="")return e}return n}var c_=globalThis.process&&!0,Bf=c_?function(n,e){return n instanceof e}:function(n,e){if(n instanceof e)return!0;if(typeof n=="object"&&n!==null){var i;let o=e.prototype[Symbol.toStringTag],r=Symbol.toStringTag in n?n[Symbol.toStringTag]:(i=n.constructor)===null||i===void 0?void 0:i.name;if(o===r){let a=bo(n);throw new Error(`Cannot use ${o} "${a}" from another module or realm. + .p-connected-overlay-visible { + opacity: 1; + transform: scaleY(1); + } + + .p-connected-overlay-hidden { + opacity: 0; + transform: scaleY(1); + transition: opacity 0.1s linear; + } + + /* Vue based overlay animations */ + .p-connected-overlay-enter-from { + opacity: 0; + transform: scaleY(0.8); + } + + .p-connected-overlay-leave-to { + opacity: 0; + } + + .p-connected-overlay-enter-active { + transition: + transform 0.12s cubic-bezier(0, 0, 0.2, 1), + opacity 0.12s cubic-bezier(0, 0, 0.2, 1); + } + + .p-connected-overlay-leave-active { + transition: opacity 0.1s linear; + } + + /* Toggleable Content */ + .p-toggleable-content-enter-from, + .p-toggleable-content-leave-to { + max-height: 0; + } + + .p-toggleable-content-enter-to, + .p-toggleable-content-leave-from { + max-height: 1000px; + } + + .p-toggleable-content-leave-active { + overflow: hidden; + transition: max-height 0.45s cubic-bezier(0, 1, 0, 1); + } + + .p-toggleable-content-enter-active { + overflow: hidden; + transition: max-height 1s ease-in-out; + } + + .p-disabled, + .p-disabled * { + cursor: default; + pointer-events: none; + user-select: none; + } + + .p-disabled, + .p-component:disabled { + opacity: dt('disabled.opacity'); + } + + .pi { + font-size: dt('icon.size'); + } + + .p-icon { + width: dt('icon.size'); + height: dt('icon.size'); + } + + .p-overlay-mask { + background: dt('mask.background'); + color: dt('mask.color'); + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + } + + .p-overlay-mask-enter { + animation: p-overlay-mask-enter-animation dt('mask.transition.duration') forwards; + } + + .p-overlay-mask-leave { + animation: p-overlay-mask-leave-animation dt('mask.transition.duration') forwards; + } + + @keyframes p-overlay-mask-enter-animation { + from { + background: transparent; + } + to { + background: dt('mask.background'); + } + } + @keyframes p-overlay-mask-leave-animation { + from { + background: dt('mask.background'); + } + to { + background: transparent; + } + } +`;var T6=0,Nk=(()=>{class t{document=x(bt);use(e,r={}){let i=!1,o=e,s=null,{immediate:a=!0,manual:l=!1,name:c=`style_${++T6}`,id:d=void 0,media:u=void 0,nonce:p=void 0,first:f=!1,props:y={}}=r;if(this.document){if(s=this.document.querySelector(`style[data-primeng-style-id="${c}"]`)||d&&this.document.getElementById(d)||this.document.createElement("style"),s){if(!s.isConnected){o=e;let b=this.document.head;nu(s,"nonce",p),f&&b.firstChild?b.insertBefore(s,b.firstChild):b.appendChild(s),$h(s,{type:"text/css",media:u,nonce:p,"data-primeng-style-id":c})}s.textContent!==o&&(s.textContent=o)}return{id:d,name:c,el:s,css:o}}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Wl={_loadedStyleNames:new Set,getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()}},E6=` +.p-hidden-accessible { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} + +.p-hidden-accessible input, +.p-hidden-accessible select { + transform: scale(0); +} + +.p-overflow-hidden { + overflow: hidden; + padding-right: dt('scrollbar.width'); +} +`,Oe=(()=>{class t{name="base";useStyle=x(Nk);css=void 0;style=void 0;classes={};inlineStyles={};load=(e,r={},i=o=>o)=>{let o=i(Ul`${Cn(e,{dt:Co})}`);return o?this.useStyle.use(da(o),_({name:this.name},r)):{}};loadCSS=(e={})=>this.load(this.css,e);loadStyle=(e={},r="")=>this.load(this.style,e,(i="")=>Mt.transformCSS(e.name||this.name,`${i}${Ul`${r}`}`));loadBaseCSS=(e={})=>this.load(E6,e);loadBaseStyle=(e={},r="")=>this.load(Ak,e,(i="")=>Mt.transformCSS(e.name||this.name,`${i}${Ul`${r}`}`));getCommonTheme=e=>Mt.getCommon(this.name,e);getComponentTheme=e=>Mt.getComponent(this.name,e);getPresetTheme=(e,r,i)=>Mt.getCustomPreset(this.name,e,r,i);getLayerOrderThemeCSS=()=>Mt.getLayerOrderCSS(this.name);getStyleSheet=(e="",r={})=>{if(this.css){let i=Cn(this.css,{dt:Co}),o=da(Ul`${i}${e}`),s=Object.entries(r).reduce((a,[l,c])=>a.push(`${l}="${c}"`)&&a,[]).join(" ");return``}return""};getCommonThemeStyleSheet=(e,r={})=>Mt.getCommonStyleSheet(this.name,e,r);getThemeStyleSheet=(e,r={})=>{let i=[Mt.getStyleSheet(this.name,e,r)];if(this.style){let o=this.name==="base"?"global-style":`${this.name}-style`,s=Ul`${Cn(this.style,{dt:Co})}`,a=da(Mt.transformCSS(o,s)),l=Object.entries(r).reduce((c,[d,u])=>c.push(`${d}="${u}"`)&&c,[]).join(" ");i.push(``)}return i.join("")};static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var S6=(()=>{class t{theme=ge(void 0);csp=ge({nonce:void 0});isThemeChanged=!1;document=x(bt);baseStyle=x(Oe);constructor(){Lt(()=>{mn.on("theme:change",e=>{fn(()=>{this.isThemeChanged=!0,this.theme.set(e)})})}),Lt(()=>{let e=this.theme();this.document&&e&&(this.isThemeChanged||this.onThemeChange(e),this.isThemeChanged=!1)})}ngOnDestroy(){Mt.clearLoadedStyleNames(),mn.clear()}onThemeChange(e){Mt.setTheme(e),this.document&&this.loadCommonTheme()}loadCommonTheme(){if(this.theme()!=="none"&&!Mt.isStyleNameLoaded("common")){let{primitive:e,semantic:r,global:i,style:o}=this.baseStyle.getCommonTheme?.()||{},s={nonce:this.csp?.()?.nonce};this.baseStyle.load(e?.css,_({name:"primitive-variables"},s)),this.baseStyle.load(r?.css,_({name:"semantic-variables"},s)),this.baseStyle.load(i?.css,_({name:"global-variables"},s)),this.baseStyle.loadBaseStyle(_({name:"global-style"},s),o),Mt.setLoadedStyleName("common")}}setThemeConfig(e){let{theme:r,csp:i}=e||{};r&&this.theme.set(r),i&&this.csp.set(i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Zv=(()=>{class t extends S6{ripple=ge(!1);platformId=x(Yr);inputStyle=ge(null);inputVariant=ge(null);overlayAppendTo=ge("self");overlayOptions={};csp=ge({nonce:void 0});unstyled=ge(void 0);pt=ge(void 0);ptOptions=ge(void 0);filterMatchModeOptions={text:[hn.STARTS_WITH,hn.CONTAINS,hn.NOT_CONTAINS,hn.ENDS_WITH,hn.EQUALS,hn.NOT_EQUALS],numeric:[hn.EQUALS,hn.NOT_EQUALS,hn.LESS_THAN,hn.LESS_THAN_OR_EQUAL_TO,hn.GREATER_THAN,hn.GREATER_THAN_OR_EQUAL_TO],date:[hn.DATE_IS,hn.DATE_IS_NOT,hn.DATE_BEFORE,hn.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",completed:"Completed",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"Search results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",fileChosenMessage:"Files",noFileChosenMessage:"No file chosen",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize",minimizeLabel:"Minimize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new qe;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation=_(_({},this.translation),e),this.translationSource.next(this.translation)}setConfig(e){let{csp:r,ripple:i,inputStyle:o,inputVariant:s,theme:a,overlayOptions:l,translation:c,filterMatchModeOptions:d,overlayAppendTo:u,zIndex:p,ptOptions:f,pt:y,unstyled:b}=e||{};r&&this.csp.set(r),u&&this.overlayAppendTo.set(u),i&&this.ripple.set(i),o&&this.inputStyle.set(o),s&&this.inputVariant.set(s),l&&(this.overlayOptions=l),c&&this.setTranslation(c),d&&(this.filterMatchModeOptions=d),p&&(this.zIndex=p),y&&this.pt.set(y),f&&this.ptOptions.set(f),b&&this.unstyled.set(b),a&&this.setThemeConfig({theme:a,csp:r})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),I6=new H("PRIME_NG_CONFIG");function Fk(...t){let n=t?.map(r=>({provide:I6,useValue:r,multi:!1})),e=vl(()=>{let r=x(Zv);t?.forEach(i=>r.setConfig(i))});return Tr([...n,e])}var Lk=(()=>{class t extends Oe{name="common";static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ke=new H("PARENT_INSTANCE"),ut=(()=>{class t{document=x(bt);platformId=x(Yr);el=x(un);injector=x(Vt);cd=x(rs);renderer=x(Jr);config=x(Zv);$parentInstance=x(Ke,{optional:!0,skipSelf:!0})??void 0;baseComponentStyle=x(Lk);baseStyle=x(Oe);scopedStyleEl;parent=this.$params.parent;cn=as;_themeScopedListener;dt=ae();unstyled=ae();pt=ae();ptOptions=ae();$attrSelector=gt("pc");get $name(){return this.componentName||this.constructor?.name?.replace(/^_/,"")||"UnknownComponent"}get $hostName(){return this.hostName}$unstyled=We(()=>this.unstyled()!==void 0?this.unstyled():this.config?.unstyled()||!1);$pt=We(()=>Cn(this.pt()||this.directivePT(),this.$params));directivePT=ge(void 0);get $globalPT(){return this._getPT(this.config?.pt(),void 0,e=>Cn(e,this.$params))}get $defaultPT(){return this._getPT(this.config?.pt(),void 0,e=>this._getOptionValue(e,this.$hostName||this.$name,this.$params)||Cn(e,this.$params))}get $style(){return _(_({theme:void 0,css:void 0,classes:void 0,inlineStyles:void 0},(this._getHostInstance(this)||{}).$style),this._componentStyle)}get $styleOptions(){return{nonce:this.config?.csp().nonce}}get $params(){let e=this._getHostInstance(this)||this.$parentInstance;return{instance:this,parent:{instance:e}}}onInit(){}onChanges(e){}onDoCheck(){}onAfterContentInit(){}onAfterContentChecked(){}onAfterViewInit(){}onAfterViewChecked(){}onDestroy(){}constructor(){Lt(e=>{this.document&&!tv(this.platformId)&&(mn.off("theme:change",this._themeScopedListener),this.dt()?(this._loadScopedThemeStyles(this.dt()),this._themeScopedListener=()=>this._loadScopedThemeStyles(this.dt()),this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()),e(()=>{mn.off("theme:change",this._themeScopedListener)})}),Lt(e=>{this.document&&!tv(this.platformId)&&(mn.off("theme:change",this._loadCoreStyles),this.$unstyled()||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))),e(()=>{mn.off("theme:change",this._loadCoreStyles)})}),this._hook("onBeforeInit")}ngOnInit(){this._loadCoreStyles(),this._loadStyles(),this.onInit(),this._hook("onInit")}ngOnChanges(e){this.onChanges(e),this._hook("onChanges",e)}ngDoCheck(){this.onDoCheck(),this._hook("onDoCheck")}ngAfterContentInit(){this.onAfterContentInit(),this._hook("onAfterContentInit")}ngAfterContentChecked(){this.onAfterContentChecked(),this._hook("onAfterContentChecked")}ngAfterViewInit(){this.el?.nativeElement?.setAttribute(this.$attrSelector,""),this.onAfterViewInit(),this._hook("onAfterViewInit")}ngAfterViewChecked(){this.onAfterViewChecked(),this._hook("onAfterViewChecked")}ngOnDestroy(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this.onDestroy(),this._hook("onDestroy")}_mergeProps(e,...r){return Uh(e)?e(...r):zv(...r)}_getHostInstance(e){return e?this.$hostName?this.$name===this.$hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0}_getPropValue(e){return this[e]||this._getHostInstance(this)?.[e]}_getOptionValue(e,r="",i={}){return Wh(e,r,i)}_hook(e,...r){if(!this.$hostName){let i=this._usePT(this._getPT(this.$pt(),this.$name),this._getOptionValue,`hooks.${e}`),o=this._useDefaultPT(this._getOptionValue,`hooks.${e}`);i?.(...r),o?.(...r)}}_load(){Wl.isStyleNameLoaded("base")||(this.baseStyle.loadBaseCSS(this.$styleOptions),this._loadGlobalStyles(),Wl.setLoadedStyleName("base")),this._loadThemeStyles()}_loadStyles(){this._load(),this._themeChangeListener(()=>this._load())}_loadGlobalStyles(){let e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);lt(e)&&this.baseStyle.load(e,_({name:"global"},this.$styleOptions))}_loadCoreStyles(){!Wl.isStyleNameLoaded(this.$style?.name)&&this.$style?.name&&(this.baseComponentStyle.loadCSS(this.$styleOptions),this.$style.loadCSS(this.$styleOptions),Wl.setLoadedStyleName(this.$style.name))}_loadThemeStyles(){if(!(this.$unstyled()||this.config?.theme()==="none")){if(!Mt.isStyleNameLoaded("common")){let{primitive:e,semantic:r,global:i,style:o}=this.$style?.getCommonTheme?.()||{};this.baseStyle.load(e?.css,_({name:"primitive-variables"},this.$styleOptions)),this.baseStyle.load(r?.css,_({name:"semantic-variables"},this.$styleOptions)),this.baseStyle.load(i?.css,_({name:"global-variables"},this.$styleOptions)),this.baseStyle.loadBaseStyle(_({name:"global-style"},this.$styleOptions),o),Mt.setLoadedStyleName("common")}if(!Mt.isStyleNameLoaded(this.$style?.name)&&this.$style?.name){let{css:e,style:r}=this.$style?.getComponentTheme?.()||{};this.$style?.load(e,_({name:`${this.$style?.name}-variables`},this.$styleOptions)),this.$style?.loadStyle(_({name:`${this.$style?.name}-style`},this.$styleOptions),r),Mt.setLoadedStyleName(this.$style?.name)}if(!Mt.isStyleNameLoaded("layer-order")){let e=this.$style?.getLayerOrderThemeCSS?.();this.baseStyle.load(e,_({name:"layer-order",first:!0},this.$styleOptions)),Mt.setLoadedStyleName("layer-order")}}}_loadScopedThemeStyles(e){let{css:r}=this.$style?.getPresetTheme?.(e,`[${this.$attrSelector}]`)||{},i=this.$style?.load(r,_({name:`${this.$attrSelector}-${this.$style?.name}`},this.$styleOptions));this.scopedStyleEl=i?.el}_unloadScopedThemeStyles(){this.scopedStyleEl?.remove()}_themeChangeListener(e=()=>{}){Wl.clearLoadedStyleNames(),mn.on("theme:change",e.bind(this))}_removeThemeListeners(){mn.off("theme:change",this._loadCoreStyles),mn.off("theme:change",this._load),mn.off("theme:change",this._themeScopedListener)}_getPTValue(e={},r="",i={},o=!0){let s=/./g.test(r)&&!!i[r.split(".")[0]],{mergeSections:a=!0,mergeProps:l=!1}=this._getPropValue("ptOptions")?.()||this.config?.ptOptions?.()||{},c=o?s?this._useGlobalPT(this._getPTClassValue,r,i):this._useDefaultPT(this._getPTClassValue,r,i):void 0,d=s?void 0:this._usePT(this._getPT(e,this.$hostName||this.$name),this._getPTClassValue,r,A(_({},i),{global:c||{}})),u=this._getPTDatasets(r);return a||!a&&d?l?this._mergeProps(l,c,d,u):_(_(_({},c),d),u):_(_({},d),u)}_getPTDatasets(e=""){let r="data-pc-",i=e==="root"&<(this.$pt()?.["data-pc-section"]);return e!=="transition"&&A(_({},e==="root"&&A(_({[`${r}name`]:ls(i?this.$pt()?.["data-pc-section"]:this.$name)},i&&{[`${r}extend`]:ls(this.$name)}),{[`${this.$attrSelector}`]:""})),{[`${r}section`]:ls(e.includes(".")?e.split(".").at(-1)??"":e)})}_getPTClassValue(e,r,i){let o=this._getOptionValue(e,r,i);return Fr(o)||Wv(o)?{class:o}:o}_getPT(e,r="",i){let o=(s,a=!1)=>{let l=i?i(s):s,c=ls(r),d=ls(this.$hostName||this.$name);return(a?c!==d?l?.[c]:void 0:l?.[c])??l};return e?.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e,!0)}_usePT(e,r,i,o){let s=a=>r?.call(this,a,i,o);if(e?.hasOwnProperty("_usept")){let{mergeSections:a=!0,mergeProps:l=!1}=e._usept||this.config?.ptOptions()||{},c=s(e.originalValue),d=s(e.value);return c===void 0&&d===void 0?void 0:Fr(d)?d:Fr(c)?c:a||!a&&d?l?this._mergeProps(l,c,d):_(_({},c),d):d}return s(e)}_useGlobalPT(e,r,i){return this._usePT(this.$globalPT,e,r,i)}_useDefaultPT(e,r,i){return this._usePT(this.$defaultPT,e,r,i)}ptm(e="",r={}){return this._getPTValue(this.$pt(),e,_(_({},this.$params),r))}ptms(e,r={}){return e.reduce((i,o)=>(i=zv(i,this.ptm(o,r))||{},i),{})}ptmo(e={},r="",i={}){return this._getPTValue(e,r,_({instance:this},i),!1)}cx(e,r={}){return this.$unstyled()?void 0:as(this._getOptionValue(this.$style.classes,e,_(_({},this.$params),r)))}sx(e="",r=!0,i={}){if(r){let o=this._getOptionValue(this.$style.inlineStyles,e,_(_({},this.$params),i)),s=this._getOptionValue(this.baseComponentStyle.inlineStyles,e,_(_({},this.$params),i));return _(_({},s),o)}}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,inputs:{dt:[1,"dt"],unstyled:[1,"unstyled"],pt:[1,"pt"],ptOptions:[1,"ptOptions"]},features:[xe([Lk,Oe]),Kr]})}return t})();var De=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,r){e&&r&&(e.classList?e.classList.add(r):e.className+=" "+r)}static addMultipleClasses(e,r){if(e&&r)if(e.classList){let i=r.trim().split(" ");for(let o=0;oi.split(" ").forEach(o=>this.removeClass(e,o)))}static hasClass(e,r){return e&&r?e.classList?e.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(e.className):!1}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(r){return r!==e})}static find(e,r){return Array.from(e.querySelectorAll(r))}static findSingle(e,r){return this.isElement(e)?e.querySelector(r):null}static index(e){let r=e.parentNode.childNodes,i=0;for(var o=0;o{if(P)return getComputedStyle(P).getPropertyValue("position")==="relative"?P:o(P.parentElement)},s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=r.offsetHeight,l=r.getBoundingClientRect(),c=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),u=this.getViewport(),f=o(e)?.getBoundingClientRect()||{top:-1*c,left:-1*d},y,b,v="top";l.top+a+s.height>u.height?(y=l.top-f.top-s.height,v="bottom",l.top+y<0&&(y=-1*l.top)):(y=a+l.top-f.top,v="top");let w=l.left+s.width-u.width,D=l.left-f.left;if(s.width>u.width?b=(l.left-f.left)*-1:w>0?b=D-w:b=l.left-f.left,e.style.top=y+"px",e.style.left=b+"px",e.style.transformOrigin=v,i){let P=Zd(/-anchor-gutter$/)?.value;e.style.marginTop=v==="bottom"?`calc(${P??"2px"} * -1)`:P??""}}static absolutePosition(e,r,i=!0){let o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=o.height,a=o.width,l=r.offsetHeight,c=r.offsetWidth,d=r.getBoundingClientRect(),u=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),f=this.getViewport(),y,b;d.top+l+s>f.height?(y=d.top+u-s,e.style.transformOrigin="bottom",y<0&&(y=u)):(y=l+d.top+u,e.style.transformOrigin="top"),d.left+a>f.width?b=Math.max(0,d.left+p+c-a):b=d.left+p,e.style.top=y+"px",e.style.left=b+"px",i&&(e.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(e,r=[]){return e.parentNode===null?r:this.getParents(e.parentNode,r.concat([e.parentNode]))}static getScrollableParents(e){let r=[];if(e){let i=this.getParents(e),o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of i){let l=a.nodeType===1&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let d of c){let u=this.findSingle(a,d);u&&s(u)&&r.push(u)}}a.nodeType!==9&&s(a)&&r.push(a)}}return r}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let r=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",r}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let r=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",r}static getHiddenElementDimensions(e){let r={};return e.style.visibility="hidden",e.style.display="block",r.width=e.offsetWidth,r.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",r}static scrollInView(e,r){let i=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=i?parseFloat(i):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=e.getBoundingClientRect(),d=r.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,u=e.scrollTop,p=e.clientHeight,f=this.getOuterHeight(r);d<0?e.scrollTop=u+d:d+f>p&&(e.scrollTop=u+d-p+f)}static fadeIn(e,r){e.style.opacity=0;let i=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+(new Date().getTime()-i)/r,e.style.opacity=o,i=+new Date,+o<1&&(window.requestAnimationFrame?window.requestAnimationFrame(s):setTimeout(s,16))};s()}static fadeOut(e,r){var i=1,o=50,s=r,a=o/s;let l=setInterval(()=>{i=i-a,i<=0&&(i=0,clearInterval(l)),e.style.opacity=i},o)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,r){var i=Element.prototype,o=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(s){return[].indexOf.call(document.querySelectorAll(s),this)!==-1};return o.call(e,r)}static getOuterWidth(e,r){let i=e.offsetWidth;if(r){let o=getComputedStyle(e);i+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return i}static getHorizontalPadding(e){let r=getComputedStyle(e);return parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)}static getHorizontalMargin(e){let r=getComputedStyle(e);return parseFloat(r.marginLeft)+parseFloat(r.marginRight)}static innerWidth(e){let r=e.offsetWidth,i=getComputedStyle(e);return r+=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),r}static width(e){let r=e.offsetWidth,i=getComputedStyle(e);return r-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),r}static getInnerHeight(e){let r=e.offsetHeight,i=getComputedStyle(e);return r+=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),r}static getOuterHeight(e,r){let i=e.offsetHeight;if(r){let o=getComputedStyle(e);i+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return i}static getHeight(e){let r=e.offsetHeight,i=getComputedStyle(e);return r-=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),r}static getWidth(e){let r=e.offsetWidth,i=getComputedStyle(e);return r-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),r}static getViewport(){let e=window,r=document,i=r.documentElement,o=r.getElementsByTagName("body")[0],s=e.innerWidth||i.clientWidth||o.clientWidth,a=e.innerHeight||i.clientHeight||o.clientHeight;return{width:s,height:a}}static getOffset(e){var r=e.getBoundingClientRect();return{top:r.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:r.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,r){let i=e.parentNode;if(!i)throw"Can't replace element";return i.replaceChild(r,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent,r=e.indexOf("MSIE ");if(r>0)return!0;var i=e.indexOf("Trident/");if(i>0){var o=e.indexOf("rv:");return!0}var s=e.indexOf("Edge/");return s>0}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,r){if(this.isElement(r))r.appendChild(e);else if(r&&r.el&&r.el.nativeElement)r.el.nativeElement.appendChild(e);else throw"Cannot append "+r+" to "+e}static removeChild(e,r){if(this.isElement(r))r.removeChild(e);else if(r.el&&r.el.nativeElement)r.el.nativeElement.removeChild(e);else throw"Cannot remove "+e+" from "+r}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode?.removeChild(e)}static isElement(e){return typeof HTMLElement=="object"?e instanceof HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"}static calculateScrollbarWidth(e){if(e){let r=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.borderRightWidth)}else{if(this.calculatedScrollbarWidth!==null)return this.calculatedScrollbarWidth;let r=document.createElement("div");r.className="p-scrollbar-measure",document.body.appendChild(r);let i=r.offsetWidth-r.clientWidth;return document.body.removeChild(r),this.calculatedScrollbarWidth=i,i}}static calculateScrollbarHeight(){if(this.calculatedScrollbarHeight!==null)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let r=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=r,r}static invokeElementMethod(e,r,i){e[r].apply(e,i)}static clearSelection(){if(window.getSelection&&window.getSelection())window.getSelection()?.empty?window.getSelection()?.empty():window.getSelection()?.removeAllRanges&&(window.getSelection()?.rangeCount||0)>0&&(window.getSelection()?.getRangeAt(0)?.getClientRects()?.length||0)>0&&window.getSelection()?.removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),r=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:r[1]||"",version:r[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||e.offsetParent===null}static isVisible(e){return e&&e.offsetParent!=null}static isExist(e){return e!==null&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,r){e&&document.activeElement!==e&&e.focus(r)}static getFocusableSelectorString(e=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, + [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, + input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, + select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, + textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, + [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, + [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, + .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, + .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`}static getFocusableElements(e,r=""){let i=this.find(e,this.getFocusableSelectorString(r)),o=[];for(let s of i){let a=getComputedStyle(s);this.isVisible(s)&&a.display!="none"&&a.visibility!="hidden"&&o.push(s)}return o}static getFocusableElement(e,r=""){let i=this.findSingle(e,this.getFocusableSelectorString(r));if(i){let o=getComputedStyle(i);if(this.isVisible(i)&&o.display!="none"&&o.visibility!="hidden")return i}return null}static getFirstFocusableElement(e,r=""){let i=this.getFocusableElements(e,r);return i.length>0?i[0]:null}static getLastFocusableElement(e,r){let i=this.getFocusableElements(e,r);return i.length>0?i[i.length-1]:null}static getNextFocusableElement(e,r=!1){let i=t.getFocusableElements(e),o=0;if(i&&i.length>0){let s=i.indexOf(i[0].ownerDocument.activeElement);r?s==-1||s===0?o=i.length-1:o=s-1:s!=-1&&s!==i.length-1&&(o=s+1)}return i[o]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection()?.toString():document.getSelection?document.getSelection()?.toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,r){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return r?.nextElementSibling;case"@prev":return r?.previousElementSibling;case"@parent":return r?.parentElement;case"@grandparent":return r?.parentElement?.parentElement;default:let i=typeof e;if(i==="string")return document.querySelector(e);if(i==="object"&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;let s=(a=>!!(a&&a.constructor&&a.call&&a.apply))(e)?e():e;return s&&s.nodeType===9||this.isExist(s)?s:null}}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,r){if(e){let i=e.getAttribute(r);return isNaN(i)?i==="true"||i==="false"?i==="true":i:+i}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}static createElement(e,r={},...i){if(e){let o=document.createElement(e);return this.setAttributes(o,r),o.append(...i),o}}static setAttribute(e,r="",i){this.isElement(e)&&i!==null&&i!==void 0&&e.setAttribute(r,i)}static setAttributes(e,r={}){if(this.isElement(e)){let i=(o,s)=>{let a=e?.$attrs?.[o]?[e?.$attrs?.[o]]:[];return[s].flat().reduce((l,c)=>{if(c!=null){let d=typeof c;if(d==="string"||d==="number")l.push(c);else if(d==="object"){let u=Array.isArray(c)?i(o,c):Object.entries(c).map(([p,f])=>o==="style"&&(f||f===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${f}`:f?p:void 0);l=u.length?l.concat(u.filter(p=>!!p)):l}}return l},a)};Object.entries(r).forEach(([o,s])=>{if(s!=null){let a=o.match(/^on(.+)/);a?e.addEventListener(a[1].toLowerCase(),s):o==="pBind"?this.setAttributes(e,s):(s=o==="class"?[...new Set(i("class",s))].join(" ").trim():o==="style"?i("style",s).join(";").trim():s,(e.$attrs=e.$attrs||{})&&(e.$attrs[o]=s),e.setAttribute(o,s))}})}}static isFocusableElement(e,r=""){return this.isElement(e)?e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}`):!1}}return t})();function Bk(){qD({variableName:Yv("scrollbar.width").name})}function Kh(){QD({variableName:Yv("scrollbar.width").name})}var xo=class{element;listener;scrollableParents;constructor(n,e=()=>{}){this.element=n,this.listener=e}bindScrollListener(){this.scrollableParents=De.getScrollableParents(this.element);for(let n=0;n{class t extends ut{autofocus=!1;focused=!1;platformId=x(Yr);document=x(bt);host=x(un);onAfterContentChecked(){this.autofocus===!1?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}onAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){kn(this.platformId)&&this.autofocus&&setTimeout(()=>{let e=De.getFocusableElements(this.host?.nativeElement);e.length===0&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,selectors:[["","pAutoFocus",""]],inputs:{autofocus:[0,"pAutoFocus","autofocus"]},features:[j]})}return t})();var te=(()=>{class t{el;renderer;pBind=ae(void 0);_attrs=ge(void 0);attrs=We(()=>this._attrs()||this.pBind());styles=We(()=>this.attrs()?.style);classes=We(()=>as(this.attrs()?.class));listeners=[];constructor(e,r){this.el=e,this.renderer=r,Lt(()=>{let a=this.attrs()||{},{style:i,class:o}=a,s=Et(a,["style","class"]);for(let[l,c]of Object.entries(s))if(l.startsWith("on")&&typeof c=="function"){let d=l.slice(2).toLowerCase();if(!this.listeners.some(u=>u.eventName===d)){let u=this.renderer.listen(this.el.nativeElement,d,c);this.listeners.push({eventName:d,unlisten:u})}}else c==null?this.renderer.removeAttribute(this.el.nativeElement,l):(this.renderer.setAttribute(this.el.nativeElement,l,c.toString()),l in this.el.nativeElement&&(this.el.nativeElement[l]=c))})}ngOnDestroy(){this.clearListeners()}setAttrs(e){nr(this._attrs(),e)||this._attrs.set(e)}clearListeners(){this.listeners.forEach(({unlisten:e})=>e()),this.listeners=[]}static \u0275fac=function(r){return new(r||t)(de(un),de(Jr))};static \u0275dir=Ue({type:t,selectors:[["","pBind",""]],hostVars:4,hostBindings:function(r,i){r&2&&(Dn(i.styles()),k(i.classes()))},inputs:{pBind:[1,"pBind"]}})}return t})(),Gt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({})}return t})();var Vk=` + .p-badge { + display: inline-flex; + border-radius: dt('badge.border.radius'); + align-items: center; + justify-content: center; + padding: dt('badge.padding'); + background: dt('badge.primary.background'); + color: dt('badge.primary.color'); + font-size: dt('badge.font.size'); + font-weight: dt('badge.font.weight'); + min-width: dt('badge.min.width'); + height: dt('badge.height'); + } + + .p-badge-dot { + width: dt('badge.dot.size'); + min-width: dt('badge.dot.size'); + height: dt('badge.dot.size'); + border-radius: 50%; + padding: 0; + } + + .p-badge-circle { + padding: 0; + border-radius: 50%; + } + + .p-badge-secondary { + background: dt('badge.secondary.background'); + color: dt('badge.secondary.color'); + } + + .p-badge-success { + background: dt('badge.success.background'); + color: dt('badge.success.color'); + } + + .p-badge-info { + background: dt('badge.info.background'); + color: dt('badge.info.color'); + } + + .p-badge-warn { + background: dt('badge.warn.background'); + color: dt('badge.warn.color'); + } + + .p-badge-danger { + background: dt('badge.danger.background'); + color: dt('badge.danger.color'); + } + + .p-badge-contrast { + background: dt('badge.contrast.background'); + color: dt('badge.contrast.color'); + } + + .p-badge-sm { + font-size: dt('badge.sm.font.size'); + min-width: dt('badge.sm.min.width'); + height: dt('badge.sm.height'); + } + + .p-badge-lg { + font-size: dt('badge.lg.font.size'); + min-width: dt('badge.lg.min.width'); + height: dt('badge.lg.height'); + } + + .p-badge-xl { + font-size: dt('badge.xl.font.size'); + min-width: dt('badge.xl.min.width'); + height: dt('badge.xl.height'); + } +`;var D6=` + ${Vk} + + /* For PrimeNG (directive)*/ + .p-overlay-badge { + position: relative; + } + + .p-overlay-badge > .p-badge { + position: absolute; + top: 0; + inset-inline-end: 0; + transform: translate(50%, -50%); + transform-origin: 100% 0; + margin: 0; + } +`,k6={root:({instance:t})=>{let n=typeof t.value=="function"?t.value():t.value,e=typeof t.size=="function"?t.size():t.size,r=typeof t.badgeSize=="function"?t.badgeSize():t.badgeSize,i=typeof t.severity=="function"?t.severity():t.severity;return["p-badge p-component",{"p-badge-circle":lt(n)&&String(n).length===1,"p-badge-dot":Hi(n),"p-badge-sm":e==="small"||r==="small","p-badge-lg":e==="large"||r==="large","p-badge-xl":e==="xlarge"||r==="xlarge","p-badge-info":i==="info","p-badge-success":i==="success","p-badge-warn":i==="warn","p-badge-danger":i==="danger","p-badge-secondary":i==="secondary","p-badge-contrast":i==="contrast"}]}},jk=(()=>{class t extends Oe{name="badge";style=D6;classes=k6;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var zk=new H("BADGE_INSTANCE");var Jv=(()=>{class t extends ut{$pcBadge=x(zk,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass=ae();badgeSize=ae();size=ae();severity=ae();value=ae();badgeDisabled=ae(!1,{transform:R});_componentStyle=x(jk);static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-badge"]],hostVars:4,hostBindings:function(r,i){r&2&&(k(i.cn(i.cx("root"),i.styleClass())),er("display",i.badgeDisabled()?"none":null))},inputs:{styleClass:[1,"styleClass"],badgeSize:[1,"badgeSize"],size:[1,"size"],severity:[1,"severity"],value:[1,"value"],badgeDisabled:[1,"badgeDisabled"]},features:[xe([jk,{provide:zk,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:1,vars:1,template:function(r,i){r&1&&ce(0),r&2&&Ze(i.value())},dependencies:[Qe,Te,Gt],encapsulation:2,changeDetection:0})}return t})(),Yh=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Jv,Te,Te]})}return t})();var O6=["*"],R6={root:"p-fluid"},Hk=(()=>{class t extends Oe{name="fluid";classes=R6;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var $k=new H("FLUID_INSTANCE"),Gl=(()=>{class t extends ut{$pcFluid=x($k,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}_componentStyle=x(Hk);static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-fluid"]],hostVars:2,hostBindings:function(r,i){r&2&&k(i.cx("root"))},features:[xe([Hk,{provide:$k,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:O6,decls:1,vars:0,template:function(r,i){r&1&&(Ht(),Ot(0))},dependencies:[Qe],encapsulation:2,changeDetection:0})}return t})();var P6=["*"],A6=` +.p-icon { + display: inline-block; + vertical-align: baseline; + flex-shrink: 0; +} + +.p-icon-spin { + -webkit-animation: p-icon-spin 2s infinite linear; + animation: p-icon-spin 2s infinite linear; +} + +@-webkit-keyframes p-icon-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} + +@keyframes p-icon-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} +`,Uk=(()=>{class t extends Oe{name="baseicon";css=A6;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var we=(()=>{class t extends ut{spin=!1;_componentStyle=x(Uk);getClassNames(){return as("p-icon",{"p-icon-spin":this.spin})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["ng-component"]],hostAttrs:["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],hostVars:2,hostBindings:function(r,i){r&2&&k(i.getClassNames())},inputs:{spin:[2,"spin","spin",R]},features:[xe([Uk]),j],ngContentSelectors:P6,decls:1,vars:0,template:function(r,i){r&1&&(Ht(),Ot(0))},encapsulation:2,changeDetection:0})}return t})();var N6=["data-p-icon","angle-double-left"],Wk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","angle-double-left"]],features:[j],attrs:N6,decls:1,vars:0,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var F6=["data-p-icon","angle-double-right"],Gk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","angle-double-right"]],features:[j],attrs:F6,decls:1,vars:0,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var L6=["data-p-icon","angle-down"],qk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","angle-down"]],features:[j],attrs:L6,decls:1,vars:0,consts:[["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var B6=["data-p-icon","angle-left"],Qk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","angle-left"]],features:[j],attrs:B6,decls:1,vars:0,consts:[["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var V6=["data-p-icon","angle-right"],Kk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","angle-right"]],features:[j],attrs:V6,decls:1,vars:0,consts:[["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var j6=["data-p-icon","angle-up"],Yk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","angle-up"]],features:[j],attrs:j6,decls:1,vars:0,consts:[["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var z6=["data-p-icon","arrow-down"],Xv=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","arrow-down"]],features:[j],attrs:z6,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var H6=["data-p-icon","arrow-up"],e_=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","arrow-up"]],features:[j],attrs:H6,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var $6=["data-p-icon","blank"],Zk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","blank"]],features:[j],attrs:$6,decls:1,vars:0,consts:[["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(r,i){r&1&&(G(),ue(0,"rect",0))},encapsulation:2})}return t})();var U6=["data-p-icon","calendar"],Jk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","calendar"]],features:[j],attrs:U6,decls:1,vars:0,consts:[["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var W6=["data-p-icon","check"],Zh=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","check"]],features:[j],attrs:W6,decls:1,vars:0,consts:[["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var G6=["data-p-icon","chevron-down"],Jh=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","chevron-down"]],features:[j],attrs:G6,decls:1,vars:0,consts:[["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var q6=["data-p-icon","chevron-left"],Xk=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","chevron-left"]],features:[j],attrs:q6,decls:1,vars:0,consts:[["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var Q6=["data-p-icon","chevron-right"],eM=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","chevron-right"]],features:[j],attrs:Q6,decls:1,vars:0,consts:[["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var K6=["data-p-icon","chevron-up"],tM=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","chevron-up"]],features:[j],attrs:K6,decls:1,vars:0,consts:[["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var Y6=["data-p-icon","filter"],nM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","filter"]],features:[j],attrs:Y6,decls:5,vars:2,consts:[["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var Z6=["data-p-icon","filter-slash"],rM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","filter-slash"]],features:[j],attrs:Z6,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var J6=["data-p-icon","minus"],iM=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","minus"]],features:[j],attrs:J6,decls:1,vars:0,consts:[["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var X6=["data-p-icon","plus"],oM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","plus"]],features:[j],attrs:X6,decls:5,vars:2,consts:[["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var e8=["data-p-icon","search"],sM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","search"]],features:[j],attrs:e8,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var t8=["data-p-icon","sort-alt"],aM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","sort-alt"]],features:[j],attrs:t8,decls:8,vars:2,consts:[["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0)(2,"path",1)(3,"path",2)(4,"path",3),st(),ot(5,"defs")(6,"clipPath",4),ue(7,"rect",5),st()()),r&2&&(J("clip-path",i.pathId),g(6),Ft("id",i.pathId))},encapsulation:2})}return t})();var n8=["data-p-icon","sort-amount-down"],lM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","sort-amount-down"]],features:[j],attrs:n8,decls:5,vars:2,consts:[["d","M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var r8=["data-p-icon","sort-amount-up-alt"],cM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","sort-amount-up-alt"]],features:[j],attrs:r8,decls:5,vars:2,consts:[["d","M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var i8=["data-p-icon","spinner"],To=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","spinner"]],features:[j],attrs:i8,decls:5,vars:2,consts:[["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var o8=["data-p-icon","times"],ql=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","times"]],features:[j],attrs:o8,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var s8=["data-p-icon","trash"],dM=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+gt()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","trash"]],features:[j],attrs:s8,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){r&1&&(G(),ot(0,"g"),ue(1,"path",0),st(),ot(2,"defs")(3,"clipPath",1),ue(4,"rect",2),st()()),r&2&&(J("clip-path",i.pathId),g(3),Ft("id",i.pathId))},encapsulation:2})}return t})();var uM=` + .p-ink { + display: block; + position: absolute; + background: dt('ripple.background'); + border-radius: 100%; + transform: scale(0); + pointer-events: none; + } + + .p-ink-active { + animation: ripple 0.4s linear; + } + + @keyframes ripple { + 100% { + opacity: 0; + transform: scale(2.5); + } + } +`;var a8=` + ${uM} + + /* For PrimeNG */ + .p-ripple { + overflow: hidden; + position: relative; + } + + .p-ripple-disabled .p-ink { + display: none !important; + } + + @keyframes ripple { + 100% { + opacity: 0; + transform: scale(2.5); + } + } +`,l8={root:"p-ink"},pM=(()=>{class t extends Oe{name="ripple";style=a8;classes=l8;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var Ui=(()=>{class t extends ut{zone=x($e);_componentStyle=x(pM);animationListener;mouseDownListener;timeout;constructor(){super(),Lt(()=>{kn(this.platformId)&&(this.config.ripple()?this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))}):this.remove())})}onAfterViewInit(){}onMouseDown(e){let r=this.getInk();if(!r||this.document.defaultView?.getComputedStyle(r,null).display==="none")return;if(Bi(r,"p-ink-active"),!ji(r)&&!zi(r)){let a=Math.max(Mn(this.el.nativeElement),oi(this.el.nativeElement));r.style.height=a+"px",r.style.width=a+"px"}let i=ik(this.el.nativeElement),o=e.pageX-i.left+this.document.body.scrollTop-zi(r)/2,s=e.pageY-i.top+this.document.body.scrollLeft-ji(r)/2;this.renderer.setStyle(r,"top",s+"px"),this.renderer.setStyle(r,"left",o+"px"),ri(r,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&Bi(a,"p-ink-active")},401)}getInk(){let e=this.el.nativeElement.children;for(let r=0;r({class:t,pt:n});function h8(t,n){t&1&&ne(0)}function m8(t,n){if(t&1&&X(0,"span",7),t&2){let e=m(3);k(e.cn(e.cx("loadingIcon"),"pi-spin",e.loadingIcon)),h("pBind",e.ptm("loadingIcon")),J("aria-hidden",!0)}}function g8(t,n){if(t&1&&(G(),X(0,"svg",8)),t&2){let e=m(3);k(e.cn(e.cx("loadingIcon"),e.spinnerIconClass())),h("pBind",e.ptm("loadingIcon"))("spin",!0),J("aria-hidden",!0)}}function y8(t,n){if(t&1&&(ie(0),C(1,m8,1,4,"span",3)(2,g8,1,5,"svg",6),oe()),t&2){let e=m(2);g(),h("ngIf",e.loadingIcon),g(),h("ngIf",!e.loadingIcon)}}function b8(t,n){}function v8(t,n){if(t&1&&C(0,b8,0,0,"ng-template",9),t&2){let e=m(2);h("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function _8(t,n){if(t&1&&(ie(0),C(1,y8,3,2,"ng-container",2)(2,v8,1,1,null,5),oe()),t&2){let e=m();g(),h("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),g(),h("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)("ngTemplateOutletContext",Dt(3,gM,e.cx("loadingIcon"),e.ptm("loadingIcon")))}}function w8(t,n){if(t&1&&X(0,"span",7),t&2){let e=m(2);k(e.cn("icon",e.iconClass())),h("pBind",e.ptm("icon"))}}function C8(t,n){}function x8(t,n){if(t&1&&C(0,C8,0,0,"ng-template",9),t&2){let e=m(2);h("ngIf",!e.icon&&(e.iconTemplate||e._iconTemplate))}}function T8(t,n){if(t&1&&(ie(0),C(1,w8,1,3,"span",3)(2,x8,1,1,null,5),oe()),t&2){let e=m();g(),h("ngIf",e.icon&&!e.iconTemplate&&!e._iconTemplate),g(),h("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",Dt(3,gM,e.cx("icon"),e.ptm("icon")))}}function E8(t,n){if(t&1&&(E(0,"span",7),ce(1),T()),t&2){let e=m();k(e.cx("label")),h("pBind",e.ptm("label")),J("aria-hidden",e.icon&&!e.label),g(),Ze(e.label)}}function S8(t,n){if(t&1&&X(0,"p-badge",10),t&2){let e=m();h("value",e.badge)("severity",e.badgeSeverity)("pt",e.ptm("pcBadge"))}}var I8={root:({instance:t})=>["p-button p-component",{"p-button-icon-only":(t.icon||t.buttonProps?.icon||t.iconTemplate||t._iconTemplate||t.loadingIcon||t.loadingIconTemplate||t._loadingIconTemplate)&&!t.label&&!t.buttonProps?.label,"p-button-vertical":(t.iconPos==="top"||t.iconPos==="bottom")&&t.label,"p-button-loading":t.loading||t.buttonProps?.loading,"p-button-link":t.link||t.buttonProps?.link,[`p-button-${t.severity||t.buttonProps?.severity}`]:t.severity||t.buttonProps?.severity,"p-button-raised":t.raised||t.buttonProps?.raised,"p-button-rounded":t.rounded||t.buttonProps?.rounded,"p-button-text":t.text||t.variant==="text"||t.buttonProps?.text||t.buttonProps?.variant==="text","p-button-outlined":t.outlined||t.variant==="outlined"||t.buttonProps?.outlined||t.buttonProps?.variant==="outlined","p-button-sm":t.size==="small"||t.buttonProps?.size==="small","p-button-lg":t.size==="large"||t.buttonProps?.size==="large","p-button-plain":t.plain||t.buttonProps?.plain,"p-button-fluid":t.hasFluid}],loadingIcon:"p-button-loading-icon",icon:({instance:t})=>["p-button-icon",{[`p-button-icon-${t.iconPos||t.buttonProps?.iconPos}`]:t.label||t.buttonProps?.label,"p-button-icon-left":(t.iconPos==="left"||t.buttonProps?.iconPos==="left")&&t.label||t.buttonProps?.label,"p-button-icon-right":(t.iconPos==="right"||t.buttonProps?.iconPos==="right")&&t.label||t.buttonProps?.label},t.icon,t.buttonProps?.icon],spinnerIcon:({instance:t})=>Object.entries(t.iconClass()).filter(([,n])=>!!n).reduce((n,[e])=>n+` ${e}`,"p-button-loading-icon"),label:"p-button-label"},hM=(()=>{class t extends Oe{name="button";style=fM;classes=I8;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var mM=new H("BUTTON_INSTANCE");var rr=(()=>{class t extends ut{hostName="";$pcButton=x(mM,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});_componentStyle=x(hM);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}type="button";badge;disabled;raised=!1;rounded=!1;text=!1;plain=!1;outlined=!1;link=!1;tabindex;size;variant;style;styleClass;badgeClass;badgeSeverity="secondary";ariaLabel;autofocus;iconPos="left";icon;label;loading=!1;loadingIcon;severity;buttonProps;fluid=ae(void 0,{transform:R});onClick=new z;onFocus=new z;onBlur=new z;contentTemplate;loadingIconTemplate;iconTemplate;templates;pcFluid=x(Gl,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}_contentTemplate;_iconTemplate;_loadingIconTemplate;onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,e])=>!!e).reduce((e,[r])=>e+` ${r}`,"p-button-loading-icon")}iconClass(){return{[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]:this.loading,"p-button-icon":!0,[this.icon]:!0,"p-button-icon-left":this.iconPos==="left"&&this.label,"p-button-icon-right":this.iconPos==="right"&&this.label,"p-button-icon-top":this.iconPos==="top"&&this.label,"p-button-icon-bottom":this.iconPos==="bottom"&&this.label}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-button"]],contentQueries:function(r,i,o){if(r&1&&(V(o,d8,5),V(o,u8,5),V(o,p8,5),V(o,xt,4)),r&2){let s;M(s=O())&&(i.contentTemplate=s.first),M(s=O())&&(i.loadingIconTemplate=s.first),M(s=O())&&(i.iconTemplate=s.first),M(s=O())&&(i.templates=s)}},inputs:{hostName:"hostName",type:"type",badge:"badge",disabled:[2,"disabled","disabled",R],raised:[2,"raised","raised",R],rounded:[2,"rounded","rounded",R],text:[2,"text","text",R],plain:[2,"plain","plain",R],outlined:[2,"outlined","outlined",R],link:[2,"link","link",R],tabindex:[2,"tabindex","tabindex",Me],size:"size",variant:"variant",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",badgeSeverity:"badgeSeverity",ariaLabel:"ariaLabel",autofocus:[2,"autofocus","autofocus",R],iconPos:"iconPos",icon:"icon",label:"label",loading:[2,"loading","loading",R],loadingIcon:"loadingIcon",severity:"severity",buttonProps:"buttonProps",fluid:[1,"fluid"]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[xe([hM,{provide:mM,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:f8,decls:7,vars:14,consts:[["pRipple","",3,"click","focus","blur","ngStyle","disabled","pAutoFocus","pBind"],[4,"ngTemplateOutlet"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"value","severity","pt",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","spinner",3,"class","pBind","spin",4,"ngIf"],[3,"pBind"],["data-p-icon","spinner",3,"pBind","spin"],[3,"ngIf"],[3,"value","severity","pt"]],template:function(r,i){r&1&&(Ht(),E(0,"button",0),q("click",function(s){return i.onClick.emit(s)})("focus",function(s){return i.onFocus.emit(s)})("blur",function(s){return i.onBlur.emit(s)}),Ot(1),C(2,h8,1,0,"ng-container",1)(3,_8,3,6,"ng-container",2)(4,T8,3,6,"ng-container",2)(5,E8,2,5,"span",3)(6,S8,1,3,"p-badge",4),T()),r&2&&(k(i.cn(i.cx("root"),i.styleClass,i.buttonProps==null?null:i.buttonProps.styleClass)),h("ngStyle",i.style||(i.buttonProps==null?null:i.buttonProps.style))("disabled",i.disabled||i.loading||(i.buttonProps==null?null:i.buttonProps.disabled))("pAutoFocus",i.autofocus||(i.buttonProps==null?null:i.buttonProps.autofocus))("pBind",i.ptm("root")),J("type",i.type||(i.buttonProps==null?null:i.buttonProps.type))("aria-label",i.ariaLabel||(i.buttonProps==null?null:i.buttonProps.ariaLabel))("tabindex",i.tabindex||(i.buttonProps==null?null:i.buttonProps.tabindex)),g(2),h("ngTemplateOutlet",i.contentTemplate||i._contentTemplate),g(),h("ngIf",i.loading),g(),h("ngIf",!i.loading),g(),h("ngIf",!i.contentTemplate&&!i._contentTemplate&&i.label),g(),h("ngIf",!i.contentTemplate&&!i._contentTemplate&&i.badge))},dependencies:[Qe,Wt,kt,tr,Ui,$i,To,Yh,Jv,Te,te],encapsulation:2,changeDetection:0})}return t})(),yM=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Qe,rr,Te,Te]})}return t})();var Pe=class t{static isArray(n,e=!0){return Array.isArray(n)&&(e||n.length!==0)}static isObject(n,e=!0){return typeof n=="object"&&!Array.isArray(n)&&n!=null&&(e||Object.keys(n).length!==0)}static equals(n,e,r){return r?this.resolveFieldData(n,r)===this.resolveFieldData(e,r):this.equalsByValue(n,e)}static equalsByValue(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){var r=Array.isArray(n),i=Array.isArray(e),o,s,a;if(r&&i){if(s=n.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!this.equalsByValue(n[o],e[o]))return!1;return!0}if(r!=i)return!1;var l=this.isDate(n),c=this.isDate(e);if(l!=c)return!1;if(l&&c)return n.getTime()==e.getTime();var d=n instanceof RegExp,u=e instanceof RegExp;if(d!=u)return!1;if(d&&u)return n.toString()==e.toString();var p=Object.keys(n);if(s=p.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[o]))return!1;for(o=s;o--!==0;)if(a=p[o],!this.equalsByValue(n[a],e[a]))return!1;return!0}return n!==n&&e!==e}static resolveFieldData(n,e){if(n&&e){if(this.isFunction(e))return e(n);if(e.indexOf(".")==-1)return n[e];{let r=e.split("."),i=n;for(let o=0,s=r.length;o=n.length&&(r%=n.length,e%=n.length),n.splice(r,0,n.splice(e,1)[0]))}static insertIntoOrderedArray(n,e,r,i){if(r.length>0){let o=!1;for(let s=0;se){r.splice(s,0,n),o=!0;break}o||r.push(n)}else r.push(n)}static findIndexInList(n,e){let r=-1;if(e){for(let i=0;ie?1:0,o}static sort(n,e,r=1,i,o=1){let s=t.compare(n,e,i,r),a=r;return(t.isEmpty(n)||t.isEmpty(e))&&(a=o===1?r:o),a*s}static merge(n,e){if(!(n==null&&e==null)){{if((n==null||typeof n=="object")&&(e==null||typeof e=="object"))return _(_({},n||{}),e||{});if((n==null||typeof n=="string")&&(e==null||typeof e=="string"))return[n||"",e||""].join(" ")}return e||n}}static isPrintableCharacter(n=""){return this.isNotEmpty(n)&&n.length===1&&n.match(/\S| /)}static getItemValue(n,...e){return this.isFunction(n)?n(...e):n}static findLastIndex(n,e){let r=-1;if(this.isNotEmpty(n))try{r=n.findLastIndex(e)}catch{r=n.lastIndexOf([...n].reverse().find(e))}return r}static findLast(n,e){let r;if(this.isNotEmpty(n))try{r=n.findLast(e)}catch{r=[...n].reverse().find(e)}return r}static deepEquals(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){var r=Array.isArray(n),i=Array.isArray(e),o,s,a;if(r&&i){if(s=n.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!this.deepEquals(n[o],e[o]))return!1;return!0}if(r!=i)return!1;var l=n instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return n.getTime()==e.getTime();var d=n instanceof RegExp,u=e instanceof RegExp;if(d!=u)return!1;if(d&&u)return n.toString()==e.toString();var p=Object.keys(n);if(s=p.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[o]))return!1;for(o=s;o--!==0;)if(a=p[o],!this.deepEquals(n[a],e[a]))return!1;return!0}return n!==n&&e!==e}static minifyCSS(n){return n&&n.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}static toFlatCase(n){return this.isString(n)?n.replace(/(-|_)/g,"").toLowerCase():n}static isString(n,e=!0){return typeof n=="string"&&(e||n!=="")}},bM=0;function vM(t="pn_id_"){return bM++,`${t}${bM}`}function D8(){let t=[],n=(o,s)=>{let a=t.length>0?t[t.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+2;return t.push({key:o,value:l}),l},e=o=>{t=t.filter(s=>s.value!==o)},r=()=>t.length>0?t[t.length-1].value:0,i=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:i,set:(o,s,a)=>{s&&(s.style.zIndex=String(n(o,a)))},clear:o=>{o&&(e(i(o)),o.style.zIndex="")},getCurrent:()=>r(),generateZIndex:n,revertZIndex:e}}var ir=D8();var _M=` + .p-tooltip { + position: absolute; + display: none; + max-width: dt('tooltip.max.width'); + } + + .p-tooltip-right, + .p-tooltip-left { + padding: 0 dt('tooltip.gutter'); + } + + .p-tooltip-top, + .p-tooltip-bottom { + padding: dt('tooltip.gutter') 0; + } + + .p-tooltip-text { + white-space: pre-line; + word-break: break-word; + background: dt('tooltip.background'); + color: dt('tooltip.color'); + padding: dt('tooltip.padding'); + box-shadow: dt('tooltip.shadow'); + border-radius: dt('tooltip.border.radius'); + } + + .p-tooltip-arrow { + position: absolute; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; + } + + .p-tooltip-right .p-tooltip-arrow { + margin-top: calc(-1 * dt('tooltip.gutter')); + border-width: dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter') 0; + border-right-color: dt('tooltip.background'); + } + + .p-tooltip-left .p-tooltip-arrow { + margin-top: calc(-1 * dt('tooltip.gutter')); + border-width: dt('tooltip.gutter') 0 dt('tooltip.gutter') dt('tooltip.gutter'); + border-left-color: dt('tooltip.background'); + } + + .p-tooltip-top .p-tooltip-arrow { + margin-left: calc(-1 * dt('tooltip.gutter')); + border-width: dt('tooltip.gutter') dt('tooltip.gutter') 0 dt('tooltip.gutter'); + border-top-color: dt('tooltip.background'); + border-bottom-color: dt('tooltip.background'); + } + + .p-tooltip-bottom .p-tooltip-arrow { + margin-left: calc(-1 * dt('tooltip.gutter')); + border-width: 0 dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter'); + border-top-color: dt('tooltip.background'); + border-bottom-color: dt('tooltip.background'); + } +`;var k8={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},wM=(()=>{class t extends Oe{name="tooltip";style=_M;classes=k8;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var CM=new H("TOOLTIP_INSTANCE"),Xh=(()=>{class t extends ut{zone;viewContainer;$pcTooltip=x(CM,{optional:!0,skipSelf:!0})??void 0;tooltipPosition;tooltipEvent="hover";positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;appendTo=ae(void 0);$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:gt("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;rootPTClasses="";showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=x(wM);interactionInProgress=!1;ptTooltip=ae();constructor(e,r){super(),this.zone=e,this.viewContainer=r,Lt(()=>{this.ptTooltip()&&this.directivePT.set(this.ptTooltip())})}onAfterViewInit(){kn(this.platformId)&&this.zone.runOutsideAngular(()=>{let e=this.getOption("tooltipEvent");if((e==="hover"||e==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),e==="focus"||e==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let r=this.el.nativeElement.querySelector(".p-component");r||(r=this.getTarget(this.el.nativeElement)),r.addEventListener("focus",this.focusListener),r.addEventListener("blur",this.blurListener)}})}onChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions=_(_({},this._tooltipOptions),e.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.isAutoHide()?this.deactivate():!(wn(e.relatedTarget,"p-tooltip")||wn(e.relatedTarget,"p-tooltip-text")||wn(e.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}activate(){if(!this.interactionInProgress){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener?.()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=eu("div",{class:this.cx("root"),role:"tooltip","p-bind":this.ptm("root"),"data-pc-section":"root"});let e=eu("div",{class:"p-tooltip-arrow","p-bind":this.ptm("arrow"),"data-pc-section":"arrow"});this.container.appendChild(e),this.tooltipText=eu("div",{class:"p-tooltip-text","p-bind":this.ptm("text"),"data-pc-section":"text"}),this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?Xd(this.container,this.el.nativeElement):Xd(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let e=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(e,"mouseleave",r=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),tk(this.container,250),this.getOption("tooltipZIndex")==="auto"?ir.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&ir.clear(this.container),this.remove()}updateText(){let e=this.getOption("tooltipLabel");if(e&&typeof e.createEmbeddedView=="function"){let r=this.viewContainer.createEmbeddedView(e);r.detectChanges(),r.rootNodes.forEach(i=>this.tooltipText.appendChild(i))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){let e=this.getOption("tooltipPosition"),i={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]}[e]||[];for(let[o,s]of i.entries())if(o===0)s.call(this);else if(this.isOutOfBounds())s.call(this);else break}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let e=this.el.nativeElement.getBoundingClientRect(),r=e.left+Lv(),i=e.top+Bv();return{left:r,top:i}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?wt(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");let e=this.activeElement,r=Mn(e),i=(oi(e)-oi(this.container))/2;this.alignTooltip(r,i);let o=this.getArrowElement();o.style.top="50%",o.style.right=null,o.style.bottom=null,o.style.left="0"}alignLeft(){this.preAlign("left");let e=this.getArrowElement(),r=Mn(this.container),i=(oi(this.el.nativeElement)-oi(this.container))/2;this.alignTooltip(-r,i),e.style.top="50%",e.style.right="0",e.style.bottom=null,e.style.left=null}alignTop(){this.preAlign("top");let e=this.getArrowElement(),r=this.getHostOffset(),i=Mn(this.container),o=(Mn(this.el.nativeElement)-Mn(this.container))/2,s=oi(this.container);this.alignTooltip(o,-s);let a=r.left-this.getHostOffset().left+i/2;e.style.top=null,e.style.right=null,e.style.bottom="0",e.style.left=a+"px"}getArrowElement(){return wt(this.container,'[data-pc-section="arrow"]')}alignBottom(){this.preAlign("bottom");let e=this.getArrowElement(),r=Mn(this.container),i=this.getHostOffset(),o=(Mn(this.el.nativeElement)-Mn(this.container))/2,s=oi(this.el.nativeElement);this.alignTooltip(o,s);let a=i.left-this.getHostOffset().left+r/2;e.style.top="0",e.style.right=null,e.style.bottom=null,e.style.left=a+"px"}alignTooltip(e,r){let i=this.getHostOffset(),o=i.left+e,s=i.top+r;this.container.style.left=o+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=_(_({},this._tooltipOptions),e)}getOption(e){return this._tooltipOptions[e]}getTarget(e){return wn(e,"p-inputwrapper")?wt(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px",this.container.className=this.cn(this.cx("root"),this.ptm("root")?.class,"p-tooltip-"+e,this.getOption("tooltipStyleClass"))}isOutOfBounds(){let e=this.container.getBoundingClientRect(),r=e.top,i=e.left,o=Mn(this.container),s=oi(this.container),a=Hh();return i+o>a.width||i<0||r<0||r+s>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new xo(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let e=this.getOption("tooltipEvent");if((e==="hover"||e==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),e==="focus"||e==="both"){let r=this.el.nativeElement.querySelector(".p-component");r||(r=this.getTarget(this.el.nativeElement)),r.removeEventListener("focus",this.focusListener),r.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):ak(this.getOption("appendTo"),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}onDestroy(){this.unbindEvents(),this.container&&ir.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(r){return new(r||t)(de($e),de(Mr))};static \u0275dir=Ue({type:t,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",R],showDelay:[2,"showDelay","showDelay",Me],hideDelay:[2,"hideDelay","hideDelay",Me],life:[2,"life","life",Me],positionTop:[2,"positionTop","positionTop",Me],positionLeft:[2,"positionLeft","positionLeft",Me],autoHide:[2,"autoHide","autoHide",R],fitContent:[2,"fitContent","fitContent",R],hideOnEscape:[2,"hideOnEscape","hideOnEscape",R],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions",appendTo:[1,"appendTo"],ptTooltip:[1,"ptTooltip"]},features:[xe([wM,{provide:CM,useExisting:t},{provide:Ke,useExisting:t}]),j]})}return t})();var M8=["*"];function O8(t,n){if(t&1){let e=se();E(0,"p-button",9),q("click",function(){S(e);let i=m();return I(i.router.navigate(["/"]))}),T()}}var cs=class t{title=ae.required();router=x(Vn);noHomeButton=ae(!1);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=$({type:t,selectors:[["app-base"]],inputs:{title:[1,"title"],noHomeButton:[1,"noHomeButton"]},ngContentSelectors:M8,decls:11,vars:2,consts:[[1,"min-h-screen","flex","items-center","justify-center","p-4"],[1,"border-2","rounded-2xl","bg-gray-100/50","drop-shadow-2xl","w-full","mx-auto","p-4",2,"max-width","800px"],[1,"flex","justify-between","items-center"],[1,"flex","items-center","gap-2","w-full"],[1,"text-2xl","font-bold"],[1,"flex","items-center","gap-2"],["icon","fa fa-home","text","","rounded","","outlined","","pTooltip","Home","tooltipPosition","left"],[1,"my-4"],[1,"mt-4"],["icon","fa fa-home","text","","rounded","","outlined","","pTooltip","Home","tooltipPosition","left",3,"click"]],template:function(e,r){e&1&&(Ht(),E(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),ce(5),T()(),E(6,"div",5),rt(7,O8,1,0,"p-button",6),T()(),X(8,"hr",7),E(9,"div",8),Ot(10),T()()()),e&2&&(g(5),Ze(r.title()),g(2),it(r.noHomeButton()?-1:7))},dependencies:[rr,Xh],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};function Ql(t,n){if(!!!t)throw new Error(n)}function xM(t){return typeof t=="object"&&t!==null}function TM(t,n){if(!!!t)throw new Error(n??"Unexpected invariant triggered.")}var R8=/\r\n|[\n\r]/g;function Kl(t,n){let e=0,r=1;for(let i of t.body.matchAll(R8)){if(typeof i.index=="number"||TM(!1),i.index>=n)break;e=i.index+i[0].length,r+=1}return{line:r,column:n+1-e}}function t_(t){return em(t.source,Kl(t.source,t.start))}function em(t,n){let e=t.locationOffset.column-1,r="".padStart(e)+t.body,i=n.line-1,o=t.locationOffset.line-1,s=n.line+o,a=n.line===1?e:0,l=n.column+a,c=`${t.name}:${s}:${l} +`,d=r.split(/\r\n|[\n\r]/g),u=d[i];if(u.length>120){let p=Math.floor(l/80),f=l%80,y=[];for(let b=0;b["|",b]),["|","^".padStart(f)],["|",y[p+1]]])}return c+EM([[`${s-1} |`,d[i-1]],[`${s} |`,u],["|","^".padStart(l)],[`${s+1} |`,d[i+1]]])}function EM(t){let n=t.filter(([r,i])=>i!==void 0),e=Math.max(...n.map(([r])=>r.length));return n.map(([r,i])=>r.padStart(e)+(i?" "+i:"")).join(` +`)}function P8(t){let n=t[0];return n==null||"kind"in n||"length"in n?{nodes:n,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:n}var tm=class t extends Error{constructor(n,...e){var r,i,o;let{nodes:s,source:a,positions:l,path:c,originalError:d,extensions:u}=P8(e);super(n),this.name="GraphQLError",this.path=c??void 0,this.originalError=d??void 0,this.nodes=SM(Array.isArray(s)?s:s?[s]:void 0);let p=SM((r=this.nodes)===null||r===void 0?void 0:r.map(y=>y.loc).filter(y=>y!=null));this.source=a??(p==null||(i=p[0])===null||i===void 0?void 0:i.source),this.positions=l??p?.map(y=>y.start),this.locations=l&&a?l.map(y=>Kl(a,y)):p?.map(y=>Kl(y.source,y.start));let f=xM(d?.extensions)?d?.extensions:void 0;this.extensions=(o=u??f)!==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,t):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let n=this.message;if(this.nodes)for(let e of this.nodes)e.loc&&(n+=` + +`+t_(e.loc));else if(this.source&&this.locations)for(let e of this.locations)n+=` + +`+em(this.source,e);return n}toJSON(){let n={message:this.message};return this.locations!=null&&(n.locations=this.locations),this.path!=null&&(n.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(n.extensions=this.extensions),n}};function SM(t){return t===void 0||t.length===0?void 0:t}function en(t,n,e){return new tm(`Syntax Error: ${e}`,{source:t,positions:[n]})}var Yl=class{constructor(n,e,r){this.start=n.start,this.end=e.end,this.startToken=n,this.endToken=e,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},ua=class{constructor(n,e,r,i,o,s){this.kind=n,this.start=e,this.end=r,this.line=i,this.column=o,this.value=s,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}}},n_={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},A8=new Set(Object.keys(n_));function r_(t){let n=t?.kind;return typeof n=="string"&&A8.has(n)}var Qn=(function(t){return t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription",t})(Qn||{});var nm=(function(t){return t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",t.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION",t})(nm||{});var Q=(function(t){return t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.DIRECTIVE_EXTENSION="DirectiveExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",t})(Q||{});function rm(t){return t===9||t===32}function Zl(t){return t>=48&&t<=57}function IM(t){return t>=97&&t<=122||t>=65&&t<=90}function i_(t){return IM(t)||t===95}function DM(t){return IM(t)||Zl(t)||t===95}function kM(t){var n;let e=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;sa===0?s:s.slice(e)).slice((n=r)!==null&&n!==void 0?n:0,i+1)}function N8(t){let n=0;for(;n1&&r.slice(1).every(f=>f.length===0||rm(f.charCodeAt(0))),s=e.endsWith('\\"""'),a=t.endsWith('"')&&!s,l=t.endsWith("\\"),c=a||l,d=!(n!=null&&n.minimize)&&(!i||t.length>70||c||o||s),u="",p=i&&rm(t.charCodeAt(0));return(d&&!p||o)&&(u+=` +`),u+=e,(d||c)&&(u+=` +`),'"""'+u+'"""'}var L=(function(t){return t.SOF="",t.EOF="",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.DOT=".",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment",t})(L||{});var su=class{constructor(n){let e=new ua(L.SOF,0,0,0,0);this.source=n,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let n=this.token;if(n.kind!==L.EOF)do if(n.next)n=n.next;else{let e=F8(this,n.end);n.next=e,e.prev=n,n=e}while(n.kind===L.COMMENT);return n}};function RM(t){return t===L.BANG||t===L.DOLLAR||t===L.AMP||t===L.PAREN_L||t===L.PAREN_R||t===L.DOT||t===L.SPREAD||t===L.COLON||t===L.EQUALS||t===L.AT||t===L.BRACKET_L||t===L.BRACKET_R||t===L.BRACE_L||t===L.PIPE||t===L.BRACE_R}function Jl(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function im(t,n){return PM(t.charCodeAt(n))&&AM(t.charCodeAt(n+1))}function PM(t){return t>=55296&&t<=56319}function AM(t){return t>=56320&&t<=57343}function pa(t,n){let e=t.source.body.codePointAt(n);if(e===void 0)return L.EOF;if(e>=32&&e<=126){let r=String.fromCodePoint(e);return r==='"'?`'"'`:`"${r}"`}return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function rn(t,n,e,r,i){let o=t.line,s=1+e-t.lineStart;return new ua(n,e,r,o,s,i)}function F8(t,n){let e=t.source.body,r=e.length,i=n;for(;i=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function H8(t,n){let e=t.source.body;switch(e.charCodeAt(n+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 en(t.source,n,`Invalid character escape sequence: "${e.slice(n,n+2)}".`)}function $8(t,n){let e=t.source.body,r=e.length,i=t.lineStart,o=n+3,s=o,a="",l=[];for(;o2?"["+K8(t)+"]":"{ "+e.map(([i,o])=>i+": "+om(o,n)).join(", ")+" }"}function Q8(t,n){if(t.length===0)return"[]";if(n.length>2)return"[Array]";let e=Math.min(10,t.length),r=t.length-e,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function K8(t){let n=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(n==="Object"&&typeof t.constructor=="function"){let e=t.constructor.name;if(typeof e=="string"&&e!=="")return e}return n}var Y8=globalThis.process&&!0,NM=Y8?function(n,e){return n instanceof e}:function(n,e){if(n instanceof e)return!0;if(typeof n=="object"&&n!==null){var r;let i=e.prototype[Symbol.toStringTag],o=Symbol.toStringTag in n?n[Symbol.toStringTag]:(r=n.constructor)===null||r===void 0?void 0:r.name;if(i===o){let s=Xl(n);throw new Error(`Cannot use ${i} "${s}" 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 @@ -19,44 +1060,44 @@ 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 _o=class{constructor(n,e="GraphQL request",i={line:1,column:1}){typeof n=="string"||po(!1,`Body must be a string. Received: ${bo(n)}.`),this.body=n,this.name=e,this.locationOffset=i,this.locationOffset.line>0||po(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||po(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function Af(t){return Bf(t,_o)}function ga(t,n){let e=new ul(t,n),i=e.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:e.tokenCount}),i}var ul=class{constructor(n,e={}){let r=e,{lexer:i}=r,o=it(r,["lexer"]);if(i)this._lexer=i;else{let a=Af(n)?n:new _o(n);this._lexer=new or(a)}this._options=o,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let n=this.expectToken(O.NAME);return this.node(n,{kind:B.NAME,value:n.value})}parseDocument(){return this.node(this._lexer.token,{kind:B.DOCUMENT,definitions:this.many(O.SOF,this.parseDefinition,O.EOF)})}parseDefinition(){if(this.peek(O.BRACE_L))return this.parseOperationDefinition();let n=this.peekDescription(),e=n?this._lexer.lookahead():this._lexer.token;if(n&&e.kind===O.BRACE_L)throw ut(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(e.kind===O.NAME){switch(e.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()}switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(n)throw ut(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(e.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(e)}parseOperationDefinition(){let n=this._lexer.token;if(this.peek(O.BRACE_L))return this.node(n,{kind:B.OPERATION_DEFINITION,operation:Rt.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let e=this.parseDescription(),i=this.parseOperationType(),o;return this.peek(O.NAME)&&(o=this.parseName()),this.node(n,{kind:B.OPERATION_DEFINITION,operation:i,description:e,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let n=this.expectToken(O.NAME);switch(n.value){case"query":return Rt.QUERY;case"mutation":return Rt.MUTATION;case"subscription":return Rt.SUBSCRIPTION}throw this.unexpected(n)}parseVariableDefinitions(){return this.optionalMany(O.PAREN_L,this.parseVariableDefinition,O.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:B.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(O.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(O.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let n=this._lexer.token;return this.expectToken(O.DOLLAR),this.node(n,{kind:B.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:B.SELECTION_SET,selections:this.many(O.BRACE_L,this.parseSelection,O.BRACE_R)})}parseSelection(){return this.peek(O.SPREAD)?this.parseFragment():this.parseField()}parseField(){let n=this._lexer.token,e=this.parseName(),i,o;return this.expectOptionalToken(O.COLON)?(i=e,o=this.parseName()):o=e,this.node(n,{kind:B.FIELD,alias:i,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(O.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(n){let e=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(O.PAREN_L,e,O.PAREN_R)}parseArgument(n=!1){let e=this._lexer.token,i=this.parseName();return this.expectToken(O.COLON),this.node(e,{kind:B.ARGUMENT,name:i,value:this.parseValueLiteral(n)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let n=this._lexer.token;this.expectToken(O.SPREAD);let e=this.expectOptionalKeyword("on");return!e&&this.peek(O.NAME)?this.node(n,{kind:B.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(n,{kind:B.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let n=this._lexer.token,e=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(n,{kind:B.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(n,{kind:B.FRAGMENT_DEFINITION,description:e,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(n){let e=this._lexer.token;switch(e.kind){case O.BRACKET_L:return this.parseList(n);case O.BRACE_L:return this.parseObject(n);case O.INT:return this.advanceLexer(),this.node(e,{kind:B.INT,value:e.value});case O.FLOAT:return this.advanceLexer(),this.node(e,{kind:B.FLOAT,value:e.value});case O.STRING:case O.BLOCK_STRING:return this.parseStringLiteral();case O.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:B.BOOLEAN,value:!0});case"false":return this.node(e,{kind:B.BOOLEAN,value:!1});case"null":return this.node(e,{kind:B.NULL});default:return this.node(e,{kind:B.ENUM,value:e.value})}case O.DOLLAR:if(n)if(this.expectToken(O.DOLLAR),this._lexer.token.kind===O.NAME){let i=this._lexer.token.value;throw ut(this._lexer.source,e.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(e);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let n=this._lexer.token;return this.advanceLexer(),this.node(n,{kind:B.STRING,value:n.value,block:n.kind===O.BLOCK_STRING})}parseList(n){let e=()=>this.parseValueLiteral(n);return this.node(this._lexer.token,{kind:B.LIST,values:this.any(O.BRACKET_L,e,O.BRACKET_R)})}parseObject(n){let e=()=>this.parseObjectField(n);return this.node(this._lexer.token,{kind:B.OBJECT,fields:this.any(O.BRACE_L,e,O.BRACE_R)})}parseObjectField(n){let e=this._lexer.token,i=this.parseName();return this.expectToken(O.COLON),this.node(e,{kind:B.OBJECT_FIELD,name:i,value:this.parseValueLiteral(n)})}parseDirectives(n){let e=[];for(;this.peek(O.AT);)e.push(this.parseDirective(n));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(n){let e=this._lexer.token;return this.expectToken(O.AT),this.node(e,{kind:B.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n)})}parseTypeReference(){let n=this._lexer.token,e;if(this.expectOptionalToken(O.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(O.BRACKET_R),e=this.node(n,{kind:B.LIST_TYPE,type:i})}else e=this.parseNamedType();return this.expectOptionalToken(O.BANG)?this.node(n,{kind:B.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:B.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(O.STRING)||this.peek(O.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),o=this.many(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);return this.node(n,{kind:B.SCHEMA_DEFINITION,description:e,directives:i,operationTypes:o})}parseOperationTypeDefinition(){let n=this._lexer.token,e=this.parseOperationType();this.expectToken(O.COLON);let i=this.parseNamedType();return this.node(n,{kind:B.OPERATION_TYPE_DEFINITION,operation:e,type:i})}parseScalarTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),o=this.parseConstDirectives();return this.node(n,{kind:B.SCALAR_TYPE_DEFINITION,description:e,name:i,directives:o})}parseObjectTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),o=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(n,{kind:B.OBJECT_TYPE_DEFINITION,description:e,name:i,interfaces:o,directives:r,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(O.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseFieldDefinition,O.BRACE_R)}parseFieldDefinition(){let n=this._lexer.token,e=this.parseDescription(),i=this.parseName(),o=this.parseArgumentDefs();this.expectToken(O.COLON);let r=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(n,{kind:B.FIELD_DEFINITION,description:e,name:i,arguments:o,type:r,directives:a})}parseArgumentDefs(){return this.optionalMany(O.PAREN_L,this.parseInputValueDef,O.PAREN_R)}parseInputValueDef(){let n=this._lexer.token,e=this.parseDescription(),i=this.parseName();this.expectToken(O.COLON);let o=this.parseTypeReference(),r;this.expectOptionalToken(O.EQUALS)&&(r=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(n,{kind:B.INPUT_VALUE_DEFINITION,description:e,name:i,type:o,defaultValue:r,directives:a})}parseInterfaceTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),o=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(n,{kind:B.INTERFACE_TYPE_DEFINITION,description:e,name:i,interfaces:o,directives:r,fields:a})}parseUnionTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),o=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(n,{kind:B.UNION_TYPE_DEFINITION,description:e,name:i,directives:o,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(O.EQUALS)?this.delimitedMany(O.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),o=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(n,{kind:B.ENUM_TYPE_DEFINITION,description:e,name:i,directives:o,values:r})}parseEnumValuesDefinition(){return this.optionalMany(O.BRACE_L,this.parseEnumValueDefinition,O.BRACE_R)}parseEnumValueDefinition(){let n=this._lexer.token,e=this.parseDescription(),i=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(n,{kind:B.ENUM_VALUE_DEFINITION,description:e,name:i,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw ut(this._lexer.source,this._lexer.token.start,`${ma(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),o=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(n,{kind:B.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:i,directives:o,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseInputValueDef,O.BRACE_R)}parseTypeSystemExtension(){let n=this._lexer.lookahead();if(n.kind===O.NAME)switch(n.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();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(n)}parseSchemaExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let e=this.parseConstDirectives(),i=this.optionalMany(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);if(e.length===0&&i.length===0)throw this.unexpected();return this.node(n,{kind:B.SCHEMA_EXTENSION,directives:e,operationTypes:i})}parseScalarTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let e=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(n,{kind:B.SCALAR_TYPE_EXTENSION,name:e,directives:i})}parseObjectTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let e=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(i.length===0&&o.length===0&&r.length===0)throw this.unexpected();return this.node(n,{kind:B.OBJECT_TYPE_EXTENSION,name:e,interfaces:i,directives:o,fields:r})}parseInterfaceTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let e=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(i.length===0&&o.length===0&&r.length===0)throw this.unexpected();return this.node(n,{kind:B.INTERFACE_TYPE_EXTENSION,name:e,interfaces:i,directives:o,fields:r})}parseUnionTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let e=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(i.length===0&&o.length===0)throw this.unexpected();return this.node(n,{kind:B.UNION_TYPE_EXTENSION,name:e,directives:i,types:o})}parseEnumTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let e=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(i.length===0&&o.length===0)throw this.unexpected();return this.node(n,{kind:B.ENUM_TYPE_EXTENSION,name:e,directives:i,values:o})}parseInputObjectTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let e=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(i.length===0&&o.length===0)throw this.unexpected();return this.node(n,{kind:B.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:i,fields:o})}parseDirectiveDefinitionExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(O.AT);let e=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(n,{kind:B.DIRECTIVE_EXTENSION,name:e,directives:i})}parseDirectiveDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(O.AT);let i=this.parseName(),o=this.parseArgumentDefs(),r=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(n,{kind:B.DIRECTIVE_DEFINITION,description:e,name:i,arguments:o,directives:r,repeatable:a,locations:s})}parseDirectiveLocations(){return this.delimitedMany(O.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let n=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(ua,e.value))return e;throw this.unexpected(n)}parseSchemaCoordinate(){let n=this._lexer.token,e=this.expectOptionalToken(O.AT),i=this.parseName(),o;!e&&this.expectOptionalToken(O.DOT)&&(o=this.parseName());let r;return(e||o)&&this.expectOptionalToken(O.PAREN_L)&&(r=this.parseName(),this.expectToken(O.COLON),this.expectToken(O.PAREN_R)),e?r?this.node(n,{kind:B.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:r}):this.node(n,{kind:B.DIRECTIVE_COORDINATE,name:i}):o?r?this.node(n,{kind:B.ARGUMENT_COORDINATE,name:i,fieldName:o,argumentName:r}):this.node(n,{kind:B.MEMBER_COORDINATE,name:i,memberName:o}):this.node(n,{kind:B.TYPE_COORDINATE,name:i})}node(n,e){return this._options.noLocation!==!0&&(e.loc=new ho(n,this._lexer.lastToken,this._lexer.source)),e}peek(n){return this._lexer.token.kind===n}expectToken(n){let e=this._lexer.token;if(e.kind===n)return this.advanceLexer(),e;throw ut(this._lexer.source,e.start,`Expected ${Lf(n)}, found ${ma(e)}.`)}expectOptionalToken(n){return this._lexer.token.kind===n?(this.advanceLexer(),!0):!1}expectKeyword(n){let e=this._lexer.token;if(e.kind===O.NAME&&e.value===n)this.advanceLexer();else throw ut(this._lexer.source,e.start,`Expected "${n}", found ${ma(e)}.`)}expectOptionalKeyword(n){let e=this._lexer.token;return e.kind===O.NAME&&e.value===n?(this.advanceLexer(),!0):!1}unexpected(n){let e=n??this._lexer.token;return ut(this._lexer.source,e.start,`Unexpected ${ma(e)}.`)}any(n,e,i){this.expectToken(n);let o=[];for(;!this.expectOptionalToken(i);)o.push(e.call(this));return o}optionalMany(n,e,i){if(this.expectOptionalToken(n)){let o=[];do o.push(e.call(this));while(!this.expectOptionalToken(i));return o}return[]}many(n,e,i){this.expectToken(n);let o=[];do o.push(e.call(this));while(!this.expectOptionalToken(i));return o}delimitedMany(n,e){this.expectOptionalToken(n);let i=[];do i.push(e.call(this));while(this.expectOptionalToken(n));return i}advanceLexer(){let{maxTokens:n}=this._options,e=this._lexer.advance();if(e.kind!==O.EOF&&(++this._tokenCounter,n!==void 0&&this._tokenCounter>n))throw ut(this._lexer.source,e.start,`Document contains more that ${n} tokens. Parsing aborted.`)}};function ma(t){let n=t.value;return Lf(t.kind)+(n!=null?` "${n}"`:"")}function Lf(t){return Ff(t)?`"${t}"`:t}function Nf(t){return`"${t.replace(d_,u_)}"`}var d_=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function u_(t){return p_[t.charCodeAt(0)]}var p_=["\\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 Wn=Object.freeze({});function gt(t,n,e=sl){let i=new Map;for(let S of Object.values(B))i.set(S,pl(n,S));let o,r=Array.isArray(t),a=[t],s=-1,l=[],c=t,p,h,m=[],g=[];do{s++;let S=s===a.length,E=S&&l.length!==0;if(S){if(p=g.length===0?void 0:m[m.length-1],c=h,h=g.pop(),E)if(r){c=c.slice();let z=0;for(let[W,ge]of l){let Le=W-z;ge===null?(c.splice(Le,1),z++):c[Le]=ge}}else{c=T({},c);for(let[z,W]of l)c[z]=W}s=o.index,a=o.keys,l=o.edits,r=o.inArray,o=o.prev}else if(h){if(p=r?s:a[s],c=h[p],c==null)continue;m.push(p)}let R;if(!Array.isArray(c)){var b,y;ll(c)||po(!1,`Invalid AST Node: ${bo(c)}.`);let z=S?(b=i.get(c.kind))===null||b===void 0?void 0:b.leave:(y=i.get(c.kind))===null||y===void 0?void 0:y.enter;if(R=z?.call(n,c,p,h,m,g),R===Wn)break;if(R===!1){if(!S){m.pop();continue}}else if(R!==void 0&&(l.push([p,R]),!S))if(ll(R))c=R;else{m.pop();continue}}if(R===void 0&&E&&l.push([p,c]),S)m.pop();else{var v;o={inArray:r,index:s,keys:a,edits:l,prev:o},r=Array.isArray(c),a=r?c:(v=e[c.kind])!==null&&v!==void 0?v:[],s=-1,l=[],h&&g.push(h),h=c}}while(o!==void 0);return l.length!==0?l[l.length-1][1]:t}function pl(t,n){let e=t[n];return typeof e=="object"?e:typeof e=="function"?{enter:e,leave:void 0}:{enter:t.enter,leave:t.leave}}function yo(t){return gt(t,h_)}var f_=80,h_={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>ee(t.definitions,` +spurious results.`)}}return!1};var ec=class{constructor(n,e="GraphQL request",r={line:1,column:1}){typeof n=="string"||Ql(!1,`Body must be a string. Received: ${Xl(n)}.`),this.body=n,this.name=e,this.locationOffset=r,this.locationOffset.line>0||Ql(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ql(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function FM(t){return NM(t,ec)}function am(t,n){let e=new s_(t,n),r=e.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:e.tokenCount}),r}var s_=class{constructor(n,e={}){let o=e,{lexer:r}=o,i=Et(o,["lexer"]);if(r)this._lexer=r;else{let s=FM(n)?n:new ec(n);this._lexer=new su(s)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let n=this.expectToken(L.NAME);return this.node(n,{kind:Q.NAME,value:n.value})}parseDocument(){return this.node(this._lexer.token,{kind:Q.DOCUMENT,definitions:this.many(L.SOF,this.parseDefinition,L.EOF)})}parseDefinition(){if(this.peek(L.BRACE_L))return this.parseOperationDefinition();let n=this.peekDescription(),e=n?this._lexer.lookahead():this._lexer.token;if(n&&e.kind===L.BRACE_L)throw en(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(e.kind===L.NAME){switch(e.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()}switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(n)throw en(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(e.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(e)}parseOperationDefinition(){let n=this._lexer.token;if(this.peek(L.BRACE_L))return this.node(n,{kind:Q.OPERATION_DEFINITION,operation:Qn.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let e=this.parseDescription(),r=this.parseOperationType(),i;return this.peek(L.NAME)&&(i=this.parseName()),this.node(n,{kind:Q.OPERATION_DEFINITION,operation:r,description:e,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let n=this.expectToken(L.NAME);switch(n.value){case"query":return Qn.QUERY;case"mutation":return Qn.MUTATION;case"subscription":return Qn.SUBSCRIPTION}throw this.unexpected(n)}parseVariableDefinitions(){return this.optionalMany(L.PAREN_L,this.parseVariableDefinition,L.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Q.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(L.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(L.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let n=this._lexer.token;return this.expectToken(L.DOLLAR),this.node(n,{kind:Q.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Q.SELECTION_SET,selections:this.many(L.BRACE_L,this.parseSelection,L.BRACE_R)})}parseSelection(){return this.peek(L.SPREAD)?this.parseFragment():this.parseField()}parseField(){let n=this._lexer.token,e=this.parseName(),r,i;return this.expectOptionalToken(L.COLON)?(r=e,i=this.parseName()):i=e,this.node(n,{kind:Q.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(L.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(n){let e=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(L.PAREN_L,e,L.PAREN_R)}parseArgument(n=!1){let e=this._lexer.token,r=this.parseName();return this.expectToken(L.COLON),this.node(e,{kind:Q.ARGUMENT,name:r,value:this.parseValueLiteral(n)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let n=this._lexer.token;this.expectToken(L.SPREAD);let e=this.expectOptionalKeyword("on");return!e&&this.peek(L.NAME)?this.node(n,{kind:Q.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(n,{kind:Q.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let n=this._lexer.token,e=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(n,{kind:Q.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(n,{kind:Q.FRAGMENT_DEFINITION,description:e,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(n){let e=this._lexer.token;switch(e.kind){case L.BRACKET_L:return this.parseList(n);case L.BRACE_L:return this.parseObject(n);case L.INT:return this.advanceLexer(),this.node(e,{kind:Q.INT,value:e.value});case L.FLOAT:return this.advanceLexer(),this.node(e,{kind:Q.FLOAT,value:e.value});case L.STRING:case L.BLOCK_STRING:return this.parseStringLiteral();case L.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:Q.BOOLEAN,value:!0});case"false":return this.node(e,{kind:Q.BOOLEAN,value:!1});case"null":return this.node(e,{kind:Q.NULL});default:return this.node(e,{kind:Q.ENUM,value:e.value})}case L.DOLLAR:if(n)if(this.expectToken(L.DOLLAR),this._lexer.token.kind===L.NAME){let r=this._lexer.token.value;throw en(this._lexer.source,e.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(e);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let n=this._lexer.token;return this.advanceLexer(),this.node(n,{kind:Q.STRING,value:n.value,block:n.kind===L.BLOCK_STRING})}parseList(n){let e=()=>this.parseValueLiteral(n);return this.node(this._lexer.token,{kind:Q.LIST,values:this.any(L.BRACKET_L,e,L.BRACKET_R)})}parseObject(n){let e=()=>this.parseObjectField(n);return this.node(this._lexer.token,{kind:Q.OBJECT,fields:this.any(L.BRACE_L,e,L.BRACE_R)})}parseObjectField(n){let e=this._lexer.token,r=this.parseName();return this.expectToken(L.COLON),this.node(e,{kind:Q.OBJECT_FIELD,name:r,value:this.parseValueLiteral(n)})}parseDirectives(n){let e=[];for(;this.peek(L.AT);)e.push(this.parseDirective(n));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(n){let e=this._lexer.token;return this.expectToken(L.AT),this.node(e,{kind:Q.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n)})}parseTypeReference(){let n=this._lexer.token,e;if(this.expectOptionalToken(L.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(L.BRACKET_R),e=this.node(n,{kind:Q.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(L.BANG)?this.node(n,{kind:Q.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:Q.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(L.STRING)||this.peek(L.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(L.BRACE_L,this.parseOperationTypeDefinition,L.BRACE_R);return this.node(n,{kind:Q.SCHEMA_DEFINITION,description:e,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let n=this._lexer.token,e=this.parseOperationType();this.expectToken(L.COLON);let r=this.parseNamedType();return this.node(n,{kind:Q.OPERATION_TYPE_DEFINITION,operation:e,type:r})}parseScalarTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(n,{kind:Q.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:i})}parseObjectTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(n,{kind:Q.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(L.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(L.BRACE_L,this.parseFieldDefinition,L.BRACE_R)}parseFieldDefinition(){let n=this._lexer.token,e=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(L.COLON);let o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(n,{kind:Q.FIELD_DEFINITION,description:e,name:r,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(L.PAREN_L,this.parseInputValueDef,L.PAREN_R)}parseInputValueDef(){let n=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(L.COLON);let i=this.parseTypeReference(),o;this.expectOptionalToken(L.EQUALS)&&(o=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(n,{kind:Q.INPUT_VALUE_DEFINITION,description:e,name:r,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(n,{kind:Q.INTERFACE_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(n,{kind:Q.UNION_TYPE_DEFINITION,description:e,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(L.EQUALS)?this.delimitedMany(L.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(n,{kind:Q.ENUM_TYPE_DEFINITION,description:e,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(L.BRACE_L,this.parseEnumValueDefinition,L.BRACE_R)}parseEnumValueDefinition(){let n=this._lexer.token,e=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(n,{kind:Q.ENUM_VALUE_DEFINITION,description:e,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw en(this._lexer.source,this._lexer.token.start,`${sm(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(n,{kind:Q.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(L.BRACE_L,this.parseInputValueDef,L.BRACE_R)}parseTypeSystemExtension(){let n=this._lexer.lookahead();if(n.kind===L.NAME)switch(n.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();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(n)}parseSchemaExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let e=this.parseConstDirectives(),r=this.optionalMany(L.BRACE_L,this.parseOperationTypeDefinition,L.BRACE_R);if(e.length===0&&r.length===0)throw this.unexpected();return this.node(n,{kind:Q.SCHEMA_EXTENSION,directives:e,operationTypes:r})}parseScalarTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let e=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(n,{kind:Q.SCALAR_TYPE_EXTENSION,name:e,directives:r})}parseObjectTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(n,{kind:Q.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(n,{kind:Q.INTERFACE_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let e=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(n,{kind:Q.UNION_TYPE_EXTENSION,name:e,directives:r,types:i})}parseEnumTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let e=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(n,{kind:Q.ENUM_TYPE_EXTENSION,name:e,directives:r,values:i})}parseInputObjectTypeExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let e=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(n,{kind:Q.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:i})}parseDirectiveDefinitionExtension(){let n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(L.AT);let e=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(n,{kind:Q.DIRECTIVE_EXTENSION,name:e,directives:r})}parseDirectiveDefinition(){let n=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(L.AT);let r=this.parseName(),i=this.parseArgumentDefs(),o=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(n,{kind:Q.DIRECTIVE_DEFINITION,description:e,name:r,arguments:i,directives:o,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(L.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let n=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(nm,e.value))return e;throw this.unexpected(n)}parseSchemaCoordinate(){let n=this._lexer.token,e=this.expectOptionalToken(L.AT),r=this.parseName(),i;!e&&this.expectOptionalToken(L.DOT)&&(i=this.parseName());let o;return(e||i)&&this.expectOptionalToken(L.PAREN_L)&&(o=this.parseName(),this.expectToken(L.COLON),this.expectToken(L.PAREN_R)),e?o?this.node(n,{kind:Q.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:o}):this.node(n,{kind:Q.DIRECTIVE_COORDINATE,name:r}):i?o?this.node(n,{kind:Q.ARGUMENT_COORDINATE,name:r,fieldName:i,argumentName:o}):this.node(n,{kind:Q.MEMBER_COORDINATE,name:r,memberName:i}):this.node(n,{kind:Q.TYPE_COORDINATE,name:r})}node(n,e){return this._options.noLocation!==!0&&(e.loc=new Yl(n,this._lexer.lastToken,this._lexer.source)),e}peek(n){return this._lexer.token.kind===n}expectToken(n){let e=this._lexer.token;if(e.kind===n)return this.advanceLexer(),e;throw en(this._lexer.source,e.start,`Expected ${LM(n)}, found ${sm(e)}.`)}expectOptionalToken(n){return this._lexer.token.kind===n?(this.advanceLexer(),!0):!1}expectKeyword(n){let e=this._lexer.token;if(e.kind===L.NAME&&e.value===n)this.advanceLexer();else throw en(this._lexer.source,e.start,`Expected "${n}", found ${sm(e)}.`)}expectOptionalKeyword(n){let e=this._lexer.token;return e.kind===L.NAME&&e.value===n?(this.advanceLexer(),!0):!1}unexpected(n){let e=n??this._lexer.token;return en(this._lexer.source,e.start,`Unexpected ${sm(e)}.`)}any(n,e,r){this.expectToken(n);let i=[];for(;!this.expectOptionalToken(r);)i.push(e.call(this));return i}optionalMany(n,e,r){if(this.expectOptionalToken(n)){let i=[];do i.push(e.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(n,e,r){this.expectToken(n);let i=[];do i.push(e.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(n,e){this.expectOptionalToken(n);let r=[];do r.push(e.call(this));while(this.expectOptionalToken(n));return r}advanceLexer(){let{maxTokens:n}=this._options,e=this._lexer.advance();if(e.kind!==L.EOF&&(++this._tokenCounter,n!==void 0&&this._tokenCounter>n))throw en(this._lexer.source,e.start,`Document contains more that ${n} tokens. Parsing aborted.`)}};function sm(t){let n=t.value;return LM(t.kind)+(n!=null?` "${n}"`:"")}function LM(t){return RM(t)?`"${t}"`:t}function BM(t){return`"${t.replace(Z8,J8)}"`}var Z8=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function J8(t){return X8[t.charCodeAt(0)]}var X8=["\\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 Eo=Object.freeze({});function on(t,n,e=n_){let r=new Map;for(let w of Object.values(Q))r.set(w,a_(n,w));let i,o=Array.isArray(t),s=[t],a=-1,l=[],c=t,d,u,p=[],f=[];do{a++;let w=a===s.length,D=w&&l.length!==0;if(w){if(d=f.length===0?void 0:p[p.length-1],c=u,u=f.pop(),D)if(o){c=c.slice();let B=0;for(let[Y,ye]of l){let Xe=Y-B;ye===null?(c.splice(Xe,1),B++):c[Xe]=ye}}else{c=_({},c);for(let[B,Y]of l)c[B]=Y}a=i.index,s=i.keys,l=i.edits,o=i.inArray,i=i.prev}else if(u){if(d=o?a:s[a],c=u[d],c==null)continue;p.push(d)}let P;if(!Array.isArray(c)){var y,b;r_(c)||Ql(!1,`Invalid AST Node: ${Xl(c)}.`);let B=w?(y=r.get(c.kind))===null||y===void 0?void 0:y.leave:(b=r.get(c.kind))===null||b===void 0?void 0:b.enter;if(P=B?.call(n,c,d,u,p,f),P===Eo)break;if(P===!1){if(!w){p.pop();continue}}else if(P!==void 0&&(l.push([d,P]),!w))if(r_(P))c=P;else{p.pop();continue}}if(P===void 0&&D&&l.push([d,c]),w)p.pop();else{var v;i={inArray:o,index:a,keys:s,edits:l,prev:i},o=Array.isArray(c),s=o?c:(v=e[c.kind])!==null&&v!==void 0?v:[],a=-1,l=[],u&&f.push(u),u=c}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:t}function a_(t,n){let e=t[n];return typeof e=="object"?e:typeof e=="function"?{enter:e,leave:void 0}:{enter:t.enter,leave:t.leave}}function tc(t){return on(t,t7)}var e7=80,t7={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>le(t.definitions,` -`)},OperationDefinition:{leave(t){let n=fl(t.variableDefinitions)?_e(`( -`,ee(t.variableDefinitions,` +`)},OperationDefinition:{leave(t){let n=l_(t.variableDefinitions)?Be(`( +`,le(t.variableDefinitions,` `),` -)`):_e("(",ee(t.variableDefinitions,", "),")"),e=_e("",t.description,` -`)+ee([t.operation,ee([t.name,n]),ee(t.directives," ")]," ");return(e==="query"?"":e+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:n,defaultValue:e,directives:i,description:o})=>_e("",o,` -`)+t+": "+n+_e(" = ",e)+_e(" ",ee(i," "))},SelectionSet:{leave:({selections:t})=>cn(t)},Field:{leave({alias:t,name:n,arguments:e,directives:i,selectionSet:o}){let r=_e("",t,": ")+n,a=r+_e("(",ee(e,", "),")");return a.length>f_&&(a=r+_e(`( -`,ba(ee(e,` +)`):Be("(",le(t.variableDefinitions,", "),")"),e=Be("",t.description,` +`)+le([t.operation,le([t.name,n]),le(t.directives," ")]," ");return(e==="query"?"":e+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:n,defaultValue:e,directives:r,description:i})=>Be("",i,` +`)+t+": "+n+Be(" = ",e)+Be(" ",le(r," "))},SelectionSet:{leave:({selections:t})=>di(t)},Field:{leave({alias:t,name:n,arguments:e,directives:r,selectionSet:i}){let o=Be("",t,": ")+n,s=o+Be("(",le(e,", "),")");return s.length>e7&&(s=o+Be(`( +`,lm(le(e,` `)),` -)`)),ee([a,ee(i," "),o]," ")}},Argument:{leave:({name:t,value:n})=>t+": "+n},FragmentSpread:{leave:({name:t,directives:n})=>"..."+t+_e(" ",ee(n," "))},InlineFragment:{leave:({typeCondition:t,directives:n,selectionSet:e})=>ee(["...",_e("on ",t),ee(n," "),e]," ")},FragmentDefinition:{leave:({name:t,typeCondition:n,variableDefinitions:e,directives:i,selectionSet:o,description:r})=>_e("",r,` -`)+`fragment ${t}${_e("(",ee(e,", "),")")} on ${n} ${_e("",ee(i," ")," ")}`+o},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:n})=>n?Of(t):Nf(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+ee(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+ee(t,", ")+"}"},ObjectField:{leave:({name:t,value:n})=>t+": "+n},Directive:{leave:({name:t,arguments:n})=>"@"+t+_e("(",ee(n,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:n,operationTypes:e})=>_e("",t,` -`)+ee(["schema",ee(n," "),cn(e)]," ")},OperationTypeDefinition:{leave:({operation:t,type:n})=>t+": "+n},ScalarTypeDefinition:{leave:({description:t,name:n,directives:e})=>_e("",t,` -`)+ee(["scalar",n,ee(e," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:n,interfaces:e,directives:i,fields:o})=>_e("",t,` -`)+ee(["type",n,_e("implements ",ee(e," & ")),ee(i," "),cn(o)]," ")},FieldDefinition:{leave:({description:t,name:n,arguments:e,type:i,directives:o})=>_e("",t,` -`)+n+(fl(e)?_e(`( -`,ba(ee(e,` +)`)),le([s,le(r," "),i]," ")}},Argument:{leave:({name:t,value:n})=>t+": "+n},FragmentSpread:{leave:({name:t,directives:n})=>"..."+t+Be(" ",le(n," "))},InlineFragment:{leave:({typeCondition:t,directives:n,selectionSet:e})=>le(["...",Be("on ",t),le(n," "),e]," ")},FragmentDefinition:{leave:({name:t,typeCondition:n,variableDefinitions:e,directives:r,selectionSet:i,description:o})=>Be("",o,` +`)+`fragment ${t}${Be("(",le(e,", "),")")} on ${n} ${Be("",le(r," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:n})=>n?MM(t):BM(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+le(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+le(t,", ")+"}"},ObjectField:{leave:({name:t,value:n})=>t+": "+n},Directive:{leave:({name:t,arguments:n})=>"@"+t+Be("(",le(n,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:n,operationTypes:e})=>Be("",t,` +`)+le(["schema",le(n," "),di(e)]," ")},OperationTypeDefinition:{leave:({operation:t,type:n})=>t+": "+n},ScalarTypeDefinition:{leave:({description:t,name:n,directives:e})=>Be("",t,` +`)+le(["scalar",n,le(e," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:n,interfaces:e,directives:r,fields:i})=>Be("",t,` +`)+le(["type",n,Be("implements ",le(e," & ")),le(r," "),di(i)]," ")},FieldDefinition:{leave:({description:t,name:n,arguments:e,type:r,directives:i})=>Be("",t,` +`)+n+(l_(e)?Be(`( +`,lm(le(e,` `)),` -)`):_e("(",ee(e,", "),")"))+": "+i+_e(" ",ee(o," "))},InputValueDefinition:{leave:({description:t,name:n,type:e,defaultValue:i,directives:o})=>_e("",t,` -`)+ee([n+": "+e,_e("= ",i),ee(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:n,interfaces:e,directives:i,fields:o})=>_e("",t,` -`)+ee(["interface",n,_e("implements ",ee(e," & ")),ee(i," "),cn(o)]," ")},UnionTypeDefinition:{leave:({description:t,name:n,directives:e,types:i})=>_e("",t,` -`)+ee(["union",n,ee(e," "),_e("= ",ee(i," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:n,directives:e,values:i})=>_e("",t,` -`)+ee(["enum",n,ee(e," "),cn(i)]," ")},EnumValueDefinition:{leave:({description:t,name:n,directives:e})=>_e("",t,` -`)+ee([n,ee(e," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:n,directives:e,fields:i})=>_e("",t,` -`)+ee(["input",n,ee(e," "),cn(i)]," ")},DirectiveDefinition:{leave:({description:t,name:n,arguments:e,directives:i,repeatable:o,locations:r})=>_e("",t,` -`)+"directive @"+n+(fl(e)?_e(`( -`,ba(ee(e,` +)`):Be("(",le(e,", "),")"))+": "+r+Be(" ",le(i," "))},InputValueDefinition:{leave:({description:t,name:n,type:e,defaultValue:r,directives:i})=>Be("",t,` +`)+le([n+": "+e,Be("= ",r),le(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:n,interfaces:e,directives:r,fields:i})=>Be("",t,` +`)+le(["interface",n,Be("implements ",le(e," & ")),le(r," "),di(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:n,directives:e,types:r})=>Be("",t,` +`)+le(["union",n,le(e," "),Be("= ",le(r," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:n,directives:e,values:r})=>Be("",t,` +`)+le(["enum",n,le(e," "),di(r)]," ")},EnumValueDefinition:{leave:({description:t,name:n,directives:e})=>Be("",t,` +`)+le([n,le(e," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:n,directives:e,fields:r})=>Be("",t,` +`)+le(["input",n,le(e," "),di(r)]," ")},DirectiveDefinition:{leave:({description:t,name:n,arguments:e,directives:r,repeatable:i,locations:o})=>Be("",t,` +`)+"directive @"+n+(l_(e)?Be(`( +`,lm(le(e,` `)),` -)`):_e("(",ee(e,", "),")"))+_e(" ",ee(i," "))+(o?" repeatable":"")+" on "+ee(r," | ")},SchemaExtension:{leave:({directives:t,operationTypes:n})=>ee(["extend schema",ee(t," "),cn(n)]," ")},ScalarTypeExtension:{leave:({name:t,directives:n})=>ee(["extend scalar",t,ee(n," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:n,directives:e,fields:i})=>ee(["extend type",t,_e("implements ",ee(n," & ")),ee(e," "),cn(i)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:n,directives:e,fields:i})=>ee(["extend interface",t,_e("implements ",ee(n," & ")),ee(e," "),cn(i)]," ")},UnionTypeExtension:{leave:({name:t,directives:n,types:e})=>ee(["extend union",t,ee(n," "),_e("= ",ee(e," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:n,values:e})=>ee(["extend enum",t,ee(n," "),cn(e)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:n,fields:e})=>ee(["extend input",t,ee(n," "),cn(e)]," ")},DirectiveExtension:{leave:({name:t,directives:n})=>ee(["extend directive @"+t,ee(n," ")]," ")},TypeCoordinate:{leave:({name:t})=>t},MemberCoordinate:{leave:({name:t,memberName:n})=>ee([t,_e(".",n)])},ArgumentCoordinate:{leave:({name:t,fieldName:n,argumentName:e})=>ee([t,_e(".",n),_e("(",e,":)")])},DirectiveCoordinate:{leave:({name:t})=>ee(["@",t])},DirectiveArgumentCoordinate:{leave:({name:t,argumentName:n})=>ee(["@",t,_e("(",n,":)")])}};function ee(t,n=""){var e;return(e=t?.filter(i=>i).join(n))!==null&&e!==void 0?e:""}function cn(t){return _e(`{ -`,ba(ee(t,` +)`):Be("(",le(e,", "),")"))+Be(" ",le(r," "))+(i?" repeatable":"")+" on "+le(o," | ")},SchemaExtension:{leave:({directives:t,operationTypes:n})=>le(["extend schema",le(t," "),di(n)]," ")},ScalarTypeExtension:{leave:({name:t,directives:n})=>le(["extend scalar",t,le(n," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:n,directives:e,fields:r})=>le(["extend type",t,Be("implements ",le(n," & ")),le(e," "),di(r)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:n,directives:e,fields:r})=>le(["extend interface",t,Be("implements ",le(n," & ")),le(e," "),di(r)]," ")},UnionTypeExtension:{leave:({name:t,directives:n,types:e})=>le(["extend union",t,le(n," "),Be("= ",le(e," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:n,values:e})=>le(["extend enum",t,le(n," "),di(e)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:n,fields:e})=>le(["extend input",t,le(n," "),di(e)]," ")},DirectiveExtension:{leave:({name:t,directives:n})=>le(["extend directive @"+t,le(n," ")]," ")},TypeCoordinate:{leave:({name:t})=>t},MemberCoordinate:{leave:({name:t,memberName:n})=>le([t,Be(".",n)])},ArgumentCoordinate:{leave:({name:t,fieldName:n,argumentName:e})=>le([t,Be(".",n),Be("(",e,":)")])},DirectiveCoordinate:{leave:({name:t})=>le(["@",t])},DirectiveArgumentCoordinate:{leave:({name:t,argumentName:n})=>le(["@",t,Be("(",n,":)")])}};function le(t,n=""){var e;return(e=t?.filter(r=>r).join(n))!==null&&e!==void 0?e:""}function di(t){return Be(`{ +`,lm(le(t,` `)),` -}`)}function _e(t,n,e=""){return n!=null&&n!==""?t+n+e:""}function ba(t){return _e(" ",t.replace(/\n/g,` - `))}function fl(t){var n;return(n=t?.some(e=>e.includes(` -`)))!==null&&n!==void 0?n:!1}function Ai(t){try{return t()}catch{}}var vo=Ai(()=>globalThis)||Ai(()=>window)||Ai(()=>self)||Ai(()=>global)||Ai(function(){return Ai.constructor("return this")()});var rr="4.2.2";var zf=new Map;function ar(t){let n=zf.get(t)||1;return zf.set(t,n+1),`${t}:${n}:${Math.random().toString(36).slice(2)}`}function sr(t,n=0){let e=ar("stringifyForDisplay");return JSON.stringify(t,(i,o)=>o===void 0?e:o,n).split(JSON.stringify(e)).join("")}var jf="Invariant Violation",hl=class t extends Error{constructor(n=jf){super(n),this.name=jf,Object.setPrototypeOf(this,t.prototype)}},Qf=["debug","log","warn","error","silent"],w_=Qf.indexOf("silent");function V(t,...n){if(!t)throw st(...n)}function _a(t){return function(n,...e){if(Qf.indexOf(t)>=w_){let i=console[t]||console.log;if(typeof n=="number"){let o=n;n=qf(o),n||(n=Uf(o,e),e=[])}i(n,...e)}}}V.debug=_a("debug");V.log=_a("log");V.warn=_a("warn");V.error=_a("error");function st(t,...n){return new hl(qf(t,n)||Uf(t,n))}var Hf=Symbol.for("ApolloErrorMessageHandler_"+rr);function ml(t){if(typeof t=="string")return t;try{return sr(t,2).slice(0,1e3)}catch{return""}}function qf(t,n=[]){if(t)return vo[Hf]&&vo[Hf](t,n.map(ml))}function Uf(t,n=[]){if(t)return typeof t=="string"?n.reduce((e,i)=>e.replace(/%[sdfo]/,ml(i)),t):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:rr,message:t,args:n.map(ml)}))}`}function Kn(t,n,e,i){if(e.kind===B.INT||e.kind===B.FLOAT)t[n.value]=Number(e.value);else if(e.kind===B.BOOLEAN||e.kind===B.STRING)t[n.value]=e.value;else if(e.kind===B.OBJECT){let o={};e.fields.map(r=>Kn(o,r.name,r.value,i)),t[n.value]=o}else if(e.kind===B.VARIABLE){let o=(i||{})[e.name.value];t[n.value]=o}else if(e.kind===B.LIST)t[n.value]=e.values.map(o=>{let r={};return Kn(r,n,o,i),r[n.value]});else if(e.kind===B.ENUM)t[n.value]=e.value;else if(e.kind===B.NULL)t[n.value]=null;else throw st(19,n.value,e.kind)}function Li(t,n){if(t.arguments&&t.arguments.length){let e={};return t.arguments.forEach(({name:i,value:o})=>Kn(e,i,o,n)),e}return null}var C_=Symbol.for("apollo.cacheSize"),wt=T({},vo[C_]);function bt(t,n){return t.definitions.find(e=>e.kind==="OperationDefinition"&&!!e.name)?.name.value??n}var x_=()=>Object.create(null),{forEach:k_,slice:Gf}=Array.prototype,{hasOwnProperty:T_}=Object.prototype,Et=class t{constructor(n=!0,e=x_){this.weakness=n,this.makeData=e}lookup(){return this.lookupArray(arguments)}lookupArray(n){let e=this;return k_.call(n,i=>e=e.getChildTrie(i)),T_.call(e,"data")?e.data:e.data=this.makeData(Gf.call(n))}peek(){return this.peekArray(arguments)}peekArray(n){let e=this;for(let i=0,o=n.length;e&&ithis.max;)this.delete(this.oldest.key)}delete(n){let e=this.map.get(n);return 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.map.delete(n),this.dispose(e.value,n),!0):!1}};function gl(){}var E_=gl,M_=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},D_=typeof WeakMap<"u"?WeakMap:Map,O_=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:gl,unregister:gl}},P_=10024,In=class{constructor(n=1/0,e=E_){this.max=n,this.dispose=e,this.map=new D_,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let i=this.unfinalizedNodes.values();for(let o=0;o0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new O_(this.deleteNode.bind(this))}has(n){return this.map.has(n)}get(n){let e=this.getNode(n);return e&&e.value}getNode(n){let e=this.map.get(n);if(e&&e!==this.newest){let{older:i,newer:o}=e;o&&(o.older=i),i&&(i.newer=o),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=o)}return e}set(n,e){let i=this.getNode(n);return i?i.value=e:(i={key:n,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=i),this.newest=i,this.oldest=this.oldest||i,this.scheduleFinalization(i),this.map.set(n,i),this.size++,i.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(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.size--;let e=n.key||n.keyRef&&n.keyRef.deref();this.dispose(n.value,e),n.keyRef?this.registry.unregister(n):this.unfinalizedNodes.delete(n),e&&this.map.delete(e)}delete(n){let e=this.map.get(n);return e?(this.deleteNode(e),!0):!1}scheduleFinalization(n){this.unfinalizedNodes.add(n),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}};var bl=new WeakSet;function $f(t){t.size<=(t.max||-1)||bl.has(t)||(bl.add(t),setTimeout(()=>{t.clean(),bl.delete(t)},100))}var Ni=function(t,n){let e=new In(t,n);return e.set=function(i,o){let r=In.prototype.set.call(this,i,o);return $f(this),r},e},_l=function(t,n){let e=new pi(t,n);return e.set=function(i,o){let r=pi.prototype.set.call(this,i,o);return $f(this),r},e};function ya(t,{max:n,makeCacheKey:e=i=>i}){let i=new Et(!0),o=new Ni(n);return(...r)=>{let a=i.lookupArray(e(r)),s=o.get(a);if(s){if(s.error)throw s.error;return s.result}let l=o.set(a,{});try{return l.result=t(...r)}catch(c){throw l.error=c,c}}}var Vt=ya((t,n)=>{V(t&&t.kind==="Document",1);let e=t.definitions.filter(i=>i.kind==="OperationDefinition");!1,n&&V(e.length==1&&e[0].operation===n,4,n,n,e[0].operation),gt(t,{Field(i,o,r,a){if(i.alias&&(i.alias.value==="__typename"||i.alias.value.startsWith("__ac_"))&&i.alias.value!==i.name.value){let s=t,l=[];for(let c of a)s=s[c],s.kind===B.FIELD&&l.push(s.alias?.value||s.name.value);throw l.splice(-1,1,i.name.value),st(5,i.alias.value,l.join("."),e[0].operation,bt(t,"(anonymous)"))}}})},{max:wt.checkDocument||2e3});var{toString:F_}=Object.prototype;function vl(t){return yl(t)}function yl(t,n){switch(F_.call(t)){case"[object Array]":{if(n=n||new Map,n.has(t))return n.get(t);let e=t.slice(0);return n.set(t,e),e.forEach(function(i,o){e[o]=yl(i,n)}),e}case"[object Object]":{if(n=n||new Map,n.has(t))return n.get(t);let e=Object.create(Object.getPrototypeOf(t));return n.set(t,e),Object.keys(t).forEach(i=>{e[i]=yl(t[i],n)}),e}default:return t}}function wl(t){return t.length===0?Ii:new Je(n=>{let{length:e}=t,i=new Array(e),o=new Map;t.forEach((l,c)=>{o.has(l)||o.set(l,new Set),o.get(l).add(c)});let r=o.size,a=o.size,s;o.forEach((l,c)=>{let p=!1,h=c.subscribe({next:m=>{l.forEach(g=>i[g]=m),p||(p=!0,a--),a||(s||=new Set(t.filter(g=>g.dirty)),s.delete(c),s.size||(n.next(i.slice()),s=void 0))},complete:()=>{r--,r||n.complete()},error:n.error.bind(n)});n.add(h)})})}function tn(...t){let n={};return t.forEach(e=>{e&&Reflect.ownKeys(e).forEach(i=>{let o=e[i];o!==void 0&&(n[i]=o)})}),n}function dn(t=[]){let n={};return t.forEach(e=>{n[e.name.value]=e}),n}function We(t){return t!==null&&typeof t=="object"}var{hasOwnProperty:R_}=Object.prototype,V_=function(t,n,e){return this.merge(t[e],n[e])},Wf=t=>isNaN(+t)?{}:[],Ht=class{options;reconciler;constructor(n={}){this.options=n,this.reconciler=n.reconciler||V_}merge(n,e,i={}){let o=i.atPath;if(o?.length){let[r,...a]=o;n===void 0&&(n=Wf(r));let s=n[r];s===void 0&&a.length&&(s=Wf(a[0]));let l=this.merge(s,e,N(T({},i),{atPath:a}));return s!==l&&(n=this.shallowCopyForMerge(n),n[r]=l),n}return Array.isArray(n)&&Array.isArray(e)&&this.options.arrayMerge==="truncate"&&n.length>e.length&&(n=n.slice(0,e.length),this.pastCopies.add(n)),We(e)&&We(n)?(Object.keys(e).forEach(r=>{if(R_.call(n,r)){let a=n[r];if(e[r]!==a){let s=this.reconciler(n,e,r);s!==a&&(n=this.shallowCopyForMerge(n),n[r]=s)}}else n=this.shallowCopyForMerge(n),n[r]=e[r]}),n):e}isObject=We;pastCopies=new Set;shallowCopyForMerge(n){return We(n)&&(this.pastCopies.has(n)||(Array.isArray(n)?n=n.slice(0):n=T({__proto__:Object.getPrototypeOf(n)},n),this.pastCopies.add(n))),n}};function zi(t){let n={},e=t&&t.variableDefinitions;return e&&e.length&&e.forEach(i=>{i.defaultValue&&Kn(n,i.variable.name,i.defaultValue)}),n}function fi(t,n){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{let e=t.name.value;if(typeof n=="function")return n(e);let i=n&&n[e];return V(i,9,e),i||null}default:return null}}function Cl(t,n){let e=n,i=[];return t.definitions.forEach(r=>{if(r.kind==="OperationDefinition")throw st(10,r.operation,r.name?` named '${r.name.value}'`:"");r.kind==="FragmentDefinition"&&i.push(r)}),typeof e>"u"&&(V(i.length===1,11,i.length),e=i[0].name.value),N(T({},t),{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}},...t.definitions]})}function lr(t){V(t.kind==="Document",6),V(t.definitions.length<=1,7);let n=t.definitions[0];return V(n.kind==="FragmentDefinition",8),n}function un(t){return t.definitions.filter(n=>n.kind==="FragmentDefinition")}function hi(t){Vt(t);let n;for(let e of t.definitions){if(e.kind==="OperationDefinition")return e;e.kind==="FragmentDefinition"&&!n&&(n=e)}if(n)return n;throw st(12)}function Mt(t){return Vt(t),t.definitions.filter(n=>n.kind==="OperationDefinition")[0]}function cr(t){let n=Mt(t);return V(n&&n.operation==="query",13),n}var B_={};function dr(t,n){B_[t]=n}var St=Object.assign(function(n){return JSON.stringify(n,A_)},{reset(){wo=new _l(wt.canonicalStringify||1e3)}});!1;var wo;St.reset();function A_(t,n){if(n&&typeof n=="object"){let e=Object.getPrototypeOf(n);if(e===Object.prototype||e===null){let i=Object.keys(n);if(i.every(L_))return n;let o=JSON.stringify(i),r=wo.get(o);if(!r){i.sort();let s=JSON.stringify(i);r=wo.get(s)||i,wo.set(o,r),wo.set(s,r)}let a=Object.create(e);return r.forEach(s=>{a[s]=n[s]}),a}}return n}function L_(t,n,e){return n===0||e[n-1]<=t}var N_=["connection","include","skip","client","rest","export","nonreactive","stream"],ur=St,pr=Object.assign(function(t,n,e){if(n&&e&&e.connection&&e.connection.key){if(e.connection.filter&&e.connection.filter.length>0){let o=e.connection.filter?e.connection.filter:[];o.sort();let r={};o.forEach(s=>{r[s]=n[s]});let a=ur(r);if(a!=="{}")return`${e.connection.key}(${a})`}return e.connection.key}let i=t;if(n){let o=ur(n);o!=="{}"&&(i+=`(${o})`)}return e&&Object.keys(e).forEach(o=>{N_.indexOf(o)===-1&&(e[o]&&Object.keys(e[o]).length?i+=`@${o}(${ur(e[o])})`:i+=`@${o}`)}),i},{setStringify(t){let n=ur;return ur=t,n}});function Yn(t){return!!t.errors?.length}function En(t,n,e){let i=new Set(t),o=i.size;return gt(n,{Directive(r){if(i.delete(r.name.value)&&(!e||!i.size))return Wn}}),e?!i.size:i.sizei.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0),n))return Wn}}}),n}var Ye=Array.isArray;function kl(t){return We(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function Mn(t){return t.kind==="Field"}function ji(t){return Array.isArray(t)&&t.length>0}function Dn(t){return{__ref:String(t)}}function Kf(t){let n=new Set([t]);return n.forEach(e=>{We(e)&&z_(e)===e&&Object.getOwnPropertyNames(e).forEach(i=>{We(e[i])&&n.add(e[i])})}),t}function z_(t){if(!1)try{Object.freeze(t)}catch(n){if(n instanceof TypeError)return null;throw n}return t}function mi(t){return!1,t}function Tl(t){let n=t[0]||{},e=t.length;if(e>1){let i=new Ht;for(let o=1;o{}),t}function Sl(t,n){Vt(n);let e=Yf(""),i=Yf(""),o=v=>{for(let S=0,E;S=0;--v)n.definitions[v].kind===B.OPERATION_DEFINITION&&++r;let a=j_(t),s=v=>ji(v)&&v.map(a).some(S=>S&&S.remove),l=new Map,c=!1,p={enter(v){if(s(v.directives))return c=!0,null}},h=gt(n,{Field:p,InlineFragment:p,VariableDefinition:{enter(){return!1}},Variable:{enter(v,S,E,R,z){let W=o(z);W&&W.variables.add(v.name.value)}},FragmentSpread:{enter(v,S,E,R,z){if(s(v.directives))return c=!0,null;let W=o(z);W&&W.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter(v,S,E,R){l.set(JSON.stringify(R),v)},leave(v,S,E,R){let z=l.get(JSON.stringify(R));if(v===z)return v;if(r>0&&v.selectionSet.selections.every(W=>W.kind===B.FIELD&&W.name.value==="__typename"))return i(v.name.value).removed=!0,c=!0,null}},Directive:{leave(v){if(a(v))return c=!0,null}}});if(!c)return n;let m=v=>(v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(S=>{m(i(S)).transitiveVars.forEach(E=>{v.transitiveVars.add(E)})})),v),g=new Set;h.definitions.forEach(v=>{v.kind===B.OPERATION_DEFINITION?m(e(v.name&&v.name.value)).fragmentSpreads.forEach(S=>{g.add(S)}):v.kind===B.FRAGMENT_DEFINITION&&r===0&&!i(v.name.value).removed&&g.add(v.name.value)}),g.forEach(v=>{m(i(v)).fragmentSpreads.forEach(S=>{g.add(S)})});let b=v=>!!(!g.has(v)||i(v).removed),y={enter(v){if(b(v.name.value))return null}};return H_(gt(h,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave(v){if(v.variableDefinitions){let S=m(e(v.name&&v.name.value)).transitiveVars;if(S.sizeS.has(E.variable.name.value))})}}}}))}function Yf(t){let n=new Map;return function(i=t){let o=n.get(i);return o||n.set(i,o={variables:new Set,fragmentSpreads:new Set}),o}}function j_(t){let n=new Map,e=new Map;return t.forEach(i=>{i&&(i.name?n.set(i.name,i):i.test&&e.set(i.test,i))}),i=>{let o=n.get(i.name.value);return!o&&e.size&&e.forEach((r,a)=>{a(i)&&(o=r)}),o}}function Zf(t,n){return!t||t.selectionSet.selections.every(e=>e.kind===B.FRAGMENT_SPREAD&&Zf(n[e.name.value],n))}function H_(t){return Zf(Mt(t)||lr(t),dn(un(t)))?null:t}function Il(t){return gt(t,{FragmentSpread(n){if(!n.directives?.some(({name:e})=>e.value==="unmask"))return null}})}function Yt(t){return t.alias?t.alias.value:t.name.value}function Zn({directives:t},n){return!t||!t.length?!0:q_(t).every(({directive:e,ifArgument:i})=>{let o=!1;return i.value.kind==="Variable"?(o=n&&n[i.value.name.value],V(o!==void 0,15,e.name.value)):o=i.value.value,e.name.value==="skip"?!o:o})}function Q_({name:{value:t}}){return t==="skip"||t==="include"}function q_(t){let n=[];return t&&t.length&&t.forEach(e=>{if(!Q_(e))return;let i=e.arguments,o=e.name.value;V(i&&i.length===1,16,o);let r=i[0];V(r.name&&r.name.value==="if",17,o);let a=r.value;V(a&&(a.kind==="Variable"||a.kind==="BooleanValue"),18,o),n.push({directive:e,ifArgument:r})}),n}function El(t,n){let e=null;t.directives&&(e={},t.directives.forEach(o=>{e[o.name.value]={},o.arguments&&o.arguments.forEach(({name:r,value:a})=>Kn(e[o.name.value],r,a,n))}));let i=null;return t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(({name:o,value:r})=>Kn(i,o,r,n))),pr(t.name.value,i,e)}function gi(t){let n={data:t.data};return t.error&&(n.error=t.error),n}function Co(t,n=()=>{}){return e=>new Je(i=>{let o=n();return e.subscribe({next(r){let a;try{a=t(r,o)}catch(s){i.error(s)}a!==void 0&&i.next(a)},error(r){i.error(r)},complete(){i.complete()}})})}var{toString:Jf,hasOwnProperty:U_}=Object.prototype,Xf=Function.prototype.toString,Ml=new Map;function Oe(t,n){try{return Dl(t,n)}finally{Ml.clear()}}function Dl(t,n){if(t===n)return!0;let e=Jf.call(t),i=Jf.call(n);if(e!==i)return!1;switch(e){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":{if(th(t,n))return!0;let o=eh(t),r=eh(n),a=o.length;if(a!==r.length)return!1;for(let s=0;s=0&&t.indexOf(n,e)===e}function th(t,n){let e=Ml.get(t);if(e){if(e.has(n))return!0}else Ml.set(t,e=new Set);return e.add(n),!1}function fr(t,a,l,r){var s=a,{data:n}=s,e=it(s,["data"]);var c=l,{data:i}=c,o=it(c,["data"]);return Oe(e,o)&&wa(hi(t).selectionSet,n,i,{fragmentMap:dn(un(t)),variables:r})}function wa(t,n,e,i){if(n===e)return!0;let o=new Set;return t.selections.every(r=>{if(o.has(r)||(o.add(r),!Zn(r,i.variables))||nh(r))return!0;if(Mn(r)){let a=Yt(r),s=n&&n[a],l=e&&e[a],c=r.selectionSet;if(!c)return Oe(s,l);let p=Array.isArray(s),h=Array.isArray(l);if(p!==h)return!1;if(p&&h){let m=s.length;if(l.length!==m)return!1;for(let g=0;go(t.getCurrentResult())})}var hr=ya(function(n,e,i){return Y_(n,i)},{max:1,makeCacheKey:t=>t.slice(0,2)});var mr=Symbol.for("apollo.result.extensions"),Zt=Symbol.for("apollo.result.streamInfo"),Ol=Symbol.for("apollo.observableQuery.variablesUnknown");var Dt=null,ih={},Z_=1,J_=()=>class{constructor(){this.id=["slot",Z_++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let n=Dt;n;n=n.parent)if(this.id in n.slots){let e=n.slots[this.id];if(e===ih)break;return n!==Dt&&(Dt.slots[this.id]=e),!0}return Dt&&(Dt.slots[this.id]=ih),!1}getValue(){if(this.hasValue())return Dt.slots[this.id]}withValue(n,e,i,o){let r={__proto__:null,[this.id]:n},a=Dt;Dt={parent:a,slots:r};try{return e.apply(o,i)}finally{Dt=a}}static bind(n){let e=Dt;return function(){let i=Dt;try{return Dt=e,n.apply(this,arguments)}finally{Dt=i}}}static noContext(n,e,i){if(Dt){let o=Dt;try{return Dt=null,n.apply(i,e)}finally{Dt=o}}else return n.apply(i,e)}};function oh(t){try{return t()}catch{}}var Pl="@wry/context:Slot",X_=oh(()=>globalThis)||oh(()=>global)||Object.create(null),rh=X_,Jn=rh[Pl]||Array[Pl]||(function(t){try{Object.defineProperty(rh,Pl,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}})(J_());var{bind:ah,noContext:sh}=Jn;var Qi=new Jn;var{hasOwnProperty:lh}=Object.prototype,gr=Array.from||function(t){let n=[];return t.forEach(e=>n.push(e)),n};function xo(t){let{unsubscribe:n}=t;typeof n=="function"&&(t.unsubscribe=void 0,n())}var br=[],ny=100;function ko(t,n){if(!t)throw new Error(n||"assertion failure")}function dh(t,n){let e=t.length;return e>0&&e===n.length&&t[e-1]===n[e-1]}function uh(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function ph(t){return t.slice(0)}var fh=(()=>{class t{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++t.count}peek(){if(this.value.length===1&&!bi(this))return ch(this),this.value[0]}recompute(e){return ko(!this.recomputing,"already recomputing"),ch(this),bi(this)?iy(this,e):uh(this.value)}setDirty(){this.dirty||(this.dirty=!0,hh(this),xo(this))}dispose(){this.setDirty(),yh(this),Fl(this,(e,i)=>{e.setDirty(),vh(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=br.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(gr(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),br.push(this.deps),this.deps=null)}}return t.count=0,t})();function ch(t){let n=Qi.getValue();if(n)return t.parents.add(n),n.childValues.has(t)||n.childValues.set(t,[]),bi(t)?gh(n,t):bh(n,t),n}function iy(t,n){return yh(t),Qi.withValue(t,oy,[t,n]),ay(t,n)&&ry(t),uh(t.value)}function oy(t,n){t.recomputing=!0;let{normalizeResult:e}=t,i;e&&t.value.length===1&&(i=ph(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,n),e&&i&&!dh(i,t.value))try{t.value[0]=e(t.value[0],i[0])}catch{}}catch(o){t.value[1]=o}t.recomputing=!1}function bi(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function ry(t){t.dirty=!1,!bi(t)&&mh(t)}function hh(t){Fl(t,gh)}function mh(t){Fl(t,bh)}function Fl(t,n){let e=t.parents.size;if(e){let i=gr(t.parents);for(let o=0;o0&&t.childValues.forEach((n,e)=>{vh(t,e)}),t.forgetDeps(),ko(t.dirtyChildren===null)}function vh(t,n){n.parents.delete(t),t.childValues.delete(n),_h(t,n)}function ay(t,n){if(typeof t.subscribe=="function")try{xo(t),t.unsubscribe=t.subscribe.apply(null,n)}catch{return t.setDirty(),!1}return!0}var sy={setDirty:!0,dispose:!0,forget:!0};function _r(t){let n=new Map,e=t&&t.subscribe;function i(o){let r=Qi.getValue();if(r){let a=n.get(o);a||n.set(o,a=new Set),r.dependOn(a),typeof e=="function"&&(xo(a),a.unsubscribe=e(o))}}return i.dirty=function(r,a){let s=n.get(r);if(s){let l=a&&lh.call(sy,a)?a:"setDirty";gr(s).forEach(c=>c[l]()),n.delete(r),xo(s)}},i}var wh;function Vl(...t){return(wh||(wh=new Et(typeof WeakMap=="function"))).lookupArray(t)}var Rl=new Set;function Xn(t,{max:n=Math.pow(2,16),keyArgs:e,makeCacheKey:i=Vl,normalizeResult:o,subscribe:r,cache:a=pi}=Object.create(null)){let s=typeof a=="function"?new a(n,m=>m.dispose()):a,l=function(){let m=i.apply(null,e?e.apply(null,arguments):arguments);if(m===void 0)return t.apply(null,arguments);let g=s.get(m);g||(s.set(m,g=new fh(t)),g.normalizeResult=o,g.subscribe=r,g.forget=()=>s.delete(m));let b=g.recompute(Array.prototype.slice.call(arguments));return s.set(m,g),Rl.add(s),Qi.hasValue()||(Rl.forEach(y=>y.clean()),Rl.clear()),b};Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:n,keyArgs:e,makeCacheKey:i,normalizeResult:o,subscribe:r,cache:s});function c(m){let g=m&&s.get(m);g&&g.setDirty()}l.dirtyKey=c,l.dirty=function(){c(i.apply(null,arguments))};function p(m){let g=m&&s.get(m);if(g)return g.peek()}l.peekKey=p,l.peek=function(){return p(i.apply(null,arguments))};function h(m){return m?s.delete(m):!1}return l.forgetKey=h,l.forget=function(){return h(i.apply(null,arguments))},l.makeCacheKey=i,l.getKey=e?function(){return i.apply(null,e.apply(null,arguments))}:i,Object.freeze(l)}function Bl(...t){return Vl.bind(null,...t)}function Al(){throw new Error("only supported in development mode")}var Ch=Al,xh=Al,kh=Al;var yr=class{isIncrementalResult(n){return!1}prepareRequest(n){return V(!En(["defer","stream"],n.query),67),n}extractErrors(){}startRequest=void 0};function Ll(t,{client:n}){let e={query:t.query,variables:t.variables||{},extensions:t.extensions||{},operationName:bt(t.query),operationType:Mt(t.query).operation},i=T({},t.context),o=a=>{typeof a=="function"?i=T(T({},i),a(r())):i=T(T({},i),a)},r=()=>Object.freeze(T({},i));return Object.defineProperty(e,"setContext",{enumerable:!1,value:o}),Object.defineProperty(e,"getContext",{enumerable:!1,value:r}),Object.defineProperty(e,"client",{enumerable:!1,value:n}),e}var Pt=class t{static empty(){return new t(()=>Ii)}static from(n){if(n.length===0)return t.empty();let[e,...i]=n;return e.concat(...i)}static split(n,e,i=new t((o,r)=>r(o))){let o=new t((r,a)=>{let s=n(r);return!1,s?e.request(r,a):i.request(r,a)});return Object.assign(o,{left:e,right:i})}static execute(n,e,i){return n.request(Ll(e,i),()=>(!1,Ii))}static concat(...n){return t.from(n)}constructor(n){n&&(this.request=n)}split(n,e,i){return this.concat(t.split(n,e,i))}concat(...n){return n.length===0?this:n.reduce(this.combine.bind(this),this)}combine(n,e){let i=new t((o,r)=>n.request(o,a=>e.request(a,r)));return Object.assign(i,{left:n,right:e})}request(n,e){throw st(65)}left;right};var Ca=Pt.split;var qi=Pt.execute;function ly(t){return t}var ei=class t{transform;cached;resultCache=new WeakSet;getCacheKey(n){return[n]}static identity(){return new t(ly,{cache:!1})}static split(n,e,i=t.identity()){return Object.assign(new t(o=>(n(o)?e:i).transformDocument(o),{cache:!1}),{left:e,right:i})}constructor(n,e={}){this.transform=n,e.getCacheKey&&(this.getCacheKey=e.getCacheKey),this.cached=e.cache!==!1,this.resetCache()}resetCache(){if(this.cached){let n=new Et;this.performWork=Xn(t.prototype.performWork.bind(this),{makeCacheKey:e=>{let i=this.getCacheKey(e);if(i)return V(Array.isArray(i),20),n.lookupArray(i)},max:wt["documentTransform.cache"],cache:In})}}performWork(n){return Vt(n),this.transform(n)}transformDocument(n){if(this.resultCache.has(n))return n;let e=this.performWork(n);return this.resultCache.add(e),e}concat(n){return Object.assign(new t(e=>n.transformDocument(this.transformDocument(e)),{cache:!1}),{left:this,right:n})}left;right};var vr,On=Object.assign(t=>{let n=vr.get(t);return n||(n=yo(t),vr.set(t,n)),n},{reset(){vr=new Ni(wt.print||2e3)}});On.reset();!1;function ke(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}var Th={kind:B.FIELD,name:{kind:B.NAME,value:"__typename"}},Ui=Object.assign(function(t){return gt(t,{SelectionSet:{enter(n,e,i){if(i&&i.kind===B.OPERATION_DEFINITION)return;let{selections:o}=n;if(!o||o.some(s=>s.kind===B.FIELD&&(s.name.value==="__typename"||s.name.value.lastIndexOf("__",0)===0)))return;let a=i;if(!(a.kind===B.FIELD&&a.directives&&a.directives.some(s=>s.name.value==="export")))return N(T({},n),{selections:[...o,Th]})}}})},{added(t){return t===Th}});function wr(t){return t===7||t===8}function Gi(t){return!wr(t)}var To=class{assumeImmutableResults=!1;lookupFragment(n){return null}batch(n){let e=typeof n.optimistic=="string"?n.optimistic:n.optimistic===!1?null:void 0,i;return this.performTransaction(()=>i=n.update(this),e),i}recordOptimisticTransaction(n,e){this.performTransaction(n,e)}transformDocument(n){return n}transformForLink(n){return n}identify(n){}gc(){return[]}modify(n){return!1}readQuery(n,e=!!n.optimistic){return this.read(N(T({},n),{rootId:n.id||"ROOT_QUERY",optimistic:e}))}fragmentWatches=new Et(!0);watchFragment(n){let{fragment:e,fragmentName:i,from:o}=n,r=this.getFragmentDoc(e,i),s=(Array.isArray(o)?o:[o]).map(g=>{let b=g==null?g:this.toCacheId(g);if(!1){let y=i||lr(e).name.value;b===void 0&&!1&&V.warn(118,y)}return b});if(!Array.isArray(o)){let g=this.watchSingleFragment(s[0],r,n);return o===null?g:hr(g,Symbol.for("apollo.transform.individualResult"),b=>N(T({},b),{data:b.data??{}}))}let l;function c(g){let b=g.reduce((y,v,S)=>(y.data.push(v.data),y.complete&&=v.complete,y.dataState=y.complete?"complete":"partial",v.missing&&(y.missing||={},y.missing[S]=v.missing),y),{data:[],dataState:"complete",complete:!0});return Oe(l,b)||(l=b),l}if(s.length===0)return dy;let p=!1,h=s.map(g=>this.watchSingleFragment(g,r,n)),m=wl(h).pipe(xt(c),si({subscribe:()=>p=!0,unsubscribe:()=>p=!1}),ao({bufferSize:1,refCount:!0}));return Object.assign(m,{getCurrentResult:()=>{if(p&&l)return l;let g=h.map(b=>b.getCurrentResult());return c(g)}})}onAfterBroadcast=n=>n();watchSingleFragment(n,e,i){if(n===null)return cy;let{optimistic:o=!0,variables:r}=i,a=[e,St({id:n,optimistic:o,variables:r})],s=this.fragmentWatches.lookupArray(a);if(!s.observable){let h=function(g){let b=g.result;return(!p||!fr(e,{data:p.data},{data:b},i.variables))&&(p={data:b,dataState:g.complete?"complete":"partial",complete:g.complete},g.missing&&(p.missing=g.missing.missing)),p};var l=h;let c=!1,p,m=new Je(g=>{c=!0;let b=this.watch({variables:r,returnPartialData:!0,id:n,query:e,optimistic:o,immediate:!0,callback:y=>{m.dirty=!0,this.onAfterBroadcast(()=>{g.next(h(y)),m.dirty=!1})}});return()=>{c=!1,b(),this.fragmentWatches.removeArray(a)}}).pipe(ea(),Mi({connector:()=>new Zr(1),resetOnRefCountZero:()=>bp(0)}));s.observable=Object.assign(m,{dirty:!1,getCurrentResult:()=>c&&p?p:h(this.diff({id:n,query:e,returnPartialData:!0,optimistic:o,variables:r}))})}return s.observable}getFragmentDoc=Xn(Cl,{max:wt["cache.fragmentQueryDocuments"]||1e3,cache:In,makeCacheKey:Bl(this)});readFragment(n,e=!!n.optimistic){let i=n.from!==void 0?this.toCacheId(n.from):n.id;return this.read(N(T({},n),{query:this.getFragmentDoc(n.fragment,n.fragmentName),rootId:i,optimistic:e}))}writeQuery(o){var r=o,{id:n,data:e}=r,i=it(r,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:e}))}writeFragment(r){var a=r,{data:n,fragment:e,fragmentName:i}=a,o=it(a,["data","fragment","fragmentName"]);let s=o.from!==void 0?this.toCacheId(o.from):o.id;return this.write(Object.assign(o,{query:this.getFragmentDoc(e,i),dataId:s,result:n}))}updateQuery(n,e){return this.batch({update(i){let o=i.readQuery(n),r=e(o);return r==null?o:(i.writeQuery(N(T({},n),{data:r})),r)}})}updateFragment(n,e){return this.batch({update(i){let o=i.readFragment(n),r=e(o);return r==null?o:(i.writeFragment(N(T({},n),{data:r})),r)}})}toCacheId(n){return typeof n=="string"?n:this.identify(n)}};!1;var Sh=Object.freeze({data:null,dataState:"complete",complete:!0}),cy=Object.assign(new Je(t=>{t.next(Sh)}),{dirty:!1,getCurrentResult:()=>Sh}),Ih=Object.freeze({data:[],dataState:"complete",complete:!0}),dy=Object.assign(new Je(t=>{t.next(Ih)}),{getCurrentResult:()=>Ih});var Cr=class t extends Error{message;path;query;variables;constructor(n,e,i,o){if(super(n),this.message=n,this.path=e,this.query=i,this.variables=o,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let r=this.path.length-1;r>=0;--r)this.missing={[this.path[r]]:this.missing}}else this.missing=this.path;this.__proto__=t.prototype}missing};var{hasOwnProperty:lt}=Object.prototype;function ka({__typename:t,id:n,_id:e},i){if(typeof t=="string"&&(i&&(i.keyObject=n!=null?{id:n}:e!=null?{_id:e}:void 0),n==null&&e!=null&&(n=e),n!=null))return`${t}:${typeof n=="number"||typeof n=="string"?n:JSON.stringify(n)}`}var uy={dataIdFromObject:ka,resultCaching:!0};function Eh(t){return tn(uy,t)}function Mh(t,n){return ke(n)?t.get(n.__ref,"__typename"):n&&n.__typename}var Nl=/^[_a-z][_0-9a-z]*/i;function pn(t){let n=t.match(Nl);return n?n[0]:t}function xa(t,n,e){return We(n)?Ye(n)?n.every(i=>xa(t,i,e)):t.selections.every(i=>{if(Mn(i)&&Zn(i,e)){let o=Yt(i);return lt.call(n,o)&&(!i.selectionSet||xa(i.selectionSet,n[o],e))}return!0}):!1}function _i(t){return We(t)&&!ke(t)&&!Ye(t)}function Dh(){return new Ht}function Ta(t,n){let e=dn(un(t));return{fragmentMap:e,lookupFragment(i){let o=e[i];return!o&&n&&(o=n.lookup(i)),o||null}}}var Sa={},zl=()=>Sa,Oh={},$i=class{policies;group;data={};constructor(n,e){this.policies=n,this.group=e}toObject(){return T({},this.data)}has(n){return this.lookup(n,!0)!==void 0}get(n,e){if(this.group.depend(n,e),lt.call(this.data,n)){let i=this.data[n];if(i&<.call(i,e))return i[e]}if(e==="__typename"&<.call(this.policies.rootTypenamesById,n))return this.policies.rootTypenamesById[n];if(this instanceof Pn)return this.parent.get(n,e)}lookup(n,e){if(e&&this.group.depend(n,"__exists"),lt.call(this.data,n))return this.data[n];if(this instanceof Pn)return this.parent.lookup(n,e);if(this.policies.rootTypenamesById[n])return{}}merge(n,e){let i;ke(n)&&(n=n.__ref),ke(e)&&(e=e.__ref);let o=typeof n=="string"?this.lookup(i=n):n,r=typeof e=="string"?this.lookup(i=e):e;if(!r)return;V(typeof i=="string",104);let a=new Ht({reconciler:py}).merge(o,r);if(this.data[i]=a,a!==o&&(delete this.refs[i],this.group.caching)){let s={};o||(s.__exists=1),Object.keys(r).forEach(l=>{if(!o||o[l]!==a[l]){s[l]=1;let c=pn(l);c!==l&&!this.policies.hasKeyArgs(a.__typename,c)&&(s[c]=1),a[l]===void 0&&!(this instanceof Pn)&&delete a[l]}}),s.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===a.__typename&&delete s.__typename,Object.keys(s).forEach(l=>this.group.dirty(i,l))}}modify(n,e,i){let o=this.lookup(n);if(o){let r={},a=!1,s=!0,l={DELETE:Sa,INVALIDATE:Oh,isReference:ke,toReference:this.toReference,canRead:this.canRead,readField:(c,p)=>this.policies.readField(typeof c=="string"?{fieldName:c,from:p||Dn(n)}:c,{store:this})};if(Object.keys(o).forEach(c=>{let p=pn(c),h=o[c];if(h===void 0)return;let m=typeof e=="function"?e:e[c]||(i?void 0:e[p]);if(m){let g=m===zl?Sa:m(mi(h),N(T({},l),{fieldName:p,storeFieldName:c,storage:this.getStorage(n,c)}));if(g===Oh)this.group.dirty(n,c);else if(g===Sa&&(g=void 0),g!==h&&(r[c]=g,a=!0,h=g,!1)){let b=y=>{if(this.lookup(y.__ref)===void 0)return!1,!0};if(ke(g))b(g);else if(Array.isArray(g)){let y=!1,v;for(let S of g){if(ke(S)){if(y=!0,b(S))break}else if(typeof S=="object"&&S){let[E]=this.policies.identify(S);E&&(v=S)}if(y&&v!==void 0){!1;break}}}}}h!==void 0&&(s=!1)}),a)return this.merge(n,r),s&&(this instanceof Pn?this.data[n]=void 0:delete this.data[n],this.group.dirty(n,"__exists")),!0}return!1}delete(n,e,i){let o=this.lookup(n);if(o){let r=this.getFieldValue(o,"__typename"),a=e&&i?this.policies.getStoreFieldName({typename:r,fieldName:e,args:i}):e;return this.modify(n,a?{[a]:zl}:zl,!!i)}return!1}evict(n,e){let i=!1;return n.id&&(lt.call(this.data,n.id)&&(i=this.delete(n.id,n.fieldName,n.args)),this instanceof Pn&&this!==e&&(i=this.parent.evict(n,e)||i),(n.fieldName||i)&&this.group.dirty(n.id,n.fieldName||"__exists")),i}clear(){this.replace(null)}extract(){let n=this.toObject(),e=[];return this.getRootIdSet().forEach(i=>{lt.call(this.policies.rootTypenamesById,i)||e.push(i)}),e.length&&(n.__META={extraRootIds:e.sort()}),n}replace(n){if(Object.keys(this.data).forEach(i=>{n&<.call(n,i)||this.delete(i)}),n){let e=n,{__META:i}=e,o=it(e,["__META"]);Object.keys(o).forEach(r=>{this.merge(r,o[r])}),i&&i.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(n){return this.rootIds[n]=(this.rootIds[n]||0)+1}release(n){if(this.rootIds[n]>0){let e=--this.rootIds[n];return e||delete this.rootIds[n],e}return 0}getRootIdSet(n=new Set){return Object.keys(this.rootIds).forEach(n.add,n),this instanceof Pn?this.parent.getRootIdSet(n):Object.keys(this.policies.rootTypenamesById).forEach(n.add,n),n}gc(){let n=this.getRootIdSet(),e=this.toObject();n.forEach(o=>{lt.call(e,o)&&(Object.keys(this.findChildRefIds(o)).forEach(n.add,n),delete e[o])});let i=Object.keys(e);if(i.length){let o=this;for(;o instanceof Pn;)o=o.parent;i.forEach(r=>o.delete(r))}return i}refs={};findChildRefIds(n){if(!lt.call(this.refs,n)){let e=this.refs[n]={},i=this.data[n];if(!i)return e;let o=new Set([i]);o.forEach(r=>{ke(r)&&(e[r.__ref]=!0),We(r)&&Object.keys(r).forEach(a=>{let s=r[a];We(s)&&o.add(s)})})}return this.refs[n]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(n,e)=>mi(ke(n)?this.get(n.__ref,e):n&&n[e]);canRead=n=>ke(n)?this.has(n.__ref):typeof n=="object";toReference=(n,e)=>{if(typeof n=="string")return Dn(n);if(ke(n))return n;let[i]=this.policies.identify(n);if(i){let o=Dn(i);return e&&this.merge(i,n),o}};get supportsResultCaching(){return this.group.caching}},Ia=class{caching;parent;d=null;keyMaker;constructor(n,e=null){this.caching=n,this.parent=e,this.resetCaching()}resetCaching(){this.d=this.caching?_r():null,this.keyMaker=new Et}depend(n,e){if(this.d){this.d(jl(n,e));let i=pn(e);i!==e&&this.d(jl(n,i)),this.parent&&this.parent.depend(n,e)}}dirty(n,e){this.d&&this.d.dirty(jl(n,e),e==="__exists"?"forget":"setDirty")}};function jl(t,n){return n+"#"+t}function ql(t,n){Wi(t)&&t.group.depend(n,"__exists")}var Hl=class extends $i{constructor({policies:n,resultCaching:e=!0,seed:i}){super(n,new Ia(e)),i&&this.replace(i)}stump=new Ql(this);addLayer(n,e){return this.stump.addLayer(n,e)}removeLayer(){return this}storageTrie=new Et;getStorage(){return this.storageTrie.lookupArray(arguments)}};$i.Root=Hl;var Pn=class t extends $i{id;parent;replay;group;constructor(n,e,i,o){super(e.policies,o),this.id=n,this.parent=e,this.replay=i,this.group=o,i(this)}addLayer(n,e){return new t(n,this,e,this.group)}removeLayer(n){let e=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(i=>{let o=this.data[i],r=e.lookup(i);r?o?o!==r&&Object.keys(o).forEach(a=>{Oe(o[a],r[a])||this.group.dirty(i,a)}):(this.group.dirty(i,"__exists"),Object.keys(r).forEach(a=>{this.group.dirty(i,a)})):this.delete(i)}),e):e===this.parent?this:e.addLayer(this.id,this.replay)}toObject(){return T(T({},this.parent.toObject()),this.data)}findChildRefIds(n){let e=this.parent.findChildRefIds(n);return lt.call(this.data,n)?T(T({},e),super.findChildRefIds(n)):e}getStorage(...n){let e=this.parent;for(;e.parent;)e=e.parent;return e.getStorage(...n)}},Ql=class extends Pn{constructor(n){super("EntityStore.Stump",n,()=>{},new Ia(n.group.caching,n.group))}removeLayer(){return this}merge(n,e){return this.parent.merge(n,e)}};function py(t,n,e){let i=t[e],o=n[e];return Oe(i,o)?i:o}function Wi(t){return!!(t&&t.supportsResultCaching)}var So=new Jn;function Ph(t){let n=t.directives?.find(({name:i})=>i.value==="unmask");if(!n)return"mask";let e=n.arguments?.find(({name:i})=>i.value==="mode");return!1,e&&"value"in e.value&&e.value.value==="migrate"?"migrate":"unmask"}function Ea(t,n,e){return So.withValue(!0,()=>{let i=xr(t,n,e,!1);return Object.isFrozen(t)&&mi(i),i})}function fy(t,n){if(n.has(t))return n.get(t);let e=Array.isArray(t)?[]:{};return n.set(t,e),e}function xr(t,n,e,i,o){let{knownChanged:r}=e,a=fy(t,e.mutableTargets);if(Array.isArray(t)){for(let[s,l]of Array.from(t.entries())){if(l===null){a[s]=null;continue}let c=xr(l,n,e,i,void 0);r.has(c)&&r.add(a),a[s]=c}return r.has(a)?a:t}for(let s of n.selections){let l;if(i&&r.add(a),s.kind===B.FIELD){let c=Yt(s),p=s.selectionSet;if(l=a[c]||t[c],l===void 0)continue;if(p&&l!==null){let h=xr(t[c],p,e,i,void 0);r.has(h)&&(l=h)}a[c]=l,!1}if(s.kind===B.INLINE_FRAGMENT&&(!s.typeCondition||e.cache.fragmentMatches(s,t.__typename))&&(l=xr(t,s.selectionSet,e,i,o)),s.kind===B.FRAGMENT_SPREAD){let c=s.name.value,p=e.fragmentMap[c]||(e.fragmentMap[c]=e.cache.lookupFragment(c));V(p,39,c);let h=Ph(s);h!=="mask"&&(l=xr(t,p.selectionSet,e,h==="migrate",o))}r.has(l)&&r.add(a)}return"__typename"in t&&!("__typename"in a)&&(a.__typename=t.__typename),Object.keys(a).length!==Object.keys(t).length&&r.add(a),r.has(a)?a:t}function hy(t,n,e,i,o){let r=()=>(So.getValue()||(!1,r=()=>n),n);return{get(){return r()},set(a){r=()=>a},enumerable:!0,configurable:!0}}function Ul(t,n,e,i){let o=n.definitions.filter(a=>a.kind===B.FRAGMENT_DEFINITION);typeof i>"u"&&(V(o.length===1,41,o.length),i=o[0].name.value);let r=o.find(a=>a.name.value===i);return V(!!r,42,i),t==null||Oe(t,{})?t:Ea(t,r.selectionSet,{operationType:"fragment",operationName:r.name.value,fragmentMap:dn(un(n)),cache:e,mutableTargets:new WeakMap,knownChanged:new WeakSet})}function Gl(t,n,e){let i=Mt(n);return V(i,43),t==null?t:Ea(t,i.selectionSet,{operationType:i.operation,operationName:i.name?.value,fragmentMap:dn(un(n)),cache:e,mutableTargets:new WeakMap,knownChanged:new WeakSet})}var Fh={};function $l(t){let n=JSON.stringify(t);return Fh[n]||(Fh[n]={})}function Wl(t){let n=$l(t);return n.keyFieldsFn||(n.keyFieldsFn=(e,i)=>{let o=(a,s)=>i.readField(s,a),r=i.keyObject=Yl(t,a=>{let s=Io(i.storeObject,a,o);return s===void 0&&e!==i.storeObject&<.call(e,a[0])&&(s=Io(e,a,Vh)),V(s!==void 0,107,a.join("."),e),s});return`${i.typename}:${JSON.stringify(r)}`})}function Kl(t){let n=$l(t);return n.keyArgsFn||(n.keyArgsFn=(e,{field:i,variables:o,fieldName:r})=>{let a=Yl(t,l=>{let c=l[0],p=c.charAt(0);if(p==="@"){if(i&&ji(i.directives)){let h=c.slice(1),m=i.directives.find(b=>b.name.value===h),g=m&&Li(m,o);return g&&Io(g,l.slice(1))}return}if(p==="$"){let h=c.slice(1);if(o&<.call(o,h)){let m=l.slice(0);return m[0]=h,Io(o,m)}return}if(e)return Io(e,l)}),s=JSON.stringify(a);return(e||s!=="{}")&&(r+=":"+s),r})}function Yl(t,n){let e=new Ht;return Rh(t).reduce((i,o)=>{let r=n(o);if(r!==void 0){for(let a=o.length-1;a>=0;--a)r={[o[a]]:r};i=e.merge(i,r)}return i},{})}function Rh(t){let n=$l(t);if(!n.paths){let e=n.paths=[],i=[];t.forEach((o,r)=>{Ye(o)?(Rh(o).forEach(a=>e.push(i.concat(a))),i.length=0):(i.push(o),Ye(t[r+1])||(e.push(i.slice(0)),i.length=0))})}return n.paths}function Vh(t,n){return t[n]}function Io(t,n,e){return e=e||Vh,Bh(n.reduce(function i(o,r){return Ye(o)?o.map(a=>i(a,r)):o&&e(o,r)},t))}function Bh(t){return We(t)?Ye(t)?t.map(Bh):Yl(Object.keys(t).sort(),n=>Io(t,n)):t}var Zl=new Jn,Ah=new WeakMap;function kr(t){let n=Ah.get(t);return n||Ah.set(t,n={vars:new Set,dep:_r()}),n}function Jl(t){kr(t).vars.forEach(n=>n.forgetCache(t))}function Lh(t){kr(t).vars.forEach(n=>n.attachCache(t))}function Xl(t){let n=new Set,e=new Set,i=function(r){if(arguments.length>0){if(t!==r){t=r,n.forEach(s=>{kr(s).dep.dirty(i),my(s)});let a=Array.from(e);e.clear(),a.forEach(s=>s(t))}}else{let a=Zl.getValue();a&&(o(a),kr(a).dep(i))}return t};i.onNextChange=r=>(e.add(r),()=>{e.delete(r)});let o=i.attachCache=r=>(n.add(r),kr(r).vars.add(i),i);return i.forgetCache=r=>n.delete(r),i}function my(t){t.broadcastWatches&&t.broadcastWatches()}function ec(t){return t.args!==void 0?t.args:t.field?Li(t.field,t.variables):null}var gy=()=>{},Nh=(t,n)=>n.fieldName,zh=(t,n,{mergeObjects:e})=>e(t,n),jh=(t,n)=>n,Hh=(t,n,{streamFieldInfo:e,existingData:i})=>{if(!t&&!i)return n;let o=[],r=t??i,a=e?.isLastChunk?n.length:Math.max(r.length,n.length);for(let s=0;s{let h=Da(p,r);return i.readField(h,{store:i.cache.data,variables:h.variables})})}),s,l=o&&this.getTypePolicy(o),c=l&&l.keyFn||this.config.dataIdFromObject;return So.withValue(!0,()=>{for(;c;){let p=c(T(T({},n),r),a);if(Ye(p))c=Wl(p);else{s=p;break}}}),s=s?String(s):void 0,a.keyObject?[s,a.keyObject]:[s]}addTypePolicies(n){Object.keys(n).forEach(e=>{let s=n[e],{queryType:i,mutationType:o,subscriptionType:r}=s,a=it(s,["queryType","mutationType","subscriptionType"]);i&&this.setRootTypename("Query",e),o&&this.setRootTypename("Mutation",e),r&&this.setRootTypename("Subscription",e),lt.call(this.toBeAdded,e)?this.toBeAdded[e].push(a):this.toBeAdded[e]=[a]})}updateTypePolicy(n,e,i){let o=this.getTypePolicy(n),{keyFields:r,fields:a}=e;function s(l,c){l.merge=typeof c=="function"?c:c===!0?zh:c===!1?jh:l.merge}s(o,e.merge),o.keyFn=r===!1?gy:Ye(r)?Wl(r):typeof r=="function"?r:o.keyFn,a&&Object.keys(a).forEach(l=>{let c=i[l];(!c||c?.typename!==n)&&(c=i[l]={typename:n});let p=a[l];if(typeof p=="function")c.read=p;else{let{keyArgs:h,read:m,merge:g}=p;c.keyFn=h===!1?Nh:Ye(h)?Kl(h):typeof h=="function"?h:c.keyFn,typeof m=="function"&&(c.read=m),s(c,g)}c.read&&c.merge&&(c.keyFn=c.keyFn||Nh)})}setRootTypename(n,e=n){let i="ROOT_"+n.toUpperCase(),o=this.rootTypenamesById[i];e!==o&&(V(!o||o===n,108,n),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[e]=i,this.rootTypenamesById[i]=e)}addPossibleTypes(n){this.usingPossibleTypes=!0,Object.keys(n).forEach(e=>{this.getSupertypeSet(e,!0),n[e].forEach(i=>{this.getSupertypeSet(i,!0).add(e);let o=i.match(Nl);(!o||o[0]!==i)&&this.fuzzySubtypes.set(i,new RegExp(i))})})}getTypePolicy(n){if(!lt.call(this.typePolicies,n)){let i=this.typePolicies[n]={};i.fields={};let o=this.supertypeMap.get(n);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(n,!0),this.fuzzySubtypes.forEach((r,a)=>{if(r.test(n)){let s=this.supertypeMap.get(a);s&&s.forEach(l=>o.add(l))}})),o&&o.size&&o.forEach(r=>{let l=this.getTypePolicy(r),{fields:a}=l,s=it(l,["fields"]);Object.assign(i,s),Object.assign(i.fields,a)})}let e=this.toBeAdded[n];return e&&e.length&&e.splice(0).forEach(i=>{this.updateTypePolicy(n,i,this.typePolicies[n].fields)}),this.typePolicies[n]}getFieldPolicy(n,e){if(n)return this.getTypePolicy(n).fields[e]}getSupertypeSet(n,e){let i=this.supertypeMap.get(n);return!i&&e&&this.supertypeMap.set(n,i=new Set),i}fragmentMatches(n,e,i,o){if(!n.typeCondition)return!0;if(!e)return!1;let r=n.typeCondition.name.value;if(e===r)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(r)){let a=this.getSupertypeSet(e,!0),s=[a],l=h=>{let m=this.getSupertypeSet(h,!1);m&&m.size&&s.indexOf(m)<0&&s.push(m)},c=!!(i&&this.fuzzySubtypes.size),p=!1;for(let h=0;h{let y=e.match(g);y&&y[0]===e&&l(b)}))}}return!1}hasKeyArgs(n,e){let i=this.getFieldPolicy(n,e);return!!(i&&i.keyFn)}getStoreFieldName(n){let{typename:e,fieldName:i}=n,o=this.getFieldPolicy(e,i),r,a=o&&o.keyFn;if(a&&e){let s={typename:e,fieldName:i,field:n.field||null,variables:n.variables},l=ec(n);for(;a;){let c=a(l,s);if(Ye(c))a=Kl(c);else{r=c||i;break}}}return r===void 0&&(r=n.field?El(n.field,n.variables):pr(i,ec(n))),r===!1?i:i===pn(r)?r:i+":"+r}readField(n,e){let i=n.from;if(!i||!(n.field||n.fieldName))return;if(n.typename===void 0){let p=e.store.getFieldValue(i,"__typename");p&&(n.typename=p)}let r=this.getStoreFieldName(n),a=pn(r),s=e.store.getFieldValue(i,r),l=this.getFieldPolicy(n.typename,a),c=l&&l.read;if(c){let p=Qh(this,i,n,e,e.store.getStorage(ke(i)?i.__ref:i,r));return Zl.withValue(this.cache,c,[s,p])}return s}getReadFunction(n,e){let i=this.getFieldPolicy(n,e);return i&&i.read}getMergeFunction(n,e,i){let o=this.getFieldPolicy(n,e),r=o&&o.merge;return!r&&i&&(o=this.getTypePolicy(i),r=o&&o.merge),r}runMergeFunction(n,e,{field:i,typename:o,merge:r,path:a},s,l){let c=n;if(r===zh)return qh(s.store)(n,e);if(r===jh)return e;s.overwrite&&(n=void 0);let p=s.extensions?.[Zt]?.deref()?.peekArray(a);if(p){let{current:m,previous:g}=p;if(g&&Oe(g.incoming,e)&&Oe(g.streamFieldInfo,m))return g.result}let h=r(n,e,by(this,void 0,{typename:o,fieldName:i.name.value,field:i,variables:s.variables,path:a},s,l||{},c));return p&&(p.previous={incoming:e,streamFieldInfo:p.current,result:h}),h}};function Qh(t,n,e,i,o){let r=t.getStoreFieldName(e),a=pn(r),s=e.variables||i.variables,{toReference:l,canRead:c}=i.store;return{args:ec(e),field:e.field||null,fieldName:a,storeFieldName:r,variables:s,isReference:ke,toReference:l,storage:o,cache:t.cache,canRead:c,readField(...p){return t.readField(Da(p,n,s),i)},mergeObjects:qh(i.store)}}function by(t,n,e,i,o,r){var l;let a=N(T({},Qh(t,n,e,i,o)),{extensions:i.extensions,existingData:r}),s=i.extensions;if(s&&Zt in s){let c=s,{[l=Zt]:p}=c,h=it(c,[Yr(l)]),m=p?.deref()?.peekArray(e.path);m&&(a.streamFieldInfo=m.current),a.extensions=Object.keys(h).length===0?void 0:h}return a}function Da(t,n,e){let{0:i,1:o,length:r}=t,a;return typeof i=="string"?a={fieldName:i,from:r>1?o:n}:(a=T({},i),lt.call(a,"from")||(a.from=n)),!1,a.variables===void 0&&(a.variables=e),a}function qh(t){return function(e,i){if(Ye(e)||Ye(i))throw st(111);if(We(e)&&We(i)){let o=t.getFieldValue(e,"__typename"),r=t.getFieldValue(i,"__typename");if(o&&r&&o!==r)return i;if(ke(e)&&_i(i))return t.merge(e.__ref,i),e;if(_i(e)&&ke(i))return t.merge(e,i.__ref),i;if(_i(e)&&_i(i))return T(T({},e),i)}return i}}function Uh(t){return[t.selectionSet,t.objectOrReference,t.context]}var Oa=class{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(n){this.config=n,this.executeSelectionSet=Xn(e=>{let i=Uh(e),o=this.executeSelectionSet.peek(...i);return o||(ql(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:wt["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Uh,makeCacheKey(e,i,o){if(Wi(o.store))return o.store.makeCacheKey(e,ke(i)?i.__ref:i,o.varString)}}),this.executeSubSelectedArray=Xn(e=>(ql(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:wt["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:i,context:o}){if(Wi(o.store))return o.store.makeCacheKey(e,i,o.varString)}})}diffQueryAgainstStore({store:n,query:e,rootId:i="ROOT_QUERY",variables:o,returnPartialData:r=!0}){let a=this.config.cache.policies;o=T(T({},zi(cr(e))),o);let s=Dn(i),l=this.executeSelectionSet({selectionSet:hi(e).selectionSet,objectOrReference:s,enclosingRef:s,context:T({store:n,query:e,policies:a,variables:o,varString:St(o)},Ta(e,this.config.fragments))}),c;l.missing&&(c=new Cr(_y(l.missing),l.missing,e,o));let p=!c,{result:h}=l;return{result:p?h:r?Object.keys(h).length===0?null:h:null,complete:p,missing:c}}isFresh(n,e,i,o){if(Wi(o.store)&&this.knownResults.get(n)===i){let r=this.executeSelectionSet.peek(i,e,o);if(r&&n===r.result)return!0}return!1}execSelectionSetImpl({selectionSet:n,objectOrReference:e,enclosingRef:i,context:o}){if(ke(e)&&!o.policies.rootTypenamesById[e.__ref]&&!o.store.has(e.__ref))return{result:{},missing:`Dangling reference to missing ${e.__ref} object`};let{variables:r,policies:a,store:s}=o,l=s.getFieldValue(e,"__typename"),c=[],p,h=new Ht;typeof l=="string"&&!a.rootIdsByTypename[l]&&c.push({__typename:l});function m(S,E){return S.missing&&(p=h.merge(p,{[E]:S.missing})),S.result}let g=new Set(n.selections);g.forEach(S=>{if(Zn(S,r))if(Mn(S)){let E=a.readField({fieldName:S.name.value,field:S,variables:o.variables,from:e},o),R=Yt(S);E===void 0?Ui.added(S)||(p=h.merge(p,{[R]:`Can't find field '${S.name.value}' on ${ke(e)?e.__ref+" object":"object "+JSON.stringify(e,null,2)}`})):Ye(E)?E.length>0&&(E=m(this.executeSubSelectedArray({field:S,array:E,enclosingRef:i,context:o}),R)):S.selectionSet&&E!=null&&(E=m(this.executeSelectionSet({selectionSet:S.selectionSet,objectOrReference:E,enclosingRef:ke(E)?E:i,context:o}),R)),E!==void 0&&c.push({[R]:E})}else{let E=fi(S,o.lookupFragment);if(!E&&S.kind===B.FRAGMENT_SPREAD)throw st(112,S.name.value);E&&a.fragmentMatches(E,l)&&E.selectionSet.selections.forEach(g.add,g)}});let y={result:Tl(c),missing:p},v=mi(y);return v.result&&this.knownResults.set(v.result,n),v}execSubSelectedArrayImpl({field:n,array:e,enclosingRef:i,context:o}){let r,a=new Ht;function s(l,c){return l.missing&&(r=a.merge(r,{[c]:l.missing})),l.result}return n.selectionSet&&(e=e.filter(l=>l===void 0||o.store.canRead(l))),e=e.map((l,c)=>l===null?null:Ye(l)?s(this.executeSubSelectedArray({field:n,array:l,enclosingRef:i,context:o}),c):n.selectionSet?s(this.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:l,enclosingRef:ke(l)?l:i,context:o}),c):(!1,l)),{result:e,missing:r}}};function _y(t){try{JSON.stringify(t,(n,e)=>{if(typeof e=="string")throw e;return e})}catch(n){return n}}function yy(t,n,e){if(!n.selectionSet){let i=new Set([e]);i.forEach(o=>{We(o)&&(V(!ke(o),113,Mh(t,o),n.name.value),Object.values(o).forEach(i.add,i))})}}function tc(t,n,e){let i=`${n}${e}`,o=t.flavors.get(i);return o||t.flavors.set(i,o=t.clientOnly===n&&t.deferred===e?t:N(T({},t),{clientOnly:n,deferred:e})),o}var Pa=class{cache;reader;fragments;constructor(n,e,i){this.cache=n,this.reader=e,this.fragments=i}writeToStore(n,{query:e,result:i,dataId:o,variables:r,overwrite:a,extensions:s}){let l=Mt(e),c=Dh();r=T(T({},zi(l)),r);let p=N(T({store:n,written:{},merge(m,g){return c.merge(m,g)},variables:r,varString:St(r)},Ta(e,this.fragments)),{overwrite:!!a,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:s}),h=this.processSelectionSet({result:i||{},dataId:o,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:p,path:[]});if(!ke(h))throw st(114,i);return p.incomingById.forEach(({storeObject:m,mergeTree:g,fieldNodeSet:b},y)=>{let v=Dn(y);if(g&&g.map.size){let S=this.applyMerges(g,v,m,p);if(ke(S))return;m=S}if(!1){let S={};b.forEach(z=>{z.selectionSet&&(S[z.name.value]=!0)});let E=z=>S[pn(z)]===!0,R=z=>{let W=g&&g.map.get(z);return!!(W&&W.info&&W.info.merge)};Object.keys(m).forEach(z=>{E(z)&&!R(z)&&vy(v,m,z,p.store)})}n.merge(y,m)}),n.retain(h.__ref),h}processSelectionSet({dataId:n,result:e,selectionSet:i,context:o,mergeTree:r,path:a}){let{policies:s}=this.cache,l={},c=n&&s.rootTypenamesById[n]||ic(e,i,o.fragmentMap)||n&&o.store.get(n,"__typename");typeof c=="string"&&(l.__typename=c);let p=(...m)=>{let g=Da(m,l,o.variables);if(ke(g.from)){let b=o.incomingById.get(g.from.__ref);if(b){let y=s.readField(N(T({},g),{from:b.storeObject}),o);if(y!==void 0)return y}}return s.readField(g,o)},h=new Set;this.flattenFields(i,e,o,c).forEach((m,g)=>{let b=Yt(g),y=e[b],v=[...a,g.name.value];if(h.add(g),y!==void 0){let S=s.getStoreFieldName({typename:c,fieldName:g.name.value,field:g,variables:m.variables}),E=Gh(r,S),R=this.processFieldValue(y,g,g.selectionSet?tc(m,!1,!1):m,E,v),z;g.selectionSet&&(ke(R)||_i(R))&&(z=p("__typename",R));let W=s.getMergeFunction(c,g.name.value,z);W?E.info={field:g,typename:c,merge:W,path:v}:En(["stream"],g)&&Array.isArray(R)&&m.extensions?.[Zt]?E.info={field:g,typename:c,merge:Hh,path:v}:$h(r,S),l=m.merge(l,{[S]:R})}else!1});try{let[m,g]=s.identify(e,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:l,readField:p});n=n||m,g&&(l=o.merge(l,g))}catch(m){if(!n)throw m}if(typeof n=="string"){let m=Dn(n),g=o.written[n]||(o.written[n]=[]);if(g.indexOf(i)>=0||(g.push(i),this.reader&&this.reader.isFresh(e,m,i,o)))return m;let b=o.incomingById.get(n);return b?(b.storeObject=o.merge(b.storeObject,l),b.mergeTree=nc(b.mergeTree,r),h.forEach(y=>b.fieldNodeSet.add(y))):o.incomingById.set(n,{storeObject:l,mergeTree:Fa(r)?void 0:r,fieldNodeSet:h}),m}return l}processFieldValue(n,e,i,o,r){return!e.selectionSet||n===null?n:Ye(n)?n.map((a,s)=>{let l=this.processFieldValue(a,e,i,Gh(o,s),[...r,s]);return $h(o,s),l}):this.processSelectionSet({result:n,selectionSet:e.selectionSet,context:i,mergeTree:o,path:r})}flattenFields(n,e,i,o=ic(e,n,i.fragmentMap)){let r=new Map,{policies:a}=this.cache,s=new Et(!1);return(function l(c,p){let h=s.lookup(c,p.clientOnly,p.deferred);h.visited||(h.visited=!0,c.selections.forEach(m=>{if(!Zn(m,i.variables))return;let{clientOnly:g,deferred:b}=p;if(!(g&&b)&&ji(m.directives)&&m.directives.forEach(y=>{let v=y.name.value;if(v==="client"&&(g=!0),v==="defer"){let S=Li(y,i.variables);(!S||S.if!==!1)&&(b=!0)}}),Mn(m)){let y=r.get(m);y&&(g=g&&y.clientOnly,b=b&&y.deferred),r.set(m,tc(i,g,b))}else{let y=fi(m,i.lookupFragment);if(!y&&m.kind===B.FRAGMENT_SPREAD)throw st(116,m.name.value);y&&a.fragmentMatches(y,o,e,i.variables)&&l(y.selectionSet,tc(i,g,b))}}))})(n,i),r}applyMerges(n,e,i,o,r){if(n.map.size&&!ke(i)){let a=!Ye(i)&&(ke(e)||_i(e))?e:void 0,s=i;a&&!r&&(r=[ke(a)?a.__ref:a]);let l,c=(p,h)=>Ye(p)?typeof h=="number"?p[h]:void 0:o.store.getFieldValue(p,String(h));n.map.forEach((p,h)=>{let m=c(a,h),g=c(s,h);if(g===void 0)return;r&&r.push(h);let b=this.applyMerges(p,m,g,o,r);b!==g&&(l=l||new Map,l.set(h,b)),r&&V(r.pop()===h)}),l&&(i=Ye(s)?s.slice(0):T({},s),l.forEach((p,h)=>{i[h]=p}))}return n.info?this.cache.policies.runMergeFunction(e,i,n.info,o,r&&o.store.getStorage(...r)):i}},Kh=[];function Gh({map:t},n){return t.has(n)||t.set(n,Kh.pop()||{map:new Map}),t.get(n)}function nc(t,n){if(t===n||!n||Fa(n))return t;if(!t||Fa(t))return n;let e=t.info&&n.info?T(T({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,o=i?new Map:t.map.size?t.map:n.map,r={info:e,map:o};if(i){let a=new Set(n.map.keys());t.map.forEach((s,l)=>{r.map.set(l,nc(s,n.map.get(l))),a.delete(l)}),a.forEach(s=>{r.map.set(s,nc(n.map.get(s),t.map.get(s)))})}return r}function Fa(t){return!t||!(t.info||t.map.size)}function $h({map:t},n){let e=t.get(n);e&&Fa(e)&&(Kh.push(e),t.delete(n))}var Wh=new Set;function vy(t,n,e,i){let o=h=>{let m=i.getFieldValue(h,e);return typeof m=="object"&&m},r=o(t);if(!r)return;let a=o(n);if(!a||ke(r)||Oe(r,a)||Object.keys(r).every(h=>i.getFieldValue(a,h)!==void 0))return;let s=i.getFieldValue(t,"__typename")||i.getFieldValue(n,"__typename"),l=pn(e),c=`${s}.${l}`;if(Wh.has(c))return;Wh.add(c);let p=[];!Ye(r)&&!Ye(a)&&[r,a].forEach(h=>{let m=i.getFieldValue(h,"__typename");typeof m=="string"&&!p.includes(m)&&p.push(m)}),!1}function ic(t,n,e){let i;for(let o of n.selections)if(Mn(o)){if(o.name.value==="__typename")return t[Yt(o)]}else i?i.push(o):i=[o];if(typeof t.__typename=="string")return t.__typename;if(i)for(let o of i){let r=ic(t,fi(o,e).selectionSet,e);if(typeof r=="string")return r}}var Ki=class extends To{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new ei(Ui);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=Xl;constructor(n={}){super(),this.config=Eh(n),this.policies=new Ma({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let n=this.data=new $i.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()}resetResultCache(){let{fragments:n}=this.config;this.addTypenameTransform.resetCache(),n?.resetCaches(),this.storeWriter=new Pa(this,this.storeReader=new Oa({cache:this,fragments:n}),n),this.maybeBroadcastWatch=Xn((e,i)=>this.broadcastWatch(e,i),{max:wt["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let i=e.optimistic?this.optimisticData:this.data;if(Wi(i)){let{optimistic:o,id:r,variables:a}=e;return i.makeCacheKey(e.query,e.callback,St({optimistic:o,id:r,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(n){return this.init(),n&&this.data.replace(n),this}extract(n=!1){return(n?this.optimisticData:this.data).extract()}read(n){let{returnPartialData:e=!1}=n;return this.storeReader.diffQueryAgainstStore(N(T({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:e})).result}write(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}modify(n){if(lt.call(n,"id")&&!n.id)return!1;let e=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,e.modify(n.id||"ROOT_QUERY",n.fields,!1)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}diff(n){return this.storeReader.diffQueryAgainstStore(N(T({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))}watch(n){return this.watches.size||Lh(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),()=>{this.watches.delete(n)&&!this.watches.size&&Jl(this),this.maybeBroadcastWatch.forget(n)}}gc(n){St.reset(),On.reset();let e=this.optimisticData.gc();return n&&!this.txCount&&n.resetResultCache&&this.resetResultCache(),e}retain(n,e){return(e?this.optimisticData:this.data).retain(n)}release(n,e){return(e?this.optimisticData:this.data).release(n)}identify(n){if(ke(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(e){!1}}evict(n){if(!n.id){if(lt.call(n,"id"))return!1;n=N(T({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}reset(n){return this.init(),St.reset(),n&&n.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),Jl(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(n){let e=this.optimisticData.removeLayer(n);e!==this.optimisticData&&(this.optimisticData=e,this.broadcastWatches())}txCount=0;batch(n){let{update:e,optimistic:i=!0,removeOptimistic:o,onWatchUpdated:r}=n,a,s=c=>{let{data:p,optimisticData:h}=this;++this.txCount,c&&(this.data=this.optimisticData=c);try{return a=e(this)}finally{--this.txCount,this.data=p,this.optimisticData=h}},l=new Set;return r&&!this.txCount&&this.broadcastWatches(N(T({},n),{onWatchUpdated(c){return l.add(c),!1}})),typeof i=="string"?this.optimisticData=this.optimisticData.addLayer(i,s):i===!1?s(this.data):s(),typeof o=="string"&&(this.optimisticData=this.optimisticData.removeLayer(o)),r&&l.size?(this.broadcastWatches(N(T({},n),{onWatchUpdated(c,p){let h=r.call(this,c,p);return h!==!1&&l.delete(c),h}})),l.size&&l.forEach(c=>this.maybeBroadcastWatch.dirty(c))):this.broadcastWatches(n),a}performTransaction(n,e){return this.batch({update:n,optimistic:e||e!==null})}transformDocument(n){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(n))}fragmentMatches(n,e){return this.policies.fragmentMatches(n,e)}lookupFragment(n){return this.config.fragments?.lookup(n)||null}resolvesClientField(n,e){return!!this.policies.getReadFunction(n,e)}broadcastWatches(n){if(!this.txCount){let e=this.onAfterBroadcast,i=new Set;this.onAfterBroadcast=o=>{i.add(o)};try{this.watches.forEach(o=>this.maybeBroadcastWatch(o,n)),i.forEach(o=>o())}finally{this.onAfterBroadcast=e}}}addFragmentsToDocument(n){let{fragments:e}=this.config;return e?e.transform(n):n}broadcastWatch(n,e){let{lastDiff:i}=n,o=this.diff(n);e&&(n.optimistic&&typeof e.optimistic=="string"&&(o.fromOptimisticTransaction=!0),e.onWatchUpdated&&e.onWatchUpdated.call(this,n,o,i)===!1)||(!i||!Oe(i.result,o.result))&&n.callback(n.lastDiff=o,i)}};!1;function yi(t,n){return typeof t=="object"&&t!==null&&t[Symbol.for("apollo.error")]===n}function vi(t){Object.defineProperty(t,Symbol.for("apollo.error"),{value:t.name,enumerable:!1,writable:!1,configurable:!1})}function Yh(t){return t.map(n=>n.message||"Error message not found.").join(` -`)}var Zh=(()=>{class t extends Error{static is(e){return yi(e,"CombinedProtocolErrors")}static formatMessage=Yh;errors;constructor(e){super(t.formatMessage(e,{defaultFormatMessage:Yh})),this.name="CombinedProtocolErrors",this.errors=e,vi(this),Object.setPrototypeOf(this,t.prototype)}}return t})();function Jh(t){return t!==null&&typeof t=="object"&&typeof t.message=="string"&&typeof t.name=="string"&&(typeof t.stack=="string"||typeof t.stack>"u")}var Ra=class t extends Error{static is(n){return yi(n,"UnconventionalError")}constructor(n){super("An error of unexpected shape occurred.",{cause:n}),this.name="UnconventionalError",vi(this),Object.setPrototypeOf(this,t.prototype)}};function Xh(t){return t.filter(n=>n).map(n=>n.message||"Error message not found.").join(` -`)}var ti=(()=>{class t extends Error{static is(e){return yi(e,"CombinedGraphQLErrors")}static formatMessage=Xh;errors;data;extensions;constructor(e,i=e.errors||[]){super(t.formatMessage(i,{result:e,defaultFormatMessage:Xh})),this.errors=i,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",vi(this),Object.setPrototypeOf(this,t.prototype)}}return t})();var wy=new WeakSet;function oc(t){wy.add(t)}var Tr=class t extends Error{static is(n){return yi(n,"ServerError")}response;statusCode;bodyText;constructor(n,e){super(n),this.name="ServerError",this.response=e.response,this.statusCode=e.response.status,this.bodyText=e.bodyText,vi(this),Object.setPrototypeOf(this,t.prototype)}};var Va=Symbol();function em(t){return"extensions"in t?Zh.is(t.extensions[Va]):!1}function tm(t){return Jh(t)?t:typeof t=="string"?new Error(t,{cause:t}):new Ra(t)}var fe=(function(t){return t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error",t[t.streaming=9]="streaming",t})(fe||{});var{assign:nm,hasOwnProperty:Cy}=Object,Eo={loading:!0,networkStatus:fe.loading,data:void 0,dataState:"empty",partial:!0},rc={loading:!1,networkStatus:fe.ready,data:void 0,dataState:"empty",partial:!0},Mo=class{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:n,options:e,transformedQuery:i=n.transform(e.query)}){this.queryManager=n,this.waitForNetworkResult=e.fetchPolicy==="network-only",this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:o="cache-first"}={}}=n.defaultOptions,{fetchPolicy:r=o,initialFetchPolicy:a=r==="standby"?o:r}=e;e[Ol]&&(V(r==="standby",82),this.variablesUnknown=!0),this.lastQuery=i,this.options=N(T({},e),{initialFetchPolicy:a,fetchPolicy:r,variables:this.getVariablesWithDefaults(e.variables)}),this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let s=Mt(this.query);this.queryName=s&&s.name&&s.name.value}initializeObservablesQueue(){this.subject=new pp({query:this.query,variables:this.variables,result:Eo,meta:{}});let n=this.subject.pipe(si({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),Co(({query:e,variables:i,result:o,meta:r},a)=>{let{shouldEmit:s}=r;if(o===Eo&&(a.previous=void 0,a.previousVariables=void 0),this.options.fetchPolicy==="standby"||s===2)return;if(s===1)return p();let{previous:l,previousVariables:c}=a;if(l){let h=this.queryManager.getDocumentInfo(e),m=this.queryManager.dataMasking,g=m?h.nonReactiveQuery:e;if((m||h.hasNonreactiveDirective?fr(g,l,o,i):Oe(l,o))&&Oe(c,i))return}if(s===3&&(!this.options.notifyOnNetworkStatusChange||Oe(l,o)))return;return p();function p(){return a.previous=o,a.previousVariables=i,o}},()=>({})));this.pipe=n.pipe.bind(n),this.subscribe=n.subscribe.bind(n),this.input=new Nt,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:n=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:n})}getInitialResult(n){let e=n||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&(e==="network-only"||e==="cache-and-network")&&(e="cache-first");let i=()=>{let o=this.getCacheDiff(),r=this.options.returnPartialData||o.complete?o.result??void 0:void 0;return this.maskResult({data:r,dataState:o.complete?"complete":r===void 0?"empty":"partial",loading:!o.complete,networkStatus:o.complete?fe.ready:fe.loading,partial:!o.complete})};switch(e){case"cache-only":return N(T({},i()),{loading:!1,networkStatus:fe.ready});case"cache-first":return i();case"cache-and-network":return N(T({},i()),{loading:!0,networkStatus:fe.loading});case"standby":return rc;default:return Eo}}resubscribeCache(){let{variables:n,fetchPolicy:e}=this.options,i=this.query,o=e==="standby"||e==="no-cache"||this.waitForNetworkResult,r=!Sr({query:i,variables:n},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((o||r)&&this.unsubscribeFromCache?.(),o||!r)return;let a={query:i,variables:n,optimistic:!0,watcher:this,callback:l=>{let c=this.queryManager.getDocumentInfo(i);if((c.hasClientExports||c.hasForcedResolvers)&&(a.lastDiff=void 0),a.lastOwnDiff===l)return;let{result:p}=this.subject.getValue();!l.complete&&(p.error||p===Eo||p===rc)||Oe(p.data,l.result)||this.scheduleNotify()}},s=this.cache.watch(a);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,s()},{query:i,variables:n})}stableLastResult;getCurrentResult(){let{result:n}=this.subject.getValue(),e=n.networkStatus===fe.error||this.hasObservers()||this.options.fetchPolicy==="no-cache"?n:this.getInitialResult();return e===Eo&&(e=this.getInitialResult()),Oe(this.stableLastResult,e)||(this.stableLastResult=e),this.stableLastResult}refetch(n){let{fetchPolicy:e}=this.options,i={pollInterval:0};if(e==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",!1){let o=cr(this.query),r=o.variableDefinitions;(!r||!r.some(a=>a.variable.name.value==="variables"))&&!1&&V.warn(83,n,o.name?.value||o)}return n&&!Oe(this.variables,n)&&(i.variables=this.options.variables=this.getVariablesWithDefaults(T(T({},this.variables),n))),this._lastWrite=void 0,this._reobserve(i,{newNetworkStatus:fe.refetch})}fetchMore({query:n,variables:e,context:i,errorPolicy:o,updateQuery:r}){V(this.options.fetchPolicy!=="cache-only",84,bt(this.query,"(anonymous)"));let a=N(T({},tn(this.options,{errorPolicy:"none"},{query:n,context:i,errorPolicy:o})),{variables:n?e:T(T({},this.variables),e),fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange});a.query=this.transformDocument(a.query),this.lastQuery=n?this.transformDocument(this.options.query):a.query;let s=!1,l=this.options.fetchPolicy!=="no-cache";l||V(r,85);let{finalize:c,pushNotification:p}=this.pushOperation(fe.fetchMore);p({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:h,operator:m}=im(),{observable:g}=this.queryManager.fetchObservableWithInfo(a,{networkStatus:fe.fetchMore,exposeExtensions:!0}),b=g.pipe(m,Ko(y=>y.kind==="N"&&y.source==="network")).subscribe({next:y=>{s=!1;let v=y.value,S=v[mr];if(wr(y.value.networkStatus)&&c(),l){let E=this.getCacheDiff();this.cache.batch({update:R=>{r?R.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:S},z=>r(z,{fetchMoreResult:v.data,variables:a.variables})):R.writeQuery({query:a.query,variables:a.variables,data:v.data,extensions:S})},onWatchUpdated:(R,z)=>{if(R.watcher===this&&!Oe(z.result,E.result)){s=!0;let W=this.getCurrentResult();Gi(v.networkStatus)&&p({kind:"N",source:"network",value:N(T({},W),{networkStatus:v.networkStatus===fe.error?fe.ready:v.networkStatus,loading:!1,data:z.result,dataState:v.dataState==="streaming"?"streaming":"complete"})})}}})}else{let E=this.getCurrentResult(),R=r(E.data,{fetchMoreResult:v.data,variables:a.variables});p({kind:"N",value:N(T({},E),{networkStatus:fe.ready,loading:!1,data:R,dataState:E.dataState==="streaming"?"streaming":"complete"}),source:"network"})}}});return va(h.then(y=>gi(this.maskResult(y))).finally(()=>{if(b.unsubscribe(),c(),l&&!s){let y=this.getCurrentResult();y.dataState==="streaming"?p({kind:"N",source:"network",value:N(T({},y),{dataState:"complete",networkStatus:fe.ready})}):p({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(n){let e=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:i=>{let{updateQuery:o,onError:r}=n,{error:a}=i;if(a){r?r(a):V.error(86,a);return}o&&this.updateQuery((s,l)=>o(s,T({subscriptionData:i},l)))}});return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)&&e.unsubscribe()}}applyOptions(n){let e=tn(this.options,n||{});nm(this.options,e),this.updatePolling()}setVariables(n){return Ze(this,null,function*(){return n=this.getVariablesWithDefaults(n),Oe(this.variables,n)?gi(this.getCurrentResult()):(this.options.variables=n,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},{newNetworkStatus:fe.setVariables}):gi(this.getCurrentResult()))})}updateQuery(n){let{queryManager:e}=this,{result:i,complete:o}=this.getCacheDiff({optimistic:!1}),r=n(i,{variables:this.variables,complete:!!o,previousData:i});r&&(this.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),e.broadcastQueries())}startPolling(n){this.options.pollInterval=n,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(n,e){if(e.nextFetchPolicy){let{fetchPolicy:i="cache-first",initialFetchPolicy:o=i}=e;i==="standby"||(typeof e.nextFetchPolicy=="function"?e.fetchPolicy=e.nextFetchPolicy.call(e,i,{reason:n,options:e,observable:this,initialFetchPolicy:o}):n==="variables-changed"?e.fetchPolicy=o:e.fetchPolicy=e.nextFetchPolicy)}return e.fetchPolicy}fetch(n,e,i,o){let r=this.options.fetchPolicy;n.context??={};let a=!1,s=()=>{a=!0},l=v=>new Je(S=>{try{return v.subscribe({next(E){a=!0,S.next(E)},error:E=>S.error(E),complete:()=>S.complete()})}finally{a||(g.override=e,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:h,variables:m,meta:{shouldEmit:3,fetchPolicy:r}}))}}),{observable:c,fromLink:p}=this.queryManager.fetchObservableWithInfo(n,{networkStatus:e,query:i,onCacheHit:s,fetchQueryOperator:l,observableQuery:this}),{query:h,variables:m}=this,g={abort:()=>{y.unsubscribe()},query:h,variables:m};this.activeOperations.add(g);let b=e==fe.refetch||e==fe.setVariables;c=c.pipe(o,Mi());let y=c.pipe(si({next:v=>{v.source==="newNetworkStatus"||v.kind==="N"&&v.value.loading?g.override=e:delete g.override},finalize:()=>this.activeOperations.delete(g)})).subscribe({next:v=>{let S={};b&&v.kind==="N"&&"loading"in v.value&&!v.value.loading&&(b=!1,S.shouldEmit=1),this.input.next(N(T({},v),{query:h,variables:m,meta:S}))}});return{fromLink:p,subscription:y,observable:c}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:n,options:{fetchPolicy:e,pollInterval:i}}=this,o=()=>{let{options:l}=this;return!l.pollInterval||!this.hasObservers()||l.fetchPolicy==="cache-only"||l.fetchPolicy==="standby"};if(o()){!1,this.cancelPolling();return}if(n?.interval===i)return;let r=n||(this.pollingInfo={});r.interval=i;let a=()=>{if(o())return this.cancelPolling();this.pollingInfo&&(!Gi(this.networkStatus)&&!this.options.skipPollAttempt?.()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},{newNetworkStatus:fe.poll}).then(s,s):s())},s=()=>{let l=this.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(a,l.interval))};s()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(n){return this._reobserve(n)}_reobserve(n,e){this.isTornDown=!1;let{newNetworkStatus:i}=e||{};this.queryManager.obsQueries.add(this);let o=i===fe.refetch||i===fe.poll,r=this.variables,a=this.options.fetchPolicy,s=tn(this.options,n||{});this.variablesUnknown&&=s.fetchPolicy==="standby";let l=o?s:nm(this.options,s),c=this.transformDocument(l.query);this.lastQuery=c,n&&"variables"in n&&(l.variables=this.getVariablesWithDefaults(n.variables)),o||(this.updatePolling(),n&&n.variables&&!Oe(n.variables,r)&&l.fetchPolicy!=="standby"&&(l.fetchPolicy===a||typeof l.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",l),i===void 0&&(i=fe.setVariables)));let p=this.networkStatus;i||(i=fe.loading,p!==fe.loading&&n?.variables&&!Oe(n.variables,r)&&(i=fe.setVariables),l.fetchPolicy==="standby"&&(i=fe.ready)),l.fetchPolicy==="standby"&&this.cancelPolling(),this.resubscribeCache();let{promise:h,operator:m}=im(l.fetchPolicy==="standby"?{data:void 0}:void 0),{subscription:g,observable:b,fromLink:y}=this.fetch(l,i,c,m);!o&&(y||!this.linkSubscription)&&(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=g);let v=Object.assign(va(h.then(S=>gi(this.maskResult(S))).finally(()=>{!this.hasObservers()&&this.activeOperations.size===0&&this.tearDownQuery()})),{retain:()=>{let S=b.subscribe({}),E=()=>S.unsubscribe();return h.then(E,E),v}});return v}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(n){return this.queryManager.transform(n)}maskResult(n){let e=this.queryManager.maskOperation({document:this.query,data:n.data,fetchPolicy:this.options.fetchPolicy,cause:this});return e===n.data?n:N(T({},n),{data:e})}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(n=!1){if(!n){let i=this.queryManager.getDocumentInfo(this.query);if(i.hasClientExports||i.hasForcedResolvers)return}let{dirty:e}=this;if(this.resetNotifications(),e&&(this.options.fetchPolicy==="cache-only"||this.options.fetchPolicy==="cache-and-network"||!this.activeOperations.size)){let i=this.getCacheDiff();Oe(i.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:i.result,dataState:i.complete?"complete":i.result?"partial":"empty",networkStatus:fe.ready,loading:!1,error:void 0,partial:!i.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(n){let e=!1,{query:i,variables:o}=this,r=()=>{this.activeOperations.delete(a)},a={override:n,abort:()=>{e=!0,r()},query:i,variables:o};return this.activeOperations.add(a),{finalize:r,pushNotification:(s,l)=>{e||this.input.next(N(T({},s),{query:i,variables:o,meta:T({},l)}))}}}calculateNetworkStatus(n){return n===fe.streaming?n:Array.from(this.activeOperations.values()).reverse().find(i=>Sr(i,this)&&i.override!==void 0)?.override??n}abortActiveOperations(){this.activeOperations.forEach(n=>n.abort())}reset(){let n=this.options.fetchPolicy==="cache-only";this.setResult(n?rc:Eo,{shouldEmit:n?1:2}),this.abortActiveOperations()}setResult(n,e){this.input.next({source:"setResult",kind:"N",value:n,query:this.query,variables:this.variables,meta:T({},e)})}operator=Co(n=>{let{query:e,variables:i,meta:o}=n;if(n.source==="setResult")return{query:e,variables:i,result:n.value,meta:o};if(n.kind==="C"||!Sr(n,this))return;let r,a=this.subject.getValue();if(n.source==="cache"){if(r=n.value,r.networkStatus===fe.ready&&r.partial&&(!this.options.returnPartialData||a.result.networkStatus===fe.error)&&this.options.fetchPolicy!=="cache-only")return}else if(n.source==="network")this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),r=n.kind==="E"?N(T({},Sr(a,n)?a.result:{data:void 0,dataState:"empty",partial:!0}),{error:n.error,networkStatus:fe.error,loading:!1}):n.value,n.kind==="E"&&r.dataState==="streaming"&&(r.dataState="complete"),r.error&&(o.shouldEmit=1);else if(n.source==="newNetworkStatus"){let s=Sr(a,n)?a.result:this.getInitialResult(o.fetchPolicy),{resetError:l}=n.value,c=l?void 0:s.error,p=c?fe.error:fe.ready;r=N(T({},s),{error:c,networkStatus:p})}return V(r),r.error||delete r.error,r.networkStatus=this.calculateNetworkStatus(r.networkStatus),r.loading=Gi(r.networkStatus),r=this.maskResult(r),a.result.data!==void 0&&r.data!==a.result.data&&Oe(r.data,a.result.data)&&(r.data=a.result.data),{query:e,variables:i,result:r,meta:o}});reobserveCacheFirst(){let{fetchPolicy:n,nextFetchPolicy:e}=this.options;n==="cache-and-network"||n==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(i,o){return this.nextFetchPolicy=e,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(i,o):n}}):this.reobserve()}getVariablesWithDefaults(n){return this.queryManager.getVariables(this.query,n)}};function om(t){!1}function Sr(t,n){return!!(t&&n&&t.query===n.query&&Oe(t.variables,n.variables))}function im(t){let n=t,e,i,o=new Promise((a,s)=>{e=a,i=s}),r=si({next(a){if(a.kind==="E")return i(a.error);a.kind==="N"&&a.source!=="newNetworkStatus"&&!a.value.loading&&(n=a.value)},finalize:()=>{if(n)e(n);else{let a="The operation was aborted.",s="AbortError";i(typeof DOMException<"u"?new DOMException(a,s):Object.assign(new Error(a),{name:s}))}}});return{promise:o,operator:r}}var rm={},Do=new WeakMap;function ac(t,n){let e=t[n];typeof e=="function"&&(t[n]=function(){return Do.set(t,(Do.get(t)+1)%1e15),e.apply(this,arguments)})}var am=new WeakMap,Oo=class{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(n,e){let i=this.cache=n.cache,o=(am.get(n)||0)+1;am.set(n,o),this.id=o+"",this.observableQuery=e,this.queryManager=n,Do.has(i)||(Do.set(i,0),ac(i,"evict"),ac(i,"modify"),ac(i,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(n){(this.observableQuery||this)._lastWrite=n}resetLastWrite(){this.lastWrite=void 0}shouldWrite(n,e){let{lastWrite:i}=this;return!(i&&i.dmCount===Do.get(this.cache)&&Oe(e,i.variables)&&Oe(n.data,i.result.data)&&n.extensions?.[Zt]===i.result.extensions?.[Zt])}get hasNext(){return this.incremental?this.incremental.hasNext:!1}maybeHandleIncrementalResult(n,e,i){let{incrementalHandler:o}=this.queryManager;return o.isIncrementalResult(e)?(this.incremental||=o.startRequest({query:i}),this.incremental.handle(n,e)):e}markQueryResult(n,{document:e,variables:i,errorPolicy:o,cacheWriteBehavior:r}){let a={query:e,variables:i,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let s=r===0,l=s?void 0:this.cache.diff(a),c=this.maybeHandleIncrementalResult(l?.result,n,e);return s||(sc(c,o)?this.cache.batch({onWatchUpdated:(p,h)=>{p.watcher===this.observableQuery&&(p.lastOwnDiff=h)},update:p=>{if(this.shouldWrite(c,i))p.writeQuery({query:e,data:c.data,variables:i,overwrite:r===1,extensions:c.extensions}),this.lastWrite={result:c,variables:i,dmCount:Do.get(this.cache)};else if(l&&l.complete){c=N(T({},c),{data:l.result});return}let h=p.diff(a);h.complete&&(c=N(T({},c),{data:h.result}))}}):this.lastWrite=void 0),c}markMutationResult(n,e,i=this.cache){let o=[],r=e.cacheWriteBehavior===0,a=this.maybeHandleIncrementalResult(r?void 0:i.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}).result,n,e.document);if(e.errorPolicy==="ignore"&&(a=N(T({},a),{errors:[]})),Yn(a)&&e.errorPolicy==="none")return Promise.resolve(a);let s=()=>N(T({},a),{dataState:this.hasNext?"streaming":"complete"});if(!r&&sc(a,e.errorPolicy)){o.push({result:a.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables,extensions:a.extensions});let{updateQueries:c}=e;c&&this.queryManager.getObservableQueries("all").forEach(p=>{let h=p&&p.queryName;if(!h||!Object.hasOwnProperty.call(c,h))return;let m=c[h],{query:g,variables:b}=p,{result:y,complete:v}=p.getCacheDiff({optimistic:!1});if(v&&y){let S=m(y,{mutationResult:s(),queryName:g&&bt(g)||void 0,queryVariables:b});S&&o.push({result:S,dataId:"ROOT_QUERY",query:g,variables:b})}})}let l=e.refetchQueries;if(typeof l=="function"&&(l=l(s())),o.length>0||(l||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){let c=[];if(this.queryManager.refetchQueries({updateCache:p=>{r||o.forEach(m=>p.write(m));let{update:h}=e;if(h){if(!r){let m=p.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});m.complete&&(a=N(T({},a),{data:m.result}))}this.hasNext||h(p,a,{context:e.context,variables:e.variables})}!r&&!e.keepRootFields&&!this.hasNext&&p.modify({id:"ROOT_MUTATION",fields(m,{fieldName:g,DELETE:b}){return g==="__typename"?m:b}})},include:l,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(p=>c.push(p)),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(()=>a)}return Promise.resolve(a)}markMutationOptimistic(n,e){let i=typeof n=="function"?n(e.variables,{IGNORE:rm}):n;return i===rm?!1:(this.cache.recordOptimisticTransaction(o=>{try{this.markMutationResult({data:i},e,o)}catch(r){V.error(r)}},this.id),!0)}markSubscriptionResult(n,{document:e,variables:i,errorPolicy:o,cacheWriteBehavior:r}){r!==0&&(sc(n,o)&&this.cache.write({query:e,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:i,extensions:n.extensions}),this.queryManager.broadcastQueries())}};function sc(t,n="none"){let e=n==="ignore"||n==="all",i=!Yn(t);return!i&&e&&t.data&&(i=!0),i}var Ba=class{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(n){let e=new ei(o=>this.cache.transformDocument(o),{cache:!1});this.client=n.client,this.defaultOptions=n.defaultOptions,this.queryDeduplication=n.queryDeduplication,this.clientOptions=n.clientOptions,this.ssrMode=n.ssrMode,this.assumeImmutableResults=n.assumeImmutableResults,this.dataMasking=n.dataMasking,this.localState=n.localState,this.incrementalHandler=n.incrementalHandler;let i=n.documentTransform;this.documentTransform=i?e.concat(i).concat(e):e,this.defaultContext=n.defaultContext||{},(this.onBroadcast=n.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(n=>n.stop()),this.cancelPendingFetches(st(89))}cancelPendingFetches(n){this.fetchCancelFns.forEach(e=>e(n)),this.fetchCancelFns.clear()}mutate(g){return Ze(this,arguments,function*({mutation:n,variables:e,optimisticResponse:i,updateQueries:o,refetchQueries:r=[],awaitRefetchQueries:a=!1,update:s,onQueryUpdated:l,fetchPolicy:c,errorPolicy:p,keepRootFields:h,context:m}){let b=new Oo(this);n=this.cache.transformForLink(this.transform(n));let{hasClientExports:y}=this.getDocumentInfo(n);e=this.getVariables(n,e),y&&(!1,e=yield this.localState.getExportedVariables({client:this.client,document:n,variables:e,context:m}));let v=this.mutationStore&&(this.mutationStore[b.id]={mutation:n,variables:e,loading:!0,error:null}),S=i&&b.markMutationOptimistic(i,{document:n,variables:e,cacheWriteBehavior:c==="no-cache"?0:2,errorPolicy:p,context:m,updateQueries:o,update:s,keepRootFields:h});return this.broadcastQueries(),new Promise((E,R)=>{let z={};return this.getObservableFromLink(n,N(T({},m),{optimisticResponse:S?i:void 0}),e,c,{},!1).observable.pipe(sm(),Wo(W=>{let ge=T({},W);return gn(b.markMutationResult(ge,{document:n,variables:e,cacheWriteBehavior:c==="no-cache"?0:2,errorPolicy:p,context:m,update:s,updateQueries:o,awaitRefetchQueries:a,refetchQueries:r,removeOptimistic:S?b.id:void 0,onQueryUpdated:l,keepRootFields:h}))})).pipe(xt(W=>{if(Yn(W)&&p==="none")throw new ti(lc(W));return v&&(v.loading=!1,v.error=null),W})).subscribe({next:W=>{if(this.broadcastQueries(),!b.hasNext){let ge={data:this.maskOperation({document:n,data:W.data,fetchPolicy:c,cause:z})};Yn(W)&&(ge.error=new ti(W)),Object.keys(W.extensions||{}).length&&(ge.extensions=W.extensions),E(ge)}},error:W=>{if(v&&(v.loading=!1,v.error=W),S&&this.cache.removeOptimistic(b.id),this.broadcastQueries(),p==="ignore")return E({data:void 0});if(p==="all")return E({data:void 0,error:W});R(W)}})})})}fetchQuery(n,e){return Vt(n.query,Rt.QUERY),Ze(this,null,function*(){return rn(this.fetchObservableWithInfo(n,{networkStatus:e}).observable.pipe(Co(i=>{switch(i.kind){case"E":throw i.error;case"N":if(i.source!=="newNetworkStatus")return gi(i.value)}})),{defaultValue:{data:void 0}})})}transform(n){return this.documentTransform.transformDocument(n)}transformCache=new Ni(wt["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(n){let{transformCache:e}=this;if(!e.has(n)){let o=Mt(n),r={hasClientExports:En(["client","export"],n,!0),hasForcedResolvers:xl(n),hasNonreactiveDirective:En(["nonreactive"],n),hasIncrementalDirective:En(["defer"],n),nonReactiveQuery:ky(n),clientQuery:En(["client"],n)?n:null,serverQuery:Sl([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],n),operationType:o?.operation,defaultVars:zi(o),asQuery:N(T({},n),{definitions:n.definitions.map(a=>a.kind==="OperationDefinition"&&a.operation!=="query"?N(T({},a),{operation:"query"}):a)})};e.set(n,r)}let i=e.get(n);if(i.violation)throw i.violation;return i}getVariables(n,e){let i=this.getDocumentInfo(n).defaultVars,o=Object.entries(e??{}).map(([r,a])=>[r,a===void 0?i[r]:a]);return T(T({},i),Object.fromEntries(o))}watchQuery(n){Vt(n.query,Rt.QUERY);let e=this.transform(n.query);return n=N(T({},n),{variables:this.getVariables(e,n.variables)}),typeof n.notifyOnNetworkStatusChange>"u"&&(n.notifyOnNetworkStatusChange=!0),new Mo({queryManager:this,options:n,transformedQuery:e})}query(n){let e=this.transform(n.query);return this.fetchQuery(N(T({},n),{query:e})).then(i=>N(T({},i),{data:this.maskOperation({document:e,data:i?.data,fetchPolicy:n.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(n={discardWatches:!0}){return this.cancelPendingFetches(st(91)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(n)}getObservableQueries(n="active"){let e=new Set,i=new Map,o=new Map,r=new Set;return Array.isArray(n)&&n.forEach(a=>{if(typeof a=="string")i.set(a,a),o.set(a,!1);else if(kl(a)){let s=On(this.transform(a));i.set(s,bt(a)),o.set(s,!1)}else We(a)&&a.query&&r.add(a)}),this.obsQueries.forEach(a=>{let s=On(this.transform(a.options.query));if(n==="all"){e.add(a);return}let{queryName:l,options:{fetchPolicy:c}}=a;n==="active"&&c==="standby"||(n==="active"||l&&o.has(l)||s&&o.has(s))&&(e.add(a),l&&o.set(l,!0),s&&o.set(s,!0))}),r.size&&r.forEach(a=>{let s=new Mo({queryManager:this,options:N(T({},Hi(this.defaultOptions.watchQuery,a)),{fetchPolicy:"network-only"})});e.add(s)}),!1,e}refetchObservableQueries(n=!1){let e=[];return this.getObservableQueries(n?"all":"active").forEach(i=>{let{fetchPolicy:o}=i.options;(n||o!=="standby")&&o!=="cache-only"&&e.push(i.refetch())}),this.broadcastQueries(),Promise.all(e)}startGraphQLSubscription(n){let{query:e,variables:i}=n,{fetchPolicy:o="cache-first",errorPolicy:r="none",context:a={},extensions:s={}}=n;Vt(e,Rt.SUBSCRIPTION),e=this.transform(e),i=this.getVariables(e,i);let l;!1;let c=(this.getDocumentInfo(e).hasClientExports?gn(this.localState.getExportedVariables({client:this.client,document:e,variables:i,context:a})):Ei(i)).pipe(Wo(p=>{let{observable:h,restart:m}=this.getObservableFromLink(e,a,p,o,s),g=new Oo(this);return l=m,h.pipe(xt(b=>{g.markSubscriptionResult(b,{document:e,variables:p,errorPolicy:r,cacheWriteBehavior:o==="no-cache"?0:2});let y={data:b.data??void 0};return Yn(b)?y.error=new ti(b):em(b)&&(y.error=b.extensions[Va],delete b.extensions[Va]),b.extensions&&Object.keys(b.extensions).length&&(y.extensions=b.extensions),y.error&&r==="none"&&(y.data=void 0),r==="ignore"&&delete y.error,y}),Xr(b=>r==="ignore"?Ei({data:void 0}):Ei({data:void 0,error:b})),Ko(b=>!!(b.data||b.error)))}));return Object.assign(c,{restart:()=>l?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(n=>n.notify())}inFlightLinkObservables=new Et(!1);getObservableFromLink(n,e,i,o,r,a=e?.queryDeduplication??this.queryDeduplication){let s={},{serverQuery:l,clientQuery:c,operationType:p,hasIncrementalDirective:h}=this.getDocumentInfo(n),m=bt(n),g={client:this.client};if(l){let{inFlightLinkObservables:y,link:v}=this;try{let E=function(R){return new Je(z=>{function W(){return R.subscribe({next:z.next.bind(z),complete:z.complete.bind(z),error:z.error.bind(z)})}let ge=W();return s.restart||=()=>{ge.unsubscribe(),ge=W()},()=>{ge.unsubscribe(),s.restart=void 0}})};var b=E;let S=this.incrementalHandler.prepareRequest({query:l,variables:i,context:N(T(T({},this.defaultContext),e),{queryDeduplication:a}),extensions:r});if(e=S.context,a){let R=On(l),z=St(i);s=y.lookup(R,z),s.observable||(s.observable=qi(v,S,g).pipe(E,vp(()=>{y.peek(R,z)===s&&y.remove(R,z)}),p===Rt.SUBSCRIPTION?Mi():ao({refCount:!0})))}else s.observable=qi(v,S,g).pipe(E)}catch(S){s.observable=mp(()=>S)}}else s.observable=Ei({data:{}});if(c){let{operation:y}=Mt(n);!1,V(!h,96,y[0].toUpperCase()+y.slice(1),m??"(anonymous)"),s.observable=s.observable.pipe(Wo(v=>gn(this.localState.execute({client:this.client,document:c,remoteResult:v,context:e,variables:i,fetchPolicy:o}))))}return{restart:()=>s.restart?.(),observable:s.observable.pipe(Xr(y=>{throw y=tm(y),oc(y),y}))}}getResultsFromLink(n,{queryInfo:e,cacheWriteBehavior:i,observableQuery:o,exposeExtensions:r}){let a=e.lastRequestId=this.generateRequestId(),{errorPolicy:s}=n,l=this.cache.transformForLink(n.query);return this.getObservableFromLink(l,n.context,n.variables,n.fetchPolicy).observable.pipe(xt(c=>{let p=e.markQueryResult(c,N(T({},n),{document:l,cacheWriteBehavior:i})),h=Yn(p);if(h&&s==="none")throw e.resetLastWrite(),o?.resetNotifications(),new ti(lc(p));let m=T({data:p.data},e.hasNext?{loading:!0,networkStatus:fe.streaming,dataState:"streaming",partial:!0}:{dataState:p.data?"complete":"empty",loading:!1,networkStatus:fe.ready,partial:!p.data});return r&&"extensions"in p&&(m[mr]=p.extensions),h&&(s==="none"&&(m.data=void 0,m.dataState="empty"),s!=="ignore"&&(m.error=new ti(lc(p)),m.dataState!=="streaming"&&(m.networkStatus=fe.error))),m}),Xr(c=>{if(a>=e.lastRequestId&&s==="none")throw e.resetLastWrite(),o?.resetNotifications(),c;let p={data:void 0,dataState:"empty",loading:!1,networkStatus:fe.ready,partial:!0};return s!=="ignore"&&(p.error=c,p.networkStatus=fe.error),Ei(p)}))}fetchObservableWithInfo(n,{networkStatus:e=fe.loading,query:i=n.query,fetchQueryOperator:o=l=>l,onCacheHit:r=()=>{},observableQuery:a,exposeExtensions:s}){let l=this.getVariables(i,n.variables),{fetchPolicy:c="cache-first",errorPolicy:p="none",returnPartialData:h=!1,notifyOnNetworkStatusChange:m=!0,context:g={}}=n;this.prioritizeCacheValues&&(c==="network-only"||c==="cache-and-network")&&(c="cache-first");let b=Object.assign({},n,{query:i,variables:l,fetchPolicy:c,errorPolicy:p,returnPartialData:h,notifyOnNetworkStatusChange:m,context:g}),y=new Oo(this,a),v=W=>{b.variables=W;let ge=c==="no-cache"?0:e===fe.refetch&&b.refetchWritePolicy!=="merge"?1:2,Le=this.fetchQueryByPolicy(b,{queryInfo:y,cacheWriteBehavior:ge,onCacheHit:r,observableQuery:a,exposeExtensions:s});return Le.observable=Le.observable.pipe(o),b.fetchPolicy!=="standby"&&a?.applyNextFetchPolicy("after-fetch",n),Le},S=()=>{this.fetchCancelFns.delete(y.id)};this.fetchCancelFns.set(y.id,W=>{E.next({kind:"E",error:W,source:"network"})});let E=new Nt,R,z;if(this.getDocumentInfo(b.query).hasClientExports)!1,R=gn(this.localState.getExportedVariables({client:this.client,document:b.query,variables:b.variables,context:b.context})).pipe(Wo(W=>v(W).observable)),z=!0;else{let W=v(b.variables);z=W.fromLink,R=W.observable}return{observable:new Je(W=>{W.add(S),R.subscribe(W),E.subscribe(W)}).pipe(Mi()),fromLink:z}}refetchQueries({updateCache:n,include:e,optimistic:i=!1,removeOptimistic:o=i?ar("refetchQueries"):void 0,onQueryUpdated:r}){let a=new Map;e&&this.getObservableQueries(e).forEach(l=>{if(l.options.fetchPolicy==="cache-only"||l.variablesUnknown)return;let c=l.getCurrentResult();a.set(l,{oq:l,lastDiff:{result:c?.data,complete:!c?.partial}})});let s=new Map;if(n){let l=new Set;this.cache.batch({update:n,optimistic:i&&o||!1,removeOptimistic:o,onWatchUpdated(c,p,h){let m=c.watcher;if(m instanceof Mo&&!l.has(m)){if(l.add(m),r){a.delete(m);let g=r(m,p,h);return g===!0&&(g=m.refetch().retain()),g!==!1&&s.set(m,g),g}r!==null&&m.options.fetchPolicy!=="cache-only"&&a.set(m,{oq:m,lastDiff:h,diff:p})}}})}return a.size&&a.forEach(({oq:l,lastDiff:c,diff:p})=>{let h;r&&(p||(p=l.getCacheDiff()),h=r(l,p,c)),(!r||h===!0)&&(h=l.refetch().retain()),h!==!1&&s.set(l,h)}),o&&this.cache.removeOptimistic(o),s}noCacheWarningsByCause=new WeakSet;maskOperation(n){let{document:e,data:i}=n;if(!1){let{fetchPolicy:o,cause:r={}}=n,a=Mt(e)?.operation;this.dataMasking&&o==="no-cache"&&!xy(e)&&!this.noCacheWarningsByCause.has(r)&&(this.noCacheWarningsByCause.add(r),!1)}return this.dataMasking?Gl(i,e,this.cache):i}maskFragment(n){let{data:e,fragment:i,fragmentName:o}=n;return this.dataMasking?Ul(e,i,this.cache,o):e}fetchQueryByPolicy({query:n,variables:e,fetchPolicy:i,errorPolicy:o,returnPartialData:r,context:a},{cacheWriteBehavior:s,onCacheHit:l,queryInfo:c,observableQuery:p,exposeExtensions:h}){let m=()=>this.cache.diff({query:n,variables:e,returnPartialData:!0,optimistic:!0}),g=(y,v)=>{let S=y.result;!1;let E=z=>(!y.complete&&!r&&(z=void 0),{data:z,dataState:y.complete?"complete":z?"partial":"empty",loading:Gi(v),networkStatus:v,partial:!y.complete}),R=z=>Ei({kind:"N",value:E(z),source:"cache"});return(y.complete||r)&&this.getDocumentInfo(n).hasForcedResolvers?(!1,l(),gn(this.localState.execute({client:this.client,document:n,remoteResult:S?{data:S}:void 0,context:a,variables:e,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:i}).then(z=>({kind:"N",value:E(z.data||void 0),source:"cache"})))):o==="none"&&v===fe.refetch&&y.missing?R(void 0):R(S||void 0)},b=()=>this.getResultsFromLink({query:n,variables:e,context:a,fetchPolicy:i,errorPolicy:o},{cacheWriteBehavior:s,queryInfo:c,observableQuery:p,exposeExtensions:h}).pipe(sm(),wp(),xt(y=>N(T({},y),{source:"network"})));switch(i){default:case"cache-first":{let y=m();return y.complete?{fromLink:!1,observable:g(y,fe.ready)}:r?{fromLink:!0,observable:Jr(g(y,fe.loading),b())}:{fromLink:!0,observable:b()}}case"cache-and-network":{let y=m();return y.complete||r?{fromLink:!0,observable:Jr(g(y,fe.loading),b())}:{fromLink:!0,observable:b()}}case"cache-only":return{fromLink:!1,observable:Jr(g(m(),fe.ready))};case"network-only":return{fromLink:!0,observable:b()};case"no-cache":return{fromLink:!0,observable:b()};case"standby":return{fromLink:!1,observable:Ii}}}};function sm(){let t=!1;return si({next(){t=!0},complete(){V(t,100)}})}function xy(t){let n=!0;return gt(t,{FragmentSpread:e=>{if(n=!!e.directives&&e.directives.some(i=>i.name.value==="unmask"),!n)return Wn}}),n}function ky(t){return gt(t,{FragmentSpread:n=>{if(!n.directives?.some(e=>e.name.value==="unmask"))return N(T({},n),{directives:[...n.directives||[],{kind:B.DIRECTIVE,name:{kind:B.NAME,value:"nonreactive"}}]})}})}function lc(t){var a;if(t.extensions?.[Zt]==null)return t;let o=t,{extensions:r}=o,s=r,{[a=Zt]:n}=s,e=it(s,[Yr(a)]),i=it(o,["extensions"]);return Object.keys(e).length>0&&(i.extensions=e),i}var lm=!1,Yi=class{link;cache;disableNetworkFetches;set prioritizeCacheValues(n){this.queryManager.prioritizeCacheValues=n}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(n){!1;let{cache:e,documentTransform:i,ssrMode:o=!1,ssrForceFetchDelay:r=0,queryDeduplication:a=!0,defaultOptions:s,defaultContext:l,assumeImmutableResults:c=e.assumeImmutableResults,localState:p,devtools:h,dataMasking:m,link:g,incrementalHandler:b=new yr,experiments:y=[],refetchEventManager:v}=n;this.link=g,this.cache=e,this.queryDeduplication=a,this.defaultOptions=s||{},this.devtoolsConfig=N(T({},h),{enabled:h?.enabled??!1}),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=this.refetchObservableQueries.bind(this),this.version=rr,this.queryManager=new Ba({client:this,defaultOptions:this.defaultOptions,defaultContext:l,documentTransform:i,queryDeduplication:a,ssrMode:o,dataMasking:!!m,clientOptions:n,incrementalHandler:b,assumeImmutableResults:c,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:p}),this.prioritizeCacheValues=o||r>0,r&&setTimeout(()=>{this.prioritizeCacheValues=!1},r),this.devtoolsConfig.enabled&&this.connectToDevTools(),y.forEach(S=>S.call(this,n)),this.refetchEventManager=v,this.refetchEventManager?.connect(this)}connectToDevTools(){if(typeof window>"u")return;let n=window,e=Symbol.for("apollo.devtools");(n[e]=n[e]||[]).push(this),n.__APOLLO_CLIENT__=this,!lm&&!1&&(lm=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let i=window.navigator,o=i&&i.userAgent,r;typeof o=="string"&&(o.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":o.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1&&V.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(n){this.queryManager.localState=n}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(n){let{refetchOn:e}=n;if(this.defaultOptions.watchQuery){let i=this.defaultOptions.watchQuery.refetchOn,o;e&&typeof e=="object"&&(typeof i=="object"?o=T(T({},i),e):i!=null&&(o=r=>{let a=e[r.source]??i;return typeof a=="function"?a(r):a})),n=Hi(this.defaultOptions.watchQuery,n),o&&(n.refetchOn=o)}if(!1){let{query:i}=n,{refetchEventManager:o}=this;if(e){let r=bt(i,"(anonymous)");o?typeof e=="object"&&Object.keys(e).forEach(a=>{o.hasSource(a)||!1}):!1}}return this.queryManager.watchQuery(n)}query=n=>(this.defaultOptions.query&&(n=Hi(this.defaultOptions.query,n)),!1,this.queryManager.query(n));mutate=n=>{let e=Hi(tn({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),n);return!1,Vt(e.mutation,Rt.MUTATION),this.queryManager.mutate(e)};subscribe(n){let e={},i=this.queryManager.startGraphQLSubscription(n),o=i.pipe(xt(r=>N(T({},r),{data:this.queryManager.maskOperation({document:n.query,data:r.data,fetchPolicy:n.fetchPolicy,cause:e})})));return Object.assign(o,{restart:i.restart})}readQuery(n,e=!1){return this.cache.readQuery(N(T({},n),{query:this.transform(n.query)}),e)}watchFragment(n){let e=this.queryManager.dataMasking,i=this.cache.watchFragment(N(T({},n),{fragment:this.transform(n.fragment,e)}));return i}readFragment(n,e=!1){return this.cache.readFragment(N(T({},n),{fragment:this.transform(n.fragment)}),e)}writeQuery(n){let e=this.cache.writeQuery(n);return n.broadcast!==!1&&this.queryManager.broadcastQueries(),e}writeFragment(n){let e=this.cache.writeFragment(n);return n.broadcast!==!1&&this.queryManager.broadcastQueries(),e}__actionHookForDevTools(n){this.devToolsHookCb=n}__requestRaw(n){return qi(this.link,n,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(n=>n()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(n=>n())))}onResetStore(n){return this.resetStoreCallbacks.push(n),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(e=>e!==n)}}onClearStore(n){return this.clearStoreCallbacks.push(n),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(e=>e!==n)}}reFetchObservableQueries;refetchObservableQueries(n){return this.queryManager.refetchObservableQueries(n)}refetchQueries(n){let e=this.queryManager.refetchQueries(n),i=[],o=[];e.forEach((a,s)=>{i.push(s),o.push(a)});let r=Promise.all(o);return r.queries=i,r.results=o,r.catch(a=>{!1}),r}getObservableQueries(n="active"){return this.queryManager.getObservableQueries(n)}extract(n){return this.cache.extract(n)}restore(n){return this.cache.restore(n)}setLink(n){this.link=n}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new ei(Il);transform(n,e=!1){let i=this.queryManager.transform(n);return e?this.maskedFragmentTransform.transformDocument(i):i}};!1;var Aa=new Map,cc=new Map,cm=!0,La=!1;function dm(t){return t.replace(/[\s,]+/g," ").trim()}function Ty(t){return dm(t.source.body.substring(t.start,t.end))}function Sy(t){var n=new Set,e=[];return t.definitions.forEach(function(i){if(i.kind==="FragmentDefinition"){var o=i.name.value,r=Ty(i.loc),a=cc.get(o);a&&!a.has(r)?cm&&console.warn("Warning: fragment with name "+o+` already exists. +}`)}function Be(t,n,e=""){return n!=null&&n!==""?t+n+e:""}function lm(t){return Be(" ",t.replace(/\n/g,` + `))}function l_(t){var n;return(n=t?.some(e=>e.includes(` +`)))!==null&&n!==void 0?n:!1}function fa(t){try{return t()}catch{}}var nc=fa(()=>globalThis)||fa(()=>window)||fa(()=>self)||fa(()=>global)||fa(function(){return fa.constructor("return this")()});var au="4.2.2";var VM=new Map;function lu(t){let n=VM.get(t)||1;return VM.set(t,n+1),`${t}:${n}:${Math.random().toString(36).slice(2)}`}function cu(t,n=0){let e=lu("stringifyForDisplay");return JSON.stringify(t,(r,i)=>i===void 0?e:i,n).split(JSON.stringify(e)).join("")}var jM="Invariant Violation",c_=class t extends Error{constructor(n=jM){super(n),this.name=jM,Object.setPrototypeOf(this,t.prototype)}},HM=["debug","log","warn","error","silent"],l7=HM.indexOf("silent");function W(t,...n){if(!t)throw Kt(...n)}function cm(t){return function(n,...e){if(HM.indexOf(t)>=l7){let r=console[t]||console.log;if(typeof n=="number"){let i=n;n=$M(i),n||(n=UM(i,e),e=[])}r(n,...e)}}}W.debug=cm("debug");W.log=cm("log");W.warn=cm("warn");W.error=cm("error");function Kt(t,...n){return new c_($M(t,n)||UM(t,n))}var zM=Symbol.for("ApolloErrorMessageHandler_"+au);function d_(t){if(typeof t=="string")return t;try{return cu(t,2).slice(0,1e3)}catch{return""}}function $M(t,n=[]){if(t)return nc[zM]&&nc[zM](t,n.map(d_))}function UM(t,n=[]){if(t)return typeof t=="string"?n.reduce((e,r)=>e.replace(/%[sdfo]/,d_(r)),t):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:au,message:t,args:n.map(d_)}))}`}function So(t,n,e,r){if(e.kind===Q.INT||e.kind===Q.FLOAT)t[n.value]=Number(e.value);else if(e.kind===Q.BOOLEAN||e.kind===Q.STRING)t[n.value]=e.value;else if(e.kind===Q.OBJECT){let i={};e.fields.map(o=>So(i,o.name,o.value,r)),t[n.value]=i}else if(e.kind===Q.VARIABLE){let i=(r||{})[e.name.value];t[n.value]=i}else if(e.kind===Q.LIST)t[n.value]=e.values.map(i=>{let o={};return So(o,n,i,r),o[n.value]});else if(e.kind===Q.ENUM)t[n.value]=e.value;else if(e.kind===Q.NULL)t[n.value]=null;else throw Kt(19,n.value,e.kind)}function ha(t,n){if(t.arguments&&t.arguments.length){let e={};return t.arguments.forEach(({name:r,value:i})=>So(e,r,i,n)),e}return null}var c7=Symbol.for("apollo.cacheSize"),gn=_({},nc[c7]);function sn(t,n){return t.definitions.find(e=>e.kind==="OperationDefinition"&&!!e.name)?.name.value??n}var d7=()=>Object.create(null),{forEach:u7,slice:WM}=Array.prototype,{hasOwnProperty:p7}=Object.prototype,Rn=class t{constructor(n=!0,e=d7){this.weakness=n,this.makeData=e}lookup(){return this.lookupArray(arguments)}lookupArray(n){let e=this;return u7.call(n,r=>e=e.getChildTrie(r)),p7.call(e,"data")?e.data:e.data=this.makeData(WM.call(n))}peek(){return this.peekArray(arguments)}peekArray(n){let e=this;for(let r=0,i=n.length;e&&rthis.max;)this.delete(this.oldest.key)}delete(n){let e=this.map.get(n);return 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.map.delete(n),this.dispose(e.value,n),!0):!1}};function u_(){}var m7=u_,g7=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},y7=typeof WeakMap<"u"?WeakMap:Map,b7=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:u_,unregister:u_}},v7=10024,Wi=class{constructor(n=1/0,e=m7){this.max=n,this.dispose=e,this.map=new y7,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let r=this.unfinalizedNodes.values();for(let i=0;i0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new b7(this.deleteNode.bind(this))}has(n){return this.map.has(n)}get(n){let e=this.getNode(n);return e&&e.value}getNode(n){let e=this.map.get(n);if(e&&e!==this.newest){let{older:r,newer:i}=e;i&&(i.older=r),r&&(r.newer=i),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=i)}return e}set(n,e){let r=this.getNode(n);return r?r.value=e:(r={key:n,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(n,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(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.size--;let e=n.key||n.keyRef&&n.keyRef.deref();this.dispose(n.value,e),n.keyRef?this.registry.unregister(n):this.unfinalizedNodes.delete(n),e&&this.map.delete(e)}delete(n){let e=this.map.get(n);return e?(this.deleteNode(e),!0):!1}scheduleFinalization(n){this.unfinalizedNodes.add(n),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}};var p_=new WeakSet;function GM(t){t.size<=(t.max||-1)||p_.has(t)||(p_.add(t),setTimeout(()=>{t.clean(),p_.delete(t)},100))}var ma=function(t,n){let e=new Wi(t,n);return e.set=function(r,i){let o=Wi.prototype.set.call(this,r,i);return GM(this),o},e},f_=function(t,n){let e=new ds(t,n);return e.set=function(r,i){let o=ds.prototype.set.call(this,r,i);return GM(this),o},e};function dm(t,{max:n,makeCacheKey:e=r=>r}){let r=new Rn(!0),i=new ma(n);return(...o)=>{let s=r.lookupArray(e(o)),a=i.get(s);if(a){if(a.error)throw a.error;return a.result}let l=i.set(s,{});try{return l.result=t(...o)}catch(c){throw l.error=c,c}}}var Kn=dm((t,n)=>{W(t&&t.kind==="Document",1);let e=t.definitions.filter(r=>r.kind==="OperationDefinition");!1,n&&W(e.length==1&&e[0].operation===n,4,n,n,e[0].operation),on(t,{Field(r,i,o,s){if(r.alias&&(r.alias.value==="__typename"||r.alias.value.startsWith("__ac_"))&&r.alias.value!==r.name.value){let a=t,l=[];for(let c of s)a=a[c],a.kind===Q.FIELD&&l.push(a.alias?.value||a.name.value);throw l.splice(-1,1,r.name.value),Kt(5,r.alias.value,l.join("."),e[0].operation,sn(t,"(anonymous)"))}}})},{max:gn.checkDocument||2e3});var{toString:_7}=Object.prototype;function m_(t){return h_(t)}function h_(t,n){switch(_7.call(t)){case"[object Array]":{if(n=n||new Map,n.has(t))return n.get(t);let e=t.slice(0);return n.set(t,e),e.forEach(function(r,i){e[i]=h_(r,n)}),e}case"[object Object]":{if(n=n||new Map,n.has(t))return n.get(t);let e=Object.create(Object.getPrototypeOf(t));return n.set(t,e),Object.keys(t).forEach(r=>{e[r]=h_(t[r],n)}),e}default:return t}}function g_(t){return t.length===0?Pt:new pe(n=>{let{length:e}=t,r=new Array(e),i=new Map;t.forEach((l,c)=>{i.has(l)||i.set(l,new Set),i.get(l).add(c)});let o=i.size,s=i.size,a;i.forEach((l,c)=>{let d=!1,u=c.subscribe({next:p=>{l.forEach(f=>r[f]=p),d||(d=!0,s--),s||(a||=new Set(t.filter(f=>f.dirty)),a.delete(c),a.size||(n.next(r.slice()),a=void 0))},complete:()=>{o--,o||n.complete()},error:n.error.bind(n)});n.add(u)})})}function Lr(...t){let n={};return t.forEach(e=>{e&&Reflect.ownKeys(e).forEach(r=>{let i=e[r];i!==void 0&&(n[r]=i)})}),n}function ui(t=[]){let n={};return t.forEach(e=>{n[e.name.value]=e}),n}function Ct(t){return t!==null&&typeof t=="object"}var{hasOwnProperty:w7}=Object.prototype,C7=function(t,n,e){return this.merge(t[e],n[e])},qM=t=>isNaN(+t)?{}:[],or=class{options;reconciler;constructor(n={}){this.options=n,this.reconciler=n.reconciler||C7}merge(n,e,r={}){let i=r.atPath;if(i?.length){let[o,...s]=i;n===void 0&&(n=qM(o));let a=n[o];a===void 0&&s.length&&(a=qM(s[0]));let l=this.merge(a,e,A(_({},r),{atPath:s}));return a!==l&&(n=this.shallowCopyForMerge(n),n[o]=l),n}return Array.isArray(n)&&Array.isArray(e)&&this.options.arrayMerge==="truncate"&&n.length>e.length&&(n=n.slice(0,e.length),this.pastCopies.add(n)),Ct(e)&&Ct(n)?(Object.keys(e).forEach(o=>{if(w7.call(n,o)){let s=n[o];if(e[o]!==s){let a=this.reconciler(n,e,o);a!==s&&(n=this.shallowCopyForMerge(n),n[o]=a)}}else n=this.shallowCopyForMerge(n),n[o]=e[o]}),n):e}isObject=Ct;pastCopies=new Set;shallowCopyForMerge(n){return Ct(n)&&(this.pastCopies.has(n)||(Array.isArray(n)?n=n.slice(0):n=_({__proto__:Object.getPrototypeOf(n)},n),this.pastCopies.add(n))),n}};function ga(t){let n={},e=t&&t.variableDefinitions;return e&&e.length&&e.forEach(r=>{r.defaultValue&&So(n,r.variable.name,r.defaultValue)}),n}function us(t,n){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{let e=t.name.value;if(typeof n=="function")return n(e);let r=n&&n[e];return W(r,9,e),r||null}default:return null}}function y_(t,n){let e=n,r=[];return t.definitions.forEach(o=>{if(o.kind==="OperationDefinition")throw Kt(10,o.operation,o.name?` named '${o.name.value}'`:"");o.kind==="FragmentDefinition"&&r.push(o)}),typeof e>"u"&&(W(r.length===1,11,r.length),e=r[0].name.value),A(_({},t),{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}},...t.definitions]})}function du(t){W(t.kind==="Document",6),W(t.definitions.length<=1,7);let n=t.definitions[0];return W(n.kind==="FragmentDefinition",8),n}function pi(t){return t.definitions.filter(n=>n.kind==="FragmentDefinition")}function ps(t){Kn(t);let n;for(let e of t.definitions){if(e.kind==="OperationDefinition")return e;e.kind==="FragmentDefinition"&&!n&&(n=e)}if(n)return n;throw Kt(12)}function Pn(t){return Kn(t),t.definitions.filter(n=>n.kind==="OperationDefinition")[0]}function uu(t){let n=Pn(t);return W(n&&n.operation==="query",13),n}var x7={};function pu(t,n){x7[t]=n}var En=Object.assign(function(n){return JSON.stringify(n,T7)},{reset(){rc=new f_(gn.canonicalStringify||1e3)}});!1;var rc;En.reset();function T7(t,n){if(n&&typeof n=="object"){let e=Object.getPrototypeOf(n);if(e===Object.prototype||e===null){let r=Object.keys(n);if(r.every(E7))return n;let i=JSON.stringify(r),o=rc.get(i);if(!o){r.sort();let a=JSON.stringify(r);o=rc.get(a)||r,rc.set(i,o),rc.set(a,o)}let s=Object.create(e);return o.forEach(a=>{s[a]=n[a]}),s}}return n}function E7(t,n,e){return n===0||e[n-1]<=t}var S7=["connection","include","skip","client","rest","export","nonreactive","stream"],fu=En,hu=Object.assign(function(t,n,e){if(n&&e&&e.connection&&e.connection.key){if(e.connection.filter&&e.connection.filter.length>0){let i=e.connection.filter?e.connection.filter:[];i.sort();let o={};i.forEach(a=>{o[a]=n[a]});let s=fu(o);if(s!=="{}")return`${e.connection.key}(${s})`}return e.connection.key}let r=t;if(n){let i=fu(n);i!=="{}"&&(r+=`(${i})`)}return e&&Object.keys(e).forEach(i=>{S7.indexOf(i)===-1&&(e[i]&&Object.keys(e[i]).length?r+=`@${i}(${fu(e[i])})`:r+=`@${i}`)}),r},{setStringify(t){let n=fu;return fu=t,n}});function Io(t){return!!t.errors?.length}function Gi(t,n,e){let r=new Set(t),i=r.size;return on(n,{Directive(o){if(r.delete(o.name.value)&&(!e||!r.size))return Eo}}),e?!r.size:r.sizer.name.value==="always"&&r.value.kind==="BooleanValue"&&r.value.value===!0),n))return Eo}}}),n}var Tt=Array.isArray;function v_(t){return Ct(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function qi(t){return t.kind==="Field"}function ya(t){return Array.isArray(t)&&t.length>0}function Qi(t){return{__ref:String(t)}}function QM(t){let n=new Set([t]);return n.forEach(e=>{Ct(e)&&I7(e)===e&&Object.getOwnPropertyNames(e).forEach(r=>{Ct(e[r])&&n.add(e[r])})}),t}function I7(t){if(!1)try{Object.freeze(t)}catch(n){if(n instanceof TypeError)return null;throw n}return t}function fs(t){return!1,t}function __(t){let n=t[0]||{},e=t.length;if(e>1){let r=new or;for(let i=1;i{}),t}function w_(t,n){Kn(n);let e=KM(""),r=KM(""),i=v=>{for(let w=0,D;w=0;--v)n.definitions[v].kind===Q.OPERATION_DEFINITION&&++o;let s=D7(t),a=v=>ya(v)&&v.map(s).some(w=>w&&w.remove),l=new Map,c=!1,d={enter(v){if(a(v.directives))return c=!0,null}},u=on(n,{Field:d,InlineFragment:d,VariableDefinition:{enter(){return!1}},Variable:{enter(v,w,D,P,B){let Y=i(B);Y&&Y.variables.add(v.name.value)}},FragmentSpread:{enter(v,w,D,P,B){if(a(v.directives))return c=!0,null;let Y=i(B);Y&&Y.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter(v,w,D,P){l.set(JSON.stringify(P),v)},leave(v,w,D,P){let B=l.get(JSON.stringify(P));if(v===B)return v;if(o>0&&v.selectionSet.selections.every(Y=>Y.kind===Q.FIELD&&Y.name.value==="__typename"))return r(v.name.value).removed=!0,c=!0,null}},Directive:{leave(v){if(s(v))return c=!0,null}}});if(!c)return n;let p=v=>(v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(w=>{p(r(w)).transitiveVars.forEach(D=>{v.transitiveVars.add(D)})})),v),f=new Set;u.definitions.forEach(v=>{v.kind===Q.OPERATION_DEFINITION?p(e(v.name&&v.name.value)).fragmentSpreads.forEach(w=>{f.add(w)}):v.kind===Q.FRAGMENT_DEFINITION&&o===0&&!r(v.name.value).removed&&f.add(v.name.value)}),f.forEach(v=>{p(r(v)).fragmentSpreads.forEach(w=>{f.add(w)})});let y=v=>!!(!f.has(v)||r(v).removed),b={enter(v){if(y(v.name.value))return null}};return k7(on(u,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave(v){if(v.variableDefinitions){let w=p(e(v.name&&v.name.value)).transitiveVars;if(w.sizew.has(D.variable.name.value))})}}}}))}function KM(t){let n=new Map;return function(r=t){let i=n.get(r);return i||n.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function D7(t){let n=new Map,e=new Map;return t.forEach(r=>{r&&(r.name?n.set(r.name,r):r.test&&e.set(r.test,r))}),r=>{let i=n.get(r.name.value);return!i&&e.size&&e.forEach((o,s)=>{s(r)&&(i=o)}),i}}function YM(t,n){return!t||t.selectionSet.selections.every(e=>e.kind===Q.FRAGMENT_SPREAD&&YM(n[e.name.value],n))}function k7(t){return YM(Pn(t)||du(t),ui(pi(t)))?null:t}function C_(t){return on(t,{FragmentSpread(n){if(!n.directives?.some(({name:e})=>e.value==="unmask"))return null}})}function gr(t){return t.alias?t.alias.value:t.name.value}function Do({directives:t},n){return!t||!t.length?!0:O7(t).every(({directive:e,ifArgument:r})=>{let i=!1;return r.value.kind==="Variable"?(i=n&&n[r.value.name.value],W(i!==void 0,15,e.name.value)):i=r.value.value,e.name.value==="skip"?!i:i})}function M7({name:{value:t}}){return t==="skip"||t==="include"}function O7(t){let n=[];return t&&t.length&&t.forEach(e=>{if(!M7(e))return;let r=e.arguments,i=e.name.value;W(r&&r.length===1,16,i);let o=r[0];W(o.name&&o.name.value==="if",17,i);let s=o.value;W(s&&(s.kind==="Variable"||s.kind==="BooleanValue"),18,i),n.push({directive:e,ifArgument:o})}),n}function x_(t,n){let e=null;t.directives&&(e={},t.directives.forEach(i=>{e[i.name.value]={},i.arguments&&i.arguments.forEach(({name:o,value:s})=>So(e[i.name.value],o,s,n))}));let r=null;return t.arguments&&t.arguments.length&&(r={},t.arguments.forEach(({name:i,value:o})=>So(r,i,o,n))),hu(t.name.value,r,e)}function hs(t){let n={data:t.data};return t.error&&(n.error=t.error),n}function ic(t,n=()=>{}){return e=>new pe(r=>{let i=n();return e.subscribe({next(o){let s;try{s=t(o,i)}catch(a){r.error(a)}s!==void 0&&r.next(s)},error(o){r.error(o)},complete(){r.complete()}})})}var{toString:ZM,hasOwnProperty:R7}=Object.prototype,JM=Function.prototype.toString,T_=new Map;function dt(t,n){try{return E_(t,n)}finally{T_.clear()}}function E_(t,n){if(t===n)return!0;let e=ZM.call(t),r=ZM.call(n);if(e!==r)return!1;switch(e){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":{if(eO(t,n))return!0;let i=XM(t),o=XM(n),s=i.length;if(s!==o.length)return!1;for(let a=0;a=0&&t.indexOf(n,e)===e}function eO(t,n){let e=T_.get(t);if(e){if(e.has(n))return!0}else T_.set(t,e=new Set);return e.add(n),!1}function mu(t,s,l,o){var a=s,{data:n}=a,e=Et(a,["data"]);var c=l,{data:r}=c,i=Et(c,["data"]);return dt(e,i)&&pm(ps(t).selectionSet,n,r,{fragmentMap:ui(pi(t)),variables:o})}function pm(t,n,e,r){if(n===e)return!0;let i=new Set;return t.selections.every(o=>{if(i.has(o)||(i.add(o),!Do(o,r.variables))||tO(o))return!0;if(qi(o)){let s=gr(o),a=n&&n[s],l=e&&e[s],c=o.selectionSet;if(!c)return dt(a,l);let d=Array.isArray(a),u=Array.isArray(l);if(d!==u)return!1;if(d&&u){let p=a.length;if(l.length!==p)return!1;for(let f=0;fi(t.getCurrentResult())})}var gu=dm(function(n,e,r){return L7(n,r)},{max:1,makeCacheKey:t=>t.slice(0,2)});var yu=Symbol.for("apollo.result.extensions"),yr=Symbol.for("apollo.result.streamInfo"),S_=Symbol.for("apollo.observableQuery.variablesUnknown");var An=null,nO={},B7=1,V7=()=>class{constructor(){this.id=["slot",B7++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let n=An;n;n=n.parent)if(this.id in n.slots){let e=n.slots[this.id];if(e===nO)break;return n!==An&&(An.slots[this.id]=e),!0}return An&&(An.slots[this.id]=nO),!1}getValue(){if(this.hasValue())return An.slots[this.id]}withValue(n,e,r,i){let o={__proto__:null,[this.id]:n},s=An;An={parent:s,slots:o};try{return e.apply(i,r)}finally{An=s}}static bind(n){let e=An;return function(){let r=An;try{return An=e,n.apply(this,arguments)}finally{An=r}}}static noContext(n,e,r){if(An){let i=An;try{return An=null,n.apply(r,e)}finally{An=i}}else return n.apply(r,e)}};function rO(t){try{return t()}catch{}}var I_="@wry/context:Slot",j7=rO(()=>globalThis)||rO(()=>global)||Object.create(null),iO=j7,ko=iO[I_]||Array[I_]||(function(t){try{Object.defineProperty(iO,I_,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}})(V7());var{bind:oO,noContext:sO}=ko;var va=new ko;var{hasOwnProperty:aO}=Object.prototype,bu=Array.from||function(t){let n=[];return t.forEach(e=>n.push(e)),n};function oc(t){let{unsubscribe:n}=t;typeof n=="function"&&(t.unsubscribe=void 0,n())}var vu=[],$7=100;function sc(t,n){if(!t)throw new Error(n||"assertion failure")}function cO(t,n){let e=t.length;return e>0&&e===n.length&&t[e-1]===n[e-1]}function dO(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function uO(t){return t.slice(0)}var pO=(()=>{class t{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++t.count}peek(){if(this.value.length===1&&!ms(this))return lO(this),this.value[0]}recompute(e){return sc(!this.recomputing,"already recomputing"),lO(this),ms(this)?U7(this,e):dO(this.value)}setDirty(){this.dirty||(this.dirty=!0,fO(this),oc(this))}dispose(){this.setDirty(),bO(this),D_(this,(e,r)=>{e.setDirty(),vO(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=vu.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(bu(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),vu.push(this.deps),this.deps=null)}}return t.count=0,t})();function lO(t){let n=va.getValue();if(n)return t.parents.add(n),n.childValues.has(t)||n.childValues.set(t,[]),ms(t)?mO(n,t):gO(n,t),n}function U7(t,n){return bO(t),va.withValue(t,W7,[t,n]),q7(t,n)&&G7(t),dO(t.value)}function W7(t,n){t.recomputing=!0;let{normalizeResult:e}=t,r;e&&t.value.length===1&&(r=uO(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,n),e&&r&&!cO(r,t.value))try{t.value[0]=e(t.value[0],r[0])}catch{}}catch(i){t.value[1]=i}t.recomputing=!1}function ms(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function G7(t){t.dirty=!1,!ms(t)&&hO(t)}function fO(t){D_(t,mO)}function hO(t){D_(t,gO)}function D_(t,n){let e=t.parents.size;if(e){let r=bu(t.parents);for(let i=0;i0&&t.childValues.forEach((n,e)=>{vO(t,e)}),t.forgetDeps(),sc(t.dirtyChildren===null)}function vO(t,n){n.parents.delete(t),t.childValues.delete(n),yO(t,n)}function q7(t,n){if(typeof t.subscribe=="function")try{oc(t),t.unsubscribe=t.subscribe.apply(null,n)}catch{return t.setDirty(),!1}return!0}var Q7={setDirty:!0,dispose:!0,forget:!0};function _u(t){let n=new Map,e=t&&t.subscribe;function r(i){let o=va.getValue();if(o){let s=n.get(i);s||n.set(i,s=new Set),o.dependOn(s),typeof e=="function"&&(oc(s),s.unsubscribe=e(i))}}return r.dirty=function(o,s){let a=n.get(o);if(a){let l=s&&aO.call(Q7,s)?s:"setDirty";bu(a).forEach(c=>c[l]()),n.delete(o),oc(a)}},r}var _O;function M_(...t){return(_O||(_O=new Rn(typeof WeakMap=="function"))).lookupArray(t)}var k_=new Set;function Mo(t,{max:n=Math.pow(2,16),keyArgs:e,makeCacheKey:r=M_,normalizeResult:i,subscribe:o,cache:s=ds}=Object.create(null)){let a=typeof s=="function"?new s(n,p=>p.dispose()):s,l=function(){let p=r.apply(null,e?e.apply(null,arguments):arguments);if(p===void 0)return t.apply(null,arguments);let f=a.get(p);f||(a.set(p,f=new pO(t)),f.normalizeResult=i,f.subscribe=o,f.forget=()=>a.delete(p));let y=f.recompute(Array.prototype.slice.call(arguments));return a.set(p,f),k_.add(a),va.hasValue()||(k_.forEach(b=>b.clean()),k_.clear()),y};Object.defineProperty(l,"size",{get:()=>a.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:n,keyArgs:e,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:a});function c(p){let f=p&&a.get(p);f&&f.setDirty()}l.dirtyKey=c,l.dirty=function(){c(r.apply(null,arguments))};function d(p){let f=p&&a.get(p);if(f)return f.peek()}l.peekKey=d,l.peek=function(){return d(r.apply(null,arguments))};function u(p){return p?a.delete(p):!1}return l.forgetKey=u,l.forget=function(){return u(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=e?function(){return r.apply(null,e.apply(null,arguments))}:r,Object.freeze(l)}function O_(...t){return M_.bind(null,...t)}function R_(){throw new Error("only supported in development mode")}var wO=R_,CO=R_,xO=R_;var wu=class{isIncrementalResult(n){return!1}prepareRequest(n){return W(!Gi(["defer","stream"],n.query),67),n}extractErrors(){}startRequest=void 0};function P_(t,{client:n}){let e={query:t.query,variables:t.variables||{},extensions:t.extensions||{},operationName:sn(t.query),operationType:Pn(t.query).operation},r=_({},t.context),i=s=>{typeof s=="function"?r=_(_({},r),s(o())):r=_(_({},r),s)},o=()=>Object.freeze(_({},r));return Object.defineProperty(e,"setContext",{enumerable:!1,value:i}),Object.defineProperty(e,"getContext",{enumerable:!1,value:o}),Object.defineProperty(e,"client",{enumerable:!1,value:n}),e}var jn=class t{static empty(){return new t(()=>Pt)}static from(n){if(n.length===0)return t.empty();let[e,...r]=n;return e.concat(...r)}static split(n,e,r=new t((i,o)=>o(i))){let i=new t((o,s)=>{let a=n(o);return!1,a?e.request(o,s):r.request(o,s)});return Object.assign(i,{left:e,right:r})}static execute(n,e,r){return n.request(P_(e,r),()=>(!1,Pt))}static concat(...n){return t.from(n)}constructor(n){n&&(this.request=n)}split(n,e,r){return this.concat(t.split(n,e,r))}concat(...n){return n.length===0?this:n.reduce(this.combine.bind(this),this)}combine(n,e){let r=new t((i,o)=>n.request(i,s=>e.request(s,o)));return Object.assign(r,{left:n,right:e})}request(n,e){throw Kt(65)}left;right};var fm=jn.split;var _a=jn.execute;function K7(t){return t}var Oo=class t{transform;cached;resultCache=new WeakSet;getCacheKey(n){return[n]}static identity(){return new t(K7,{cache:!1})}static split(n,e,r=t.identity()){return Object.assign(new t(i=>(n(i)?e:r).transformDocument(i),{cache:!1}),{left:e,right:r})}constructor(n,e={}){this.transform=n,e.getCacheKey&&(this.getCacheKey=e.getCacheKey),this.cached=e.cache!==!1,this.resetCache()}resetCache(){if(this.cached){let n=new Rn;this.performWork=Mo(t.prototype.performWork.bind(this),{makeCacheKey:e=>{let r=this.getCacheKey(e);if(r)return W(Array.isArray(r),20),n.lookupArray(r)},max:gn["documentTransform.cache"],cache:Wi})}}performWork(n){return Kn(n),this.transform(n)}transformDocument(n){if(this.resultCache.has(n))return n;let e=this.performWork(n);return this.resultCache.add(e),e}concat(n){return Object.assign(new t(e=>n.transformDocument(this.transformDocument(e)),{cache:!1}),{left:this,right:n})}left;right};var Cu,Ki=Object.assign(t=>{let n=Cu.get(t);return n||(n=tc(t),Cu.set(t,n)),n},{reset(){Cu=new ma(gn.print||2e3)}});Ki.reset();!1;function Je(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}var TO={kind:Q.FIELD,name:{kind:Q.NAME,value:"__typename"}},wa=Object.assign(function(t){return on(t,{SelectionSet:{enter(n,e,r){if(r&&r.kind===Q.OPERATION_DEFINITION)return;let{selections:i}=n;if(!i||i.some(a=>a.kind===Q.FIELD&&(a.name.value==="__typename"||a.name.value.lastIndexOf("__",0)===0)))return;let s=r;if(!(s.kind===Q.FIELD&&s.directives&&s.directives.some(a=>a.name.value==="export")))return A(_({},n),{selections:[...i,TO]})}}})},{added(t){return t===TO}});function xu(t){return t===7||t===8}function Ca(t){return!xu(t)}var ac=class{assumeImmutableResults=!1;lookupFragment(n){return null}batch(n){let e=typeof n.optimistic=="string"?n.optimistic:n.optimistic===!1?null:void 0,r;return this.performTransaction(()=>r=n.update(this),e),r}recordOptimisticTransaction(n,e){this.performTransaction(n,e)}transformDocument(n){return n}transformForLink(n){return n}identify(n){}gc(){return[]}modify(n){return!1}readQuery(n,e=!!n.optimistic){return this.read(A(_({},n),{rootId:n.id||"ROOT_QUERY",optimistic:e}))}fragmentWatches=new Rn(!0);watchFragment(n){let{fragment:e,fragmentName:r,from:i}=n,o=this.getFragmentDoc(e,r),a=(Array.isArray(i)?i:[i]).map(f=>{let y=f==null?f:this.toCacheId(f);if(!1){let b=r||du(e).name.value;y===void 0&&!1&&W.warn(118,b)}return y});if(!Array.isArray(i)){let f=this.watchSingleFragment(a[0],o,n);return i===null?f:gu(f,Symbol.for("apollo.transform.individualResult"),y=>A(_({},y),{data:y.data??{}}))}let l;function c(f){let y=f.reduce((b,v,w)=>(b.data.push(v.data),b.complete&&=v.complete,b.dataState=b.complete?"complete":"partial",v.missing&&(b.missing||={},b.missing[w]=v.missing),b),{data:[],dataState:"complete",complete:!0});return dt(l,y)||(l=y),l}if(a.length===0)return Z7;let d=!1,u=a.map(f=>this.watchSingleFragment(f,o,n)),p=g_(u).pipe(be(c),St({subscribe:()=>d=!0,unsubscribe:()=>d=!1}),Ps({bufferSize:1,refCount:!0}));return Object.assign(p,{getCurrentResult:()=>{if(d&&l)return l;let f=u.map(y=>y.getCurrentResult());return c(f)}})}onAfterBroadcast=n=>n();watchSingleFragment(n,e,r){if(n===null)return Y7;let{optimistic:i=!0,variables:o}=r,s=[e,En({id:n,optimistic:i,variables:o})],a=this.fragmentWatches.lookupArray(s);if(!a.observable){let u=function(f){let y=f.result;return(!d||!mu(e,{data:d.data},{data:y},r.variables))&&(d={data:y,dataState:f.complete?"complete":"partial",complete:f.complete},f.missing&&(d.missing=f.missing.missing)),d};var l=u;let c=!1,d,p=new pe(f=>{c=!0;let y=this.watch({variables:o,returnPartialData:!0,id:n,query:e,optimistic:i,immediate:!0,callback:b=>{p.dirty=!0,this.onAfterBroadcast(()=>{f.next(u(b)),p.dirty=!1})}});return()=>{c=!1,y(),this.fragmentWatches.removeArray(s)}}).pipe(Fc(),xi({connector:()=>new oo(1),resetOnRefCountZero:()=>Jg(0)}));a.observable=Object.assign(p,{dirty:!1,getCurrentResult:()=>c&&d?d:u(this.diff({id:n,query:e,returnPartialData:!0,optimistic:i,variables:o}))})}return a.observable}getFragmentDoc=Mo(y_,{max:gn["cache.fragmentQueryDocuments"]||1e3,cache:Wi,makeCacheKey:O_(this)});readFragment(n,e=!!n.optimistic){let r=n.from!==void 0?this.toCacheId(n.from):n.id;return this.read(A(_({},n),{query:this.getFragmentDoc(n.fragment,n.fragmentName),rootId:r,optimistic:e}))}writeQuery(i){var o=i,{id:n,data:e}=o,r=Et(o,["id","data"]);return this.write(Object.assign(r,{dataId:n||"ROOT_QUERY",result:e}))}writeFragment(o){var s=o,{data:n,fragment:e,fragmentName:r}=s,i=Et(s,["data","fragment","fragmentName"]);let a=i.from!==void 0?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(e,r),dataId:a,result:n}))}updateQuery(n,e){return this.batch({update(r){let i=r.readQuery(n),o=e(i);return o==null?i:(r.writeQuery(A(_({},n),{data:o})),o)}})}updateFragment(n,e){return this.batch({update(r){let i=r.readFragment(n),o=e(i);return o==null?i:(r.writeFragment(A(_({},n),{data:o})),o)}})}toCacheId(n){return typeof n=="string"?n:this.identify(n)}};!1;var EO=Object.freeze({data:null,dataState:"complete",complete:!0}),Y7=Object.assign(new pe(t=>{t.next(EO)}),{dirty:!1,getCurrentResult:()=>EO}),SO=Object.freeze({data:[],dataState:"complete",complete:!0}),Z7=Object.assign(new pe(t=>{t.next(SO)}),{getCurrentResult:()=>SO});var Tu=class t extends Error{message;path;query;variables;constructor(n,e,r,i){if(super(n),this.message=n,this.path=e,this.query=r,this.variables=i,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let o=this.path.length-1;o>=0;--o)this.missing={[this.path[o]]:this.missing}}else this.missing=this.path;this.__proto__=t.prototype}missing};var{hasOwnProperty:Yt}=Object.prototype;function mm({__typename:t,id:n,_id:e},r){if(typeof t=="string"&&(r&&(r.keyObject=n!=null?{id:n}:e!=null?{_id:e}:void 0),n==null&&e!=null&&(n=e),n!=null))return`${t}:${typeof n=="number"||typeof n=="string"?n:JSON.stringify(n)}`}var J7={dataIdFromObject:mm,resultCaching:!0};function IO(t){return Lr(J7,t)}function DO(t,n){return Je(n)?t.get(n.__ref,"__typename"):n&&n.__typename}var A_=/^[_a-z][_0-9a-z]*/i;function fi(t){let n=t.match(A_);return n?n[0]:t}function hm(t,n,e){return Ct(n)?Tt(n)?n.every(r=>hm(t,r,e)):t.selections.every(r=>{if(qi(r)&&Do(r,e)){let i=gr(r);return Yt.call(n,i)&&(!r.selectionSet||hm(r.selectionSet,n[i],e))}return!0}):!1}function gs(t){return Ct(t)&&!Je(t)&&!Tt(t)}function kO(){return new or}function gm(t,n){let e=ui(pi(t));return{fragmentMap:e,lookupFragment(r){let i=e[r];return!i&&n&&(i=n.lookup(r)),i||null}}}var ym={},N_=()=>ym,MO={},xa=class{policies;group;data={};constructor(n,e){this.policies=n,this.group=e}toObject(){return _({},this.data)}has(n){return this.lookup(n,!0)!==void 0}get(n,e){if(this.group.depend(n,e),Yt.call(this.data,n)){let r=this.data[n];if(r&&Yt.call(r,e))return r[e]}if(e==="__typename"&&Yt.call(this.policies.rootTypenamesById,n))return this.policies.rootTypenamesById[n];if(this instanceof Yi)return this.parent.get(n,e)}lookup(n,e){if(e&&this.group.depend(n,"__exists"),Yt.call(this.data,n))return this.data[n];if(this instanceof Yi)return this.parent.lookup(n,e);if(this.policies.rootTypenamesById[n])return{}}merge(n,e){let r;Je(n)&&(n=n.__ref),Je(e)&&(e=e.__ref);let i=typeof n=="string"?this.lookup(r=n):n,o=typeof e=="string"?this.lookup(r=e):e;if(!o)return;W(typeof r=="string",104);let s=new or({reconciler:X7}).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){let a={};i||(a.__exists=1),Object.keys(o).forEach(l=>{if(!i||i[l]!==s[l]){a[l]=1;let c=fi(l);c!==l&&!this.policies.hasKeyArgs(s.__typename,c)&&(a[c]=1),s[l]===void 0&&!(this instanceof Yi)&&delete s[l]}}),a.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete a.__typename,Object.keys(a).forEach(l=>this.group.dirty(r,l))}}modify(n,e,r){let i=this.lookup(n);if(i){let o={},s=!1,a=!0,l={DELETE:ym,INVALIDATE:MO,isReference:Je,toReference:this.toReference,canRead:this.canRead,readField:(c,d)=>this.policies.readField(typeof c=="string"?{fieldName:c,from:d||Qi(n)}:c,{store:this})};if(Object.keys(i).forEach(c=>{let d=fi(c),u=i[c];if(u===void 0)return;let p=typeof e=="function"?e:e[c]||(r?void 0:e[d]);if(p){let f=p===N_?ym:p(fs(u),A(_({},l),{fieldName:d,storeFieldName:c,storage:this.getStorage(n,c)}));if(f===MO)this.group.dirty(n,c);else if(f===ym&&(f=void 0),f!==u&&(o[c]=f,s=!0,u=f,!1)){let y=b=>{if(this.lookup(b.__ref)===void 0)return!1,!0};if(Je(f))y(f);else if(Array.isArray(f)){let b=!1,v;for(let w of f){if(Je(w)){if(b=!0,y(w))break}else if(typeof w=="object"&&w){let[D]=this.policies.identify(w);D&&(v=w)}if(b&&v!==void 0){!1;break}}}}}u!==void 0&&(a=!1)}),s)return this.merge(n,o),a&&(this instanceof Yi?this.data[n]=void 0:delete this.data[n],this.group.dirty(n,"__exists")),!0}return!1}delete(n,e,r){let i=this.lookup(n);if(i){let o=this.getFieldValue(i,"__typename"),s=e&&r?this.policies.getStoreFieldName({typename:o,fieldName:e,args:r}):e;return this.modify(n,s?{[s]:N_}:N_,!!r)}return!1}evict(n,e){let r=!1;return n.id&&(Yt.call(this.data,n.id)&&(r=this.delete(n.id,n.fieldName,n.args)),this instanceof Yi&&this!==e&&(r=this.parent.evict(n,e)||r),(n.fieldName||r)&&this.group.dirty(n.id,n.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let n=this.toObject(),e=[];return this.getRootIdSet().forEach(r=>{Yt.call(this.policies.rootTypenamesById,r)||e.push(r)}),e.length&&(n.__META={extraRootIds:e.sort()}),n}replace(n){if(Object.keys(this.data).forEach(r=>{n&&Yt.call(n,r)||this.delete(r)}),n){let e=n,{__META:r}=e,i=Et(e,["__META"]);Object.keys(i).forEach(o=>{this.merge(o,i[o])}),r&&r.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(n){return this.rootIds[n]=(this.rootIds[n]||0)+1}release(n){if(this.rootIds[n]>0){let e=--this.rootIds[n];return e||delete this.rootIds[n],e}return 0}getRootIdSet(n=new Set){return Object.keys(this.rootIds).forEach(n.add,n),this instanceof Yi?this.parent.getRootIdSet(n):Object.keys(this.policies.rootTypenamesById).forEach(n.add,n),n}gc(){let n=this.getRootIdSet(),e=this.toObject();n.forEach(i=>{Yt.call(e,i)&&(Object.keys(this.findChildRefIds(i)).forEach(n.add,n),delete e[i])});let r=Object.keys(e);if(r.length){let i=this;for(;i instanceof Yi;)i=i.parent;r.forEach(o=>i.delete(o))}return r}refs={};findChildRefIds(n){if(!Yt.call(this.refs,n)){let e=this.refs[n]={},r=this.data[n];if(!r)return e;let i=new Set([r]);i.forEach(o=>{Je(o)&&(e[o.__ref]=!0),Ct(o)&&Object.keys(o).forEach(s=>{let a=o[s];Ct(a)&&i.add(a)})})}return this.refs[n]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(n,e)=>fs(Je(n)?this.get(n.__ref,e):n&&n[e]);canRead=n=>Je(n)?this.has(n.__ref):typeof n=="object";toReference=(n,e)=>{if(typeof n=="string")return Qi(n);if(Je(n))return n;let[r]=this.policies.identify(n);if(r){let i=Qi(r);return e&&this.merge(r,n),i}};get supportsResultCaching(){return this.group.caching}},bm=class{caching;parent;d=null;keyMaker;constructor(n,e=null){this.caching=n,this.parent=e,this.resetCaching()}resetCaching(){this.d=this.caching?_u():null,this.keyMaker=new Rn}depend(n,e){if(this.d){this.d(F_(n,e));let r=fi(e);r!==e&&this.d(F_(n,r)),this.parent&&this.parent.depend(n,e)}}dirty(n,e){this.d&&this.d.dirty(F_(n,e),e==="__exists"?"forget":"setDirty")}};function F_(t,n){return n+"#"+t}function V_(t,n){Ta(t)&&t.group.depend(n,"__exists")}var L_=class extends xa{constructor({policies:n,resultCaching:e=!0,seed:r}){super(n,new bm(e)),r&&this.replace(r)}stump=new B_(this);addLayer(n,e){return this.stump.addLayer(n,e)}removeLayer(){return this}storageTrie=new Rn;getStorage(){return this.storageTrie.lookupArray(arguments)}};xa.Root=L_;var Yi=class t extends xa{id;parent;replay;group;constructor(n,e,r,i){super(e.policies,i),this.id=n,this.parent=e,this.replay=r,this.group=i,r(this)}addLayer(n,e){return new t(n,this,e,this.group)}removeLayer(n){let e=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(r=>{let i=this.data[r],o=e.lookup(r);o?i?i!==o&&Object.keys(i).forEach(s=>{dt(i[s],o[s])||this.group.dirty(r,s)}):(this.group.dirty(r,"__exists"),Object.keys(o).forEach(s=>{this.group.dirty(r,s)})):this.delete(r)}),e):e===this.parent?this:e.addLayer(this.id,this.replay)}toObject(){return _(_({},this.parent.toObject()),this.data)}findChildRefIds(n){let e=this.parent.findChildRefIds(n);return Yt.call(this.data,n)?_(_({},e),super.findChildRefIds(n)):e}getStorage(...n){let e=this.parent;for(;e.parent;)e=e.parent;return e.getStorage(...n)}},B_=class extends Yi{constructor(n){super("EntityStore.Stump",n,()=>{},new bm(n.group.caching,n.group))}removeLayer(){return this}merge(n,e){return this.parent.merge(n,e)}};function X7(t,n,e){let r=t[e],i=n[e];return dt(r,i)?r:i}function Ta(t){return!!(t&&t.supportsResultCaching)}var lc=new ko;function OO(t){let n=t.directives?.find(({name:r})=>r.value==="unmask");if(!n)return"mask";let e=n.arguments?.find(({name:r})=>r.value==="mode");return!1,e&&"value"in e.value&&e.value.value==="migrate"?"migrate":"unmask"}function vm(t,n,e){return lc.withValue(!0,()=>{let r=Eu(t,n,e,!1);return Object.isFrozen(t)&&fs(r),r})}function e9(t,n){if(n.has(t))return n.get(t);let e=Array.isArray(t)?[]:{};return n.set(t,e),e}function Eu(t,n,e,r,i){let{knownChanged:o}=e,s=e9(t,e.mutableTargets);if(Array.isArray(t)){for(let[a,l]of Array.from(t.entries())){if(l===null){s[a]=null;continue}let c=Eu(l,n,e,r,void 0);o.has(c)&&o.add(s),s[a]=c}return o.has(s)?s:t}for(let a of n.selections){let l;if(r&&o.add(s),a.kind===Q.FIELD){let c=gr(a),d=a.selectionSet;if(l=s[c]||t[c],l===void 0)continue;if(d&&l!==null){let u=Eu(t[c],d,e,r,void 0);o.has(u)&&(l=u)}s[c]=l,!1}if(a.kind===Q.INLINE_FRAGMENT&&(!a.typeCondition||e.cache.fragmentMatches(a,t.__typename))&&(l=Eu(t,a.selectionSet,e,r,i)),a.kind===Q.FRAGMENT_SPREAD){let c=a.name.value,d=e.fragmentMap[c]||(e.fragmentMap[c]=e.cache.lookupFragment(c));W(d,39,c);let u=OO(a);u!=="mask"&&(l=Eu(t,d.selectionSet,e,u==="migrate",i))}o.has(l)&&o.add(s)}return"__typename"in t&&!("__typename"in s)&&(s.__typename=t.__typename),Object.keys(s).length!==Object.keys(t).length&&o.add(s),o.has(s)?s:t}function t9(t,n,e,r,i){let o=()=>(lc.getValue()||(!1,o=()=>n),n);return{get(){return o()},set(s){o=()=>s},enumerable:!0,configurable:!0}}function j_(t,n,e,r){let i=n.definitions.filter(s=>s.kind===Q.FRAGMENT_DEFINITION);typeof r>"u"&&(W(i.length===1,41,i.length),r=i[0].name.value);let o=i.find(s=>s.name.value===r);return W(!!o,42,r),t==null||dt(t,{})?t:vm(t,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:ui(pi(n)),cache:e,mutableTargets:new WeakMap,knownChanged:new WeakSet})}function z_(t,n,e){let r=Pn(n);return W(r,43),t==null?t:vm(t,r.selectionSet,{operationType:r.operation,operationName:r.name?.value,fragmentMap:ui(pi(n)),cache:e,mutableTargets:new WeakMap,knownChanged:new WeakSet})}var RO={};function H_(t){let n=JSON.stringify(t);return RO[n]||(RO[n]={})}function $_(t){let n=H_(t);return n.keyFieldsFn||(n.keyFieldsFn=(e,r)=>{let i=(s,a)=>r.readField(a,s),o=r.keyObject=W_(t,s=>{let a=cc(r.storeObject,s,i);return a===void 0&&e!==r.storeObject&&Yt.call(e,s[0])&&(a=cc(e,s,AO)),W(a!==void 0,107,s.join("."),e),a});return`${r.typename}:${JSON.stringify(o)}`})}function U_(t){let n=H_(t);return n.keyArgsFn||(n.keyArgsFn=(e,{field:r,variables:i,fieldName:o})=>{let s=W_(t,l=>{let c=l[0],d=c.charAt(0);if(d==="@"){if(r&&ya(r.directives)){let u=c.slice(1),p=r.directives.find(y=>y.name.value===u),f=p&&ha(p,i);return f&&cc(f,l.slice(1))}return}if(d==="$"){let u=c.slice(1);if(i&&Yt.call(i,u)){let p=l.slice(0);return p[0]=u,cc(i,p)}return}if(e)return cc(e,l)}),a=JSON.stringify(s);return(e||a!=="{}")&&(o+=":"+a),o})}function W_(t,n){let e=new or;return PO(t).reduce((r,i)=>{let o=n(i);if(o!==void 0){for(let s=i.length-1;s>=0;--s)o={[i[s]]:o};r=e.merge(r,o)}return r},{})}function PO(t){let n=H_(t);if(!n.paths){let e=n.paths=[],r=[];t.forEach((i,o)=>{Tt(i)?(PO(i).forEach(s=>e.push(r.concat(s))),r.length=0):(r.push(i),Tt(t[o+1])||(e.push(r.slice(0)),r.length=0))})}return n.paths}function AO(t,n){return t[n]}function cc(t,n,e){return e=e||AO,NO(n.reduce(function r(i,o){return Tt(i)?i.map(s=>r(s,o)):i&&e(i,o)},t))}function NO(t){return Ct(t)?Tt(t)?t.map(NO):W_(Object.keys(t).sort(),n=>cc(t,n)):t}var G_=new ko,FO=new WeakMap;function Su(t){let n=FO.get(t);return n||FO.set(t,n={vars:new Set,dep:_u()}),n}function q_(t){Su(t).vars.forEach(n=>n.forgetCache(t))}function LO(t){Su(t).vars.forEach(n=>n.attachCache(t))}function Q_(t){let n=new Set,e=new Set,r=function(o){if(arguments.length>0){if(t!==o){t=o,n.forEach(a=>{Su(a).dep.dirty(r),n9(a)});let s=Array.from(e);e.clear(),s.forEach(a=>a(t))}}else{let s=G_.getValue();s&&(i(s),Su(s).dep(r))}return t};r.onNextChange=o=>(e.add(o),()=>{e.delete(o)});let i=r.attachCache=o=>(n.add(o),Su(o).vars.add(r),r);return r.forgetCache=o=>n.delete(o),r}function n9(t){t.broadcastWatches&&t.broadcastWatches()}function K_(t){return t.args!==void 0?t.args:t.field?ha(t.field,t.variables):null}var r9=()=>{},BO=(t,n)=>n.fieldName,VO=(t,n,{mergeObjects:e})=>e(t,n),jO=(t,n)=>n,zO=(t,n,{streamFieldInfo:e,existingData:r})=>{if(!t&&!r)return n;let i=[],o=t??r,s=e?.isLastChunk?n.length:Math.max(o.length,n.length);for(let a=0;a{let u=wm(d,o);return r.readField(u,{store:r.cache.data,variables:u.variables})})}),a,l=i&&this.getTypePolicy(i),c=l&&l.keyFn||this.config.dataIdFromObject;return lc.withValue(!0,()=>{for(;c;){let d=c(_(_({},n),o),s);if(Tt(d))c=$_(d);else{a=d;break}}}),a=a?String(a):void 0,s.keyObject?[a,s.keyObject]:[a]}addTypePolicies(n){Object.keys(n).forEach(e=>{let a=n[e],{queryType:r,mutationType:i,subscriptionType:o}=a,s=Et(a,["queryType","mutationType","subscriptionType"]);r&&this.setRootTypename("Query",e),i&&this.setRootTypename("Mutation",e),o&&this.setRootTypename("Subscription",e),Yt.call(this.toBeAdded,e)?this.toBeAdded[e].push(s):this.toBeAdded[e]=[s]})}updateTypePolicy(n,e,r){let i=this.getTypePolicy(n),{keyFields:o,fields:s}=e;function a(l,c){l.merge=typeof c=="function"?c:c===!0?VO:c===!1?jO:l.merge}a(i,e.merge),i.keyFn=o===!1?r9:Tt(o)?$_(o):typeof o=="function"?o:i.keyFn,s&&Object.keys(s).forEach(l=>{let c=r[l];(!c||c?.typename!==n)&&(c=r[l]={typename:n});let d=s[l];if(typeof d=="function")c.read=d;else{let{keyArgs:u,read:p,merge:f}=d;c.keyFn=u===!1?BO:Tt(u)?U_(u):typeof u=="function"?u:c.keyFn,typeof p=="function"&&(c.read=p),a(c,f)}c.read&&c.merge&&(c.keyFn=c.keyFn||BO)})}setRootTypename(n,e=n){let r="ROOT_"+n.toUpperCase(),i=this.rootTypenamesById[r];e!==i&&(W(!i||i===n,108,n),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[e]=r,this.rootTypenamesById[r]=e)}addPossibleTypes(n){this.usingPossibleTypes=!0,Object.keys(n).forEach(e=>{this.getSupertypeSet(e,!0),n[e].forEach(r=>{this.getSupertypeSet(r,!0).add(e);let i=r.match(A_);(!i||i[0]!==r)&&this.fuzzySubtypes.set(r,new RegExp(r))})})}getTypePolicy(n){if(!Yt.call(this.typePolicies,n)){let r=this.typePolicies[n]={};r.fields={};let i=this.supertypeMap.get(n);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(n,!0),this.fuzzySubtypes.forEach((o,s)=>{if(o.test(n)){let a=this.supertypeMap.get(s);a&&a.forEach(l=>i.add(l))}})),i&&i.size&&i.forEach(o=>{let l=this.getTypePolicy(o),{fields:s}=l,a=Et(l,["fields"]);Object.assign(r,a),Object.assign(r.fields,s)})}let e=this.toBeAdded[n];return e&&e.length&&e.splice(0).forEach(r=>{this.updateTypePolicy(n,r,this.typePolicies[n].fields)}),this.typePolicies[n]}getFieldPolicy(n,e){if(n)return this.getTypePolicy(n).fields[e]}getSupertypeSet(n,e){let r=this.supertypeMap.get(n);return!r&&e&&this.supertypeMap.set(n,r=new Set),r}fragmentMatches(n,e,r,i){if(!n.typeCondition)return!0;if(!e)return!1;let o=n.typeCondition.name.value;if(e===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o)){let s=this.getSupertypeSet(e,!0),a=[s],l=u=>{let p=this.getSupertypeSet(u,!1);p&&p.size&&a.indexOf(p)<0&&a.push(p)},c=!!(r&&this.fuzzySubtypes.size),d=!1;for(let u=0;u{let b=e.match(f);b&&b[0]===e&&l(y)}))}}return!1}hasKeyArgs(n,e){let r=this.getFieldPolicy(n,e);return!!(r&&r.keyFn)}getStoreFieldName(n){let{typename:e,fieldName:r}=n,i=this.getFieldPolicy(e,r),o,s=i&&i.keyFn;if(s&&e){let a={typename:e,fieldName:r,field:n.field||null,variables:n.variables},l=K_(n);for(;s;){let c=s(l,a);if(Tt(c))s=U_(c);else{o=c||r;break}}}return o===void 0&&(o=n.field?x_(n.field,n.variables):hu(r,K_(n))),o===!1?r:r===fi(o)?o:r+":"+o}readField(n,e){let r=n.from;if(!r||!(n.field||n.fieldName))return;if(n.typename===void 0){let d=e.store.getFieldValue(r,"__typename");d&&(n.typename=d)}let o=this.getStoreFieldName(n),s=fi(o),a=e.store.getFieldValue(r,o),l=this.getFieldPolicy(n.typename,s),c=l&&l.read;if(c){let d=HO(this,r,n,e,e.store.getStorage(Je(r)?r.__ref:r,o));return G_.withValue(this.cache,c,[a,d])}return a}getReadFunction(n,e){let r=this.getFieldPolicy(n,e);return r&&r.read}getMergeFunction(n,e,r){let i=this.getFieldPolicy(n,e),o=i&&i.merge;return!o&&r&&(i=this.getTypePolicy(r),o=i&&i.merge),o}runMergeFunction(n,e,{field:r,typename:i,merge:o,path:s},a,l){let c=n;if(o===VO)return $O(a.store)(n,e);if(o===jO)return e;a.overwrite&&(n=void 0);let d=a.extensions?.[yr]?.deref()?.peekArray(s);if(d){let{current:p,previous:f}=d;if(f&&dt(f.incoming,e)&&dt(f.streamFieldInfo,p))return f.result}let u=o(n,e,i9(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:a.variables,path:s},a,l||{},c));return d&&(d.previous={incoming:e,streamFieldInfo:d.current,result:u}),u}};function HO(t,n,e,r,i){let o=t.getStoreFieldName(e),s=fi(o),a=e.variables||r.variables,{toReference:l,canRead:c}=r.store;return{args:K_(e),field:e.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:Je,toReference:l,storage:i,cache:t.cache,canRead:c,readField(...d){return t.readField(wm(d,n,a),r)},mergeObjects:$O(r.store)}}function i9(t,n,e,r,i,o){var l;let s=A(_({},HO(t,n,e,r,i)),{extensions:r.extensions,existingData:o}),a=r.extensions;if(a&&yr in a){let c=a,{[l=yr]:d}=c,u=Et(c,[Zu(l)]),p=d?.deref()?.peekArray(e.path);p&&(s.streamFieldInfo=p.current),s.extensions=Object.keys(u).length===0?void 0:u}return s}function wm(t,n,e){let{0:r,1:i,length:o}=t,s;return typeof r=="string"?s={fieldName:r,from:o>1?i:n}:(s=_({},r),Yt.call(s,"from")||(s.from=n)),!1,s.variables===void 0&&(s.variables=e),s}function $O(t){return function(e,r){if(Tt(e)||Tt(r))throw Kt(111);if(Ct(e)&&Ct(r)){let i=t.getFieldValue(e,"__typename"),o=t.getFieldValue(r,"__typename");if(i&&o&&i!==o)return r;if(Je(e)&&gs(r))return t.merge(e.__ref,r),e;if(gs(e)&&Je(r))return t.merge(e,r.__ref),r;if(gs(e)&&gs(r))return _(_({},e),r)}return r}}function UO(t){return[t.selectionSet,t.objectOrReference,t.context]}var Cm=class{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(n){this.config=n,this.executeSelectionSet=Mo(e=>{let r=UO(e),i=this.executeSelectionSet.peek(...r);return i||(V_(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:gn["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:UO,makeCacheKey(e,r,i){if(Ta(i.store))return i.store.makeCacheKey(e,Je(r)?r.__ref:r,i.varString)}}),this.executeSubSelectedArray=Mo(e=>(V_(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:gn["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:r,context:i}){if(Ta(i.store))return i.store.makeCacheKey(e,r,i.varString)}})}diffQueryAgainstStore({store:n,query:e,rootId:r="ROOT_QUERY",variables:i,returnPartialData:o=!0}){let s=this.config.cache.policies;i=_(_({},ga(uu(e))),i);let a=Qi(r),l=this.executeSelectionSet({selectionSet:ps(e).selectionSet,objectOrReference:a,enclosingRef:a,context:_({store:n,query:e,policies:s,variables:i,varString:En(i)},gm(e,this.config.fragments))}),c;l.missing&&(c=new Tu(o9(l.missing),l.missing,e,i));let d=!c,{result:u}=l;return{result:d?u:o?Object.keys(u).length===0?null:u:null,complete:d,missing:c}}isFresh(n,e,r,i){if(Ta(i.store)&&this.knownResults.get(n)===r){let o=this.executeSelectionSet.peek(r,e,i);if(o&&n===o.result)return!0}return!1}execSelectionSetImpl({selectionSet:n,objectOrReference:e,enclosingRef:r,context:i}){if(Je(e)&&!i.policies.rootTypenamesById[e.__ref]&&!i.store.has(e.__ref))return{result:{},missing:`Dangling reference to missing ${e.__ref} object`};let{variables:o,policies:s,store:a}=i,l=a.getFieldValue(e,"__typename"),c=[],d,u=new or;typeof l=="string"&&!s.rootIdsByTypename[l]&&c.push({__typename:l});function p(w,D){return w.missing&&(d=u.merge(d,{[D]:w.missing})),w.result}let f=new Set(n.selections);f.forEach(w=>{if(Do(w,o))if(qi(w)){let D=s.readField({fieldName:w.name.value,field:w,variables:i.variables,from:e},i),P=gr(w);D===void 0?wa.added(w)||(d=u.merge(d,{[P]:`Can't find field '${w.name.value}' on ${Je(e)?e.__ref+" object":"object "+JSON.stringify(e,null,2)}`})):Tt(D)?D.length>0&&(D=p(this.executeSubSelectedArray({field:w,array:D,enclosingRef:r,context:i}),P)):w.selectionSet&&D!=null&&(D=p(this.executeSelectionSet({selectionSet:w.selectionSet,objectOrReference:D,enclosingRef:Je(D)?D:r,context:i}),P)),D!==void 0&&c.push({[P]:D})}else{let D=us(w,i.lookupFragment);if(!D&&w.kind===Q.FRAGMENT_SPREAD)throw Kt(112,w.name.value);D&&s.fragmentMatches(D,l)&&D.selectionSet.selections.forEach(f.add,f)}});let b={result:__(c),missing:d},v=fs(b);return v.result&&this.knownResults.set(v.result,n),v}execSubSelectedArrayImpl({field:n,array:e,enclosingRef:r,context:i}){let o,s=new or;function a(l,c){return l.missing&&(o=s.merge(o,{[c]:l.missing})),l.result}return n.selectionSet&&(e=e.filter(l=>l===void 0||i.store.canRead(l))),e=e.map((l,c)=>l===null?null:Tt(l)?a(this.executeSubSelectedArray({field:n,array:l,enclosingRef:r,context:i}),c):n.selectionSet?a(this.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:l,enclosingRef:Je(l)?l:r,context:i}),c):(!1,l)),{result:e,missing:o}}};function o9(t){try{JSON.stringify(t,(n,e)=>{if(typeof e=="string")throw e;return e})}catch(n){return n}}function s9(t,n,e){if(!n.selectionSet){let r=new Set([e]);r.forEach(i=>{Ct(i)&&(W(!Je(i),113,DO(t,i),n.name.value),Object.values(i).forEach(r.add,r))})}}function Y_(t,n,e){let r=`${n}${e}`,i=t.flavors.get(r);return i||t.flavors.set(r,i=t.clientOnly===n&&t.deferred===e?t:A(_({},t),{clientOnly:n,deferred:e})),i}var xm=class{cache;reader;fragments;constructor(n,e,r){this.cache=n,this.reader=e,this.fragments=r}writeToStore(n,{query:e,result:r,dataId:i,variables:o,overwrite:s,extensions:a}){let l=Pn(e),c=kO();o=_(_({},ga(l)),o);let d=A(_({store:n,written:{},merge(p,f){return c.merge(p,f)},variables:o,varString:En(o)},gm(e,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:a}),u=this.processSelectionSet({result:r||{},dataId:i,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:d,path:[]});if(!Je(u))throw Kt(114,r);return d.incomingById.forEach(({storeObject:p,mergeTree:f,fieldNodeSet:y},b)=>{let v=Qi(b);if(f&&f.map.size){let w=this.applyMerges(f,v,p,d);if(Je(w))return;p=w}if(!1){let w={};y.forEach(B=>{B.selectionSet&&(w[B.name.value]=!0)});let D=B=>w[fi(B)]===!0,P=B=>{let Y=f&&f.map.get(B);return!!(Y&&Y.info&&Y.info.merge)};Object.keys(p).forEach(B=>{D(B)&&!P(B)&&a9(v,p,B,d.store)})}n.merge(b,p)}),n.retain(u.__ref),u}processSelectionSet({dataId:n,result:e,selectionSet:r,context:i,mergeTree:o,path:s}){let{policies:a}=this.cache,l={},c=n&&a.rootTypenamesById[n]||J_(e,r,i.fragmentMap)||n&&i.store.get(n,"__typename");typeof c=="string"&&(l.__typename=c);let d=(...p)=>{let f=wm(p,l,i.variables);if(Je(f.from)){let y=i.incomingById.get(f.from.__ref);if(y){let b=a.readField(A(_({},f),{from:y.storeObject}),i);if(b!==void 0)return b}}return a.readField(f,i)},u=new Set;this.flattenFields(r,e,i,c).forEach((p,f)=>{let y=gr(f),b=e[y],v=[...s,f.name.value];if(u.add(f),b!==void 0){let w=a.getStoreFieldName({typename:c,fieldName:f.name.value,field:f,variables:p.variables}),D=WO(o,w),P=this.processFieldValue(b,f,f.selectionSet?Y_(p,!1,!1):p,D,v),B;f.selectionSet&&(Je(P)||gs(P))&&(B=d("__typename",P));let Y=a.getMergeFunction(c,f.name.value,B);Y?D.info={field:f,typename:c,merge:Y,path:v}:Gi(["stream"],f)&&Array.isArray(P)&&p.extensions?.[yr]?D.info={field:f,typename:c,merge:zO,path:v}:GO(o,w),l=p.merge(l,{[w]:P})}else!1});try{let[p,f]=a.identify(e,{typename:c,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:l,readField:d});n=n||p,f&&(l=i.merge(l,f))}catch(p){if(!n)throw p}if(typeof n=="string"){let p=Qi(n),f=i.written[n]||(i.written[n]=[]);if(f.indexOf(r)>=0||(f.push(r),this.reader&&this.reader.isFresh(e,p,r,i)))return p;let y=i.incomingById.get(n);return y?(y.storeObject=i.merge(y.storeObject,l),y.mergeTree=Z_(y.mergeTree,o),u.forEach(b=>y.fieldNodeSet.add(b))):i.incomingById.set(n,{storeObject:l,mergeTree:Tm(o)?void 0:o,fieldNodeSet:u}),p}return l}processFieldValue(n,e,r,i,o){return!e.selectionSet||n===null?n:Tt(n)?n.map((s,a)=>{let l=this.processFieldValue(s,e,r,WO(i,a),[...o,a]);return GO(i,a),l}):this.processSelectionSet({result:n,selectionSet:e.selectionSet,context:r,mergeTree:i,path:o})}flattenFields(n,e,r,i=J_(e,n,r.fragmentMap)){let o=new Map,{policies:s}=this.cache,a=new Rn(!1);return(function l(c,d){let u=a.lookup(c,d.clientOnly,d.deferred);u.visited||(u.visited=!0,c.selections.forEach(p=>{if(!Do(p,r.variables))return;let{clientOnly:f,deferred:y}=d;if(!(f&&y)&&ya(p.directives)&&p.directives.forEach(b=>{let v=b.name.value;if(v==="client"&&(f=!0),v==="defer"){let w=ha(b,r.variables);(!w||w.if!==!1)&&(y=!0)}}),qi(p)){let b=o.get(p);b&&(f=f&&b.clientOnly,y=y&&b.deferred),o.set(p,Y_(r,f,y))}else{let b=us(p,r.lookupFragment);if(!b&&p.kind===Q.FRAGMENT_SPREAD)throw Kt(116,p.name.value);b&&s.fragmentMatches(b,i,e,r.variables)&&l(b.selectionSet,Y_(r,f,y))}}))})(n,r),o}applyMerges(n,e,r,i,o){if(n.map.size&&!Je(r)){let s=!Tt(r)&&(Je(e)||gs(e))?e:void 0,a=r;s&&!o&&(o=[Je(s)?s.__ref:s]);let l,c=(d,u)=>Tt(d)?typeof u=="number"?d[u]:void 0:i.store.getFieldValue(d,String(u));n.map.forEach((d,u)=>{let p=c(s,u),f=c(a,u);if(f===void 0)return;o&&o.push(u);let y=this.applyMerges(d,p,f,i,o);y!==f&&(l=l||new Map,l.set(u,y)),o&&W(o.pop()===u)}),l&&(r=Tt(a)?a.slice(0):_({},a),l.forEach((d,u)=>{r[u]=d}))}return n.info?this.cache.policies.runMergeFunction(e,r,n.info,i,o&&i.store.getStorage(...o)):r}},QO=[];function WO({map:t},n){return t.has(n)||t.set(n,QO.pop()||{map:new Map}),t.get(n)}function Z_(t,n){if(t===n||!n||Tm(n))return t;if(!t||Tm(t))return n;let e=t.info&&n.info?_(_({},t.info),n.info):t.info||n.info,r=t.map.size&&n.map.size,i=r?new Map:t.map.size?t.map:n.map,o={info:e,map:i};if(r){let s=new Set(n.map.keys());t.map.forEach((a,l)=>{o.map.set(l,Z_(a,n.map.get(l))),s.delete(l)}),s.forEach(a=>{o.map.set(a,Z_(n.map.get(a),t.map.get(a)))})}return o}function Tm(t){return!t||!(t.info||t.map.size)}function GO({map:t},n){let e=t.get(n);e&&Tm(e)&&(QO.push(e),t.delete(n))}var qO=new Set;function a9(t,n,e,r){let i=u=>{let p=r.getFieldValue(u,e);return typeof p=="object"&&p},o=i(t);if(!o)return;let s=i(n);if(!s||Je(o)||dt(o,s)||Object.keys(o).every(u=>r.getFieldValue(s,u)!==void 0))return;let a=r.getFieldValue(t,"__typename")||r.getFieldValue(n,"__typename"),l=fi(e),c=`${a}.${l}`;if(qO.has(c))return;qO.add(c);let d=[];!Tt(o)&&!Tt(s)&&[o,s].forEach(u=>{let p=r.getFieldValue(u,"__typename");typeof p=="string"&&!d.includes(p)&&d.push(p)}),!1}function J_(t,n,e){let r;for(let i of n.selections)if(qi(i)){if(i.name.value==="__typename")return t[gr(i)]}else r?r.push(i):r=[i];if(typeof t.__typename=="string")return t.__typename;if(r)for(let i of r){let o=J_(t,us(i,e).selectionSet,e);if(typeof o=="string")return o}}var Ea=class extends ac{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new Oo(wa);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=Q_;constructor(n={}){super(),this.config=IO(n),this.policies=new _m({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let n=this.data=new xa.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()}resetResultCache(){let{fragments:n}=this.config;this.addTypenameTransform.resetCache(),n?.resetCaches(),this.storeWriter=new xm(this,this.storeReader=new Cm({cache:this,fragments:n}),n),this.maybeBroadcastWatch=Mo((e,r)=>this.broadcastWatch(e,r),{max:gn["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let r=e.optimistic?this.optimisticData:this.data;if(Ta(r)){let{optimistic:i,id:o,variables:s}=e;return r.makeCacheKey(e.query,e.callback,En({optimistic:i,id:o,variables:s}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(n){return this.init(),n&&this.data.replace(n),this}extract(n=!1){return(n?this.optimisticData:this.data).extract()}read(n){let{returnPartialData:e=!1}=n;return this.storeReader.diffQueryAgainstStore(A(_({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:e})).result}write(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}modify(n){if(Yt.call(n,"id")&&!n.id)return!1;let e=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,e.modify(n.id||"ROOT_QUERY",n.fields,!1)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}diff(n){return this.storeReader.diffQueryAgainstStore(A(_({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))}watch(n){return this.watches.size||LO(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),()=>{this.watches.delete(n)&&!this.watches.size&&q_(this),this.maybeBroadcastWatch.forget(n)}}gc(n){En.reset(),Ki.reset();let e=this.optimisticData.gc();return n&&!this.txCount&&n.resetResultCache&&this.resetResultCache(),e}retain(n,e){return(e?this.optimisticData:this.data).retain(n)}release(n,e){return(e?this.optimisticData:this.data).release(n)}identify(n){if(Je(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(e){!1}}evict(n){if(!n.id){if(Yt.call(n,"id"))return!1;n=A(_({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}reset(n){return this.init(),En.reset(),n&&n.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),q_(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(n){let e=this.optimisticData.removeLayer(n);e!==this.optimisticData&&(this.optimisticData=e,this.broadcastWatches())}txCount=0;batch(n){let{update:e,optimistic:r=!0,removeOptimistic:i,onWatchUpdated:o}=n,s,a=c=>{let{data:d,optimisticData:u}=this;++this.txCount,c&&(this.data=this.optimisticData=c);try{return s=e(this)}finally{--this.txCount,this.data=d,this.optimisticData=u}},l=new Set;return o&&!this.txCount&&this.broadcastWatches(A(_({},n),{onWatchUpdated(c){return l.add(c),!1}})),typeof r=="string"?this.optimisticData=this.optimisticData.addLayer(r,a):r===!1?a(this.data):a(),typeof i=="string"&&(this.optimisticData=this.optimisticData.removeLayer(i)),o&&l.size?(this.broadcastWatches(A(_({},n),{onWatchUpdated(c,d){let u=o.call(this,c,d);return u!==!1&&l.delete(c),u}})),l.size&&l.forEach(c=>this.maybeBroadcastWatch.dirty(c))):this.broadcastWatches(n),s}performTransaction(n,e){return this.batch({update:n,optimistic:e||e!==null})}transformDocument(n){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(n))}fragmentMatches(n,e){return this.policies.fragmentMatches(n,e)}lookupFragment(n){return this.config.fragments?.lookup(n)||null}resolvesClientField(n,e){return!!this.policies.getReadFunction(n,e)}broadcastWatches(n){if(!this.txCount){let e=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=i=>{r.add(i)};try{this.watches.forEach(i=>this.maybeBroadcastWatch(i,n)),r.forEach(i=>i())}finally{this.onAfterBroadcast=e}}}addFragmentsToDocument(n){let{fragments:e}=this.config;return e?e.transform(n):n}broadcastWatch(n,e){let{lastDiff:r}=n,i=this.diff(n);e&&(n.optimistic&&typeof e.optimistic=="string"&&(i.fromOptimisticTransaction=!0),e.onWatchUpdated&&e.onWatchUpdated.call(this,n,i,r)===!1)||(!r||!dt(r.result,i.result))&&n.callback(n.lastDiff=i,r)}};!1;function ys(t,n){return typeof t=="object"&&t!==null&&t[Symbol.for("apollo.error")]===n}function bs(t){Object.defineProperty(t,Symbol.for("apollo.error"),{value:t.name,enumerable:!1,writable:!1,configurable:!1})}function KO(t){return t.map(n=>n.message||"Error message not found.").join(` +`)}var YO=(()=>{class t extends Error{static is(e){return ys(e,"CombinedProtocolErrors")}static formatMessage=KO;errors;constructor(e){super(t.formatMessage(e,{defaultFormatMessage:KO})),this.name="CombinedProtocolErrors",this.errors=e,bs(this),Object.setPrototypeOf(this,t.prototype)}}return t})();function ZO(t){return t!==null&&typeof t=="object"&&typeof t.message=="string"&&typeof t.name=="string"&&(typeof t.stack=="string"||typeof t.stack>"u")}var Em=class t extends Error{static is(n){return ys(n,"UnconventionalError")}constructor(n){super("An error of unexpected shape occurred.",{cause:n}),this.name="UnconventionalError",bs(this),Object.setPrototypeOf(this,t.prototype)}};function JO(t){return t.filter(n=>n).map(n=>n.message||"Error message not found.").join(` +`)}var Ro=(()=>{class t extends Error{static is(e){return ys(e,"CombinedGraphQLErrors")}static formatMessage=JO;errors;data;extensions;constructor(e,r=e.errors||[]){super(t.formatMessage(r,{result:e,defaultFormatMessage:JO})),this.errors=r,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",bs(this),Object.setPrototypeOf(this,t.prototype)}}return t})();var l9=new WeakSet;function X_(t){l9.add(t)}var Iu=class t extends Error{static is(n){return ys(n,"ServerError")}response;statusCode;bodyText;constructor(n,e){super(n),this.name="ServerError",this.response=e.response,this.statusCode=e.response.status,this.bodyText=e.bodyText,bs(this),Object.setPrototypeOf(this,t.prototype)}};var Sm=Symbol();function XO(t){return"extensions"in t?YO.is(t.extensions[Sm]):!1}function e2(t){return ZO(t)?t:typeof t=="string"?new Error(t,{cause:t}):new Em(t)}var Ae=(function(t){return t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error",t[t.streaming=9]="streaming",t})(Ae||{});var{assign:t2,hasOwnProperty:c9}=Object,dc={loading:!0,networkStatus:Ae.loading,data:void 0,dataState:"empty",partial:!0},ew={loading:!1,networkStatus:Ae.ready,data:void 0,dataState:"empty",partial:!0},uc=class{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:n,options:e,transformedQuery:r=n.transform(e.query)}){this.queryManager=n,this.waitForNetworkResult=e.fetchPolicy==="network-only",this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:i="cache-first"}={}}=n.defaultOptions,{fetchPolicy:o=i,initialFetchPolicy:s=o==="standby"?i:o}=e;e[S_]&&(W(o==="standby",82),this.variablesUnknown=!0),this.lastQuery=r,this.options=A(_({},e),{initialFetchPolicy:s,fetchPolicy:o,variables:this.getVariablesWithDefaults(e.variables)}),this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let a=Pn(this.query);this.queryName=a&&a.name&&a.name.value}initializeObservablesQueue(){this.subject=new an({query:this.query,variables:this.variables,result:dc,meta:{}});let n=this.subject.pipe(St({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),ic(({query:e,variables:r,result:i,meta:o},s)=>{let{shouldEmit:a}=o;if(i===dc&&(s.previous=void 0,s.previousVariables=void 0),this.options.fetchPolicy==="standby"||a===2)return;if(a===1)return d();let{previous:l,previousVariables:c}=s;if(l){let u=this.queryManager.getDocumentInfo(e),p=this.queryManager.dataMasking,f=p?u.nonReactiveQuery:e;if((p||u.hasNonreactiveDirective?mu(f,l,i,r):dt(l,i))&&dt(c,r))return}if(a===3&&(!this.options.notifyOnNetworkStatusChange||dt(l,i)))return;return d();function d(){return s.previous=i,s.previousVariables=r,i}},()=>({})));this.pipe=n.pipe.bind(n),this.subscribe=n.subscribe.bind(n),this.input=new qe,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:n=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:n})}getInitialResult(n){let e=n||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&(e==="network-only"||e==="cache-and-network")&&(e="cache-first");let r=()=>{let i=this.getCacheDiff(),o=this.options.returnPartialData||i.complete?i.result??void 0:void 0;return this.maskResult({data:o,dataState:i.complete?"complete":o===void 0?"empty":"partial",loading:!i.complete,networkStatus:i.complete?Ae.ready:Ae.loading,partial:!i.complete})};switch(e){case"cache-only":return A(_({},r()),{loading:!1,networkStatus:Ae.ready});case"cache-first":return r();case"cache-and-network":return A(_({},r()),{loading:!0,networkStatus:Ae.loading});case"standby":return ew;default:return dc}}resubscribeCache(){let{variables:n,fetchPolicy:e}=this.options,r=this.query,i=e==="standby"||e==="no-cache"||this.waitForNetworkResult,o=!Du({query:r,variables:n},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||o)&&this.unsubscribeFromCache?.(),i||!o)return;let s={query:r,variables:n,optimistic:!0,watcher:this,callback:l=>{let c=this.queryManager.getDocumentInfo(r);if((c.hasClientExports||c.hasForcedResolvers)&&(s.lastDiff=void 0),s.lastOwnDiff===l)return;let{result:d}=this.subject.getValue();!l.complete&&(d.error||d===dc||d===ew)||dt(d.data,l.result)||this.scheduleNotify()}},a=this.cache.watch(s);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:r,variables:n})}stableLastResult;getCurrentResult(){let{result:n}=this.subject.getValue(),e=n.networkStatus===Ae.error||this.hasObservers()||this.options.fetchPolicy==="no-cache"?n:this.getInitialResult();return e===dc&&(e=this.getInitialResult()),dt(this.stableLastResult,e)||(this.stableLastResult=e),this.stableLastResult}refetch(n){let{fetchPolicy:e}=this.options,r={pollInterval:0};if(e==="no-cache"?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1){let i=uu(this.query),o=i.variableDefinitions;(!o||!o.some(s=>s.variable.name.value==="variables"))&&!1&&W.warn(83,n,i.name?.value||i)}return n&&!dt(this.variables,n)&&(r.variables=this.options.variables=this.getVariablesWithDefaults(_(_({},this.variables),n))),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:Ae.refetch})}fetchMore({query:n,variables:e,context:r,errorPolicy:i,updateQuery:o}){W(this.options.fetchPolicy!=="cache-only",84,sn(this.query,"(anonymous)"));let s=A(_({},Lr(this.options,{errorPolicy:"none"},{query:n,context:r,errorPolicy:i})),{variables:n?e:_(_({},this.variables),e),fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange});s.query=this.transformDocument(s.query),this.lastQuery=n?this.transformDocument(this.options.query):s.query;let a=!1,l=this.options.fetchPolicy!=="no-cache";l||W(o,85);let{finalize:c,pushNotification:d}=this.pushOperation(Ae.fetchMore);d({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:u,operator:p}=n2(),{observable:f}=this.queryManager.fetchObservableWithInfo(s,{networkStatus:Ae.fetchMore,exposeExtensions:!0}),y=f.pipe(p,nn(b=>b.kind==="N"&&b.source==="network")).subscribe({next:b=>{a=!1;let v=b.value,w=v[yu];if(xu(b.value.networkStatus)&&c(),l){let D=this.getCacheDiff();this.cache.batch({update:P=>{o?P.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:w},B=>o(B,{fetchMoreResult:v.data,variables:s.variables})):P.writeQuery({query:s.query,variables:s.variables,data:v.data,extensions:w})},onWatchUpdated:(P,B)=>{if(P.watcher===this&&!dt(B.result,D.result)){a=!0;let Y=this.getCurrentResult();Ca(v.networkStatus)&&d({kind:"N",source:"network",value:A(_({},Y),{networkStatus:v.networkStatus===Ae.error?Ae.ready:v.networkStatus,loading:!1,data:B.result,dataState:v.dataState==="streaming"?"streaming":"complete"})})}}})}else{let D=this.getCurrentResult(),P=o(D.data,{fetchMoreResult:v.data,variables:s.variables});d({kind:"N",value:A(_({},D),{networkStatus:Ae.ready,loading:!1,data:P,dataState:D.dataState==="streaming"?"streaming":"complete"}),source:"network"})}}});return um(u.then(b=>hs(this.maskResult(b))).finally(()=>{if(y.unsubscribe(),c(),l&&!a){let b=this.getCurrentResult();b.dataState==="streaming"?d({kind:"N",source:"network",value:A(_({},b),{dataState:"complete",networkStatus:Ae.ready})}):d({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(n){let e=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:r=>{let{updateQuery:i,onError:o}=n,{error:s}=r;if(s){o?o(s):W.error(86,s);return}i&&this.updateQuery((a,l)=>i(a,_({subscriptionData:r},l)))}});return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)&&e.unsubscribe()}}applyOptions(n){let e=Lr(this.options,n||{});t2(this.options,e),this.updatePolling()}setVariables(n){return pt(this,null,function*(){return n=this.getVariablesWithDefaults(n),dt(this.variables,n)?hs(this.getCurrentResult()):(this.options.variables=n,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},{newNetworkStatus:Ae.setVariables}):hs(this.getCurrentResult()))})}updateQuery(n){let{queryManager:e}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),o=n(r,{variables:this.variables,complete:!!i,previousData:r});o&&(this.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),e.broadcastQueries())}startPolling(n){this.options.pollInterval=n,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(n,e){if(e.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=e;r==="standby"||(typeof e.nextFetchPolicy=="function"?e.fetchPolicy=e.nextFetchPolicy.call(e,r,{reason:n,options:e,observable:this,initialFetchPolicy:i}):n==="variables-changed"?e.fetchPolicy=i:e.fetchPolicy=e.nextFetchPolicy)}return e.fetchPolicy}fetch(n,e,r,i){let o=this.options.fetchPolicy;n.context??={};let s=!1,a=()=>{s=!0},l=v=>new pe(w=>{try{return v.subscribe({next(D){s=!0,w.next(D)},error:D=>w.error(D),complete:()=>w.complete()})}finally{s||(f.override=e,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:p,meta:{shouldEmit:3,fetchPolicy:o}}))}}),{observable:c,fromLink:d}=this.queryManager.fetchObservableWithInfo(n,{networkStatus:e,query:r,onCacheHit:a,fetchQueryOperator:l,observableQuery:this}),{query:u,variables:p}=this,f={abort:()=>{b.unsubscribe()},query:u,variables:p};this.activeOperations.add(f);let y=e==Ae.refetch||e==Ae.setVariables;c=c.pipe(i,xi());let b=c.pipe(St({next:v=>{v.source==="newNetworkStatus"||v.kind==="N"&&v.value.loading?f.override=e:delete f.override},finalize:()=>this.activeOperations.delete(f)})).subscribe({next:v=>{let w={};y&&v.kind==="N"&&"loading"in v.value&&!v.value.loading&&(y=!1,w.shouldEmit=1),this.input.next(A(_({},v),{query:u,variables:p,meta:w}))}});return{fromLink:d,subscription:b,observable:c}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:n,options:{fetchPolicy:e,pollInterval:r}}=this,i=()=>{let{options:l}=this;return!l.pollInterval||!this.hasObservers()||l.fetchPolicy==="cache-only"||l.fetchPolicy==="standby"};if(i()){!1,this.cancelPolling();return}if(n?.interval===r)return;let o=n||(this.pollingInfo={});o.interval=r;let s=()=>{if(i())return this.cancelPolling();this.pollingInfo&&(!Ca(this.networkStatus)&&!this.options.skipPollAttempt?.()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},{newNetworkStatus:Ae.poll}).then(a,a):a())},a=()=>{let l=this.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(s,l.interval))};a()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(n){return this._reobserve(n)}_reobserve(n,e){this.isTornDown=!1;let{newNetworkStatus:r}=e||{};this.queryManager.obsQueries.add(this);let i=r===Ae.refetch||r===Ae.poll,o=this.variables,s=this.options.fetchPolicy,a=Lr(this.options,n||{});this.variablesUnknown&&=a.fetchPolicy==="standby";let l=i?a:t2(this.options,a),c=this.transformDocument(l.query);this.lastQuery=c,n&&"variables"in n&&(l.variables=this.getVariablesWithDefaults(n.variables)),i||(this.updatePolling(),n&&n.variables&&!dt(n.variables,o)&&l.fetchPolicy!=="standby"&&(l.fetchPolicy===s||typeof l.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",l),r===void 0&&(r=Ae.setVariables)));let d=this.networkStatus;r||(r=Ae.loading,d!==Ae.loading&&n?.variables&&!dt(n.variables,o)&&(r=Ae.setVariables),l.fetchPolicy==="standby"&&(r=Ae.ready)),l.fetchPolicy==="standby"&&this.cancelPolling(),this.resubscribeCache();let{promise:u,operator:p}=n2(l.fetchPolicy==="standby"?{data:void 0}:void 0),{subscription:f,observable:y,fromLink:b}=this.fetch(l,r,c,p);!i&&(b||!this.linkSubscription)&&(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=f);let v=Object.assign(um(u.then(w=>hs(this.maskResult(w))).finally(()=>{!this.hasObservers()&&this.activeOperations.size===0&&this.tearDownQuery()})),{retain:()=>{let w=y.subscribe({}),D=()=>w.unsubscribe();return u.then(D,D),v}});return v}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(n){return this.queryManager.transform(n)}maskResult(n){let e=this.queryManager.maskOperation({document:this.query,data:n.data,fetchPolicy:this.options.fetchPolicy,cause:this});return e===n.data?n:A(_({},n),{data:e})}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(n=!1){if(!n){let r=this.queryManager.getDocumentInfo(this.query);if(r.hasClientExports||r.hasForcedResolvers)return}let{dirty:e}=this;if(this.resetNotifications(),e&&(this.options.fetchPolicy==="cache-only"||this.options.fetchPolicy==="cache-and-network"||!this.activeOperations.size)){let r=this.getCacheDiff();dt(r.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:r.result,dataState:r.complete?"complete":r.result?"partial":"empty",networkStatus:Ae.ready,loading:!1,error:void 0,partial:!r.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(n){let e=!1,{query:r,variables:i}=this,o=()=>{this.activeOperations.delete(s)},s={override:n,abort:()=>{e=!0,o()},query:r,variables:i};return this.activeOperations.add(s),{finalize:o,pushNotification:(a,l)=>{e||this.input.next(A(_({},a),{query:r,variables:i,meta:_({},l)}))}}}calculateNetworkStatus(n){return n===Ae.streaming?n:Array.from(this.activeOperations.values()).reverse().find(r=>Du(r,this)&&r.override!==void 0)?.override??n}abortActiveOperations(){this.activeOperations.forEach(n=>n.abort())}reset(){let n=this.options.fetchPolicy==="cache-only";this.setResult(n?ew:dc,{shouldEmit:n?1:2}),this.abortActiveOperations()}setResult(n,e){this.input.next({source:"setResult",kind:"N",value:n,query:this.query,variables:this.variables,meta:_({},e)})}operator=ic(n=>{let{query:e,variables:r,meta:i}=n;if(n.source==="setResult")return{query:e,variables:r,result:n.value,meta:i};if(n.kind==="C"||!Du(n,this))return;let o,s=this.subject.getValue();if(n.source==="cache"){if(o=n.value,o.networkStatus===Ae.ready&&o.partial&&(!this.options.returnPartialData||s.result.networkStatus===Ae.error)&&this.options.fetchPolicy!=="cache-only")return}else if(n.source==="network")this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),o=n.kind==="E"?A(_({},Du(s,n)?s.result:{data:void 0,dataState:"empty",partial:!0}),{error:n.error,networkStatus:Ae.error,loading:!1}):n.value,n.kind==="E"&&o.dataState==="streaming"&&(o.dataState="complete"),o.error&&(i.shouldEmit=1);else if(n.source==="newNetworkStatus"){let a=Du(s,n)?s.result:this.getInitialResult(i.fetchPolicy),{resetError:l}=n.value,c=l?void 0:a.error,d=c?Ae.error:Ae.ready;o=A(_({},a),{error:c,networkStatus:d})}return W(o),o.error||delete o.error,o.networkStatus=this.calculateNetworkStatus(o.networkStatus),o.loading=Ca(o.networkStatus),o=this.maskResult(o),s.result.data!==void 0&&o.data!==s.result.data&&dt(o.data,s.result.data)&&(o.data=s.result.data),{query:e,variables:r,result:o,meta:i}});reobserveCacheFirst(){let{fetchPolicy:n,nextFetchPolicy:e}=this.options;n==="cache-and-network"||n==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return this.nextFetchPolicy=e,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(r,i):n}}):this.reobserve()}getVariablesWithDefaults(n){return this.queryManager.getVariables(this.query,n)}};function r2(t){!1}function Du(t,n){return!!(t&&n&&t.query===n.query&&dt(t.variables,n.variables))}function n2(t){let n=t,e,r,i=new Promise((s,a)=>{e=s,r=a}),o=St({next(s){if(s.kind==="E")return r(s.error);s.kind==="N"&&s.source!=="newNetworkStatus"&&!s.value.loading&&(n=s.value)},finalize:()=>{if(n)e(n);else{let s="The operation was aborted.",a="AbortError";r(typeof DOMException<"u"?new DOMException(s,a):Object.assign(new Error(s),{name:a}))}}});return{promise:i,operator:o}}var i2={},pc=new WeakMap;function tw(t,n){let e=t[n];typeof e=="function"&&(t[n]=function(){return pc.set(t,(pc.get(t)+1)%1e15),e.apply(this,arguments)})}var o2=new WeakMap,fc=class{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(n,e){let r=this.cache=n.cache,i=(o2.get(n)||0)+1;o2.set(n,i),this.id=i+"",this.observableQuery=e,this.queryManager=n,pc.has(r)||(pc.set(r,0),tw(r,"evict"),tw(r,"modify"),tw(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(n){(this.observableQuery||this)._lastWrite=n}resetLastWrite(){this.lastWrite=void 0}shouldWrite(n,e){let{lastWrite:r}=this;return!(r&&r.dmCount===pc.get(this.cache)&&dt(e,r.variables)&&dt(n.data,r.result.data)&&n.extensions?.[yr]===r.result.extensions?.[yr])}get hasNext(){return this.incremental?this.incremental.hasNext:!1}maybeHandleIncrementalResult(n,e,r){let{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(e)?(this.incremental||=i.startRequest({query:r}),this.incremental.handle(n,e)):e}markQueryResult(n,{document:e,variables:r,errorPolicy:i,cacheWriteBehavior:o}){let s={query:e,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let a=o===0,l=a?void 0:this.cache.diff(s),c=this.maybeHandleIncrementalResult(l?.result,n,e);return a||(nw(c,i)?this.cache.batch({onWatchUpdated:(d,u)=>{d.watcher===this.observableQuery&&(d.lastOwnDiff=u)},update:d=>{if(this.shouldWrite(c,r))d.writeQuery({query:e,data:c.data,variables:r,overwrite:o===1,extensions:c.extensions}),this.lastWrite={result:c,variables:r,dmCount:pc.get(this.cache)};else if(l&&l.complete){c=A(_({},c),{data:l.result});return}let u=d.diff(s);u.complete&&(c=A(_({},c),{data:u.result}))}}):this.lastWrite=void 0),c}markMutationResult(n,e,r=this.cache){let i=[],o=e.cacheWriteBehavior===0,s=this.maybeHandleIncrementalResult(o?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}).result,n,e.document);if(e.errorPolicy==="ignore"&&(s=A(_({},s),{errors:[]})),Io(s)&&e.errorPolicy==="none")return Promise.resolve(s);let a=()=>A(_({},s),{dataState:this.hasNext?"streaming":"complete"});if(!o&&nw(s,e.errorPolicy)){i.push({result:s.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables,extensions:s.extensions});let{updateQueries:c}=e;c&&this.queryManager.getObservableQueries("all").forEach(d=>{let u=d&&d.queryName;if(!u||!Object.hasOwnProperty.call(c,u))return;let p=c[u],{query:f,variables:y}=d,{result:b,complete:v}=d.getCacheDiff({optimistic:!1});if(v&&b){let w=p(b,{mutationResult:a(),queryName:f&&sn(f)||void 0,queryVariables:y});w&&i.push({result:w,dataId:"ROOT_QUERY",query:f,variables:y})}})}let l=e.refetchQueries;if(typeof l=="function"&&(l=l(a())),i.length>0||(l||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){let c=[];if(this.queryManager.refetchQueries({updateCache:d=>{o||i.forEach(p=>d.write(p));let{update:u}=e;if(u){if(!o){let p=d.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});p.complete&&(s=A(_({},s),{data:p.result}))}this.hasNext||u(d,s,{context:e.context,variables:e.variables})}!o&&!e.keepRootFields&&!this.hasNext&&d.modify({id:"ROOT_MUTATION",fields(p,{fieldName:f,DELETE:y}){return f==="__typename"?p:y}})},include:l,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(d=>c.push(d)),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(()=>s)}return Promise.resolve(s)}markMutationOptimistic(n,e){let r=typeof n=="function"?n(e.variables,{IGNORE:i2}):n;return r===i2?!1:(this.cache.recordOptimisticTransaction(i=>{try{this.markMutationResult({data:r},e,i)}catch(o){W.error(o)}},this.id),!0)}markSubscriptionResult(n,{document:e,variables:r,errorPolicy:i,cacheWriteBehavior:o}){o!==0&&(nw(n,i)&&this.cache.write({query:e,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:n.extensions}),this.queryManager.broadcastQueries())}};function nw(t,n="none"){let e=n==="ignore"||n==="all",r=!Io(t);return!r&&e&&t.data&&(r=!0),r}var Im=class{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(n){let e=new Oo(i=>this.cache.transformDocument(i),{cache:!1});this.client=n.client,this.defaultOptions=n.defaultOptions,this.queryDeduplication=n.queryDeduplication,this.clientOptions=n.clientOptions,this.ssrMode=n.ssrMode,this.assumeImmutableResults=n.assumeImmutableResults,this.dataMasking=n.dataMasking,this.localState=n.localState,this.incrementalHandler=n.incrementalHandler;let r=n.documentTransform;this.documentTransform=r?e.concat(r).concat(e):e,this.defaultContext=n.defaultContext||{},(this.onBroadcast=n.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(n=>n.stop()),this.cancelPendingFetches(Kt(89))}cancelPendingFetches(n){this.fetchCancelFns.forEach(e=>e(n)),this.fetchCancelFns.clear()}mutate(f){return pt(this,arguments,function*({mutation:n,variables:e,optimisticResponse:r,updateQueries:i,refetchQueries:o=[],awaitRefetchQueries:s=!1,update:a,onQueryUpdated:l,fetchPolicy:c,errorPolicy:d,keepRootFields:u,context:p}){let y=new fc(this);n=this.cache.transformForLink(this.transform(n));let{hasClientExports:b}=this.getDocumentInfo(n);e=this.getVariables(n,e),b&&(!1,e=yield this.localState.getExportedVariables({client:this.client,document:n,variables:e,context:p}));let v=this.mutationStore&&(this.mutationStore[y.id]={mutation:n,variables:e,loading:!0,error:null}),w=r&&y.markMutationOptimistic(r,{document:n,variables:e,cacheWriteBehavior:c==="no-cache"?0:2,errorPolicy:d,context:p,updateQueries:i,update:a,keepRootFields:u});return this.broadcastQueries(),new Promise((D,P)=>{let B={};return this.getObservableFromLink(n,A(_({},p),{optimisticResponse:w?r:void 0}),e,c,{},!1).observable.pipe(s2(),Nt(Y=>{let ye=_({},Y);return ft(y.markMutationResult(ye,{document:n,variables:e,cacheWriteBehavior:c==="no-cache"?0:2,errorPolicy:d,context:p,update:a,updateQueries:i,awaitRefetchQueries:s,refetchQueries:o,removeOptimistic:w?y.id:void 0,onQueryUpdated:l,keepRootFields:u}))})).pipe(be(Y=>{if(Io(Y)&&d==="none")throw new Ro(rw(Y));return v&&(v.loading=!1,v.error=null),Y})).subscribe({next:Y=>{if(this.broadcastQueries(),!y.hasNext){let ye={data:this.maskOperation({document:n,data:Y.data,fetchPolicy:c,cause:B})};Io(Y)&&(ye.error=new Ro(Y)),Object.keys(Y.extensions||{}).length&&(ye.extensions=Y.extensions),D(ye)}},error:Y=>{if(v&&(v.loading=!1,v.error=Y),w&&this.cache.removeOptimistic(y.id),this.broadcastQueries(),d==="ignore")return D({data:void 0});if(d==="all")return D({data:void 0,error:Y});P(Y)}})})})}fetchQuery(n,e){return Kn(n.query,Qn.QUERY),pt(this,null,function*(){return Cr(this.fetchObservableWithInfo(n,{networkStatus:e}).observable.pipe(ic(r=>{switch(r.kind){case"E":throw r.error;case"N":if(r.source!=="newNetworkStatus")return hs(r.value)}})),{defaultValue:{data:void 0}})})}transform(n){return this.documentTransform.transformDocument(n)}transformCache=new ma(gn["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(n){let{transformCache:e}=this;if(!e.has(n)){let i=Pn(n),o={hasClientExports:Gi(["client","export"],n,!0),hasForcedResolvers:b_(n),hasNonreactiveDirective:Gi(["nonreactive"],n),hasIncrementalDirective:Gi(["defer"],n),nonReactiveQuery:u9(n),clientQuery:Gi(["client"],n)?n:null,serverQuery:w_([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],n),operationType:i?.operation,defaultVars:ga(i),asQuery:A(_({},n),{definitions:n.definitions.map(s=>s.kind==="OperationDefinition"&&s.operation!=="query"?A(_({},s),{operation:"query"}):s)})};e.set(n,o)}let r=e.get(n);if(r.violation)throw r.violation;return r}getVariables(n,e){let r=this.getDocumentInfo(n).defaultVars,i=Object.entries(e??{}).map(([o,s])=>[o,s===void 0?r[o]:s]);return _(_({},r),Object.fromEntries(i))}watchQuery(n){Kn(n.query,Qn.QUERY);let e=this.transform(n.query);return n=A(_({},n),{variables:this.getVariables(e,n.variables)}),typeof n.notifyOnNetworkStatusChange>"u"&&(n.notifyOnNetworkStatusChange=!0),new uc({queryManager:this,options:n,transformedQuery:e})}query(n){let e=this.transform(n.query);return this.fetchQuery(A(_({},n),{query:e})).then(r=>A(_({},r),{data:this.maskOperation({document:e,data:r?.data,fetchPolicy:n.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(n={discardWatches:!0}){return this.cancelPendingFetches(Kt(91)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(n)}getObservableQueries(n="active"){let e=new Set,r=new Map,i=new Map,o=new Set;return Array.isArray(n)&&n.forEach(s=>{if(typeof s=="string")r.set(s,s),i.set(s,!1);else if(v_(s)){let a=Ki(this.transform(s));r.set(a,sn(s)),i.set(a,!1)}else Ct(s)&&s.query&&o.add(s)}),this.obsQueries.forEach(s=>{let a=Ki(this.transform(s.options.query));if(n==="all"){e.add(s);return}let{queryName:l,options:{fetchPolicy:c}}=s;n==="active"&&c==="standby"||(n==="active"||l&&i.has(l)||a&&i.has(a))&&(e.add(s),l&&i.set(l,!0),a&&i.set(a,!0))}),o.size&&o.forEach(s=>{let a=new uc({queryManager:this,options:A(_({},ba(this.defaultOptions.watchQuery,s)),{fetchPolicy:"network-only"})});e.add(a)}),!1,e}refetchObservableQueries(n=!1){let e=[];return this.getObservableQueries(n?"all":"active").forEach(r=>{let{fetchPolicy:i}=r.options;(n||i!=="standby")&&i!=="cache-only"&&e.push(r.refetch())}),this.broadcastQueries(),Promise.all(e)}startGraphQLSubscription(n){let{query:e,variables:r}=n,{fetchPolicy:i="cache-first",errorPolicy:o="none",context:s={},extensions:a={}}=n;Kn(e,Qn.SUBSCRIPTION),e=this.transform(e),r=this.getVariables(e,r);let l;!1;let c=(this.getDocumentInfo(e).hasClientExports?ft(this.localState.getExportedVariables({client:this.client,document:e,variables:r,context:s})):ve(r)).pipe(Nt(d=>{let{observable:u,restart:p}=this.getObservableFromLink(e,s,d,i,a),f=new fc(this);return l=p,u.pipe(be(y=>{f.markSubscriptionResult(y,{document:e,variables:d,errorPolicy:o,cacheWriteBehavior:i==="no-cache"?0:2});let b={data:y.data??void 0};return Io(y)?b.error=new Ro(y):XO(y)&&(b.error=y.extensions[Sm],delete y.extensions[Sm]),y.extensions&&Object.keys(y.extensions).length&&(b.extensions=y.extensions),b.error&&o==="none"&&(b.data=void 0),o==="ignore"&&delete b.error,b}),dr(y=>o==="ignore"?ve({data:void 0}):ve({data:void 0,error:y})),nn(y=>!!(y.data||y.error)))}));return Object.assign(c,{restart:()=>l?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(n=>n.notify())}inFlightLinkObservables=new Rn(!1);getObservableFromLink(n,e,r,i,o,s=e?.queryDeduplication??this.queryDeduplication){let a={},{serverQuery:l,clientQuery:c,operationType:d,hasIncrementalDirective:u}=this.getDocumentInfo(n),p=sn(n),f={client:this.client};if(l){let{inFlightLinkObservables:b,link:v}=this;try{let D=function(P){return new pe(B=>{function Y(){return P.subscribe({next:B.next.bind(B),complete:B.complete.bind(B),error:B.error.bind(B)})}let ye=Y();return a.restart||=()=>{ye.unsubscribe(),ye=Y()},()=>{ye.unsubscribe(),a.restart=void 0}})};var y=D;let w=this.incrementalHandler.prepareRequest({query:l,variables:r,context:A(_(_({},this.defaultContext),e),{queryDeduplication:s}),extensions:o});if(e=w.context,s){let P=Ki(l),B=En(r);a=b.lookup(P,B),a.observable||(a.observable=_a(v,w,f).pipe(D,Ci(()=>{b.peek(P,B)===a&&b.remove(P,B)}),d===Qn.SUBSCRIPTION?xi():Ps({refCount:!0})))}else a.observable=_a(v,w,f).pipe(D)}catch(w){a.observable=_i(()=>w)}}else a.observable=ve({data:{}});if(c){let{operation:b}=Pn(n);!1,W(!u,96,b[0].toUpperCase()+b.slice(1),p??"(anonymous)"),a.observable=a.observable.pipe(Nt(v=>ft(this.localState.execute({client:this.client,document:c,remoteResult:v,context:e,variables:r,fetchPolicy:i}))))}return{restart:()=>a.restart?.(),observable:a.observable.pipe(dr(b=>{throw b=e2(b),X_(b),b}))}}getResultsFromLink(n,{queryInfo:e,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:o}){let s=e.lastRequestId=this.generateRequestId(),{errorPolicy:a}=n,l=this.cache.transformForLink(n.query);return this.getObservableFromLink(l,n.context,n.variables,n.fetchPolicy).observable.pipe(be(c=>{let d=e.markQueryResult(c,A(_({},n),{document:l,cacheWriteBehavior:r})),u=Io(d);if(u&&a==="none")throw e.resetLastWrite(),i?.resetNotifications(),new Ro(rw(d));let p=_({data:d.data},e.hasNext?{loading:!0,networkStatus:Ae.streaming,dataState:"streaming",partial:!0}:{dataState:d.data?"complete":"empty",loading:!1,networkStatus:Ae.ready,partial:!d.data});return o&&"extensions"in d&&(p[yu]=d.extensions),u&&(a==="none"&&(p.data=void 0,p.dataState="empty"),a!=="ignore"&&(p.error=new Ro(rw(d)),p.dataState!=="streaming"&&(p.networkStatus=Ae.error))),p}),dr(c=>{if(s>=e.lastRequestId&&a==="none")throw e.resetLastWrite(),i?.resetNotifications(),c;let d={data:void 0,dataState:"empty",loading:!1,networkStatus:Ae.ready,partial:!0};return a!=="ignore"&&(d.error=c,d.networkStatus=Ae.error),ve(d)}))}fetchObservableWithInfo(n,{networkStatus:e=Ae.loading,query:r=n.query,fetchQueryOperator:i=l=>l,onCacheHit:o=()=>{},observableQuery:s,exposeExtensions:a}){let l=this.getVariables(r,n.variables),{fetchPolicy:c="cache-first",errorPolicy:d="none",returnPartialData:u=!1,notifyOnNetworkStatusChange:p=!0,context:f={}}=n;this.prioritizeCacheValues&&(c==="network-only"||c==="cache-and-network")&&(c="cache-first");let y=Object.assign({},n,{query:r,variables:l,fetchPolicy:c,errorPolicy:d,returnPartialData:u,notifyOnNetworkStatusChange:p,context:f}),b=new fc(this,s),v=Y=>{y.variables=Y;let ye=c==="no-cache"?0:e===Ae.refetch&&y.refetchWritePolicy!=="merge"?1:2,Xe=this.fetchQueryByPolicy(y,{queryInfo:b,cacheWriteBehavior:ye,onCacheHit:o,observableQuery:s,exposeExtensions:a});return Xe.observable=Xe.observable.pipe(i),y.fetchPolicy!=="standby"&&s?.applyNextFetchPolicy("after-fetch",n),Xe},w=()=>{this.fetchCancelFns.delete(b.id)};this.fetchCancelFns.set(b.id,Y=>{D.next({kind:"E",error:Y,source:"network"})});let D=new qe,P,B;if(this.getDocumentInfo(y.query).hasClientExports)!1,P=ft(this.localState.getExportedVariables({client:this.client,document:y.query,variables:y.variables,context:y.context})).pipe(Nt(Y=>v(Y).observable)),B=!0;else{let Y=v(y.variables);B=Y.fromLink,P=Y.observable}return{observable:new pe(Y=>{Y.add(w),P.subscribe(Y),D.subscribe(Y)}).pipe(xi()),fromLink:B}}refetchQueries({updateCache:n,include:e,optimistic:r=!1,removeOptimistic:i=r?lu("refetchQueries"):void 0,onQueryUpdated:o}){let s=new Map;e&&this.getObservableQueries(e).forEach(l=>{if(l.options.fetchPolicy==="cache-only"||l.variablesUnknown)return;let c=l.getCurrentResult();s.set(l,{oq:l,lastDiff:{result:c?.data,complete:!c?.partial}})});let a=new Map;if(n){let l=new Set;this.cache.batch({update:n,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(c,d,u){let p=c.watcher;if(p instanceof uc&&!l.has(p)){if(l.add(p),o){s.delete(p);let f=o(p,d,u);return f===!0&&(f=p.refetch().retain()),f!==!1&&a.set(p,f),f}o!==null&&p.options.fetchPolicy!=="cache-only"&&s.set(p,{oq:p,lastDiff:u,diff:d})}}})}return s.size&&s.forEach(({oq:l,lastDiff:c,diff:d})=>{let u;o&&(d||(d=l.getCacheDiff()),u=o(l,d,c)),(!o||u===!0)&&(u=l.refetch().retain()),u!==!1&&a.set(l,u)}),i&&this.cache.removeOptimistic(i),a}noCacheWarningsByCause=new WeakSet;maskOperation(n){let{document:e,data:r}=n;if(!1){let{fetchPolicy:i,cause:o={}}=n,s=Pn(e)?.operation;this.dataMasking&&i==="no-cache"&&!d9(e)&&!this.noCacheWarningsByCause.has(o)&&(this.noCacheWarningsByCause.add(o),!1)}return this.dataMasking?z_(r,e,this.cache):r}maskFragment(n){let{data:e,fragment:r,fragmentName:i}=n;return this.dataMasking?j_(e,r,this.cache,i):e}fetchQueryByPolicy({query:n,variables:e,fetchPolicy:r,errorPolicy:i,returnPartialData:o,context:s},{cacheWriteBehavior:a,onCacheHit:l,queryInfo:c,observableQuery:d,exposeExtensions:u}){let p=()=>this.cache.diff({query:n,variables:e,returnPartialData:!0,optimistic:!0}),f=(b,v)=>{let w=b.result;!1;let D=B=>(!b.complete&&!o&&(B=void 0),{data:B,dataState:b.complete?"complete":B?"partial":"empty",loading:Ca(v),networkStatus:v,partial:!b.complete}),P=B=>ve({kind:"N",value:D(B),source:"cache"});return(b.complete||o)&&this.getDocumentInfo(n).hasForcedResolvers?(!1,l(),ft(this.localState.execute({client:this.client,document:n,remoteResult:w?{data:w}:void 0,context:s,variables:e,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(B=>({kind:"N",value:D(B.data||void 0),source:"cache"})))):i==="none"&&v===Ae.refetch&&b.missing?P(void 0):P(w||void 0)},y=()=>this.getResultsFromLink({query:n,variables:e,context:s,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:a,queryInfo:c,observableQuery:d,exposeExtensions:u}).pipe(s2(),n0(),be(b=>A(_({},b),{source:"network"})));switch(r){default:case"cache-first":{let b=p();return b.complete?{fromLink:!1,observable:f(b,Ae.ready)}:o?{fromLink:!0,observable:wi(f(b,Ae.loading),y())}:{fromLink:!0,observable:y()}}case"cache-and-network":{let b=p();return b.complete||o?{fromLink:!0,observable:wi(f(b,Ae.loading),y())}:{fromLink:!0,observable:y()}}case"cache-only":return{fromLink:!1,observable:wi(f(p(),Ae.ready))};case"network-only":return{fromLink:!0,observable:y()};case"no-cache":return{fromLink:!0,observable:y()};case"standby":return{fromLink:!1,observable:Pt}}}};function s2(){let t=!1;return St({next(){t=!0},complete(){W(t,100)}})}function d9(t){let n=!0;return on(t,{FragmentSpread:e=>{if(n=!!e.directives&&e.directives.some(r=>r.name.value==="unmask"),!n)return Eo}}),n}function u9(t){return on(t,{FragmentSpread:n=>{if(!n.directives?.some(e=>e.name.value==="unmask"))return A(_({},n),{directives:[...n.directives||[],{kind:Q.DIRECTIVE,name:{kind:Q.NAME,value:"nonreactive"}}]})}})}function rw(t){var s;if(t.extensions?.[yr]==null)return t;let i=t,{extensions:o}=i,a=o,{[s=yr]:n}=a,e=Et(a,[Zu(s)]),r=Et(i,["extensions"]);return Object.keys(e).length>0&&(r.extensions=e),r}var a2=!1,Sa=class{link;cache;disableNetworkFetches;set prioritizeCacheValues(n){this.queryManager.prioritizeCacheValues=n}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(n){!1;let{cache:e,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:o=0,queryDeduplication:s=!0,defaultOptions:a,defaultContext:l,assumeImmutableResults:c=e.assumeImmutableResults,localState:d,devtools:u,dataMasking:p,link:f,incrementalHandler:y=new wu,experiments:b=[],refetchEventManager:v}=n;this.link=f,this.cache=e,this.queryDeduplication=s,this.defaultOptions=a||{},this.devtoolsConfig=A(_({},u),{enabled:u?.enabled??!1}),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=this.refetchObservableQueries.bind(this),this.version=au,this.queryManager=new Im({client:this,defaultOptions:this.defaultOptions,defaultContext:l,documentTransform:r,queryDeduplication:s,ssrMode:i,dataMasking:!!p,clientOptions:n,incrementalHandler:y,assumeImmutableResults:c,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:d}),this.prioritizeCacheValues=i||o>0,o&&setTimeout(()=>{this.prioritizeCacheValues=!1},o),this.devtoolsConfig.enabled&&this.connectToDevTools(),b.forEach(w=>w.call(this,n)),this.refetchEventManager=v,this.refetchEventManager?.connect(this)}connectToDevTools(){if(typeof window>"u")return;let n=window,e=Symbol.for("apollo.devtools");(n[e]=n[e]||[]).push(this),n.__APOLLO_CLIENT__=this,!a2&&!1&&(a2=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let r=window.navigator,i=r&&r.userAgent,o;typeof i=="string"&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&!1&&W.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(n){this.queryManager.localState=n}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(n){let{refetchOn:e}=n;if(this.defaultOptions.watchQuery){let r=this.defaultOptions.watchQuery.refetchOn,i;e&&typeof e=="object"&&(typeof r=="object"?i=_(_({},r),e):r!=null&&(i=o=>{let s=e[o.source]??r;return typeof s=="function"?s(o):s})),n=ba(this.defaultOptions.watchQuery,n),i&&(n.refetchOn=i)}if(!1){let{query:r}=n,{refetchEventManager:i}=this;if(e){let o=sn(r,"(anonymous)");i?typeof e=="object"&&Object.keys(e).forEach(s=>{i.hasSource(s)||!1}):!1}}return this.queryManager.watchQuery(n)}query=n=>(this.defaultOptions.query&&(n=ba(this.defaultOptions.query,n)),!1,this.queryManager.query(n));mutate=n=>{let e=ba(Lr({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),n);return!1,Kn(e.mutation,Qn.MUTATION),this.queryManager.mutate(e)};subscribe(n){let e={},r=this.queryManager.startGraphQLSubscription(n),i=r.pipe(be(o=>A(_({},o),{data:this.queryManager.maskOperation({document:n.query,data:o.data,fetchPolicy:n.fetchPolicy,cause:e})})));return Object.assign(i,{restart:r.restart})}readQuery(n,e=!1){return this.cache.readQuery(A(_({},n),{query:this.transform(n.query)}),e)}watchFragment(n){let e=this.queryManager.dataMasking,r=this.cache.watchFragment(A(_({},n),{fragment:this.transform(n.fragment,e)}));return r}readFragment(n,e=!1){return this.cache.readFragment(A(_({},n),{fragment:this.transform(n.fragment)}),e)}writeQuery(n){let e=this.cache.writeQuery(n);return n.broadcast!==!1&&this.queryManager.broadcastQueries(),e}writeFragment(n){let e=this.cache.writeFragment(n);return n.broadcast!==!1&&this.queryManager.broadcastQueries(),e}__actionHookForDevTools(n){this.devToolsHookCb=n}__requestRaw(n){return _a(this.link,n,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(n=>n()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(n=>n())))}onResetStore(n){return this.resetStoreCallbacks.push(n),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(e=>e!==n)}}onClearStore(n){return this.clearStoreCallbacks.push(n),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(e=>e!==n)}}reFetchObservableQueries;refetchObservableQueries(n){return this.queryManager.refetchObservableQueries(n)}refetchQueries(n){let e=this.queryManager.refetchQueries(n),r=[],i=[];e.forEach((s,a)=>{r.push(a),i.push(s)});let o=Promise.all(i);return o.queries=r,o.results=i,o.catch(s=>{!1}),o}getObservableQueries(n="active"){return this.queryManager.getObservableQueries(n)}extract(n){return this.cache.extract(n)}restore(n){return this.cache.restore(n)}setLink(n){this.link=n}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new Oo(C_);transform(n,e=!1){let r=this.queryManager.transform(n);return e?this.maskedFragmentTransform.transformDocument(r):r}};!1;var Dm=new Map,iw=new Map,l2=!0,km=!1;function c2(t){return t.replace(/[\s,]+/g," ").trim()}function p9(t){return c2(t.source.body.substring(t.start,t.end))}function f9(t){var n=new Set,e=[];return t.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var i=r.name.value,o=p9(r.loc),s=iw.get(i);s&&!s.has(o)?l2&&console.warn("Warning: fragment with name "+i+` already exists. graphql-tag enforces all fragment names across your application to be unique; read more about -this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||cc.set(o,a=new Set),a.add(r),n.has(r)||(n.add(r),e.push(i))}else e.push(i)}),Hs(Hs({},t),{definitions:e})}function Iy(t){var n=new Set(t.definitions);n.forEach(function(i){i.loc&&delete i.loc,Object.keys(i).forEach(function(o){var r=i[o];r&&typeof r=="object"&&n.add(r)})});var e=t.loc;return e&&(delete e.startToken,delete e.endToken),t}function Ey(t){var n=dm(t);if(!Aa.has(n)){var e=ga(t,{experimentalFragmentVariables:La,allowLegacyFragmentVariables:La});if(!e||e.kind!=="Document")throw new Error("Not a valid GraphQL document.");Aa.set(n,Iy(Sy(e)))}return Aa.get(n)}function wi(t){for(var n=[],e=1;e(t().then(e=>{n.closed||(n.next(e),n.complete())},e=>{n.closed||n.error(e)}),()=>n.unsubscribe()))}function My(t,n){return n?t.pipe(xt(e=>N(T({},e),{loading:!1})),Cp({data:void 0,loading:!0})):t.pipe(xt(e=>N(T({},e),{loading:!1})))}var uc=class{zone;constructor(n){this.zone=n}now=Date.now;schedule(n,e=0,i){return this.zone.run(()=>fp.schedule(n,e,i))}};function pc(t,n){return t.pipe(hp(new uc(n)))}var fc=class{obsQuery;valueChanges;constructor(n,e){this.obsQuery=n,this.valueChanges=pc(gn(this.obsQuery),e)}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}getCurrentResult(){return this.obsQuery.getCurrentResult()}refetch(n){return this.obsQuery.refetch(n)}fetchMore(n){return this.obsQuery.fetchMore(n)}subscribeToMore(n){return this.obsQuery.subscribeToMore(n)}updateQuery(n){return this.obsQuery.updateQuery(n)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(n){return this.obsQuery.startPolling(n)}setVariables(n){return this.obsQuery.setVariables(n)}reobserve(n){return this.obsQuery.reobserve(n)}},Dy=new we("APOLLO_FLAGS"),hc=new we("APOLLO_OPTIONS"),Oy=new we("APOLLO_NAMED_OPTIONS"),Na=class{ngZone;flags;_client;useMutationLoading;constructor(n,e,i){this.ngZone=n,this.flags=e,this._client=i,this.useMutationLoading=e?.useMutationLoading??!1}watchQuery(n){return new fc(this.ensureClient().watchQuery(T({},n)),this.ngZone)}query(n){return mm(()=>this.ensureClient().query(T({},n)))}mutate(n){return My(mm(()=>this.ensureClient().mutate(T({},n))),n.useMutationLoading??this.useMutationLoading)}watchFragment(n){let r=n,{useZone:e}=r,i=it(r,["useZone"]),o=this.ensureClient().watchFragment(T({},i));return e!==!0?o:pc(o,this.ngZone)}subscribe(n){let r=n,{useZone:e}=r,i=it(r,["useZone"]),o=this.ensureClient().subscribe(T({},i));return e!==!0?o:pc(o,this.ngZone)}get client(){return this.ensureClient()}set client(n){if(this._client)throw new Error("Client has been already defined");this._client=n}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}},za=(()=>{class t extends Na{map=new Map;constructor(e,i,o,r){if(super(e,r),i&&this.createDefault(i),o&&typeof o=="object"){for(let a in o)if(o.hasOwnProperty(a)){let s=o[a];this.create(s,a)}}}create(e,i){dc(i)?this.createNamed(i,e):this.createDefault(e)}default(){return this}use(e){return dc(e)?this.map.get(e):this.default()}createDefault(e){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new Yi(e))}createNamed(e,i){if(this.map.has(e))throw new Error(`Client ${e} has been already created`);this.map.set(e,new Na(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new Yi(i))))}removeClient(e){dc(e)?this.map.delete(e):this._client=void 0}static \u0275fac=function(i){return new(i||t)(Wt(It),Wt(hc,8),Wt(Oy,8),Wt(Dy,8))};static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();function dc(t){return!!t&&t!=="default"}var Py=wi,Fn=Py;var Po=Fn` +this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s||iw.set(i,s=new Set),s.add(o),n.has(o)||(n.add(o),e.push(r))}else e.push(r)}),Ac(Ac({},t),{definitions:e})}function h9(t){var n=new Set(t.definitions);n.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(i){var o=r[i];o&&typeof o=="object"&&n.add(o)})});var e=t.loc;return e&&(delete e.startToken,delete e.endToken),t}function m9(t){var n=c2(t);if(!Dm.has(n)){var e=am(t,{experimentalFragmentVariables:km,allowLegacyFragmentVariables:km});if(!e||e.kind!=="Document")throw new Error("Not a valid GraphQL document.");Dm.set(n,h9(f9(e)))}return Dm.get(n)}function vs(t){for(var n=[],e=1;e(t().then(e=>{n.closed||(n.next(e),n.complete())},e=>{n.closed||n.error(e)}),()=>n.unsubscribe()))}function g9(t,n){return n?t.pipe(be(e=>A(_({},e),{loading:!1})),Lc({data:void 0,loading:!0})):t.pipe(be(e=>A(_({},e),{loading:!1})))}var sw=class{zone;constructor(n){this.zone=n}now=Date.now;schedule(n,e=0,r){return this.zone.run(()=>Qg.schedule(n,e,r))}};function aw(t,n){return t.pipe(Rs(new sw(n)))}var lw=class{obsQuery;valueChanges;constructor(n,e){this.obsQuery=n,this.valueChanges=aw(ft(this.obsQuery),e)}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}getCurrentResult(){return this.obsQuery.getCurrentResult()}refetch(n){return this.obsQuery.refetch(n)}fetchMore(n){return this.obsQuery.fetchMore(n)}subscribeToMore(n){return this.obsQuery.subscribeToMore(n)}updateQuery(n){return this.obsQuery.updateQuery(n)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(n){return this.obsQuery.startPolling(n)}setVariables(n){return this.obsQuery.setVariables(n)}reobserve(n){return this.obsQuery.reobserve(n)}},y9=new H("APOLLO_FLAGS"),cw=new H("APOLLO_OPTIONS"),b9=new H("APOLLO_NAMED_OPTIONS"),Mm=class{ngZone;flags;_client;useMutationLoading;constructor(n,e,r){this.ngZone=n,this.flags=e,this._client=r,this.useMutationLoading=e?.useMutationLoading??!1}watchQuery(n){return new lw(this.ensureClient().watchQuery(_({},n)),this.ngZone)}query(n){return h2(()=>this.ensureClient().query(_({},n)))}mutate(n){return g9(h2(()=>this.ensureClient().mutate(_({},n))),n.useMutationLoading??this.useMutationLoading)}watchFragment(n){let o=n,{useZone:e}=o,r=Et(o,["useZone"]),i=this.ensureClient().watchFragment(_({},r));return e!==!0?i:aw(i,this.ngZone)}subscribe(n){let o=n,{useZone:e}=o,r=Et(o,["useZone"]),i=this.ensureClient().subscribe(_({},r));return e!==!0?i:aw(i,this.ngZone)}get client(){return this.ensureClient()}set client(n){if(this._client)throw new Error("Client has been already defined");this._client=n}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}},Om=(()=>{class t extends Mm{map=new Map;constructor(e,r,i,o){if(super(e,o),r&&this.createDefault(r),i&&typeof i=="object"){for(let s in i)if(i.hasOwnProperty(s)){let a=i[s];this.create(a,s)}}}create(e,r){ow(r)?this.createNamed(r,e):this.createDefault(e)}default(){return this}use(e){return ow(e)?this.map.get(e):this.default()}createDefault(e){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new Sa(e))}createNamed(e,r){if(this.map.has(e))throw new Error(`Client ${e} has been already created`);this.map.set(e,new Mm(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new Sa(r))))}removeClient(e){ow(e)?this.map.delete(e):this._client=void 0}static \u0275fac=function(r){return new(r||t)(me($e),me(cw,8),me(b9,8),me(y9,8))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function ow(t){return!!t&&t!=="default"}var v9=vs,Zi=v9;var hc=Zi` fragment BaseModel on IBaseModel { id createdById @@ -66,7 +1107,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a version deleted } -`,gm=Fn` +`,m2=Zi` mutation Login($username: String!, $password: String!) { login(username: $username, password: $password) { ... on CurrentUser { @@ -91,14 +1132,14 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } } -`,bm=Fn` +`,g2=Zi` query Me { me { id identifier } } -`;var _m=Fn` +`;var y2=Zi` query GetUser($id: String!) { getUser(id: $id) { ...BaseModel @@ -110,8 +1151,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } } - ${Po} -`;var tt={production:!0,apiUrl:void 0,wsUrl:void 0,apiKey:void 0,serverUrl:""};var Zi=class t{_hostInjector=Ie(null);_pluginServices=Ie(null);hostInjector(){return this._hostInjector()}setHostInjector(n){this._hostInjector.set(n)}pluginServices(){return this._pluginServices()}setPluginServices(n){this._pluginServices.set(n)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})};var Rn=class t{constructor(n){this.injector=n;tt.production?this._apollo.set(n.get(Zi)?.pluginServices()?.apollo):this._apollo.set(n.get(Zi)?.pluginServices()?.apollo??n.get(za))}injector;_apollo=Ie(void 0);apollo=()=>this._apollo();static \u0275fac=function(e){return new(e||t)(Wt(Hn))};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})};var Fy=()=>[import("./chunk-SPIR5TD3.js").then(t=>t.Base),import("./chunk-JOBM76N2.js").then(t=>t.Button)],Ry=(t,n)=>n.title;function Vy(t,n){t&1&&(k(0,"div",2),oe(1," Apollo not provided! "),x())}function By(t,n){if(t&1){let e=te();k(0,"p-button",5),Q("click",function(){let o=w(e).$implicit,r=u(2);return C(o.link?r.router.navigate([o.link]):null)}),x()}if(t&2){let e=n.$implicit,i=n.$index,o=n.$index,r=n.$count;I("w-full drop-shadow-lg"+(o===r-1&&i%2==0?" col-span-2":"")),d("label",e.title)("icon",e.icon)}}function Ay(t,n){if(t&1&&(k(0,"app-base",0)(1,"div",1),oe(2," This is a demo of a PHX Frontend Plugin. "),Z(3,"br"),oe(4," Click the buttons below to navigate to the different pages. "),x(),Re(5,Vy,2,0,"div",2),k(6,"div",3),Di(7,By,1,4,"p-button",4,Ry),x()()),t&2){let e=u();d("title",Np("Hello ",e.userName(),"!"))("noHomeButton",!0),f(5),Ve(e.apolloProvided()?-1:5),f(2),Oi(e.routeItems())}}var ja=class t{constructor(n){this.apollo=n;this.init()}apollo;router=G(Tn);userName=Ie(void 0);apolloProvided=Be(()=>this.apollo.apollo()!==void 0);routeItems=ue([{title:"Product View",link:"/product-view",icon:"fa fa-boxes-stacked"},{title:"Address List",link:"/address-list",icon:"fa fa-address-card"}]);init(){return Ze(this,null,function*(){let n="World";try{let e=yield rn(this.apollo.apollo().query({query:bm}));if(!e.data?.me)return;n=e.data.me.identifier??"World";let i=yield rn(this.apollo.apollo().query({query:_m,variables:{id:e.data.me.id}}));if(i.data?.getUser?.activeEmployee){let o=[i.data.getUser.activeEmployee.name,i.data.getUser.activeEmployee.lastName].filter(Boolean);o.length>0&&(n=o.join(" "))}}catch(e){console.error(e)}finally{this.userName.set(n)}})}static \u0275fac=function(e){return new(e||t)(ye(Rn))};static \u0275cmp=U({type:t,selectors:[["app-hello-world"]],inputs:{routeItems:[1,"routeItems"]},decls:3,vars:1,consts:[[3,"title","noHomeButton"],[1,"text-muted-color","text-center","bg-white","border-2","rounded-lg","p-8","mb-4","drop-shadow-lg"],[1,"text-center","text-white","bg-red-500","border-2","rounded-lg","p-4","mb-4"],[1,"grid","grid-cols-2","gap-2","pt-4"],["size","large","styleClass","w-full","iconPos","top",3,"label","icon","class"],["size","large","styleClass","w-full","iconPos","top",3,"click","label","icon"]],template:function(e,i){e&1&&(Pp(0,Ay,9,4),Vp(1,0,Fy)),e&2&&(f(),Bp(i.userName()))},styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var Ly=["data-p-icon","angle-double-left"],vm=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","angle-double-left"]],features:[L],attrs:Ly,decls:1,vars:0,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var Ny=["data-p-icon","angle-double-right"],wm=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","angle-double-right"]],features:[L],attrs:Ny,decls:1,vars:0,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var zy=["data-p-icon","angle-down"],Cm=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","angle-down"]],features:[L],attrs:zy,decls:1,vars:0,consts:[["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var jy=["data-p-icon","angle-left"],xm=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","angle-left"]],features:[L],attrs:jy,decls:1,vars:0,consts:[["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var Hy=["data-p-icon","angle-right"],km=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","angle-right"]],features:[L],attrs:Hy,decls:1,vars:0,consts:[["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var Qy=["data-p-icon","angle-up"],Tm=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","angle-up"]],features:[L],attrs:Qy,decls:1,vars:0,consts:[["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var qy=["data-p-icon","arrow-down"],mc=(()=>{class t extends ce{pathId;onInit(){this.pathId="url(#"+rt()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","arrow-down"]],features:[L],attrs:qy,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(j(),Qe(0,"g"),ae(1,"path",0),qe(),Qe(2,"defs")(3,"clipPath",1),ae(4,"rect",2),qe()()),i&2&&(Y("clip-path",o.pathId),f(3),ct("id",o.pathId))},encapsulation:2})}return t})();var Uy=["data-p-icon","arrow-up"],gc=(()=>{class t extends ce{pathId;onInit(){this.pathId="url(#"+rt()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","arrow-up"]],features:[L],attrs:Uy,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(j(),Qe(0,"g"),ae(1,"path",0),qe(),Qe(2,"defs")(3,"clipPath",1),ae(4,"rect",2),qe()()),i&2&&(Y("clip-path",o.pathId),f(3),ct("id",o.pathId))},encapsulation:2})}return t})();var Gy=["data-p-icon","blank"],Sm=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","blank"]],features:[L],attrs:Gy,decls:1,vars:0,consts:[["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(i,o){i&1&&(j(),ae(0,"rect",0))},encapsulation:2})}return t})();var $y=["data-p-icon","calendar"],Im=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","calendar"]],features:[L],attrs:$y,decls:1,vars:0,consts:[["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var Wy=["data-p-icon","check"],Qa=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","check"]],features:[L],attrs:Wy,decls:1,vars:0,consts:[["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var Ky=["data-p-icon","chevron-down"],qa=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","chevron-down"]],features:[L],attrs:Ky,decls:1,vars:0,consts:[["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var Yy=["data-p-icon","chevron-left"],Em=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","chevron-left"]],features:[L],attrs:Yy,decls:1,vars:0,consts:[["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var Zy=["data-p-icon","chevron-right"],Mm=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","chevron-right"]],features:[L],attrs:Zy,decls:1,vars:0,consts:[["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var Jy=["data-p-icon","chevron-up"],Dm=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","chevron-up"]],features:[L],attrs:Jy,decls:1,vars:0,consts:[["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var Xy=["data-p-icon","filter"],Om=(()=>{class t extends ce{pathId;onInit(){this.pathId="url(#"+rt()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","filter"]],features:[L],attrs:Xy,decls:5,vars:2,consts:[["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(j(),Qe(0,"g"),ae(1,"path",0),qe(),Qe(2,"defs")(3,"clipPath",1),ae(4,"rect",2),qe()()),i&2&&(Y("clip-path",o.pathId),f(3),ct("id",o.pathId))},encapsulation:2})}return t})();var ev=["data-p-icon","filter-slash"],Pm=(()=>{class t extends ce{pathId;onInit(){this.pathId="url(#"+rt()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","filter-slash"]],features:[L],attrs:ev,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(j(),Qe(0,"g"),ae(1,"path",0),qe(),Qe(2,"defs")(3,"clipPath",1),ae(4,"rect",2),qe()()),i&2&&(Y("clip-path",o.pathId),f(3),ct("id",o.pathId))},encapsulation:2})}return t})();var tv=["data-p-icon","minus"],Fm=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","minus"]],features:[L],attrs:tv,decls:1,vars:0,consts:[["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var nv=["data-p-icon","plus"],Rm=(()=>{class t extends ce{pathId;onInit(){this.pathId="url(#"+rt()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","plus"]],features:[L],attrs:nv,decls:5,vars:2,consts:[["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(j(),Qe(0,"g"),ae(1,"path",0),qe(),Qe(2,"defs")(3,"clipPath",1),ae(4,"rect",2),qe()()),i&2&&(Y("clip-path",o.pathId),f(3),ct("id",o.pathId))},encapsulation:2})}return t})();var iv=["data-p-icon","search"],Vm=(()=>{class t extends ce{pathId;onInit(){this.pathId="url(#"+rt()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","search"]],features:[L],attrs:iv,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(j(),Qe(0,"g"),ae(1,"path",0),qe(),Qe(2,"defs")(3,"clipPath",1),ae(4,"rect",2),qe()()),i&2&&(Y("clip-path",o.pathId),f(3),ct("id",o.pathId))},encapsulation:2})}return t})();var ov=["data-p-icon","sort-alt"],Bm=(()=>{class t extends ce{pathId;onInit(){this.pathId="url(#"+rt()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","sort-alt"]],features:[L],attrs:ov,decls:8,vars:2,consts:[["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(j(),Qe(0,"g"),ae(1,"path",0)(2,"path",1)(3,"path",2)(4,"path",3),qe(),Qe(5,"defs")(6,"clipPath",4),ae(7,"rect",5),qe()()),i&2&&(Y("clip-path",o.pathId),f(6),ct("id",o.pathId))},encapsulation:2})}return t})();var rv=["data-p-icon","sort-amount-down"],Am=(()=>{class t extends ce{pathId;onInit(){this.pathId="url(#"+rt()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","sort-amount-down"]],features:[L],attrs:rv,decls:5,vars:2,consts:[["d","M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(j(),Qe(0,"g"),ae(1,"path",0),qe(),Qe(2,"defs")(3,"clipPath",1),ae(4,"rect",2),qe()()),i&2&&(Y("clip-path",o.pathId),f(3),ct("id",o.pathId))},encapsulation:2})}return t})();var av=["data-p-icon","sort-amount-up-alt"],Lm=(()=>{class t extends ce{pathId;onInit(){this.pathId="url(#"+rt()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","sort-amount-up-alt"]],features:[L],attrs:av,decls:5,vars:2,consts:[["d","M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(j(),Qe(0,"g"),ae(1,"path",0),qe(),Qe(2,"defs")(3,"clipPath",1),ae(4,"rect",2),qe()()),i&2&&(Y("clip-path",o.pathId),f(3),ct("id",o.pathId))},encapsulation:2})}return t})();var sv=["data-p-icon","times"],Fo=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","times"]],features:[L],attrs:sv,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var lv=["data-p-icon","trash"],Nm=(()=>{class t extends ce{pathId;onInit(){this.pathId="url(#"+rt()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","trash"]],features:[L],attrs:lv,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(j(),Qe(0,"g"),ae(1,"path",0),qe(),Qe(2,"defs")(3,"clipPath",1),ae(4,"rect",2),qe()()),i&2&&(Y("clip-path",o.pathId),f(3),ct("id",o.pathId))},encapsulation:2})}return t})();var Wm=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(ye(Gs),ye(Yo))};static \u0275dir=yt({type:t})}return t})(),dv=(()=>{class t extends Wm{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275dir=yt({type:t,features:[L]})}return t})(),Ot=new we("");var uv={provide:Ot,useExisting:_t(()=>Ao),multi:!0};function pv(){let t=Xs()?Xs().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var fv=new we(""),Ao=(()=>{class t extends Wm{_compositionMode;_composing=!1;constructor(e,i,o){super(e,i),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!pv())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||t)(ye(Gs),ye(Yo),ye(fv,8))};static \u0275dir=yt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&Q("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Ee([uv]),L]})}return t})();function Cc(t){return t==null||xc(t)===0}function xc(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var kc=new we(""),Tc=new we(""),hv=/^(?=.{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])?)*$/,Fr=class{static min(n){return mv(n)}static max(n){return gv(n)}static required(n){return bv(n)}static requiredTrue(n){return _v(n)}static email(n){return yv(n)}static minLength(n){return vv(n)}static maxLength(n){return wv(n)}static pattern(n){return Cv(n)}static nullValidator(n){return Km()}static compose(n){return tg(n)}static composeAsync(n){return ig(n)}};function mv(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function bv(t){return Cc(t.value)?{required:!0}:null}function _v(t){return t.value===!0?null:{required:!0}}function yv(t){return Cc(t.value)||hv.test(t.value)?null:{email:!0}}function vv(t){return n=>{let e=n.value?.length??xc(n.value);return e===null||e===0?null:e{let e=n.value?.length??xc(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function Cv(t){if(!t)return Km;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Cc(i.value))return null;let o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function Km(t){return null}function Ym(t){return t!=null}function Zm(t){return Fp(t)?gn(t):t}function Jm(t){let n={};return t.forEach(e=>{n=e!=null?T(T({},n),e):n}),Object.keys(n).length===0?null:n}function Xm(t,n){return n.map(e=>e(t))}function xv(t){return!t.validate}function eg(t){return t.map(n=>xv(n)?n:e=>n.validate(e))}function tg(t){if(!t)return null;let n=t.filter(Ym);return n.length==0?null:function(e){return Jm(Xm(e,n))}}function ng(t){return t!=null?tg(eg(t)):null}function ig(t){if(!t)return null;let n=t.filter(Ym);return n.length==0?null:function(e){let i=Xm(e,n).map(Zm);return gp(i).pipe(xt(Jm))}}function og(t){return t!=null?ig(eg(t)):null}function zm(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function rg(t){return t._rawValidators}function ag(t){return t._rawAsyncValidators}function bc(t){return t?Array.isArray(t)?t:[t]:[]}function Ga(t,n){return Array.isArray(t)?t.includes(n):t===n}function jm(t,n){let e=bc(n);return bc(t).forEach(o=>{Ga(e,o)||e.push(o)}),e}function Hm(t,n){return bc(n).filter(e=>!Ga(t,e))}var $a=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=ng(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=og(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Ji=class extends $a{name;get formDirective(){return null}get path(){return null}},Bt=class extends $a{_parent=null;name=null;valueAccessor=null},Wa=class{_cd;constructor(n){this._cd=n}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}},kv={"[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"},tQ=N(T({},kv),{"[class.ng-submitted]":"isSubmitted"}),xi=(()=>{class t extends Wa{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(ye(Bt,2))};static \u0275dir=yt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&na("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)},standalone:!1,features:[L]})}return t})(),sg=(()=>{class t extends Wa{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(ye(Ji,10))};static \u0275dir=yt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&na("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)},standalone:!1,features:[L]})}return t})();var Er="VALID",Ua="INVALID",Ro="PENDING",Mr="DISABLED",Ci=class{},Ka=class extends Ci{value;source;constructor(n,e){super(),this.value=n,this.source=e}},Dr=class extends Ci{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},Or=class extends Ci{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},Vo=class extends Ci{status;source;constructor(n,e){super(),this.status=n,this.source=e}},_c=class extends Ci{source;constructor(n){super(),this.source=n}},Rr=class extends Ci{source;constructor(n){super(),this.source=n}};function Sc(t){return(Xa(t)?t.validators:t)||null}function Tv(t){return Array.isArray(t)?ng(t):t||null}function Ic(t,n){return(Xa(n)?n.asyncValidators:t)||null}function Sv(t){return Array.isArray(t)?og(t):t||null}function Xa(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function lg(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new Se(1e3,"");if(!i[e])throw new Se(1001,"")}function cg(t,n,e){t._forEachChild((i,o)=>{if(e[o]===void 0)throw new Se(1002,"")})}var Bo=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return li(this.statusReactive)}set status(n){li(()=>this.statusReactive.set(n))}_status=Be(()=>this.statusReactive());statusReactive=Ie(void 0);get valid(){return this.status===Er}get invalid(){return this.status===Ua}get pending(){return this.status==Ro}get disabled(){return this.status===Mr}get enabled(){return this.status!==Mr}errors;get pristine(){return li(this.pristineReactive)}set pristine(n){li(()=>this.pristineReactive.set(n))}_pristine=Be(()=>this.pristineReactive());pristineReactive=Ie(!0);get dirty(){return!this.pristine}get touched(){return li(this.touchedReactive)}set touched(n){li(()=>this.touchedReactive.set(n))}_touched=Be(()=>this.touchedReactive());touchedReactive=Ie(!1);get untouched(){return!this.touched}_events=new Nt;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(jm(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(jm(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Hm(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Hm(n,this._rawAsyncValidators))}hasValidator(n){return Ga(this._rawValidators,n)}hasAsyncValidator(n){return Ga(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(N(T({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Or(!0,i))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new Or(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(N(T({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Dr(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new Dr(!0,i))}markAsPending(n={}){this.status=Ro;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Vo(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(N(T({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Mr,this.errors=null,this._forEachChild(o=>{o.disable(N(T({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Ka(this.value,i)),this._events.next(new Vo(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(N(T({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Er,this._forEachChild(i=>{i.enable(N(T({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(N(T({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Er||this.status===Ro)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Ka(this.value,e)),this._events.next(new Vo(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(N(T({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mr:Er}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=Ro,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=Zm(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new Vo(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?Mr:this.errors?Ua:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ro)?Ro:this._anyControlsHaveStatus(Ua)?Ua:Er}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),o=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),o&&this._events.next(new Dr(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Or(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Xa(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=Tv(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=Sv(this._rawAsyncValidators)}},Ya=class extends Bo{constructor(n,e,i){super(Sc(e),Ic(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){cg(this,!0,n),Object.keys(n).forEach(i=>{lg(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Rr(this))}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var yc=class extends Ya{};var es=new we("",{providedIn:"root",factory:()=>ts}),ts="always";function dg(t,n){return[...n.path,t]}function vc(t,n,e=ts){Ec(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),Ev(t,n),Dv(t,n),Mv(t,n),Iv(t,n)}function Qm(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Ja(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Za(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Iv(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function Ec(t,n){let e=rg(t);n.validator!==null?t.setValidators(zm(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=ag(t);n.asyncValidator!==null?t.setAsyncValidators(zm(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let o=()=>t.updateValueAndValidity();Za(n._rawValidators,o),Za(n._rawAsyncValidators,o)}function Ja(t,n){let e=!1;if(t!==null){if(n.validator!==null){let o=rg(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(n.asyncValidator!==null){let o=ag(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let i=()=>{};return Za(n._rawValidators,i),Za(n._rawAsyncValidators,i),e}function Ev(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&ug(t,n)})}function Mv(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&ug(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function ug(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Dv(t,n){let e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Ov(t,n){t==null,Ec(t,n)}function Pv(t,n){return Ja(t,n)}function pg(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function Fv(t){return Object.getPrototypeOf(t.constructor)===dv}function Rv(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function fg(t,n){if(!n)return null;Array.isArray(n);let e,i,o;return n.forEach(r=>{r.constructor===Ao?e=r:Fv(r)?i=r:o=r}),o||i||e||null}function Vv(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function qm(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Um(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Pr=class extends Bo{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(Sc(e),Ic(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xa(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Um(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Rr(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){qm(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){qm(this._onDisabledChange,n)}_forEachChild(n){}_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(n){Um(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var Bv=t=>t instanceof Pr;var Av={provide:Bt,useExisting:_t(()=>Xi)},Gm=Promise.resolve(),Xi=(()=>{class t extends Bt{_changeDetectorRef;callSetDisabledState;control=new Pr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new H;constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=fg(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),pg(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){vc(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Gm.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,o=i!==0&&P(i);Gm.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?dg(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(ye(Ji,9),ye(kc,10),ye(Tc,10),ye(Ot,10),ye(Js,8),ye(es,8))};static \u0275dir=yt({type:t,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"],standalone:!1,features:[Ee([Av]),L,ta]})}return t})();var hg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=yt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})();var mg=new we("");var Lv={provide:Ji,useExisting:_t(()=>Mc)},Mc=(()=>{class t extends Ji{callSetDisabledState;get submitted(){return li(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Be(()=>this._submittedReactive());_submittedReactive=Ie(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new H;constructor(e,i,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ja(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return vc(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Qm(e.control||null,e,!1),Vv(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),Rv(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new _c(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,o=this.form.get(e.path);i!==o&&(Qm(i||null,e),Bv(o)&&(vc(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);Ov(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&Pv(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ec(this.form,this),this._oldForm&&Ja(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(ye(kc,10),ye(Tc,10),ye(es,8))};static \u0275dir=yt({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&Q("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ee([Lv]),L,ta]})}return t})();var Nv={provide:Bt,useExisting:_t(()=>Dc)},Dc=(()=>{class t extends Bt{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new H;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=fg(this,r)}ngOnChanges(e){this._added||this._setUpControl(),pg(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return dg(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||t)(ye(Ji,13),ye(kc,10),ye(Tc,10),ye(Ot,10),ye(mg,8))};static \u0275dir=yt({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ee([Nv]),L,ta]})}return t})();var gg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({})}return t})(),wc=class extends Bo{constructor(n,e,i){super(Sc(e),Ic(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){Array.isArray(n)?n.forEach(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){cg(this,!1,n),n.forEach((i,o)=>{lg(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Rr(this))}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}};function $m(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var bg=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let o=this._reduceControls(e),r={};return $m(i)?r=i:i!==null&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Ya(o,r)}record(e,i=null){let o=this._reduceControls(e);return new yc(o,i)}control(e,i,o){let r={};return this.useNonNullable?($m(i)?r=i:(r.validators=i,r.asyncValidators=o),new Pr(e,N(T({},r),{nonNullable:!0}))):new Pr(e,i,o)}array(e,i,o){let r=e.map(a=>this._createControl(a));return new wc(r,i,o)}_reduceControls(e){let i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){if(e instanceof Pr)return e;if(e instanceof Bo)return e;if(Array.isArray(e)){let i=e[0],o=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(i,o,r)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Vn=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:es,useValue:e.callSetDisabledState??ts}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({imports:[gg]})}return t})(),_g=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:mg,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:es,useValue:e.callSetDisabledState??ts}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({imports:[gg]})}return t})();var is=(()=>{class t extends vt{modelValue=Ie(void 0);$filled=Be(()=>ci(this.modelValue()));writeModelValue(e){this.modelValue.set(e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275dir=yt({type:t,features:[L]})}return t})();var Bn=(()=>{class t extends is{required=ue(void 0,{transform:P});invalid=ue(void 0,{transform:P});disabled=ue(void 0,{transform:P});name=ue();_disabled=Ie(!1);$disabled=Be(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(e){this._disabled.set(e)}writeControlValue(e,i){}writeValue(e){this.writeControlValue(e,this.writeModelValue.bind(this))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.writeDisabledState(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275dir=yt({type:t,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[L]})}return t})();var Lo=(()=>{class t extends Bn{pcFluid=G(sa,{optional:!0,host:!0,skipSelf:!0});fluid=ue(void 0,{transform:P});variant=ue();size=ue();inputSize=ue();pattern=ue();min=ue();max=ue();step=ue();minlength=ue();maxlength=ue();$variant=Be(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275dir=yt({type:t,inputs:{fluid:[1,"fluid"],variant:[1,"variant"],size:[1,"size"],inputSize:[1,"inputSize"],pattern:[1,"pattern"],min:[1,"min"],max:[1,"max"],step:[1,"step"],minlength:[1,"minlength"],maxlength:[1,"maxlength"]},features:[L]})}return t})();var yg=` + ${hc} +`;var Bt={production:!0,apiUrl:void 0,wsUrl:void 0,apiKey:void 0,serverUrl:""};var Ia=class t{_hostInjector=ge(null);_pluginServices=ge(null);hostInjector(){return this._hostInjector()}setHostInjector(n){this._hostInjector.set(n)}pluginServices(){return this._pluginServices()}setPluginServices(n){this._pluginServices.set(n)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ji=class t{constructor(n){this.injector=n;Bt.production?this._apollo.set(n.get(Ia)?.pluginServices()?.apollo):this._apollo.set(n.get(Ia)?.pluginServices()?.apollo??n.get(Om))}injector;_apollo=ge(void 0);apollo=()=>this._apollo();static \u0275fac=function(e){return new(e||t)(me(Vt))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var _9=(t,n)=>n.title;function w9(t,n){t&1&&(E(0,"div",2),ce(1," Apollo not provided! "),T())}function C9(t,n){if(t&1){let e=se();E(0,"p-button",5),q("click",function(){let i=S(e).$implicit,o=m(2);return I(i.link?o.router.navigate([i.link]):null)}),T()}if(t&2){let e=n.$implicit,r=n.$index,i=n.$index,o=n.$count;k("w-full drop-shadow-lg"+(i===o-1&&r%2==0?" col-span-2":"")),h("label",e.title)("icon",e.icon)}}function x9(t,n){if(t&1&&(E(0,"app-base",0)(1,"div",1),ce(2," This is a demo of a PHX Frontend Plugin. "),X(3,"br"),ce(4," Click the buttons below to navigate to the different pages. "),T(),rt(5,w9,2,0,"div",2),E(6,"div",3),ts(7,C9,1,4,"p-button",4,_9),T()()),t&2){let e=m();h("title",Rb("Hello ",e.userName(),"!"))("noHomeButton",!0),g(5),it(e.apolloProvided()?-1:5),g(2),ns(e.routeItems())}}var Rm=class t{constructor(n){this.apollo=n;this.init()}apollo;router=x(Vn);userName=ge(void 0);apolloProvided=We(()=>this.apollo.apollo()!==void 0);routeItems=ae([{title:"Product View",link:"/product-view",icon:"fa fa-boxes-stacked"},{title:"Address List",link:"/address-list",icon:"fa fa-address-card"}]);init(){return pt(this,null,function*(){let n="World";try{let e=yield Cr(this.apollo.apollo().query({query:g2}));if(!e.data?.me)return;n=e.data.me.identifier??"World";let r=yield Cr(this.apollo.apollo().query({query:y2,variables:{id:e.data.me.id}}));if(r.data?.getUser?.activeEmployee){let i=[r.data.getUser.activeEmployee.name,r.data.getUser.activeEmployee.lastName].filter(Boolean);i.length>0&&(n=i.join(" "))}}catch(e){console.error(e)}finally{this.userName.set(n)}})}static \u0275fac=function(e){return new(e||t)(de(Ji))};static \u0275cmp=$({type:t,selectors:[["app-hello-world"]],inputs:{routeItems:[1,"routeItems"]},decls:1,vars:1,consts:[[3,"title","noHomeButton"],[1,"text-muted-color","text-center","bg-white","border-2","rounded-lg","p-8","mb-4","drop-shadow-lg"],[1,"text-center","text-white","bg-red-500","border-2","rounded-lg","p-4","mb-4"],[1,"grid","grid-cols-2","gap-2","pt-4"],["size","large","styleClass","w-full","iconPos","top",3,"label","icon","class"],["size","large","styleClass","w-full","iconPos","top",3,"click","label","icon"]],template:function(e,r){e&1&&rt(0,x9,9,4,"app-base",0),e&2&&it(r.userName()?0:-1)},dependencies:[cs,rr],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var I2=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,r){this._renderer=e,this._elementRef=r}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(r){return new(r||t)(de(Jr),de(un))};static \u0275dir=Ue({type:t})}return t})(),T9=(()=>{class t extends I2{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,features:[j]})}return t})(),Nn=new H("");var E9={provide:Nn,useExisting:$t(()=>bc),multi:!0};function S9(){let t=Pr()?Pr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var I9=new H(""),bc=(()=>{class t extends I2{_compositionMode;_composing=!1;constructor(e,r,i){super(e,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!S9())}writeValue(e){let r=e??"";this.setProperty("value",r)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(r){return new(r||t)(de(Jr),de(un),de(I9,8))};static \u0275dir=Ue({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&q("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[xe([E9]),j]})}return t})();function mw(t){return t==null||gw(t)===0}function gw(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var yw=new H(""),bw=new H(""),D9=/^(?=.{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])?)*$/,Nu=class{static min(n){return k9(n)}static max(n){return M9(n)}static required(n){return O9(n)}static requiredTrue(n){return R9(n)}static email(n){return P9(n)}static minLength(n){return A9(n)}static maxLength(n){return N9(n)}static pattern(n){return F9(n)}static nullValidator(n){return D2()}static compose(n){return A2(n)}static composeAsync(n){return F2(n)}};function k9(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function O9(t){return mw(t.value)?{required:!0}:null}function R9(t){return t.value===!0?null:{required:!0}}function P9(t){return mw(t.value)||D9.test(t.value)?null:{email:!0}}function A9(t){return n=>{let e=n.value?.length??gw(n.value);return e===null||e===0?null:e{let e=n.value?.length??gw(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function F9(t){if(!t)return D2;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),r=>{if(mw(r.value))return null;let i=r.value;return n.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}function D2(t){return null}function k2(t){return t!=null}function M2(t){return es(t)?ft(t):t}function O2(t){let n={};return t.forEach(e=>{n=e!=null?_(_({},n),e):n}),Object.keys(n).length===0?null:n}function R2(t,n){return n.map(e=>e(t))}function L9(t){return!t.validate}function P2(t){return t.map(n=>L9(n)?n:e=>n.validate(e))}function A2(t){if(!t)return null;let n=t.filter(k2);return n.length==0?null:function(e){return O2(R2(e,n))}}function N2(t){return t!=null?A2(P2(t)):null}function F2(t){if(!t)return null;let n=t.filter(k2);return n.length==0?null:function(e){let r=R2(e,n).map(M2);return Zg(r).pipe(be(O2))}}function L2(t){return t!=null?F2(P2(t)):null}function v2(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function B2(t){return t._rawValidators}function V2(t){return t._rawAsyncValidators}function dw(t){return t?Array.isArray(t)?t:[t]:[]}function Am(t,n){return Array.isArray(t)?t.includes(n):t===n}function _2(t,n){let e=dw(n);return dw(t).forEach(i=>{Am(e,i)||e.push(i)}),e}function w2(t,n){return dw(n).filter(e=>!Am(t,e))}var Nm=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=N2(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=L2(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Da=class extends Nm{name;get formDirective(){return null}get path(){return null}},Yn=class extends Nm{_parent=null;name=null;valueAccessor=null},Fm=class{_cd;constructor(n){this._cd=n}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}},B9={"[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"},zNe=A(_({},B9),{"[class.ng-submitted]":"isSubmitted"}),ws=(()=>{class t extends Fm{constructor(e){super(e)}static \u0275fac=function(r){return new(r||t)(de(Yn,2))};static \u0275dir=Ue({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&ta("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[j]})}return t})(),j2=(()=>{class t extends Fm{constructor(e){super(e)}static \u0275fac=function(r){return new(r||t)(de(Da,10))};static \u0275dir=Ue({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){r&2&&ta("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},standalone:!1,features:[j]})}return t})();var Mu="VALID",Pm="INVALID",mc="PENDING",Ou="DISABLED",_s=class{},Lm=class extends _s{value;source;constructor(n,e){super(),this.value=n,this.source=e}},Ru=class extends _s{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},Pu=class extends _s{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},gc=class extends _s{status;source;constructor(n,e){super(),this.status=n,this.source=e}},uw=class extends _s{source;constructor(n){super(),this.source=n}},Fu=class extends _s{source;constructor(n){super(),this.source=n}};function vw(t){return(zm(t)?t.validators:t)||null}function V9(t){return Array.isArray(t)?N2(t):t||null}function _w(t,n){return(zm(n)?n.asyncValidators:t)||null}function j9(t){return Array.isArray(t)?L2(t):t||null}function zm(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function z2(t,n,e){let r=t.controls;if(!(n?Object.keys(r):r).length)throw new U(1e3,"");if(!r[e])throw new U(1001,"")}function H2(t,n,e){t._forEachChild((r,i)=>{if(e[i]===void 0)throw new U(1002,"")})}var yc=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return fn(this.statusReactive)}set status(n){fn(()=>this.statusReactive.set(n))}_status=We(()=>this.statusReactive());statusReactive=ge(void 0);get valid(){return this.status===Mu}get invalid(){return this.status===Pm}get pending(){return this.status==mc}get disabled(){return this.status===Ou}get enabled(){return this.status!==Ou}errors;get pristine(){return fn(this.pristineReactive)}set pristine(n){fn(()=>this.pristineReactive.set(n))}_pristine=We(()=>this.pristineReactive());pristineReactive=ge(!0);get dirty(){return!this.pristine}get touched(){return fn(this.touchedReactive)}set touched(n){fn(()=>this.touchedReactive.set(n))}_touched=We(()=>this.touchedReactive());touchedReactive=ge(!1);get untouched(){return!this.touched}_events=new qe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(_2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(_2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(w2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(w2(n,this._rawAsyncValidators))}hasValidator(n){return Am(this._rawValidators,n)}hasAsyncValidator(n){return Am(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(A(_({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new Pu(!0,r))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=n.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),e&&n.emitEvent!==!1&&this._events.next(new Pu(!1,r))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(A(_({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new Ru(!1,r))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=n.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),e&&n.emitEvent!==!1&&this._events.next(new Ru(!0,r))}markAsPending(n={}){this.status=mc;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new gc(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(A(_({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Ou,this.errors=null,this._forEachChild(i=>{i.disable(A(_({},n),{onlySelf:!0}))}),this._updateValue();let r=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Lm(this.value,r)),this._events.next(new gc(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(A(_({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Mu,this._forEachChild(r=>{r.enable(A(_({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(A(_({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Mu||this.status===mc)&&this._runAsyncValidator(r,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Lm(this.value,e)),this._events.next(new gc(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(A(_({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ou:Mu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=mc,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let r=M2(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((r,i)=>r&&r._find(i),this)}getError(n,e){let r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new gc(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,r)}_initObservables(){this.valueChanges=new z,this.statusChanges=new z}_calculateStatus(){return this._allControlsDisabled()?Ou:this.errors?Pm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mc)?mc:this._anyControlsHaveStatus(Pm)?Pm:Mu}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),i&&this._events.next(new Ru(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Pu(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){zm(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=V9(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=j9(this._rawAsyncValidators)}},Bm=class extends yc{constructor(n,e,r){super(vw(e),_w(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,r={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){H2(this,!0,n),Object.keys(n).forEach(r=>{z2(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(r=>{let i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Fu(this))}getRawValue(){return this._reduceChildren({},(n,e,r)=>(n[r]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,r)=>r._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let r=this.controls[e];r&&n(r,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,r]of Object.entries(this.controls))if(this.contains(e)&&n(r))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,r,i)=>((r.enabled||this.disabled)&&(e[i]=r.value),e))}_reduceChildren(n,e){let r=n;return this._forEachChild((i,o)=>{r=e(r,i,o)}),r}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var pw=class extends Bm{};var Hm=new H("",{providedIn:"root",factory:()=>$m}),$m="always";function $2(t,n){return[...n.path,t]}function fw(t,n,e=$m){ww(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),H9(t,n),U9(t,n),$9(t,n),z9(t,n)}function C2(t,n,e=!0){let r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),jm(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Vm(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function z9(t,n){if(n.valueAccessor.setDisabledState){let e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ww(t,n){let e=B2(t);n.validator!==null?t.setValidators(v2(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let r=V2(t);n.asyncValidator!==null?t.setAsyncValidators(v2(r,n.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();Vm(n._rawValidators,i),Vm(n._rawAsyncValidators,i)}function jm(t,n){let e=!1;if(t!==null){if(n.validator!==null){let i=B2(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==n.validator);o.length!==i.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let i=V2(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==n.asyncValidator);o.length!==i.length&&(e=!0,t.setAsyncValidators(o))}}}let r=()=>{};return Vm(n._rawValidators,r),Vm(n._rawAsyncValidators,r),e}function H9(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&U2(t,n)})}function $9(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&U2(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function U2(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function U9(t,n){let e=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function W9(t,n){t==null,ww(t,n)}function G9(t,n){return jm(t,n)}function W2(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function q9(t){return Object.getPrototypeOf(t.constructor)===T9}function Q9(t,n){t._syncPendingControls(),n.forEach(e=>{let r=e.control;r.updateOn==="submit"&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function G2(t,n){if(!n)return null;Array.isArray(n);let e,r,i;return n.forEach(o=>{o.constructor===bc?e=o:q9(o)?r=o:i=o}),i||r||e||null}function K9(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function x2(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function T2(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Au=class extends yc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,r){super(vw(e),_w(r,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),zm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(T2(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Fu(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){x2(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){x2(this._onDisabledChange,n)}_forEachChild(n){}_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(n){T2(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var Y9=t=>t instanceof Au;var Z9={provide:Yn,useExisting:$t(()=>ka)},E2=Promise.resolve(),ka=(()=>{class t extends Yn{_changeDetectorRef;callSetDisabledState;control=new Au;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new z;constructor(e,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=G2(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),W2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){fw(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){E2.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let r=e.isDisabled.currentValue,i=r!==0&&R(r);E2.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?$2(e,this._parent):[e]}static \u0275fac=function(r){return new(r||t)(de(Da,9),de(yw,10),de(bw,10),de(Nn,10),de(rs,8),de(Hm,8))};static \u0275dir=Ue({type:t,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"],standalone:!1,features:[xe([Z9]),j,Kr]})}return t})();var q2=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})();var Q2=new H("");var J9={provide:Da,useExisting:$t(()=>Cw)},Cw=(()=>{class t extends Da{callSetDisabledState;get submitted(){return fn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=We(()=>this._submittedReactive());_submittedReactive=ge(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new z;constructor(e,r,i){super(),this.callSetDisabledState=i,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(jm(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let r=this.form.get(e.path);return fw(r,e,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){C2(e.control||null,e,!1),K9(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this._submittedReactive.set(!0),Q9(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new uw(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,r={}){this.form.reset(e,r),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let r=e.control,i=this.form.get(e.path);r!==i&&(C2(r||null,e),Y9(i)&&(fw(i,e,this.callSetDisabledState),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let r=this.form.get(e.path);W9(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let r=this.form.get(e.path);r&&G9(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ww(this.form,this),this._oldForm&&jm(this._oldForm,this)}static \u0275fac=function(r){return new(r||t)(de(yw,10),de(bw,10),de(Hm,8))};static \u0275dir=Ue({type:t,selectors:[["","formGroup",""]],hostBindings:function(r,i){r&1&&q("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[xe([J9]),j,Kr]})}return t})();var X9={provide:Yn,useExisting:$t(()=>xw)},xw=(()=>{class t extends Yn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new z;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,r,i,o,s){super(),this._ngModelWarningConfig=s,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=G2(this,o)}ngOnChanges(e){this._added||this._setUpControl(),W2(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return $2(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(r){return new(r||t)(de(Da,13),de(yw,10),de(bw,10),de(Nn,10),de(Q2,8))};static \u0275dir=Ue({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[xe([X9]),j,Kr]})}return t})();var K2=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({})}return t})(),hw=class extends yc{constructor(n,e,r){super(vw(e),_w(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){Array.isArray(n)?n.forEach(r=>{this.controls.push(r),this._registerControl(r)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,r={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,e={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){H2(this,!1,n),n.forEach((r,i)=>{z2(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Fu(this))}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,r)=>r._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,r)=>{n(e,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}};function S2(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var Y2=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,r=null){let i=this._reduceControls(e),o={};return S2(r)?o=r:r!==null&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new Bm(i,o)}record(e,r=null){let i=this._reduceControls(e);return new pw(i,r)}control(e,r,i){let o={};return this.useNonNullable?(S2(r)?o=r:(o.validators=r,o.asyncValidators=i),new Au(e,A(_({},o),{nonNullable:!0}))):new Au(e,r,i)}array(e,r,i){let o=e.map(s=>this._createControl(s));return new hw(o,r,i)}_reduceControls(e){let r={};return Object.keys(e).forEach(i=>{r[i]=this._createControl(e[i])}),r}_createControl(e){if(e instanceof Au)return e;if(e instanceof yc)return e;if(Array.isArray(e)){let r=e[0],i=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(r,i,o)}else return this.control(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Xi=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Hm,useValue:e.callSetDisabledState??$m}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[K2]})}return t})(),Z2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Q2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Hm,useValue:e.callSetDisabledState??$m}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[K2]})}return t})();var Wm=(()=>{class t extends ut{modelValue=ge(void 0);$filled=We(()=>lt(this.modelValue()));writeModelValue(e){this.modelValue.set(e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,features:[j]})}return t})();var eo=(()=>{class t extends Wm{required=ae(void 0,{transform:R});invalid=ae(void 0,{transform:R});disabled=ae(void 0,{transform:R});name=ae();_disabled=ge(!1);$disabled=We(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(e){this._disabled.set(e)}writeControlValue(e,r){}writeValue(e){this.writeControlValue(e,this.writeModelValue.bind(this))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.writeDisabledState(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[j]})}return t})();var vc=(()=>{class t extends eo{pcFluid=x(Gl,{optional:!0,host:!0,skipSelf:!0});fluid=ae(void 0,{transform:R});variant=ae();size=ae();inputSize=ae();pattern=ae();min=ae();max=ae();step=ae();minlength=ae();maxlength=ae();$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,inputs:{fluid:[1,"fluid"],variant:[1,"variant"],size:[1,"size"],inputSize:[1,"inputSize"],pattern:[1,"pattern"],min:[1,"min"],max:[1,"max"],step:[1,"step"],minlength:[1,"minlength"],maxlength:[1,"maxlength"]},features:[j]})}return t})();var J2=` .p-iconfield { position: relative; display: block; @@ -156,7 +1197,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a height: dt('form.field.lg.font.size'); margin-top: calc(-1 * (dt('form.field.lg.font.size') / 2)); } -`;var zv=["*"],jv={root:({instance:t})=>["p-iconfield",{"p-iconfield-left":t.iconPosition=="left","p-iconfield-right":t.iconPosition=="right"}]},vg=(()=>{class t extends Ge{name="iconfield";style=yg;classes=jv;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var wg=new we("ICONFIELD_INSTANCE"),os=(()=>{class t extends vt{hostName="";_componentStyle=G(vg);$pcIconField=G(wg,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=G(X,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}iconPosition="left";styleClass;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostVars:2,hostBindings:function(i,o){i&2&&I(o.cn(o.cx("root"),o.styleClass))},inputs:{hostName:"hostName",iconPosition:"iconPosition",styleClass:"styleClass"},features:[Ee([vg,{provide:wg,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],ngContentSelectors:zv,decls:1,vars:0,template:function(i,o){i&1&&(en(),zt(0))},dependencies:[$e,dt],encapsulation:2,changeDetection:0})}return t})();var Hv=["*"],Qv={root:"p-inputicon"},Cg=(()=>{class t extends Ge{name="inputicon";classes=Qv;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})(),xg=new we("INPUTICON_INSTANCE"),rs=(()=>{class t extends vt{hostName="";styleClass;_componentStyle=G(Cg);$pcInputIcon=G(xg,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=G(X,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:2,hostBindings:function(i,o){i&2&&I(o.cn(o.cx("root"),o.styleClass))},inputs:{hostName:"hostName",styleClass:"styleClass"},features:[Ee([Cg,{provide:xg,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],ngContentSelectors:Hv,decls:1,vars:0,template:function(i,o){i&1&&(en(),zt(0))},dependencies:[$e,ve,dt],encapsulation:2,changeDetection:0})}return t})();var kg=` +`;var ej=["*"],tj={root:({instance:t})=>["p-iconfield",{"p-iconfield-left":t.iconPosition=="left","p-iconfield-right":t.iconPosition=="right"}]},X2=(()=>{class t extends Oe{name="iconfield";style=J2;classes=tj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var eR=new H("ICONFIELD_INSTANCE"),Gm=(()=>{class t extends ut{hostName="";_componentStyle=x(X2);$pcIconField=x(eR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}iconPosition="left";styleClass;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostVars:2,hostBindings:function(r,i){r&2&&k(i.cn(i.cx("root"),i.styleClass))},inputs:{hostName:"hostName",iconPosition:"iconPosition",styleClass:"styleClass"},features:[xe([X2,{provide:eR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:ej,decls:1,vars:0,template:function(r,i){r&1&&(Ht(),Ot(0))},dependencies:[Qe,Gt],encapsulation:2,changeDetection:0})}return t})();var nj=["*"],rj={root:"p-inputicon"},tR=(()=>{class t extends Oe{name="inputicon";classes=rj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),nR=new H("INPUTICON_INSTANCE"),qm=(()=>{class t extends ut{hostName="";styleClass;_componentStyle=x(tR);$pcInputIcon=x(nR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:2,hostBindings:function(r,i){r&2&&k(i.cn(i.cx("root"),i.styleClass))},inputs:{hostName:"hostName",styleClass:"styleClass"},features:[xe([tR,{provide:nR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:nj,decls:1,vars:0,template:function(r,i){r&1&&(Ht(),Ot(0))},dependencies:[Qe,Te,Gt],encapsulation:2,changeDetection:0})}return t})();var rR=` .p-inputtext { font-family: inherit; font-feature-settings: inherit; @@ -234,8 +1275,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a .p-inputtext-fluid { width: 100%; } -`;var qv=` - ${kg} +`;var ij=` + ${rR} /* For PrimeNG */ .p-inputtext.ng-invalid.ng-dirty { @@ -245,7 +1286,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a .p-inputtext.ng-invalid.ng-dirty::placeholder { color: dt('inputtext.invalid.placeholder.color'); } -`,Uv={root:({instance:t})=>["p-inputtext p-component",{"p-filled":t.$filled(),"p-inputtext-sm":t.pSize==="small","p-inputtext-lg":t.pSize==="large","p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-inputtext-fluid":t.hasFluid}]},Tg=(()=>{class t extends Ge{name="inputtext";style=qv;classes=Uv;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var Sg=new we("INPUTTEXT_INSTANCE"),An=(()=>{class t extends is{hostName="";ptInputText=ue();bindDirectiveInstance=G(X,{self:!0});$pcInputText=G(Sg,{optional:!0,skipSelf:!0})??void 0;ngControl=G(Bt,{optional:!0,self:!0});pcFluid=G(sa,{optional:!0,host:!0,skipSelf:!0});pSize;variant=ue();fluid=ue(void 0,{transform:P});invalid=ue(void 0,{transform:P});$variant=Be(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());_componentStyle=G(Tg);constructor(){super(),wn(()=>{this.ptInputText()&&this.directivePT.set(this.ptInputText())})}onAfterViewInit(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value),this.cd.detectChanges()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("root"))}onDoCheck(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}onInput(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=function(i){return new(i||t)};static \u0275dir=yt({type:t,selectors:[["","pInputText",""]],hostVars:2,hostBindings:function(i,o){i&1&&Q("input",function(a){return o.onInput(a)}),i&2&&I(o.cx("root"))},inputs:{hostName:"hostName",ptInputText:[1,"ptInputText"],pSize:"pSize",variant:[1,"variant"],fluid:[1,"fluid"],invalid:[1,"invalid"]},features:[Ee([Tg,{provide:Sg,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L]})}return t})(),Ig=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({})}return t})();var me=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(me||{}),nn="*";function Vr(t,n){return{type:me.Trigger,name:t,definitions:n,options:{}}}function ni(t,n=null){return{type:me.Animate,styles:n,timings:t}}function Eg(t,n=null){return{type:me.Sequence,steps:t,options:n}}function qt(t){return{type:me.Style,styles:t,offset:null}}function Oc(t,n,e){return{type:me.State,name:t,styles:n,options:e}}function ii(t,n,e=null){return{type:me.Transition,expr:t,animation:n,options:e}}function as(t,n=null){return{type:me.Reference,animation:t,options:n}}function ss(t,n=null){return{type:me.AnimateRef,animation:t,options:n}}var Ln=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,e=0){this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},eo=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let e=0,i=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(i=>{let o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){let n=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},No="!";var Mg=["content"],Gv=["overlay"],$v=["*"],Wv=(t,n,e)=>({showTransitionParams:t,hideTransitionParams:n,transform:e}),Kv=t=>({value:"visible",params:t}),Yv=t=>({mode:t}),Zv=t=>({$implicit:t});function Jv(t,n){t&1&&J(0)}function Xv(t,n){if(t&1){let e=te();k(0,"div",3,1),Q("click",function(o){w(e);let r=u(2);return C(r.onOverlayContentClick(o))})("@overlayContentAnimation.start",function(o){w(e);let r=u(2);return C(r.onOverlayContentAnimationStart(o))})("@overlayContentAnimation.done",function(o){w(e);let r=u(2);return C(r.onOverlayContentAnimationDone(o))}),zt(2),_(3,Jv,1,0,"ng-container",4),x()}if(t&2){let e=u(2);I(e.cn(e.cx("content"),e.contentStyleClass)),d("pBind",e.ptm("content"))("@overlayContentAnimation",de(10,Kv,zp(6,Wv,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),f(3),d("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",de(14,Zv,de(12,Yv,e.overlayMode)))}}function e1(t,n){if(t&1){let e=te();k(0,"div",3,0),Q("click",function(){w(e);let o=u();return C(o.onOverlayClick())}),_(2,Xv,4,16,"div",2),x()}if(t&2){let e=u();I(e.cn(e.cx("root"),e.styleClass)),d("pBind",e.ptm("root")),f(2),d("ngIf",e.visible)}}var t1=` +`,oj={root:({instance:t})=>["p-inputtext p-component",{"p-filled":t.$filled(),"p-inputtext-sm":t.pSize==="small","p-inputtext-lg":t.pSize==="large","p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-inputtext-fluid":t.hasFluid}]},iR=(()=>{class t extends Oe{name="inputtext";style=ij;classes=oj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var oR=new H("INPUTTEXT_INSTANCE"),to=(()=>{class t extends Wm{hostName="";ptInputText=ae();bindDirectiveInstance=x(te,{self:!0});$pcInputText=x(oR,{optional:!0,skipSelf:!0})??void 0;ngControl=x(Yn,{optional:!0,self:!0});pcFluid=x(Gl,{optional:!0,host:!0,skipSelf:!0});pSize;variant=ae();fluid=ae(void 0,{transform:R});invalid=ae(void 0,{transform:R});$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());_componentStyle=x(iR);constructor(){super(),Lt(()=>{this.ptInputText()&&this.directivePT.set(this.ptInputText())})}onAfterViewInit(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value),this.cd.detectChanges()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("root"))}onDoCheck(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}onInput(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["","pInputText",""]],hostVars:2,hostBindings:function(r,i){r&1&&q("input",function(s){return i.onInput(s)}),r&2&&k(i.cx("root"))},inputs:{hostName:"hostName",ptInputText:[1,"ptInputText"],pSize:"pSize",variant:[1,"variant"],fluid:[1,"fluid"],invalid:[1,"invalid"]},features:[xe([iR,{provide:oR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j]})}return t})(),sR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({})}return t})();var Ne=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Ne||{}),Br="*";function Lu(t,n){return{type:Ne.Trigger,name:t,definitions:n,options:{}}}function Po(t,n=null){return{type:Ne.Animate,styles:n,timings:t}}function aR(t,n=null){return{type:Ne.Sequence,steps:t,options:n}}function sr(t){return{type:Ne.Style,styles:t,offset:null}}function Tw(t,n,e){return{type:Ne.State,name:t,styles:n,options:e}}function Ao(t,n,e=null){return{type:Ne.Transition,expr:t,animation:n,options:e}}function Qm(t,n=null){return{type:Ne.Reference,animation:t,options:n}}function Km(t,n=null){return{type:Ne.AnimateRef,animation:t,options:n}}var no=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,e=0){this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}},Ma=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let e=0,r=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(r=>{let i=r.totalTime?Math.min(1,e/r.totalTime):1;r.setPosition(i)})}getPosition(){let n=this.players.reduce((e,r)=>e===null||r.totalTime>e.totalTime?r:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}},_c="!";var lR=["content"],sj=["overlay"],aj=["*"],lj=(t,n,e)=>({showTransitionParams:t,hideTransitionParams:n,transform:e}),cj=t=>({value:"visible",params:t}),dj=t=>({mode:t}),uj=t=>({$implicit:t});function pj(t,n){t&1&&ne(0)}function fj(t,n){if(t&1){let e=se();E(0,"div",3,1),q("click",function(i){S(e);let o=m(2);return I(o.onOverlayContentClick(i))})("@overlayContentAnimation.start",function(i){S(e);let o=m(2);return I(o.onOverlayContentAnimationStart(i))})("@overlayContentAnimation.done",function(i){S(e);let o=m(2);return I(o.onOverlayContentAnimationDone(i))}),Ot(2),C(3,pj,1,0,"ng-container",4),T()}if(t&2){let e=m(2);k(e.cn(e.cx("content"),e.contentStyleClass)),h("pBind",e.ptm("content"))("@overlayContentAnimation",Ee(10,cj,Pb(6,lj,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),g(3),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Ee(14,uj,Ee(12,dj,e.overlayMode)))}}function hj(t,n){if(t&1){let e=se();E(0,"div",3,0),q("click",function(){S(e);let i=m();return I(i.onOverlayClick())}),C(2,fj,4,16,"div",2),T()}if(t&2){let e=m();k(e.cn(e.cx("root"),e.styleClass)),h("pBind",e.ptm("root")),g(2),h("ngIf",e.visible)}}var mj=` .p-overlay { position: absolute; top: 0; @@ -332,7 +1373,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a .p-overlay-content ~ .p-overlay-content { display: none; } -`,n1={host:"p-overlay-host",root:({instance:t})=>["p-overlay p-component",{"p-overlay-modal p-overlay-mask p-overlay-mask-enter":t.modal,"p-overlay-center":t.modal&&t.overlayResponsiveDirection==="center","p-overlay-top":t.modal&&t.overlayResponsiveDirection==="top","p-overlay-top-start":t.modal&&t.overlayResponsiveDirection==="top-start","p-overlay-top-end":t.modal&&t.overlayResponsiveDirection==="top-end","p-overlay-bottom":t.modal&&t.overlayResponsiveDirection==="bottom","p-overlay-bottom-start":t.modal&&t.overlayResponsiveDirection==="bottom-start","p-overlay-bottom-end":t.modal&&t.overlayResponsiveDirection==="bottom-end","p-overlay-left":t.modal&&t.overlayResponsiveDirection==="left","p-overlay-left-start":t.modal&&t.overlayResponsiveDirection==="left-start","p-overlay-left-end":t.modal&&t.overlayResponsiveDirection==="left-end","p-overlay-right":t.modal&&t.overlayResponsiveDirection==="right","p-overlay-right-start":t.modal&&t.overlayResponsiveDirection==="right-start","p-overlay-right-end":t.modal&&t.overlayResponsiveDirection==="right-end"}],content:"p-overlay-content"},Dg=(()=>{class t extends Ge{name="overlay";style=t1;classes=n1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})(),Og=new we("OVERLAY_INSTANCE"),i1=as([qt({transform:"{{transform}}",opacity:0}),ni("{{showTransitionParams}}")]),o1=as([ni("{{hideTransitionParams}}",qt({transform:"{{transform}}",opacity:0}))]),Pg=(()=>{class t extends vt{overlayService;zone;$pcOverlay=G(Og,{optional:!0,skipSelf:!0})??void 0;hostName="";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return be.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return be.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return be.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return be.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){let e=this._target||this.overlayOptions?.target;return e===void 0?"@prev":e}set target(e){this._target=e}get autoZIndex(){let e=this._autoZIndex||this.overlayOptions?.autoZIndex;return e===void 0?!0:e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){let e=this._baseZIndex||this.overlayOptions?.baseZIndex;return e===void 0?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){let e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return e===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){let e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return e===void 0?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}appendTo=ue(void 0);visibleChange=new H;onBeforeShow=new H;onShow=new H;onBeforeHide=new H;onHide=new H;onAnimationStart=new H;onAnimationDone=new H;overlayViewChild;contentViewChild;contentTemplate;templates;hostAttrSelector=ue();$appendTo=Be(()=>this.appendTo()||this.config.overlayAppendTo());_contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;_componentStyle=G(Dg);bindDirectiveInstance=G(X,{self:!0});documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(kn(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.document.defaultView?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return T(T({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return T(T({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return rf(this.target,this.el?.nativeElement)}constructor(e,i){super(),this.overlayService=e,this.zone=i}onAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="content"?this._contentTemplate=e.template:this._contentTemplate=e.template})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}show(e,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&ln(this.targetEl),this.modal&&lo(this.document?.body,"p-overflow-hidden")}hide(e,i=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&ln(this.targetEl),this.modal&&ef(this.document?.body,"p-overflow-hidden");else return}alignOverlay(){!this.modal&&he.alignOverlay(this.overlayEl,this.targetEl,this.$appendTo())}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Sn.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),this.hostAttrSelector()&&this.overlayEl&&this.overlayEl.setAttribute(this.hostAttrSelector(),""),he.appendOverlay(this.overlayEl,this.$appendTo()==="body"?this.document.body:this.$appendTo(),this.$appendTo()),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&lo(this.overlayEl,"p-overlay-mask-leave");break}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){let i=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.visible&&(this.show(i,!0),this.bindListeners());break;case"void":if(!this.visible){this.hide(i,!0),this.modalVisible=!1,this.unbindListeners(),he.appendOverlay(this.overlayEl,this.targetEl,this.$appendTo()),Sn.clear(i),this.cd.markForCheck();break}}this.handleEvents("onAnimationDone",e)}handleEvents(e,i){this[e].emit(i),this.options&&this.options[e]&&this.options[e](i),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](i)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new nr(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{let o=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:e.which!==3&&o}):o)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!Un()}):!Un())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.document.defaultView,"keydown",e=>{if(this.overlayOptions.hideOnEscape===!1||e.code!=="Escape")return;(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!Un()}):!Un())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}onDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&this.$appendTo()!=="self"&&(this.renderer.appendChild(this.el.nativeElement,this.overlayEl),Sn.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(i){return new(i||t)(ye(uo),ye(It))};static \u0275cmp=U({type:t,selectors:[["p-overlay"]],contentQueries:function(i,o,r){if(i&1&&(F(r,Mg,4),F(r,Xe,4)),i&2){let a;M(a=D())&&(o.contentTemplate=a.first),M(a=D())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&(Fe(Gv,5),Fe(Mg,5)),i&2){let r;M(r=D())&&(o.overlayViewChild=r.first),M(r=D())&&(o.contentViewChild=r.first)}},inputs:{hostName:"hostName",visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options",appendTo:[1,"appendTo"],hostAttrSelector:[1,"hostAttrSelector"]},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[Ee([Dg,{provide:Og,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],ngContentSelectors:$v,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&(en(),_(0,e1,3,4,"div",2)),i&2&&d("ngIf",o.modalVisible)},dependencies:[$e,ht,ot,ve,X],encapsulation:2,data:{animation:[Vr("overlayContentAnimation",[ii(":enter",[ss(i1)]),ii(":leave",[ss(o1)])])]},changeDetection:0})}return t})();var Fg=["content"],r1=["item"],a1=["loader"],s1=["loadericon"],l1=["element"],c1=["*"],Pc=(t,n)=>({$implicit:t,options:n}),d1=t=>({numCols:t}),Bg=t=>({options:t}),u1=()=>({styleClass:"p-virtualscroller-loading-icon"}),p1=(t,n)=>({rows:t,columns:n});function f1(t,n){t&1&&J(0)}function h1(t,n){if(t&1&&(ne(0),_(1,f1,1,0,"ng-container",10),ie()),t&2){let e=u(2);f(),d("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",at(2,Pc,e.loadedItems,e.getContentOptions()))}}function m1(t,n){t&1&&J(0)}function g1(t,n){if(t&1&&(ne(0),_(1,m1,1,0,"ng-container",10),ie()),t&2){let e=n.$implicit,i=n.index,o=u(3);f(),d("ngTemplateOutlet",o.itemTemplate||o._itemTemplate)("ngTemplateOutletContext",at(2,Pc,e,o.getOptions(i)))}}function b1(t,n){if(t&1&&(k(0,"div",11,3),_(2,g1,2,5,"ng-container",12),x()),t&2){let e=u(2);jt(e.contentStyle),I(e.cn(e.cx("content"),e.contentStyleClass)),d("pBind",e.ptm("content")),f(2),d("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy)}}function _1(t,n){if(t&1&&Z(0,"div",13),t&2){let e=u(2);I(e.cx("spacer")),d("ngStyle",e.spacerStyle)("pBind",e.ptm("spacer"))}}function y1(t,n){t&1&&J(0)}function v1(t,n){if(t&1&&(ne(0),_(1,y1,1,0,"ng-container",10),ie()),t&2){let e=n.index,i=u(4);f(),d("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",de(4,Bg,i.getLoaderOptions(e,i.both&&de(2,d1,i.numItemsInViewport.cols))))}}function w1(t,n){if(t&1&&(ne(0),_(1,v1,2,6,"ng-container",14),ie()),t&2){let e=u(3);f(),d("ngForOf",e.loaderArr)}}function C1(t,n){t&1&&J(0)}function x1(t,n){if(t&1&&(ne(0),_(1,C1,1,0,"ng-container",10),ie()),t&2){let e=u(4);f(),d("ngTemplateOutlet",e.loaderIconTemplate||e._loaderIconTemplate)("ngTemplateOutletContext",de(3,Bg,Qn(2,u1)))}}function k1(t,n){if(t&1&&(j(),Z(0,"svg",15)),t&2){let e=u(4);I(e.cx("loadingIcon")),d("spin",!0)("pBind",e.ptm("loadingIcon"))}}function T1(t,n){if(t&1&&_(0,x1,2,5,"ng-container",6)(1,k1,1,4,"ng-template",null,5,Me),t&2){let e=kt(2),i=u(3);d("ngIf",i.loaderIconTemplate||i._loaderIconTemplate)("ngIfElse",e)}}function S1(t,n){if(t&1&&(k(0,"div",11),_(1,w1,2,1,"ng-container",6)(2,T1,3,2,"ng-template",null,4,Me),x()),t&2){let e=kt(3),i=u(2);I(i.cx("loader")),d("pBind",i.ptm("loader")),f(),d("ngIf",i.loaderTemplate||i._loaderTemplate)("ngIfElse",e)}}function I1(t,n){if(t&1){let e=te();ne(0),k(1,"div",7,1),Q("scroll",function(o){w(e);let r=u();return C(r.onContainerScroll(o))}),_(3,h1,2,5,"ng-container",6)(4,b1,3,7,"ng-template",null,2,Me)(6,_1,1,4,"div",8)(7,S1,4,5,"div",9),x(),ie()}if(t&2){let e=kt(5),i=u();f(),I(i.cn(i.cx("root"),i.styleClass)),d("ngStyle",i._style)("pBind",i.ptm("root")),Y("id",i._id)("tabindex",i.tabindex),f(2),d("ngIf",i.contentTemplate||i._contentTemplate)("ngIfElse",e),f(3),d("ngIf",i._showSpacer),f(),d("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function E1(t,n){t&1&&J(0)}function M1(t,n){if(t&1&&(ne(0),_(1,E1,1,0,"ng-container",10),ie()),t&2){let e=u(2);f(),d("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",at(5,Pc,e.items,at(2,p1,e._items,e.loadedColumns)))}}function D1(t,n){if(t&1&&(zt(0),_(1,M1,2,8,"ng-container",16)),t&2){let e=u();f(),d("ngIf",e.contentTemplate||e._contentTemplate)}}var O1=` +`,gj={host:"p-overlay-host",root:({instance:t})=>["p-overlay p-component",{"p-overlay-modal p-overlay-mask p-overlay-mask-enter":t.modal,"p-overlay-center":t.modal&&t.overlayResponsiveDirection==="center","p-overlay-top":t.modal&&t.overlayResponsiveDirection==="top","p-overlay-top-start":t.modal&&t.overlayResponsiveDirection==="top-start","p-overlay-top-end":t.modal&&t.overlayResponsiveDirection==="top-end","p-overlay-bottom":t.modal&&t.overlayResponsiveDirection==="bottom","p-overlay-bottom-start":t.modal&&t.overlayResponsiveDirection==="bottom-start","p-overlay-bottom-end":t.modal&&t.overlayResponsiveDirection==="bottom-end","p-overlay-left":t.modal&&t.overlayResponsiveDirection==="left","p-overlay-left-start":t.modal&&t.overlayResponsiveDirection==="left-start","p-overlay-left-end":t.modal&&t.overlayResponsiveDirection==="left-end","p-overlay-right":t.modal&&t.overlayResponsiveDirection==="right","p-overlay-right-start":t.modal&&t.overlayResponsiveDirection==="right-start","p-overlay-right-end":t.modal&&t.overlayResponsiveDirection==="right-end"}],content:"p-overlay-content"},cR=(()=>{class t extends Oe{name="overlay";style=mj;classes=gj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),dR=new H("OVERLAY_INSTANCE"),yj=Qm([sr({transform:"{{transform}}",opacity:0}),Po("{{showTransitionParams}}")]),bj=Qm([Po("{{hideTransitionParams}}",sr({transform:"{{transform}}",opacity:0}))]),uR=(()=>{class t extends ut{overlayService;zone;$pcOverlay=x(dR,{optional:!0,skipSelf:!0})??void 0;hostName="";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return Pe.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return Pe.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return Pe.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return Pe.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){let e=this._target||this.overlayOptions?.target;return e===void 0?"@prev":e}set target(e){this._target=e}get autoZIndex(){let e=this._autoZIndex||this.overlayOptions?.autoZIndex;return e===void 0?!0:e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){let e=this._baseZIndex||this.overlayOptions?.baseZIndex;return e===void 0?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){let e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return e===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){let e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return e===void 0?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}appendTo=ae(void 0);visibleChange=new z;onBeforeShow=new z;onShow=new z;onBeforeHide=new z;onHide=new z;onAnimationStart=new z;onAnimationDone=new z;overlayViewChild;contentViewChild;contentTemplate;templates;hostAttrSelector=ae();$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());_contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;_componentStyle=x(cR);bindDirectiveInstance=x(te,{self:!0});documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(kn(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.document.defaultView?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return _(_({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return _(_({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return Vv(this.target,this.el?.nativeElement)}constructor(e,r){super(),this.overlayService=e,this.zone=r}onAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="content"?this._contentTemplate=e.template:this._contentTemplate=e.template})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}show(e,r=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),r&&ii(this.targetEl),this.modal&&ri(this.document?.body,"p-overflow-hidden")}hide(e,r=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),r&&ii(this.targetEl),this.modal&&Bi(this.document?.body,"p-overflow-hidden");else return}alignOverlay(){!this.modal&&De.alignOverlay(this.overlayEl,this.targetEl,this.$appendTo())}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&ir.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),this.hostAttrSelector()&&this.overlayEl&&this.overlayEl.setAttribute(this.hostAttrSelector(),""),De.appendOverlay(this.overlayEl,this.$appendTo()==="body"?this.document.body:this.$appendTo(),this.$appendTo()),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&ri(this.overlayEl,"p-overlay-mask-leave");break}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){let r=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.visible&&(this.show(r,!0),this.bindListeners());break;case"void":if(!this.visible){this.hide(r,!0),this.modalVisible=!1,this.unbindListeners(),De.appendOverlay(this.overlayEl,this.targetEl,this.$appendTo()),ir.clear(r),this.cd.markForCheck();break}}this.handleEvents("onAnimationDone",e)}handleEvents(e,r){this[e].emit(r),this.options&&this.options[e]&&this.options[e](r),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](r)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new xo(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{let i=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:e.which!==3&&i}):i)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!_o()}):!_o())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.document.defaultView,"keydown",e=>{if(this.overlayOptions.hideOnEscape===!1||e.code!=="Escape")return;(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!_o()}):!_o())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}onDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&this.$appendTo()!=="self"&&(this.renderer.appendChild(this.el.nativeElement,this.overlayEl),ir.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(r){return new(r||t)(de(zl),de($e))};static \u0275cmp=$({type:t,selectors:[["p-overlay"]],contentQueries:function(r,i,o){if(r&1&&(V(o,lR,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.contentTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(sj,5),ct(lR,5)),r&2){let o;M(o=O())&&(i.overlayViewChild=o.first),M(o=O())&&(i.contentViewChild=o.first)}},inputs:{hostName:"hostName",visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options",appendTo:[1,"appendTo"],hostAttrSelector:[1,"hostAttrSelector"]},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[xe([cR,{provide:dR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:aj,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,i){r&1&&(Ht(),C(0,hj,3,4,"div",2)),r&2&&h("ngIf",i.modalVisible)},dependencies:[Qe,Wt,kt,Te,te],encapsulation:2,data:{animation:[Lu("overlayContentAnimation",[Ao(":enter",[Km(yj)]),Ao(":leave",[Km(bj)])])]},changeDetection:0})}return t})();var pR=["content"],vj=["item"],_j=["loader"],wj=["loadericon"],Cj=["element"],xj=["*"],Ew=(t,n)=>({$implicit:t,options:n}),Tj=t=>({numCols:t}),mR=t=>({options:t}),Ej=()=>({styleClass:"p-virtualscroller-loading-icon"}),Sj=(t,n)=>({rows:t,columns:n});function Ij(t,n){t&1&&ne(0)}function Dj(t,n){if(t&1&&(ie(0),C(1,Ij,1,0,"ng-container",10),oe()),t&2){let e=m(2);g(),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Dt(2,Ew,e.loadedItems,e.getContentOptions()))}}function kj(t,n){t&1&&ne(0)}function Mj(t,n){if(t&1&&(ie(0),C(1,kj,1,0,"ng-container",10),oe()),t&2){let e=n.$implicit,r=n.index,i=m(3);g(),h("ngTemplateOutlet",i.itemTemplate||i._itemTemplate)("ngTemplateOutletContext",Dt(2,Ew,e,i.getOptions(r)))}}function Oj(t,n){if(t&1&&(E(0,"div",11,3),C(2,Mj,2,5,"ng-container",12),T()),t&2){let e=m(2);Dn(e.contentStyle),k(e.cn(e.cx("content"),e.contentStyleClass)),h("pBind",e.ptm("content")),g(2),h("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy)}}function Rj(t,n){if(t&1&&X(0,"div",13),t&2){let e=m(2);k(e.cx("spacer")),h("ngStyle",e.spacerStyle)("pBind",e.ptm("spacer"))}}function Pj(t,n){t&1&&ne(0)}function Aj(t,n){if(t&1&&(ie(0),C(1,Pj,1,0,"ng-container",10),oe()),t&2){let e=n.index,r=m(4);g(),h("ngTemplateOutlet",r.loaderTemplate||r._loaderTemplate)("ngTemplateOutletContext",Ee(4,mR,r.getLoaderOptions(e,r.both&&Ee(2,Tj,r.numItemsInViewport.cols))))}}function Nj(t,n){if(t&1&&(ie(0),C(1,Aj,2,6,"ng-container",14),oe()),t&2){let e=m(3);g(),h("ngForOf",e.loaderArr)}}function Fj(t,n){t&1&&ne(0)}function Lj(t,n){if(t&1&&(ie(0),C(1,Fj,1,0,"ng-container",10),oe()),t&2){let e=m(4);g(),h("ngTemplateOutlet",e.loaderIconTemplate||e._loaderIconTemplate)("ngTemplateOutletContext",Ee(3,mR,Pi(2,Ej)))}}function Bj(t,n){if(t&1&&(G(),X(0,"svg",15)),t&2){let e=m(4);k(e.cx("loadingIcon")),h("spin",!0)("pBind",e.ptm("loadingIcon"))}}function Vj(t,n){if(t&1&&C(0,Lj,2,5,"ng-container",6)(1,Bj,1,4,"ng-template",null,5,at),t&2){let e=pn(2),r=m(3);h("ngIf",r.loaderIconTemplate||r._loaderIconTemplate)("ngIfElse",e)}}function jj(t,n){if(t&1&&(E(0,"div",11),C(1,Nj,2,1,"ng-container",6)(2,Vj,3,2,"ng-template",null,4,at),T()),t&2){let e=pn(3),r=m(2);k(r.cx("loader")),h("pBind",r.ptm("loader")),g(),h("ngIf",r.loaderTemplate||r._loaderTemplate)("ngIfElse",e)}}function zj(t,n){if(t&1){let e=se();ie(0),E(1,"div",7,1),q("scroll",function(i){S(e);let o=m();return I(o.onContainerScroll(i))}),C(3,Dj,2,5,"ng-container",6)(4,Oj,3,7,"ng-template",null,2,at)(6,Rj,1,4,"div",8)(7,jj,4,5,"div",9),T(),oe()}if(t&2){let e=pn(5),r=m();g(),k(r.cn(r.cx("root"),r.styleClass)),h("ngStyle",r._style)("pBind",r.ptm("root")),J("id",r._id)("tabindex",r.tabindex),g(2),h("ngIf",r.contentTemplate||r._contentTemplate)("ngIfElse",e),g(3),h("ngIf",r._showSpacer),g(),h("ngIf",!r.loaderDisabled&&r._showLoader&&r.d_loading)}}function Hj(t,n){t&1&&ne(0)}function $j(t,n){if(t&1&&(ie(0),C(1,Hj,1,0,"ng-container",10),oe()),t&2){let e=m(2);g(),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Dt(5,Ew,e.items,Dt(2,Sj,e._items,e.loadedColumns)))}}function Uj(t,n){if(t&1&&(Ot(0),C(1,$j,2,8,"ng-container",16)),t&2){let e=m();g(),h("ngIf",e.contentTemplate||e._contentTemplate)}}var Wj=` .p-virtualscroller { position: relative; overflow: auto; @@ -390,7 +1431,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a .p-virtualscroller-inline .p-virtualscroller-content { position: static; } -`,P1={root:({instance:t})=>["p-virtualscroller",{"p-virtualscroller-inline":t.inline,"p-virtualscroller-both p-both-scroll":t.both,"p-virtualscroller-horizontal p-horizontal-scroll":t.horizontal}],content:"p-virtualscroller-content",spacer:"p-virtualscroller-spacer",loader:({instance:t})=>["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!t.loaderTemplate}],loadingIcon:"p-virtualscroller-loading-icon"},Rg=(()=>{class t extends Ge{name="virtualscroller";css=O1;classes=P1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var Vg=new we("SCROLLER_INSTANCE"),Ar=(()=>{class t extends vt{zone;componentName="virtualScroller";bindDirectiveInstance=G(X,{self:!0});$pcScroller=G(Vg,{optional:!0,skipSelf:!0})??void 0;hostName="";get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&typeof e=="object"&&(Object.entries(e).forEach(([i,o])=>this[`_${i}`]!==o&&(this[`_${i}`]=o)),Object.entries(e).forEach(([i,o])=>this[`${i}`]!==o&&(this[`${i}`]=o)))}onLazyLoad=new H;onScroll=new H;onScrollIndexChange=new H;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(e){this._contentStyleClass=e}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:Array.isArray(e)?e.slice(this._appendOnly?0:this.first.cols,this.last.cols):e):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=G(Rg);constructor(e){super(),this.zone=e}onInit(){this.setInitialState()}onChanges(e){let i=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),e.loading){let{previousValue:o,currentValue:r}=e.loading;this.lazy&&o!==r&&r!==this.d_loading&&(this.d_loading=r,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){let{previousValue:o,currentValue:r}=e.numToleratedItems;o!==r&&r!==this.d_numToleratedItems&&(this.d_numToleratedItems=r)}if(e.options){let{previousValue:o,currentValue:r}=e.options;this.lazy&&o?.loading!==r?.loading&&r?.loading!==this.d_loading&&(this.d_loading=r.loading,i=!0),o?.numToleratedItems!==r?.numToleratedItems&&r?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=r.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"loadericon":this._loaderIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host")),this.initialized||this.viewInit()}onDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){kn(this.platformId)&&!this.initialized&&tl(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=Fi(this.elementViewChild?.nativeElement),this.defaultHeight=Pi(this.elementViewChild?.nativeElement),this.defaultContentWidth=Fi(this.contentEl),this.defaultContentHeight=Pi(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.bindResizeListener(),setTimeout(()=>{this.setSpacerSize(),this.setSize(),this.calculateOptions(),this.cd.detectChanges()},1))}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||et(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,(this.d_loading===void 0||this.d_loading===!1)&&(this.d_loading=this._loading||!1),this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=this.loaderArr.length>0?this.loaderArr:[]}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(e){return this._step?this.page!==this.getPageByFirst(e??this.first):!0}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){if(this.both?e.every(r=>r>-1):e>-1){let r=this.first,{scrollTop:a=0,scrollLeft:s=0}=this.elementViewChild?.nativeElement,{numToleratedItems:l}=this.calculateNumItems(),c=this.getContentPosition(),p=this.itemSize,h=(S=0,E)=>S<=E?0:S,m=(S,E,R)=>S*E+R,g=(S=0,E=0)=>this.scrollTo({left:S,top:E,behavior:i}),b=this.both?{rows:0,cols:0}:0,y=!1,v=!1;this.both?(b={rows:h(e[0],l[0]),cols:h(e[1],l[1])},g(m(b.cols,p[1],c.left),m(b.rows,p[0],c.top)),v=this.lastScrollPos.top!==a||this.lastScrollPos.left!==s,y=b.rows!==r.rows||b.cols!==r.cols):(b=h(e,l),this.horizontal?g(m(b,p,c.left),a):g(s,m(b,p,c.top)),v=this.lastScrollPos!==(this.horizontal?s:a),y=b!==r),this.isRangeChanged=y,v&&(this.first=b)}}scrollInView(e,i,o="auto"){if(i){let{first:r,viewport:a}=this.getRenderedRange(),s=(p=0,h=0)=>this.scrollTo({left:p,top:h,behavior:o}),l=i==="to-start",c=i==="to-end";if(l){if(this.both)a.first.rows-r.rows>e[0]?s(a.first.cols*this._itemSize[1],(a.first.rows-1)*this._itemSize[0]):a.first.cols-r.cols>e[1]&&s((a.first.cols-1)*this._itemSize[1],a.first.rows*this._itemSize[0]);else if(a.first-r>e){let p=(a.first-1)*this._itemSize;this.horizontal?s(p,0):s(0,p)}}else if(c){if(this.both)a.last.rows-r.rows<=e[0]+1?s(a.first.cols*this._itemSize[1],(a.first.rows+1)*this._itemSize[0]):a.last.cols-r.cols<=e[1]+1&&s((a.first.cols+1)*this._itemSize[1],a.first.rows*this._itemSize[0]);else if(a.last-r<=e+1){let p=(a.first+1)*this._itemSize;this.horizontal?s(p,0):s(0,p)}}}else this.scrollToIndex(e,o)}getRenderedRange(){let e=(r,a)=>a||r?Math.floor(r/(a||r)):0,i=this.first,o=0;if(this.elementViewChild?.nativeElement){let{scrollTop:r,scrollLeft:a}=this.elementViewChild.nativeElement;if(this.both)i={rows:e(r,this._itemSize[0]),cols:e(a,this._itemSize[1])},o={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols};else{let s=this.horizontal?a:r;i=e(s,this._itemSize),o=i+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:i,last:o}}}calculateNumItems(){let e=this.getContentPosition(),i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,o=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,r=(c,p)=>p||c?Math.ceil(c/(p||c)):0,a=c=>Math.ceil(c/2),s=this.both?{rows:r(o,this._itemSize[0]),cols:r(i,this._itemSize[1])}:r(this.horizontal?i:o,this._itemSize),l=this.d_numToleratedItems||(this.both?[a(s.rows),a(s.cols)]:a(s));return{numItemsInViewport:s,numToleratedItems:l}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),o=(s,l,c,p=!1)=>this.getLast(s+l+(sArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:r.cols}:0:r,last:Math.min(this._step?this._step:this.last,this._items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[e,i]=[Fi(this.contentEl),Pi(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[o,r]=[Fi(this.elementViewChild.nativeElement),Pi(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=oe.style[h]=m;this.both||this.horizontal?(p("height",c),p("width",a)):p("height",c)}}setSpacerSize(){if(this._items){let e=this.getContentPosition(),i=(o,r,a,s=0)=>this.spacerStyle=N(T({},this.spacerStyle),{[`${o}`]:(r||[]).length*a+s+"px"});this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let i=e?e.first:this.first,o=(a,s)=>a*s,r=(a=0,s=0)=>this.contentStyle=N(T({},this.contentStyle),{transform:`translate3d(${a}px, ${s}px, 0)`});if(this.both)r(o(i.cols,this._itemSize[1]),o(i.rows,this._itemSize[0]));else{let a=o(i,this._itemSize);this.horizontal?r(a,0):r(0,a)}}}onScrollPositionChange(e){let i=e.target;if(!i)throw new Error("Event target is null");let o=this.getContentPosition(),r=(v,S)=>v?v>S?v-S:v:0,a=(v,S)=>S||v?Math.floor(v/(S||v)):0,s=(v,S,E,R,z,W)=>v<=z?z:W?E-R-z:S+z-1,l=(v,S,E,R,z,W,ge)=>v<=W?0:Math.max(0,ge?vS?E:v-2*W),c=(v,S,E,R,z,W=!1)=>{let ge=S+R+2*z;return v>=z&&(ge+=z+1),this.getLast(ge,W)},p=r(i.scrollTop,o.top),h=r(i.scrollLeft,o.left),m=this.both?{rows:0,cols:0}:0,g=this.last,b=!1,y=this.lastScrollPos;if(this.both){let v=this.lastScrollPos.top<=p,S=this.lastScrollPos.left<=h;if(!this._appendOnly||this._appendOnly&&(v||S)){let E={rows:a(p,this._itemSize[0]),cols:a(h,this._itemSize[1])},R={rows:s(E.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],v),cols:s(E.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],S)};m={rows:l(E.rows,R.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],v),cols:l(E.cols,R.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],S)},g={rows:c(E.rows,m.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(E.cols,m.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=m.rows!==this.first.rows||g.rows!==this.last.rows||m.cols!==this.first.cols||g.cols!==this.last.cols||this.isRangeChanged,y={top:p,left:h}}}else{let v=this.horizontal?h:p,S=this.lastScrollPos<=v;if(!this._appendOnly||this._appendOnly&&S){let E=a(v,this._itemSize),R=s(E,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,S);m=l(E,R,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,S),g=c(E,m,this.last,this.numItemsInViewport,this.d_numToleratedItems),b=m!==this.first||g!==this.last||this.isRangeChanged,y=v}}return{first:m,last:g,isRangeChanged:b,scrollPos:y}}onScrollChange(e){let{first:i,last:o,isRangeChanged:r,scrollPos:a}=this.onScrollPositionChange(e);if(r){let s={first:i,last:o};if(this.setContentPosition(s),this.first=i,this.last=o,this.lastScrollPos=a,this.handleEvents("onScrollIndexChange",s),this._lazy&&this.isPageChanged(i)){let l={first:this._step?Math.min(this.getPageByFirst(i)*this._step,this._items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst(i)+1)*this._step:o,this._items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this._showLoader){let{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this._showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){kn(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let e=this.document.defaultView,i=Un()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,i,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(tl(this.elementViewChild?.nativeElement)){let[e,i]=[Fi(this.elementViewChild?.nativeElement),Pi(this.elementViewChild?.nativeElement)],[o,r]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?o||r:this.horizontal?o:this.vertical&&r)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.defaultContentWidth=Fi(this.contentEl),this.defaultContentHeight=Pi(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both,scrollTo:this.scrollTo.bind(this),scrollToIndex:this.scrollToIndex.bind(this),orientation:this._orientation,scrollableElement:this.elementViewChild?.nativeElement}}getOptions(e){let i=(this._items||[]).length,o=this.both?this.first.rows+e:this.first+e;return{index:o,count:i,first:o===0,last:o===i-1,even:o%2===0,odd:o%2!==0}}getLoaderOptions(e,i){let o=this.loaderArr.length;return T({index:e,count:o,first:e===0,last:e===o-1,even:e%2===0,odd:e%2!==0,loading:this.d_loading},i)}static \u0275fac=function(i){return new(i||t)(ye(It))};static \u0275cmp=U({type:t,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(i,o,r){if(i&1&&(F(r,Fg,4),F(r,r1,4),F(r,a1,4),F(r,s1,4),F(r,Xe,4)),i&2){let a;M(a=D())&&(o.contentTemplate=a.first),M(a=D())&&(o.itemTemplate=a.first),M(a=D())&&(o.loaderTemplate=a.first),M(a=D())&&(o.loaderIconTemplate=a.first),M(a=D())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&(Fe(l1,5),Fe(Fg,5)),i&2){let r;M(r=D())&&(o.elementViewChild=r.first),M(r=D())&&(o.contentViewChild=r.first)}},hostVars:2,hostBindings:function(i,o){i&2&&bn("height",o.height)},inputs:{hostName:"hostName",id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Ee([Rg,{provide:Vg,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],ngContentSelectors:c1,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","pBind"],[4,"ngFor","ngForOf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngIf"]],template:function(i,o){if(i&1&&(en(),_(0,I1,8,10,"ng-container",6)(1,D1,2,1,"ng-template",null,0,Me)),i&2){let r=kt(2);d("ngIf",!o._disabled)("ngIfElse",r)}},dependencies:[$e,xn,ht,ot,an,Ri,ve,X],encapsulation:2})}return t})(),Fc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({imports:[Ar,ve,ve]})}return t})();var Ag=` +`,Gj={root:({instance:t})=>["p-virtualscroller",{"p-virtualscroller-inline":t.inline,"p-virtualscroller-both p-both-scroll":t.both,"p-virtualscroller-horizontal p-horizontal-scroll":t.horizontal}],content:"p-virtualscroller-content",spacer:"p-virtualscroller-spacer",loader:({instance:t})=>["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!t.loaderTemplate}],loadingIcon:"p-virtualscroller-loading-icon"},fR=(()=>{class t extends Oe{name="virtualscroller";css=Wj;classes=Gj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var hR=new H("SCROLLER_INSTANCE"),Bu=(()=>{class t extends ut{zone;componentName="virtualScroller";bindDirectiveInstance=x(te,{self:!0});$pcScroller=x(hR,{optional:!0,skipSelf:!0})??void 0;hostName="";get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&typeof e=="object"&&(Object.entries(e).forEach(([r,i])=>this[`_${r}`]!==i&&(this[`_${r}`]=i)),Object.entries(e).forEach(([r,i])=>this[`${r}`]!==i&&(this[`${r}`]=i)))}onLazyLoad=new z;onScroll=new z;onScrollIndexChange=new z;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(e){this._contentStyleClass=e}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:Array.isArray(e)?e.slice(this._appendOnly?0:this.first.cols,this.last.cols):e):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=x(fR);constructor(e){super(),this.zone=e}onInit(){this.setInitialState()}onChanges(e){let r=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),e.loading){let{previousValue:i,currentValue:o}=e.loading;this.lazy&&i!==o&&o!==this.d_loading&&(this.d_loading=o,r=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){let{previousValue:i,currentValue:o}=e.numToleratedItems;i!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){let{previousValue:i,currentValue:o}=e.options;this.lazy&&i?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,r=!0),i?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!r&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"loadericon":this._loaderIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host")),this.initialized||this.viewInit()}onDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){kn(this.platformId)&&!this.initialized&&jv(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=zi(this.elementViewChild?.nativeElement),this.defaultHeight=ji(this.elementViewChild?.nativeElement),this.defaultContentWidth=zi(this.contentEl),this.defaultContentHeight=ji(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.bindResizeListener(),setTimeout(()=>{this.setSpacerSize(),this.setSize(),this.calculateOptions(),this.cd.detectChanges()},1))}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||wt(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,(this.d_loading===void 0||this.d_loading===!1)&&(this.d_loading=this._loading||!1),this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=this.loaderArr.length>0?this.loaderArr:[]}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(e){return this._step?this.page!==this.getPageByFirst(e??this.first):!0}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,r="auto"){if(this.both?e.every(o=>o>-1):e>-1){let o=this.first,{scrollTop:s=0,scrollLeft:a=0}=this.elementViewChild?.nativeElement,{numToleratedItems:l}=this.calculateNumItems(),c=this.getContentPosition(),d=this.itemSize,u=(w=0,D)=>w<=D?0:w,p=(w,D,P)=>w*D+P,f=(w=0,D=0)=>this.scrollTo({left:w,top:D,behavior:r}),y=this.both?{rows:0,cols:0}:0,b=!1,v=!1;this.both?(y={rows:u(e[0],l[0]),cols:u(e[1],l[1])},f(p(y.cols,d[1],c.left),p(y.rows,d[0],c.top)),v=this.lastScrollPos.top!==s||this.lastScrollPos.left!==a,b=y.rows!==o.rows||y.cols!==o.cols):(y=u(e,l),this.horizontal?f(p(y,d,c.left),s):f(a,p(y,d,c.top)),v=this.lastScrollPos!==(this.horizontal?a:s),b=y!==o),this.isRangeChanged=b,v&&(this.first=y)}}scrollInView(e,r,i="auto"){if(r){let{first:o,viewport:s}=this.getRenderedRange(),a=(d=0,u=0)=>this.scrollTo({left:d,top:u,behavior:i}),l=r==="to-start",c=r==="to-end";if(l){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){let d=(s.first-1)*this._itemSize;this.horizontal?a(d,0):a(0,d)}}else if(c){if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){let d=(s.first+1)*this._itemSize;this.horizontal?a(d,0):a(0,d)}}}else this.scrollToIndex(e,i)}getRenderedRange(){let e=(o,s)=>s||o?Math.floor(o/(s||o)):0,r=this.first,i=0;if(this.elementViewChild?.nativeElement){let{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;if(this.both)r={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},i={rows:r.rows+this.numItemsInViewport.rows,cols:r.cols+this.numItemsInViewport.cols};else{let a=this.horizontal?s:o;r=e(a,this._itemSize),i=r+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:r,last:i}}}calculateNumItems(){let e=this.getContentPosition(),r=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(c,d)=>d||c?Math.ceil(c/(d||c)):0,s=c=>Math.ceil(c/2),a=this.both?{rows:o(i,this._itemSize[0]),cols:o(r,this._itemSize[1])}:o(this.horizontal?r:i,this._itemSize),l=this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a));return{numItemsInViewport:a,numToleratedItems:l}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:r}=this.calculateNumItems(),i=(a,l,c,d=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this._items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[e,r]=[zi(this.contentEl),ji(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),r!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[i,o]=[zi(this.elementViewChild.nativeElement),ji(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=ie.style[u]=p;this.both||this.horizontal?(d("height",c),d("width",s)):d("height",c)}}setSpacerSize(){if(this._items){let e=this.getContentPosition(),r=(i,o,s,a=0)=>this.spacerStyle=A(_({},this.spacerStyle),{[`${i}`]:(o||[]).length*s+a+"px"});this.both?(r("height",this._items,this._itemSize[0],e.y),r("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?r("width",this._columns||this._items,this._itemSize,e.x):r("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let r=e?e.first:this.first,i=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle=A(_({},this.contentStyle),{transform:`translate3d(${s}px, ${a}px, 0)`});if(this.both)o(i(r.cols,this._itemSize[1]),i(r.rows,this._itemSize[0]));else{let s=i(r,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){let r=e.target;if(!r)throw new Error("Event target is null");let i=this.getContentPosition(),o=(v,w)=>v?v>w?v-w:v:0,s=(v,w)=>w||v?Math.floor(v/(w||v)):0,a=(v,w,D,P,B,Y)=>v<=B?B:Y?D-P-B:w+B-1,l=(v,w,D,P,B,Y,ye)=>v<=Y?0:Math.max(0,ye?vw?D:v-2*Y),c=(v,w,D,P,B,Y=!1)=>{let ye=w+P+2*B;return v>=B&&(ye+=B+1),this.getLast(ye,Y)},d=o(r.scrollTop,i.top),u=o(r.scrollLeft,i.left),p=this.both?{rows:0,cols:0}:0,f=this.last,y=!1,b=this.lastScrollPos;if(this.both){let v=this.lastScrollPos.top<=d,w=this.lastScrollPos.left<=u;if(!this._appendOnly||this._appendOnly&&(v||w)){let D={rows:s(d,this._itemSize[0]),cols:s(u,this._itemSize[1])},P={rows:a(D.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],v),cols:a(D.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],w)};p={rows:l(D.rows,P.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],v),cols:l(D.cols,P.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],w)},f={rows:c(D.rows,p.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(D.cols,p.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},y=p.rows!==this.first.rows||f.rows!==this.last.rows||p.cols!==this.first.cols||f.cols!==this.last.cols||this.isRangeChanged,b={top:d,left:u}}}else{let v=this.horizontal?u:d,w=this.lastScrollPos<=v;if(!this._appendOnly||this._appendOnly&&w){let D=s(v,this._itemSize),P=a(D,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,w);p=l(D,P,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,w),f=c(D,p,this.last,this.numItemsInViewport,this.d_numToleratedItems),y=p!==this.first||f!==this.last||this.isRangeChanged,b=v}}return{first:p,last:f,isRangeChanged:y,scrollPos:b}}onScrollChange(e){let{first:r,last:i,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){let a={first:r,last:i};if(this.setContentPosition(a),this.first=r,this.last=i,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged(r)){let l={first:this._step?Math.min(this.getPageByFirst(r)*this._step,this._items.length-this._step):r,last:Math.min(this._step?(this.getPageByFirst(r)+1)*this._step:i,this._items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this._showLoader){let{isRangeChanged:r}=this.onScrollPositionChange(e);(r||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this._showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){kn(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let e=this.document.defaultView,r=_o()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,r,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(jv(this.elementViewChild?.nativeElement)){let[e,r]=[zi(this.elementViewChild?.nativeElement),ji(this.elementViewChild?.nativeElement)],[i,o]=[e!==this.defaultWidth,r!==this.defaultHeight];(this.both?i||o:this.horizontal?i:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=r,this.defaultContentWidth=zi(this.contentEl),this.defaultContentHeight=ji(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,r){return this.options&&this.options[e]?this.options[e](r):this[e].emit(r)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,r)=>this.getLoaderOptions(e,r),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both,scrollTo:this.scrollTo.bind(this),scrollToIndex:this.scrollToIndex.bind(this),orientation:this._orientation,scrollableElement:this.elementViewChild?.nativeElement}}getOptions(e){let r=(this._items||[]).length,i=this.both?this.first.rows+e:this.first+e;return{index:i,count:r,first:i===0,last:i===r-1,even:i%2===0,odd:i%2!==0}}getLoaderOptions(e,r){let i=this.loaderArr.length;return _({index:e,count:i,first:e===0,last:e===i-1,even:e%2===0,odd:e%2!==0,loading:this.d_loading},r)}static \u0275fac=function(r){return new(r||t)(de($e))};static \u0275cmp=$({type:t,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(r,i,o){if(r&1&&(V(o,pR,4),V(o,vj,4),V(o,_j,4),V(o,wj,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.contentTemplate=s.first),M(s=O())&&(i.itemTemplate=s.first),M(s=O())&&(i.loaderTemplate=s.first),M(s=O())&&(i.loaderIconTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(Cj,5),ct(pR,5)),r&2){let o;M(o=O())&&(i.elementViewChild=o.first),M(o=O())&&(i.contentViewChild=o.first)}},hostVars:2,hostBindings:function(r,i){r&2&&er("height",i.height)},inputs:{hostName:"hostName",id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[xe([fR,{provide:hR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:xj,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","pBind"],[4,"ngFor","ngForOf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngIf"]],template:function(r,i){if(r&1&&(Ht(),C(0,zj,8,10,"ng-container",6)(1,Uj,2,1,"ng-template",null,0,at)),r&2){let o=pn(2);h("ngIf",!i._disabled)("ngIfElse",o)}},dependencies:[Qe,Ar,Wt,kt,tr,To,Te,te],encapsulation:2})}return t})(),Sw=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Bu,Te,Te]})}return t})();var gR=` .p-select { display: inline-flex; cursor: pointer; @@ -624,8 +1665,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a padding-block-start: dt('select.padding.y'); padding-block-end: dt('select.padding.y'); } -`;var Lr=t=>({height:t}),Rc=t=>({$implicit:t});function R1(t,n){if(t&1&&(j(),Z(0,"svg",6)),t&2){let e=u(2);I(e.cx("optionCheckIcon")),d("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionCheckIcon"))}}function V1(t,n){if(t&1&&(j(),Z(0,"svg",7)),t&2){let e=u(2);I(e.cx("optionBlankIcon")),d("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionBlankIcon"))}}function B1(t,n){if(t&1&&(ne(0),_(1,R1,1,3,"svg",4)(2,V1,1,3,"svg",5),ie()),t&2){let e=u();f(),d("ngIf",e.selected),f(),d("ngIf",!e.selected)}}function A1(t,n){if(t&1&&(k(0,"span",8),oe(1),x()),t&2){let e=u();d("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionLabel")),f(),Ue(e.label??"empty")}}function L1(t,n){t&1&&J(0)}var N1=["item"],z1=["group"],j1=["loader"],H1=["selectedItem"],Q1=["header"],Lg=["filter"],q1=["footer"],U1=["emptyfilter"],G1=["empty"],$1=["dropdownicon"],W1=["loadingicon"],K1=["clearicon"],Y1=["filtericon"],Z1=["onicon"],J1=["officon"],X1=["cancelicon"],ew=["focusInput"],tw=["editableInput"],nw=["items"],iw=["scroller"],ow=["overlay"],rw=["firstHiddenFocusableEl"],aw=["lastHiddenFocusableEl"],Ng=t=>({class:t}),zg=t=>({options:t}),jg=(t,n)=>({$implicit:t,options:n}),sw=()=>({});function lw(t,n){if(t&1&&(ne(0),oe(1),ie()),t&2){let e=u(2);f(),Ue(e.label()==="p-emptylabel"?"\xA0":e.label())}}function cw(t,n){if(t&1&&J(0,24),t&2){let e=u(2);d("ngTemplateOutlet",e.selectedItemTemplate||e._selectedItemTemplate)("ngTemplateOutletContext",de(2,Rc,e.selectedOption))}}function dw(t,n){if(t&1&&(k(0,"span"),oe(1),x()),t&2){let e=u(3);f(),Ue(e.label()==="p-emptylabel"?"\xA0":e.label())}}function uw(t,n){if(t&1&&_(0,dw,2,1,"span",18),t&2){let e=u(2);d("ngIf",e.isSelectedOptionEmpty())}}function pw(t,n){if(t&1){let e=te();k(0,"span",22,3),Q("focus",function(o){w(e);let r=u();return C(r.onInputFocus(o))})("blur",function(o){w(e);let r=u();return C(r.onInputBlur(o))})("keydown",function(o){w(e);let r=u();return C(r.onKeyDown(o))}),_(2,lw,2,1,"ng-container",20)(3,cw,1,4,"ng-container",23)(4,uw,1,1,"ng-template",null,4,Me),x()}if(t&2){let e=kt(5),i=u();I(i.cx("label")),d("pBind",i.ptm("label"))("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus),Y("aria-disabled",i.$disabled())("id",i.inputId)("aria-label",i.ariaLabel||(i.label()==="p-emptylabel"?void 0:i.label()))("aria-labelledby",i.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",i.overlayVisible??!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("tabindex",i.$disabled()?-1:i.tabindex)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("aria-required",i.required())("required",i.required()?"":void 0)("disabled",i.$disabled()?"":void 0),f(2),d("ngIf",!i.selectedItemTemplate&&!i._selectedItemTemplate)("ngIfElse",e),f(),d("ngIf",(i.selectedItemTemplate||i._selectedItemTemplate)&&!i.isSelectedOptionEmpty())}}function fw(t,n){if(t&1){let e=te();k(0,"input",25,5),Q("input",function(o){w(e);let r=u();return C(r.onEditableInput(o))})("keydown",function(o){w(e);let r=u();return C(r.onKeyDown(o))})("focus",function(o){w(e);let r=u();return C(r.onInputFocus(o))})("blur",function(o){w(e);let r=u();return C(r.onInputBlur(o))}),x()}if(t&2){let e=u();I(e.cx("label")),d("pBind",e.ptm("label"))("pAutoFocus",e.autofocus),Y("id",e.inputId)("aria-haspopup","listbox")("placeholder",e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)("name",e.name())("minlength",e.minlength())("min",e.min())("max",e.max())("pattern",e.pattern())("size",e.inputSize())("maxlength",e.maxlength())("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)}}function hw(t,n){if(t&1){let e=te();j(),k(0,"svg",28),Q("click",function(o){w(e);let r=u(2);return C(r.clear(o))}),x()}if(t&2){let e=u(2);I(e.cx("clearIcon")),d("pBind",e.ptm("clearIcon")),Y("data-pc-section","clearicon")}}function mw(t,n){}function gw(t,n){t&1&&_(0,mw,0,0,"ng-template")}function bw(t,n){if(t&1){let e=te();k(0,"span",29),Q("click",function(o){w(e);let r=u(2);return C(r.clear(o))}),_(1,gw,1,0,null,30),x()}if(t&2){let e=u(2);I(e.cx("clearIcon")),d("pBind",e.ptm("clearIcon")),Y("data-pc-section","clearicon"),f(),d("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)("ngTemplateOutletContext",de(6,Ng,e.cx("clearIcon")))}}function _w(t,n){if(t&1&&(ne(0),_(1,hw,1,4,"svg",26)(2,bw,2,8,"span",27),ie()),t&2){let e=u();f(),d("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),f(),d("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function yw(t,n){t&1&&J(0)}function vw(t,n){if(t&1&&(ne(0),_(1,yw,1,0,"ng-container",31),ie()),t&2){let e=u(2);f(),d("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function ww(t,n){if(t&1&&Z(0,"span",33),t&2){let e=u(3);I(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon)),d("pBind",e.ptm("loadingIcon"))}}function Cw(t,n){if(t&1&&Z(0,"span",33),t&2){let e=u(3);I(e.cn(e.cx("loadingIcon"),"pi pi-spinner pi-spin")),d("pBind",e.ptm("loadingIcon"))}}function xw(t,n){if(t&1&&(ne(0),_(1,ww,1,3,"span",32)(2,Cw,1,3,"span",32),ie()),t&2){let e=u(2);f(),d("ngIf",e.loadingIcon),f(),d("ngIf",!e.loadingIcon)}}function kw(t,n){if(t&1&&(ne(0),_(1,vw,2,1,"ng-container",18)(2,xw,3,2,"ng-container",18),ie()),t&2){let e=u();f(),d("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),f(),d("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function Tw(t,n){if(t&1&&Z(0,"span",36),t&2){let e=u(3);I(e.cn(e.cx("dropdownIcon"),e.dropdownIcon)),d("pBind",e.ptm("dropdownIcon"))}}function Sw(t,n){if(t&1&&(j(),Z(0,"svg",37)),t&2){let e=u(3);I(e.cx("dropdownIcon")),d("pBind",e.ptm("dropdownIcon"))}}function Iw(t,n){if(t&1&&(ne(0),_(1,Tw,1,3,"span",34)(2,Sw,1,3,"svg",35),ie()),t&2){let e=u(2);f(),d("ngIf",e.dropdownIcon),f(),d("ngIf",!e.dropdownIcon)}}function Ew(t,n){}function Mw(t,n){t&1&&_(0,Ew,0,0,"ng-template")}function Dw(t,n){if(t&1&&(k(0,"span",36),_(1,Mw,1,0,null,30),x()),t&2){let e=u(2);I(e.cx("dropdownIcon")),d("pBind",e.ptm("dropdownIcon")),f(),d("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)("ngTemplateOutletContext",de(5,Ng,e.cx("dropdownIcon")))}}function Ow(t,n){if(t&1&&_(0,Iw,3,2,"ng-container",18)(1,Dw,2,7,"span",34),t&2){let e=u();d("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),f(),d("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Pw(t,n){t&1&&J(0)}function Fw(t,n){t&1&&J(0)}function Rw(t,n){if(t&1&&(ne(0),_(1,Fw,1,0,"ng-container",30),ie()),t&2){let e=u(3);f(),d("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",de(2,zg,e.filterOptions))}}function Vw(t,n){if(t&1&&(j(),Z(0,"svg",45)),t&2){let e=u(4);d("pBind",e.ptm("filterIcon"))}}function Bw(t,n){}function Aw(t,n){t&1&&_(0,Bw,0,0,"ng-template")}function Lw(t,n){if(t&1&&(k(0,"span",36),_(1,Aw,1,0,null,31),x()),t&2){let e=u(4);d("pBind",e.ptm("filterIcon")),f(),d("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function Nw(t,n){if(t&1){let e=te();k(0,"p-iconfield",41)(1,"input",42,10),Q("input",function(o){w(e);let r=u(3);return C(r.onFilterInputChange(o))})("keydown",function(o){w(e);let r=u(3);return C(r.onFilterKeyDown(o))})("blur",function(o){w(e);let r=u(3);return C(r.onFilterBlur(o))}),x(),k(3,"p-inputicon",41),_(4,Vw,1,1,"svg",43)(5,Lw,2,2,"span",44),x()()}if(t&2){let e=u(3);d("pt",e.ptm("pcFilterContainer")),f(),I(e.cx("pcFilter")),d("pSize",e.size())("value",e._filterValue()||"")("variant",e.$variant())("pt",e.ptm("pcFilter")),Y("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),f(2),d("pt",e.ptm("pcFilterIconContainer")),f(),d("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),f(),d("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function zw(t,n){if(t&1){let e=te();k(0,"div",29),Q("click",function(o){return w(e),C(o.stopPropagation())}),_(1,Rw,2,4,"ng-container",20)(2,Nw,6,14,"ng-template",null,9,Me),x()}if(t&2){let e=kt(3),i=u(2);I(i.cx("header")),d("pBind",i.ptm("header")),f(),d("ngIf",i.filterTemplate||i._filterTemplate)("ngIfElse",e)}}function jw(t,n){t&1&&J(0)}function Hw(t,n){if(t&1&&_(0,jw,1,0,"ng-container",30),t&2){let e=n.$implicit,i=n.options;u(2);let o=kt(9);d("ngTemplateOutlet",o)("ngTemplateOutletContext",at(2,jg,e,i))}}function Qw(t,n){t&1&&J(0)}function qw(t,n){if(t&1&&_(0,Qw,1,0,"ng-container",30),t&2){let e=n.options,i=u(4);d("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",de(2,zg,e))}}function Uw(t,n){t&1&&(ne(0),_(1,qw,1,4,"ng-template",null,12,Me),ie())}function Gw(t,n){if(t&1){let e=te();k(0,"p-scroller",46,11),Q("onLazyLoad",function(o){w(e);let r=u(2);return C(r.onLazyLoad.emit(o))}),_(2,Hw,1,5,"ng-template",null,2,Me)(4,Uw,3,0,"ng-container",18),x()}if(t&2){let e=u(2);jt(de(9,Lr,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller")),f(4),d("ngIf",e.loaderTemplate||e._loaderTemplate)}}function $w(t,n){t&1&&J(0)}function Ww(t,n){if(t&1&&(ne(0),_(1,$w,1,0,"ng-container",30),ie()),t&2){u();let e=kt(9),i=u();f(),d("ngTemplateOutlet",e)("ngTemplateOutletContext",at(3,jg,i.visibleOptions(),Qn(2,sw)))}}function Kw(t,n){if(t&1&&(k(0,"span",36),oe(1),x()),t&2){let e=u(2).$implicit,i=u(3);I(i.cx("optionGroupLabel")),d("pBind",i.ptm("optionGroupLabel")),f(),Ue(i.getOptionGroupLabel(e.optionGroup))}}function Yw(t,n){t&1&&J(0)}function Zw(t,n){if(t&1&&(ne(0),k(1,"li",50),_(2,Kw,2,4,"span",34)(3,Yw,1,0,"ng-container",30),x(),ie()),t&2){let e=u(),i=e.$implicit,o=e.index,r=u().options,a=u(2);f(),I(a.cx("optionGroup")),d("ngStyle",de(8,Lr,r.itemSize+"px"))("pBind",a.ptm("optionGroup")),Y("id",a.id+"_"+a.getOptionIndex(o,r)),f(),d("ngIf",!a.groupTemplate&&!a._groupTemplate),f(),d("ngTemplateOutlet",a.groupTemplate||a._groupTemplate)("ngTemplateOutletContext",de(10,Rc,i.optionGroup))}}function Jw(t,n){if(t&1){let e=te();ne(0),k(1,"p-selectItem",51),Q("onClick",function(o){w(e);let r=u().$implicit,a=u(3);return C(a.onOptionSelect(o,r))})("onMouseEnter",function(o){w(e);let r=u().index,a=u().options,s=u(2);return C(s.onOptionMouseEnter(o,s.getOptionIndex(r,a)))}),x(),ie()}if(t&2){let e=u(),i=e.$implicit,o=e.index,r=u().options,a=u(2);f(),d("id",a.id+"_"+a.getOptionIndex(o,r))("option",i)("checkmark",a.checkmark)("selected",a.isSelected(i))("label",a.getOptionLabel(i))("disabled",a.isOptionDisabled(i))("template",a.itemTemplate||a._itemTemplate)("focused",a.focusedOptionIndex()===a.getOptionIndex(o,r))("ariaPosInset",a.getAriaPosInset(a.getOptionIndex(o,r)))("ariaSetSize",a.ariaSetSize)("index",o)("scrollerOptions",r)}}function Xw(t,n){if(t&1&&_(0,Zw,4,12,"ng-container",18)(1,Jw,2,12,"ng-container",18),t&2){let e=n.$implicit,i=u(3);d("ngIf",i.isOptionGroup(e)),f(),d("ngIf",!i.isOptionGroup(e))}}function eC(t,n){if(t&1&&oe(0),t&2){let e=u(4);ft(" ",e.emptyFilterMessageLabel," ")}}function tC(t,n){t&1&&J(0,null,14)}function nC(t,n){if(t&1&&_(0,tC,2,0,"ng-container",31),t&2){let e=u(4);d("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyTemplate)}}function iC(t,n){if(t&1&&(k(0,"li",50),Re(1,eC,1,1)(2,nC,1,1,"ng-container"),x()),t&2){let e=u().options,i=u(2);I(i.cx("emptyMessage")),d("ngStyle",de(5,Lr,e.itemSize+"px"))("pBind",i.ptm("emptyMessage")),f(),Ve(!i.emptyFilterTemplate&&!i._emptyFilterTemplate&&!i.emptyTemplate?1:2)}}function oC(t,n){if(t&1&&oe(0),t&2){let e=u(4);ft(" ",e.emptyMessageLabel||e.emptyFilterMessageLabel," ")}}function rC(t,n){t&1&&J(0,null,15)}function aC(t,n){if(t&1&&_(0,rC,2,0,"ng-container",31),t&2){let e=u(4);d("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function sC(t,n){if(t&1&&(k(0,"li",50),Re(1,oC,1,1)(2,aC,1,1,"ng-container"),x()),t&2){let e=u().options,i=u(2);I(i.cx("emptyMessage")),d("ngStyle",de(5,Lr,e.itemSize+"px"))("pBind",i.ptm("emptyMessage")),f(),Ve(!i.emptyTemplate&&!i._emptyTemplate?1:2)}}function lC(t,n){if(t&1&&(k(0,"ul",47,13),_(2,Xw,2,2,"ng-template",48)(3,iC,3,7,"li",49)(4,sC,3,7,"li",49),x()),t&2){let e=n.$implicit,i=n.options,o=u(2);jt(i.contentStyle),I(o.cn(o.cx("list"),i.contentStyleClass)),d("pBind",o.ptm("list")),Y("id",o.id+"_list")("aria-label",o.listLabel),f(2),d("ngForOf",e),f(),d("ngIf",o.filterValue&&o.isEmpty()),f(),d("ngIf",!o.filterValue&&o.isEmpty())}}function cC(t,n){t&1&&J(0)}function dC(t,n){if(t&1){let e=te();k(0,"div",38)(1,"span",39,6),Q("focus",function(o){w(e);let r=u();return C(r.onFirstHiddenFocus(o))}),x(),_(3,Pw,1,0,"ng-container",31)(4,zw,4,5,"div",27),k(5,"div",36),_(6,Gw,5,11,"p-scroller",40)(7,Ww,2,6,"ng-container",18)(8,lC,5,10,"ng-template",null,7,Me),x(),_(10,cC,1,0,"ng-container",31),k(11,"span",39,8),Q("focus",function(o){w(e);let r=u();return C(r.onLastHiddenFocus(o))}),x()()}if(t&2){let e=u();I(e.cn(e.cx("overlay"),e.panelStyleClass)),d("ngStyle",e.panelStyle)("pBind",e.ptm("overlay")),f(),d("pBind",e.ptm("hiddenFirstFocusableEl")),Y("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),f(2),d("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),f(),d("ngIf",e.filter),f(),I(e.cx("listContainer")),bn("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),d("pBind",e.ptm("listContainer")),f(),d("ngIf",e.virtualScroll),f(),d("ngIf",!e.virtualScroll),f(3),d("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),f(),d("pBind",e.ptm("hiddenLastFocusableEl")),Y("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var uC=` - ${Ag} +`;var Vu=t=>({height:t}),Iw=t=>({$implicit:t});function Qj(t,n){if(t&1&&(G(),X(0,"svg",6)),t&2){let e=m(2);k(e.cx("optionCheckIcon")),h("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionCheckIcon"))}}function Kj(t,n){if(t&1&&(G(),X(0,"svg",7)),t&2){let e=m(2);k(e.cx("optionBlankIcon")),h("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionBlankIcon"))}}function Yj(t,n){if(t&1&&(ie(0),C(1,Qj,1,3,"svg",4)(2,Kj,1,3,"svg",5),oe()),t&2){let e=m();g(),h("ngIf",e.selected),g(),h("ngIf",!e.selected)}}function Zj(t,n){if(t&1&&(E(0,"span",8),ce(1),T()),t&2){let e=m();h("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionLabel")),g(),Ze(e.label??"empty")}}function Jj(t,n){t&1&&ne(0)}var Xj=["item"],ez=["group"],tz=["loader"],nz=["selectedItem"],rz=["header"],yR=["filter"],iz=["footer"],oz=["emptyfilter"],sz=["empty"],az=["dropdownicon"],lz=["loadingicon"],cz=["clearicon"],dz=["filtericon"],uz=["onicon"],pz=["officon"],fz=["cancelicon"],hz=["focusInput"],mz=["editableInput"],gz=["items"],yz=["scroller"],bz=["overlay"],vz=["firstHiddenFocusableEl"],_z=["lastHiddenFocusableEl"],bR=t=>({class:t}),vR=t=>({options:t}),_R=(t,n)=>({$implicit:t,options:n}),wz=()=>({});function Cz(t,n){if(t&1&&(ie(0),ce(1),oe()),t&2){let e=m(2);g(),Ze(e.label()==="p-emptylabel"?"\xA0":e.label())}}function xz(t,n){if(t&1&&ne(0,24),t&2){let e=m(2);h("ngTemplateOutlet",e.selectedItemTemplate||e._selectedItemTemplate)("ngTemplateOutletContext",Ee(2,Iw,e.selectedOption))}}function Tz(t,n){if(t&1&&(E(0,"span"),ce(1),T()),t&2){let e=m(3);g(),Ze(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Ez(t,n){if(t&1&&C(0,Tz,2,1,"span",18),t&2){let e=m(2);h("ngIf",e.isSelectedOptionEmpty())}}function Sz(t,n){if(t&1){let e=se();E(0,"span",22,3),q("focus",function(i){S(e);let o=m();return I(o.onInputFocus(i))})("blur",function(i){S(e);let o=m();return I(o.onInputBlur(i))})("keydown",function(i){S(e);let o=m();return I(o.onKeyDown(i))}),C(2,Cz,2,1,"ng-container",20)(3,xz,1,4,"ng-container",23)(4,Ez,1,1,"ng-template",null,4,at),T()}if(t&2){let e=pn(5),r=m();k(r.cx("label")),h("pBind",r.ptm("label"))("pTooltip",r.tooltip)("tooltipPosition",r.tooltipPosition)("positionStyle",r.tooltipPositionStyle)("tooltipStyleClass",r.tooltipStyleClass)("pAutoFocus",r.autofocus),J("aria-disabled",r.$disabled())("id",r.inputId)("aria-label",r.ariaLabel||(r.label()==="p-emptylabel"?void 0:r.label()))("aria-labelledby",r.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",r.overlayVisible??!1)("aria-controls",r.overlayVisible?r.id+"_list":null)("tabindex",r.$disabled()?-1:r.tabindex)("aria-activedescendant",r.focused?r.focusedOptionId:void 0)("aria-required",r.required())("required",r.required()?"":void 0)("disabled",r.$disabled()?"":void 0),g(2),h("ngIf",!r.selectedItemTemplate&&!r._selectedItemTemplate)("ngIfElse",e),g(),h("ngIf",(r.selectedItemTemplate||r._selectedItemTemplate)&&!r.isSelectedOptionEmpty())}}function Iz(t,n){if(t&1){let e=se();E(0,"input",25,5),q("input",function(i){S(e);let o=m();return I(o.onEditableInput(i))})("keydown",function(i){S(e);let o=m();return I(o.onKeyDown(i))})("focus",function(i){S(e);let o=m();return I(o.onInputFocus(i))})("blur",function(i){S(e);let o=m();return I(o.onInputBlur(i))}),T()}if(t&2){let e=m();k(e.cx("label")),h("pBind",e.ptm("label"))("pAutoFocus",e.autofocus),J("id",e.inputId)("aria-haspopup","listbox")("placeholder",e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)("name",e.name())("minlength",e.minlength())("min",e.min())("max",e.max())("pattern",e.pattern())("size",e.inputSize())("maxlength",e.maxlength())("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)}}function Dz(t,n){if(t&1){let e=se();G(),E(0,"svg",28),q("click",function(i){S(e);let o=m(2);return I(o.clear(i))}),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon")),J("data-pc-section","clearicon")}}function kz(t,n){}function Mz(t,n){t&1&&C(0,kz,0,0,"ng-template")}function Oz(t,n){if(t&1){let e=se();E(0,"span",29),q("click",function(i){S(e);let o=m(2);return I(o.clear(i))}),C(1,Mz,1,0,null,30),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon")),J("data-pc-section","clearicon"),g(),h("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)("ngTemplateOutletContext",Ee(6,bR,e.cx("clearIcon")))}}function Rz(t,n){if(t&1&&(ie(0),C(1,Dz,1,4,"svg",26)(2,Oz,2,8,"span",27),oe()),t&2){let e=m();g(),h("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),h("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function Pz(t,n){t&1&&ne(0)}function Az(t,n){if(t&1&&(ie(0),C(1,Pz,1,0,"ng-container",31),oe()),t&2){let e=m(2);g(),h("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Nz(t,n){if(t&1&&X(0,"span",33),t&2){let e=m(3);k(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon)),h("pBind",e.ptm("loadingIcon"))}}function Fz(t,n){if(t&1&&X(0,"span",33),t&2){let e=m(3);k(e.cn(e.cx("loadingIcon"),"pi pi-spinner pi-spin")),h("pBind",e.ptm("loadingIcon"))}}function Lz(t,n){if(t&1&&(ie(0),C(1,Nz,1,3,"span",32)(2,Fz,1,3,"span",32),oe()),t&2){let e=m(2);g(),h("ngIf",e.loadingIcon),g(),h("ngIf",!e.loadingIcon)}}function Bz(t,n){if(t&1&&(ie(0),C(1,Az,2,1,"ng-container",18)(2,Lz,3,2,"ng-container",18),oe()),t&2){let e=m();g(),h("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),g(),h("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function Vz(t,n){if(t&1&&X(0,"span",36),t&2){let e=m(3);k(e.cn(e.cx("dropdownIcon"),e.dropdownIcon)),h("pBind",e.ptm("dropdownIcon"))}}function jz(t,n){if(t&1&&(G(),X(0,"svg",37)),t&2){let e=m(3);k(e.cx("dropdownIcon")),h("pBind",e.ptm("dropdownIcon"))}}function zz(t,n){if(t&1&&(ie(0),C(1,Vz,1,3,"span",34)(2,jz,1,3,"svg",35),oe()),t&2){let e=m(2);g(),h("ngIf",e.dropdownIcon),g(),h("ngIf",!e.dropdownIcon)}}function Hz(t,n){}function $z(t,n){t&1&&C(0,Hz,0,0,"ng-template")}function Uz(t,n){if(t&1&&(E(0,"span",36),C(1,$z,1,0,null,30),T()),t&2){let e=m(2);k(e.cx("dropdownIcon")),h("pBind",e.ptm("dropdownIcon")),g(),h("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)("ngTemplateOutletContext",Ee(5,bR,e.cx("dropdownIcon")))}}function Wz(t,n){if(t&1&&C(0,zz,3,2,"ng-container",18)(1,Uz,2,7,"span",34),t&2){let e=m();h("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),g(),h("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Gz(t,n){t&1&&ne(0)}function qz(t,n){t&1&&ne(0)}function Qz(t,n){if(t&1&&(ie(0),C(1,qz,1,0,"ng-container",30),oe()),t&2){let e=m(3);g(),h("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",Ee(2,vR,e.filterOptions))}}function Kz(t,n){if(t&1&&(G(),X(0,"svg",45)),t&2){let e=m(4);h("pBind",e.ptm("filterIcon"))}}function Yz(t,n){}function Zz(t,n){t&1&&C(0,Yz,0,0,"ng-template")}function Jz(t,n){if(t&1&&(E(0,"span",36),C(1,Zz,1,0,null,31),T()),t&2){let e=m(4);h("pBind",e.ptm("filterIcon")),g(),h("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function Xz(t,n){if(t&1){let e=se();E(0,"p-iconfield",41)(1,"input",42,10),q("input",function(i){S(e);let o=m(3);return I(o.onFilterInputChange(i))})("keydown",function(i){S(e);let o=m(3);return I(o.onFilterKeyDown(i))})("blur",function(i){S(e);let o=m(3);return I(o.onFilterBlur(i))}),T(),E(3,"p-inputicon",41),C(4,Kz,1,1,"svg",43)(5,Jz,2,2,"span",44),T()()}if(t&2){let e=m(3);h("pt",e.ptm("pcFilterContainer")),g(),k(e.cx("pcFilter")),h("pSize",e.size())("value",e._filterValue()||"")("variant",e.$variant())("pt",e.ptm("pcFilter")),J("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),g(2),h("pt",e.ptm("pcFilterIconContainer")),g(),h("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),g(),h("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function eH(t,n){if(t&1){let e=se();E(0,"div",29),q("click",function(i){return S(e),I(i.stopPropagation())}),C(1,Qz,2,4,"ng-container",20)(2,Xz,6,14,"ng-template",null,9,at),T()}if(t&2){let e=pn(3),r=m(2);k(r.cx("header")),h("pBind",r.ptm("header")),g(),h("ngIf",r.filterTemplate||r._filterTemplate)("ngIfElse",e)}}function tH(t,n){t&1&&ne(0)}function nH(t,n){if(t&1&&C(0,tH,1,0,"ng-container",30),t&2){let e=n.$implicit,r=n.options;m(2);let i=pn(9);h("ngTemplateOutlet",i)("ngTemplateOutletContext",Dt(2,_R,e,r))}}function rH(t,n){t&1&&ne(0)}function iH(t,n){if(t&1&&C(0,rH,1,0,"ng-container",30),t&2){let e=n.options,r=m(4);h("ngTemplateOutlet",r.loaderTemplate||r._loaderTemplate)("ngTemplateOutletContext",Ee(2,vR,e))}}function oH(t,n){t&1&&(ie(0),C(1,iH,1,4,"ng-template",null,12,at),oe())}function sH(t,n){if(t&1){let e=se();E(0,"p-scroller",46,11),q("onLazyLoad",function(i){S(e);let o=m(2);return I(o.onLazyLoad.emit(i))}),C(2,nH,1,5,"ng-template",null,2,at)(4,oH,3,0,"ng-container",18),T()}if(t&2){let e=m(2);Dn(Ee(9,Vu,e.scrollHeight)),h("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller")),g(4),h("ngIf",e.loaderTemplate||e._loaderTemplate)}}function aH(t,n){t&1&&ne(0)}function lH(t,n){if(t&1&&(ie(0),C(1,aH,1,0,"ng-container",30),oe()),t&2){m();let e=pn(9),r=m();g(),h("ngTemplateOutlet",e)("ngTemplateOutletContext",Dt(3,_R,r.visibleOptions(),Pi(2,wz)))}}function cH(t,n){if(t&1&&(E(0,"span",36),ce(1),T()),t&2){let e=m(2).$implicit,r=m(3);k(r.cx("optionGroupLabel")),h("pBind",r.ptm("optionGroupLabel")),g(),Ze(r.getOptionGroupLabel(e.optionGroup))}}function dH(t,n){t&1&&ne(0)}function uH(t,n){if(t&1&&(ie(0),E(1,"li",50),C(2,cH,2,4,"span",34)(3,dH,1,0,"ng-container",30),T(),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m().options,s=m(2);g(),k(s.cx("optionGroup")),h("ngStyle",Ee(8,Vu,o.itemSize+"px"))("pBind",s.ptm("optionGroup")),J("id",s.id+"_"+s.getOptionIndex(i,o)),g(),h("ngIf",!s.groupTemplate&&!s._groupTemplate),g(),h("ngTemplateOutlet",s.groupTemplate||s._groupTemplate)("ngTemplateOutletContext",Ee(10,Iw,r.optionGroup))}}function pH(t,n){if(t&1){let e=se();ie(0),E(1,"p-selectItem",51),q("onClick",function(i){S(e);let o=m().$implicit,s=m(3);return I(s.onOptionSelect(i,o))})("onMouseEnter",function(i){S(e);let o=m().index,s=m().options,a=m(2);return I(a.onOptionMouseEnter(i,a.getOptionIndex(o,s)))}),T(),oe()}if(t&2){let e=m(),r=e.$implicit,i=e.index,o=m().options,s=m(2);g(),h("id",s.id+"_"+s.getOptionIndex(i,o))("option",r)("checkmark",s.checkmark)("selected",s.isSelected(r))("label",s.getOptionLabel(r))("disabled",s.isOptionDisabled(r))("template",s.itemTemplate||s._itemTemplate)("focused",s.focusedOptionIndex()===s.getOptionIndex(i,o))("ariaPosInset",s.getAriaPosInset(s.getOptionIndex(i,o)))("ariaSetSize",s.ariaSetSize)("index",i)("scrollerOptions",o)}}function fH(t,n){if(t&1&&C(0,uH,4,12,"ng-container",18)(1,pH,2,12,"ng-container",18),t&2){let e=n.$implicit,r=m(3);h("ngIf",r.isOptionGroup(e)),g(),h("ngIf",!r.isOptionGroup(e))}}function hH(t,n){if(t&1&&ce(0),t&2){let e=m(4);Ut(" ",e.emptyFilterMessageLabel," ")}}function mH(t,n){t&1&&ne(0,null,14)}function gH(t,n){if(t&1&&C(0,mH,2,0,"ng-container",31),t&2){let e=m(4);h("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyTemplate)}}function yH(t,n){if(t&1&&(E(0,"li",50),rt(1,hH,1,1)(2,gH,1,1,"ng-container"),T()),t&2){let e=m().options,r=m(2);k(r.cx("emptyMessage")),h("ngStyle",Ee(5,Vu,e.itemSize+"px"))("pBind",r.ptm("emptyMessage")),g(),it(!r.emptyFilterTemplate&&!r._emptyFilterTemplate&&!r.emptyTemplate?1:2)}}function bH(t,n){if(t&1&&ce(0),t&2){let e=m(4);Ut(" ",e.emptyMessageLabel||e.emptyFilterMessageLabel," ")}}function vH(t,n){t&1&&ne(0,null,15)}function _H(t,n){if(t&1&&C(0,vH,2,0,"ng-container",31),t&2){let e=m(4);h("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function wH(t,n){if(t&1&&(E(0,"li",50),rt(1,bH,1,1)(2,_H,1,1,"ng-container"),T()),t&2){let e=m().options,r=m(2);k(r.cx("emptyMessage")),h("ngStyle",Ee(5,Vu,e.itemSize+"px"))("pBind",r.ptm("emptyMessage")),g(),it(!r.emptyTemplate&&!r._emptyTemplate?1:2)}}function CH(t,n){if(t&1&&(E(0,"ul",47,13),C(2,fH,2,2,"ng-template",48)(3,yH,3,7,"li",49)(4,wH,3,7,"li",49),T()),t&2){let e=n.$implicit,r=n.options,i=m(2);Dn(r.contentStyle),k(i.cn(i.cx("list"),r.contentStyleClass)),h("pBind",i.ptm("list")),J("id",i.id+"_list")("aria-label",i.listLabel),g(2),h("ngForOf",e),g(),h("ngIf",i.filterValue&&i.isEmpty()),g(),h("ngIf",!i.filterValue&&i.isEmpty())}}function xH(t,n){t&1&&ne(0)}function TH(t,n){if(t&1){let e=se();E(0,"div",38)(1,"span",39,6),q("focus",function(i){S(e);let o=m();return I(o.onFirstHiddenFocus(i))}),T(),C(3,Gz,1,0,"ng-container",31)(4,eH,4,5,"div",27),E(5,"div",36),C(6,sH,5,11,"p-scroller",40)(7,lH,2,6,"ng-container",18)(8,CH,5,10,"ng-template",null,7,at),T(),C(10,xH,1,0,"ng-container",31),E(11,"span",39,8),q("focus",function(i){S(e);let o=m();return I(o.onLastHiddenFocus(i))}),T()()}if(t&2){let e=m();k(e.cn(e.cx("overlay"),e.panelStyleClass)),h("ngStyle",e.panelStyle)("pBind",e.ptm("overlay")),g(),h("pBind",e.ptm("hiddenFirstFocusableEl")),J("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),g(2),h("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),g(),h("ngIf",e.filter),g(),k(e.cx("listContainer")),er("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h("pBind",e.ptm("listContainer")),g(),h("ngIf",e.virtualScroll),g(),h("ngIf",!e.virtualScroll),g(3),h("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),g(),h("pBind",e.ptm("hiddenLastFocusableEl")),J("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var EH=` + ${gR} /* For PrimeNG */ .p-select-label.p-placeholder { @@ -640,7 +1681,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a .p-select.ng-invalid.ng-dirty .p-select-label.p-placeholder { color: dt('select.invalid.placeholder.color'); } -`,pC={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.$disabled(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-invalid":t.invalid(),"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size()==="small","p-select-lg p-inputfield-lg":t.size()==="large"}],label:({instance:t})=>["p-select-label",{"p-placeholder":t.placeholder()&&t.label()===t.placeholder(),"p-select-label-empty":!t.editable&&!t.selectedItemTemplate&&(t.label()===void 0||t.label()===null||t.label()==="p-emptylabel"||t.label().length===0)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingIcon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t})=>["p-select-option",{"p-select-option-selected":t.selected&&!t.checkmark,"p-disabled":t.disabled,"p-focus":t.focused}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},ls=(()=>{class t extends Ge{name="select";style=uC;classes=pC;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var Hg=new we("SELECT_INSTANCE"),fC=new we("SELECT_ITEM_INSTANCE"),hC={provide:Ot,useExisting:_t(()=>cs),multi:!0},mC=(()=>{class t extends vt{hostName="select";$pcSelectItem=G(fC,{optional:!0,skipSelf:!0})??void 0;$pcSelect=G(Hg,{optional:!0,skipSelf:!0})??void 0;id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;index;scrollerOptions;onClick=new H;onMouseEnter=new H;_componentStyle=G(ls);onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}getPTOptions(){return this.$pcSelect?.getPTItemOptions?.(this.option,this.scrollerOptions,this.index??0,"option")??this.$pcSelect?.ptm("option",{context:{option:this.option,selected:this.selected,focused:this.focused,disabled:this.disabled}})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",P],focused:[2,"focused","focused",P],label:"label",disabled:[2,"disabled","disabled",P],visible:[2,"visible","visible",P],itemSize:[2,"itemSize","itemSize",xe],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",P],index:"index",scrollerOptions:"scrollerOptions"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[Ee([ls,{provide:Ae,useExisting:t}]),L],decls:4,vars:20,consts:[["role","option","pRipple","",3,"click","mouseenter","id","pBind","ngStyle"],[4,"ngIf"],[3,"pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","blank",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],["data-p-icon","blank",3,"pBind"],[3,"pBind"]],template:function(i,o){i&1&&(k(0,"li",0),Q("click",function(a){return o.onOptionClick(a)})("mouseenter",function(a){return o.onOptionMouseEnter(a)}),_(1,B1,3,2,"ng-container",1)(2,A1,2,2,"span",2)(3,L1,1,0,"ng-container",3),x()),i&2&&(I(o.cx("option")),d("id",o.id)("pBind",o.getPTOptions())("ngStyle",de(16,Lr,o.itemSize+"px")),Y("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),f(),d("ngIf",o.checkmark),f(),d("ngIf",!o.template),f(),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",de(18,Rc,o.option)))},dependencies:[$e,ht,ot,an,ve,ui,Qa,Sm,dt,X],encapsulation:2})}return t})(),cs=(()=>{class t extends Lo{zone;filterService;bindDirectiveInstance=G(X,{self:!0});id;scrollHeight="200px";filter;panelStyle;styleClass;panelStyleClass;readonly;editable;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){uf(e,this._options())||this._options.set(e)}appendTo=ue(void 0);onChange=new H;onFilter=new H;onFocus=new H;onBlur=new H;onClick=new H;onShow=new H;onHide=new H;onClear=new H;onLazyLoad=new H;_componentStyle=G(ls);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;itemsWrapper;$appendTo=Be(()=>this.appendTo()||this.config.overlayAppendTo());itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=Ie(null);_placeholder=Ie(void 0);value;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=Ie(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=Ie(-1);labelId;listId;clicked=Ie(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Tt.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Tt.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.$disabled()}get listLabel(){return this.config.getTranslation(Tt.ARIA).listLabel}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=Be(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let o=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options?.filter(r=>r.label?r.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:r.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let r=this.options||[],a=[];return r.forEach(s=>{let c=this.getOptionGroupChildren(s).filter(p=>o?.includes(p));c.length>0&&a.push(N(T({},s),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...c]}))}),this.flatOptions(a)}return o}return e});label=Be(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=e.findIndex(o=>this.isOptionValueEqualsModelValue(o));if(i!==-1){let o=e[i];return this.getOptionLabel(o)}return this.placeholder()||"p-emptylabel"});selectedOption;constructor(e,i){super(),this.zone=e,this.filterService=i,wn(()=>{let o=this.modelValue(),r=this.visibleOptions();if(r&&ci(r)){let a=this.findSelectedOptionIndex();if(a!==-1||o===void 0||typeof o=="string"&&o.length===0||this.isModelValueNotSet()||this.editable)this.selectedOption=r[a];else{let s=r.findIndex(l=>this.isSelected(l));s!==-1&&(this.selectedOption=r[s])}}il(r)&&(o===void 0||this.isModelValueNotSet())&&ci(this.selectedOption)&&(this.selectedOption=null),o!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}onInit(){this.id=this.id||rt("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){if(this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=et(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-select-option-selected");e&&df(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((i,o,r)=>{i.push({optionGroup:o,group:!0,index:r});let a=this.getOptionGroupChildren(o);return a&&a.forEach(s=>i.push(s)),i},[])}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1))}onOptionSelect(e,i,o=!0,r=!1){if(!this.isOptionDisabled(i)){if(!this.isSelected(i)){let a=this.getOptionValue(i);this.updateModel(a,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),r===!1&&this.onChange.emit({originalEvent:e,value:a})}o&&this.hide(!0)}}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeModelValue(e),this.selectedOptionUpdated=!0}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return e!=null&&!this.isOptionGroup(e)&&Gn(this.modelValue(),this.getOptionValue(e),this.equalityKey())}onAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,i=e?.classList.contains("p-float-label");if(e&&i&&!this.selectedOption){let o=e.querySelector("label");o&&this._placeholder.set(o.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?Kt(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?Kt(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getPTItemOptions(e,i,o,r){return this.ptm(r,{context:{option:e,index:o,selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(o,i),disabled:this.isOptionDisabled(e)}})}isSelectedOptionEmpty(){return il(this.selectedOption)}isOptionDisabled(e){return this.optionDisabled?Kt(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?Kt(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?Kt(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}onContainerClick(e){this.$disabled()||this.readonly||this.loading||e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')||((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges())}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let i=e.target.value;this.searchValue="",!this.searchOptions(e,i)&&this.focusedOptionIndex.set(-1),this.onModelChange(i),this.updateModel(i||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:i})},1),!this.overlayVisible&&ci(i)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&ln(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=et(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-select-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=et(this.itemsWrapper,".p-select-option.p-select-option-selected");i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&aa(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&ln(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&ln(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.$disabled())return;this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),!this.preventModelTouched&&!this.overlayVisible&&this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,i=!1){if(!(this.$disabled()||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,i);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&ff(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,i){if(this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus)){let o=this.visibleOptions()[i];this.onOptionSelect(e,o,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let o=et(this.itemsViewChild.nativeElement,`li[id="${i}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?void 0:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let i=ethis.isValidOption(o)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?ol(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return i>-1?i:e}findLastOptionIndex(){return ol(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,i=!1){if(e.altKey&&!i){if(this.focusedOptionIndex()!==-1){let o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide()}else{let o=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let o=e.currentTarget;e.shiftKey?o.setSelectionRange(0,o.value.length):(o.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let o=e.currentTarget;if(e.shiftKey)o.setSelectionRange(0,o.value.length);else{let r=o.value.length;o.setSelectionRange(r,r),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,i=!1){!this.editable&&!i&&this.onEnterKey(e)}onEnterKey(e,i=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}!i&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.preventDefault(),e.stopPropagation())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())ln(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?sf(this.overlayViewChild?.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;ln(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?lf(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;ln(i)}hasFocusableElements(){return Xo(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,i=!1){i&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let o=-1,r=!1;return o=this.visibleOptions().findIndex(a=>this.isOptionMatched(a)),o!==-1&&(r=!0),o===-1&&this.focusedOptionIndex()===-1&&(o=this.findFirstFocusedOptionIndex()),o!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,o)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),r}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let i=e.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?et(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():ln(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}writeControlValue(e,i){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),i(this.value),this.updateEditableLabel(),this.cd.markForCheck()}static \u0275fac=function(i){return new(i||t)(ye(It),ye(co))};static \u0275cmp=U({type:t,selectors:[["p-select"]],contentQueries:function(i,o,r){if(i&1&&(F(r,N1,4),F(r,z1,4),F(r,j1,4),F(r,H1,4),F(r,Q1,4),F(r,Lg,4),F(r,q1,4),F(r,U1,4),F(r,G1,4),F(r,$1,4),F(r,W1,4),F(r,K1,4),F(r,Y1,4),F(r,Z1,4),F(r,J1,4),F(r,X1,4),F(r,Xe,4)),i&2){let a;M(a=D())&&(o.itemTemplate=a.first),M(a=D())&&(o.groupTemplate=a.first),M(a=D())&&(o.loaderTemplate=a.first),M(a=D())&&(o.selectedItemTemplate=a.first),M(a=D())&&(o.headerTemplate=a.first),M(a=D())&&(o.filterTemplate=a.first),M(a=D())&&(o.footerTemplate=a.first),M(a=D())&&(o.emptyFilterTemplate=a.first),M(a=D())&&(o.emptyTemplate=a.first),M(a=D())&&(o.dropdownIconTemplate=a.first),M(a=D())&&(o.loadingIconTemplate=a.first),M(a=D())&&(o.clearIconTemplate=a.first),M(a=D())&&(o.filterIconTemplate=a.first),M(a=D())&&(o.onIconTemplate=a.first),M(a=D())&&(o.offIconTemplate=a.first),M(a=D())&&(o.cancelIconTemplate=a.first),M(a=D())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&(Fe(Lg,5),Fe(ew,5),Fe(tw,5),Fe(nw,5),Fe(iw,5),Fe(ow,5),Fe(rw,5),Fe(aw,5)),i&2){let r;M(r=D())&&(o.filterViewChild=r.first),M(r=D())&&(o.focusInputViewChild=r.first),M(r=D())&&(o.editableInputViewChild=r.first),M(r=D())&&(o.itemsViewChild=r.first),M(r=D())&&(o.scroller=r.first),M(r=D())&&(o.overlayViewChild=r.first),M(r=D())&&(o.firstHiddenFocusableElementOnOverlay=r.first),M(r=D())&&(o.lastHiddenFocusableElementOnOverlay=r.first)}},hostVars:3,hostBindings:function(i,o){i&1&&Q("click",function(a){return o.onContainerClick(a)}),i&2&&(Y("id",o.id),I(o.cn(o.cx("root"),o.styleClass)))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",P],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",P],editable:[2,"editable","editable",P],tabindex:[2,"tabindex","tabindex",xe],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",P],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",P],checkmark:[2,"checkmark","checkmark",P],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",P],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",group:[2,"group","group",P],showClear:[2,"showClear","showClear",P],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",P],virtualScroll:[2,"virtualScroll","virtualScroll",P],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",xe],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",P],selectOnFocus:[2,"selectOnFocus","selectOnFocus",P],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",P],autofocusFilter:[2,"autofocusFilter","autofocusFilter",P],filterValue:"filterValue",options:"options",appendTo:[1,"appendTo"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[Ee([hC,ls,{provide:Hg,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],decls:11,vars:16,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"class","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text",3,"class","pBind","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",3,"pBind"],[4,"ngIf","ngIfElse"],["hostName","select",3,"visibleChange","onAnimationStart","onHide","hostAttrSelector","pt","visible","options","target","appendTo"],["role","combobox",3,"focus","blur","keydown","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text",3,"input","keydown","focus","blur","pBind","pAutoFocus"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"class","pBind",4,"ngIf"],["aria-hidden","true",3,"pBind"],[3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],[3,"ngStyle","pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],["hostName","select",3,"items","style","itemSize","autoSize","lazy","options","pt","onLazyLoad",4,"ngIf"],[3,"pt"],["pInputText","","type","text","role","searchbox","autocomplete","off",3,"input","keydown","blur","pSize","value","variant","pt"],["data-p-icon","search",3,"pBind",4,"ngIf"],[3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","select",3,"onLazyLoad","items","itemSize","autoSize","lazy","options","pt"],["role","listbox",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"class","ngStyle","pBind",4,"ngIf"],["role","option",3,"ngStyle","pBind"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","index","scrollerOptions"]],template:function(i,o){if(i&1){let r=te();_(0,pw,6,23,"span",16)(1,fw,2,19,"input",17)(2,_w,3,2,"ng-container",18),k(3,"div",19),_(4,kw,3,2,"ng-container",20)(5,Ow,2,2,"ng-template",null,0,Me),x(),k(7,"p-overlay",21,1),vn("visibleChange",function(s){return w(r),yn(o.overlayVisible,s)||(o.overlayVisible=s),C(s)}),Q("onAnimationStart",function(s){return w(r),C(o.onOverlayAnimationStart(s))})("onHide",function(){return w(r),C(o.hide())}),_(9,dC,13,22,"ng-template",null,2,Me),x()}if(i&2){let r=kt(6);d("ngIf",!o.editable),f(),d("ngIf",o.editable),f(),d("ngIf",o.isVisibleClearIcon),f(),I(o.cx("dropdown")),d("pBind",o.ptm("dropdown")),Y("aria-expanded",o.overlayVisible??!1)("data-pc-section","trigger"),f(),d("ngIf",o.loading)("ngIfElse",r),f(3),d("hostAttrSelector",o.$attrSelector)("pt",o.ptm("pcOverlay")),_n("visible",o.overlayVisible),d("options",o.overlayOptions)("target","@parent")("appendTo",o.$appendTo())}},dependencies:[$e,xn,ht,ot,an,mC,Pg,xf,di,Fo,qa,Vm,An,os,rs,Ar,ve,dt,X],encapsulation:2,changeDetection:0})}return t})(),Qg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({imports:[cs,ve,ve]})}return t})();var qg=` +`,SH={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.$disabled(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-invalid":t.invalid(),"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size()==="small","p-select-lg p-inputfield-lg":t.size()==="large"}],label:({instance:t})=>["p-select-label",{"p-placeholder":t.placeholder()&&t.label()===t.placeholder(),"p-select-label-empty":!t.editable&&!t.selectedItemTemplate&&(t.label()===void 0||t.label()===null||t.label()==="p-emptylabel"||t.label().length===0)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingIcon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t})=>["p-select-option",{"p-select-option-selected":t.selected&&!t.checkmark,"p-disabled":t.disabled,"p-focus":t.focused}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},Ym=(()=>{class t extends Oe{name="select";style=EH;classes=SH;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var wR=new H("SELECT_INSTANCE"),IH=new H("SELECT_ITEM_INSTANCE"),DH={provide:Nn,useExisting:$t(()=>Zm),multi:!0},kH=(()=>{class t extends ut{hostName="select";$pcSelectItem=x(IH,{optional:!0,skipSelf:!0})??void 0;$pcSelect=x(wR,{optional:!0,skipSelf:!0})??void 0;id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;index;scrollerOptions;onClick=new z;onMouseEnter=new z;_componentStyle=x(Ym);onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}getPTOptions(){return this.$pcSelect?.getPTItemOptions?.(this.option,this.scrollerOptions,this.index??0,"option")??this.$pcSelect?.ptm("option",{context:{option:this.option,selected:this.selected,focused:this.focused,disabled:this.disabled}})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",R],focused:[2,"focused","focused",R],label:"label",disabled:[2,"disabled","disabled",R],visible:[2,"visible","visible",R],itemSize:[2,"itemSize","itemSize",Me],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",R],index:"index",scrollerOptions:"scrollerOptions"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[xe([Ym,{provide:Ke,useExisting:t}]),j],decls:4,vars:20,consts:[["role","option","pRipple","",3,"click","mouseenter","id","pBind","ngStyle"],[4,"ngIf"],[3,"pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","blank",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],["data-p-icon","blank",3,"pBind"],[3,"pBind"]],template:function(r,i){r&1&&(E(0,"li",0),q("click",function(s){return i.onOptionClick(s)})("mouseenter",function(s){return i.onOptionMouseEnter(s)}),C(1,Yj,3,2,"ng-container",1)(2,Zj,2,2,"span",2)(3,Jj,1,0,"ng-container",3),T()),r&2&&(k(i.cx("option")),h("id",i.id)("pBind",i.getPTOptions())("ngStyle",Ee(16,Vu,i.itemSize+"px")),J("aria-label",i.label)("aria-setsize",i.ariaSetSize)("aria-posinset",i.ariaPosInset)("aria-selected",i.selected)("data-p-focused",i.focused)("data-p-highlight",i.selected)("data-p-disabled",i.disabled),g(),h("ngIf",i.checkmark),g(),h("ngIf",!i.template),g(),h("ngTemplateOutlet",i.template)("ngTemplateOutletContext",Ee(18,Iw,i.option)))},dependencies:[Qe,Wt,kt,tr,Te,Ui,Zh,Zk,Gt,te],encapsulation:2})}return t})(),Zm=(()=>{class t extends vc{zone;filterService;bindDirectiveInstance=x(te,{self:!0});id;scrollHeight="200px";filter;panelStyle;styleClass;panelStyleClass;readonly;editable;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){$v(e,this._options())||this._options.set(e)}appendTo=ae(void 0);onChange=new z;onFilter=new z;onFocus=new z;onBlur=new z;onClick=new z;onShow=new z;onHide=new z;onClear=new z;onLazyLoad=new z;_componentStyle=x(Ym);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;itemsWrapper;$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=ge(null);_placeholder=ge(void 0);value;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=ge(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=ge(-1);labelId;listId;clicked=ge(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(xn.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(xn.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.$disabled()}get listLabel(){return this.config.getTranslation(xn.ARIA).listLabel}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=We(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let i=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options?.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],s=[];return o.forEach(a=>{let c=this.getOptionGroupChildren(a).filter(d=>i?.includes(d));c.length>0&&s.push(A(_({},a),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...c]}))}),this.flatOptions(s)}return i}return e});label=We(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),r=e.findIndex(i=>this.isOptionValueEqualsModelValue(i));if(r!==-1){let i=e[r];return this.getOptionLabel(i)}return this.placeholder()||"p-emptylabel"});selectedOption;constructor(e,r){super(),this.zone=e,this.filterService=r,Lt(()=>{let i=this.modelValue(),o=this.visibleOptions();if(o&<(o)){let s=this.findSelectedOptionIndex();if(s!==-1||i===void 0||typeof i=="string"&&i.length===0||this.isModelValueNotSet()||this.editable)this.selectedOption=o[s];else{let a=o.findIndex(l=>this.isSelected(l));a!==-1&&(this.selectedOption=o[a])}}Hi(o)&&(i===void 0||this.isModelValueNotSet())&<(this.selectedOption)&&(this.selectedOption=null),i!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}onInit(){this.id=this.id||gt("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){if(this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=wt(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-select-option-selected");e&&lk(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((r,i,o)=>{r.push({optionGroup:i,group:!0,index:o});let s=this.getOptionGroupChildren(i);return s&&s.forEach(a=>r.push(a)),r},[])}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1))}onOptionSelect(e,r,i=!0,o=!1){if(!this.isOptionDisabled(r)){if(!this.isSelected(r)){let s=this.getOptionValue(r);this.updateModel(s,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:s})}i&&this.hide(!0)}}onOptionMouseEnter(e,r){this.focusOnHover&&this.changeFocusedOptionIndex(e,r)}updateModel(e,r){this.value=e,this.onModelChange(e),this.writeModelValue(e),this.selectedOptionUpdated=!0}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return e!=null&&!this.isOptionGroup(e)&&nr(this.modelValue(),this.getOptionValue(e),this.equalityKey())}onAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,r=e?.classList.contains("p-float-label");if(e&&r&&!this.selectedOption){let i=e.querySelector("label");i&&this._placeholder.set(i.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,r){return this.virtualScrollerDisabled?e:r&&r.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?On(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?On(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getPTItemOptions(e,r,i,o){return this.ptm(o,{context:{option:e,index:i,selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(i,r),disabled:this.isOptionDisabled(e)}})}isSelectedOptionEmpty(){return Hi(this.selectedOption)}isOptionDisabled(e){return this.optionDisabled?On(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?On(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?On(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(r=>this.isOptionGroup(r)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}onContainerClick(e){this.$disabled()||this.readonly||this.loading||e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')||((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges())}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let r=e.target.value;this.searchValue="",!this.searchOptions(e,r)&&this.focusedOptionIndex.set(-1),this.onModelChange(r),this.updateModel(r||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:r})},1),!this.overlayVisible&<(r)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&ii(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=wt(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-select-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let r=this.modelValue()?this.focusedOptionIndex():-1;r!==-1&&this.scroller?.scrollToIndex(r)}else{let r=wt(this.itemsWrapper,".p-select-option.p-select-option-selected");r&&r.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&Kh(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&ii(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&ii(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.$disabled())return;this.focused=!0;let r=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(r),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),!this.preventModelTouched&&!this.overlayVisible&&this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,r=!1){if(!(this.$disabled()||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,r);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&_k(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let r=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,r)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,r){if(this.focusedOptionIndex()!==r&&(this.focusedOptionIndex.set(r),this.scrollInView(),this.selectOnFocus)){let i=this.visibleOptions()[r];this.onOptionSelect(e,i,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let r=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=wt(this.itemsViewChild.nativeElement,`li[id="${r}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?void 0:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let r=ethis.isValidOption(i)):-1;return r>-1?r+e+1:e}findPrevOptionIndex(e){let r=e>0?Uv(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return r>-1?r:e}findLastOptionIndex(){return Uv(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,r=!1){if(e.altKey&&!r){if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}this.overlayVisible&&this.hide()}else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,r=!1){r&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,r=!1){if(r&&e.currentTarget&&e.currentTarget.setSelectionRange){let i=e.currentTarget;e.shiftKey?i.setSelectionRange(0,i.value.length):(i.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,r=!1){if(r&&e.currentTarget&&e.currentTarget.setSelectionRange){let i=e.currentTarget;if(e.shiftKey)i.setSelectionRange(0,i.value.length);else{let o=i.value.length;i.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,r=!1){!this.editable&&!r&&this.onEnterKey(e)}onEnterKey(e,r=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}!r&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.preventDefault(),e.stopPropagation())}onTabKey(e,r=!1){if(!r)if(this.overlayVisible&&this.hasFocusableElements())ii(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let r=e.relatedTarget===this.focusInputViewChild?.nativeElement?nk(this.overlayViewChild?.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;ii(r)}onLastHiddenFocus(e){let r=e.relatedTarget===this.focusInputViewChild?.nativeElement?rk(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;ii(r)}hasFocusableElements(){return ca(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,r=!1){r&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,r){this.searchValue=(this.searchValue||"")+r;let i=-1,o=!1;return i=this.visibleOptions().findIndex(s=>this.isOptionMatched(s)),i!==-1&&(o=!0),i===-1&&this.focusedOptionIndex()===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,i)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let r=e.target.value;this._filterValue.set(r),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?wt(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():ii(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}writeControlValue(e,r){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),r(this.value),this.updateEditableLabel(),this.cd.markForCheck()}static \u0275fac=function(r){return new(r||t)(de($e),de(jl))};static \u0275cmp=$({type:t,selectors:[["p-select"]],contentQueries:function(r,i,o){if(r&1&&(V(o,Xj,4),V(o,ez,4),V(o,tz,4),V(o,nz,4),V(o,rz,4),V(o,yR,4),V(o,iz,4),V(o,oz,4),V(o,sz,4),V(o,az,4),V(o,lz,4),V(o,cz,4),V(o,dz,4),V(o,uz,4),V(o,pz,4),V(o,fz,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.itemTemplate=s.first),M(s=O())&&(i.groupTemplate=s.first),M(s=O())&&(i.loaderTemplate=s.first),M(s=O())&&(i.selectedItemTemplate=s.first),M(s=O())&&(i.headerTemplate=s.first),M(s=O())&&(i.filterTemplate=s.first),M(s=O())&&(i.footerTemplate=s.first),M(s=O())&&(i.emptyFilterTemplate=s.first),M(s=O())&&(i.emptyTemplate=s.first),M(s=O())&&(i.dropdownIconTemplate=s.first),M(s=O())&&(i.loadingIconTemplate=s.first),M(s=O())&&(i.clearIconTemplate=s.first),M(s=O())&&(i.filterIconTemplate=s.first),M(s=O())&&(i.onIconTemplate=s.first),M(s=O())&&(i.offIconTemplate=s.first),M(s=O())&&(i.cancelIconTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(yR,5),ct(hz,5),ct(mz,5),ct(gz,5),ct(yz,5),ct(bz,5),ct(vz,5),ct(_z,5)),r&2){let o;M(o=O())&&(i.filterViewChild=o.first),M(o=O())&&(i.focusInputViewChild=o.first),M(o=O())&&(i.editableInputViewChild=o.first),M(o=O())&&(i.itemsViewChild=o.first),M(o=O())&&(i.scroller=o.first),M(o=O())&&(i.overlayViewChild=o.first),M(o=O())&&(i.firstHiddenFocusableElementOnOverlay=o.first),M(o=O())&&(i.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:3,hostBindings:function(r,i){r&1&&q("click",function(s){return i.onContainerClick(s)}),r&2&&(J("id",i.id),k(i.cn(i.cx("root"),i.styleClass)))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",R],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",R],editable:[2,"editable","editable",R],tabindex:[2,"tabindex","tabindex",Me],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",R],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",R],checkmark:[2,"checkmark","checkmark",R],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",R],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",group:[2,"group","group",R],showClear:[2,"showClear","showClear",R],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",R],virtualScroll:[2,"virtualScroll","virtualScroll",R],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",Me],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",R],selectOnFocus:[2,"selectOnFocus","selectOnFocus",R],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",R],autofocusFilter:[2,"autofocusFilter","autofocusFilter",R],filterValue:"filterValue",options:"options",appendTo:[1,"appendTo"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[xe([DH,Ym,{provide:wR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:11,vars:16,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"class","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text",3,"class","pBind","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",3,"pBind"],[4,"ngIf","ngIfElse"],["hostName","select",3,"visibleChange","onAnimationStart","onHide","hostAttrSelector","pt","visible","options","target","appendTo"],["role","combobox",3,"focus","blur","keydown","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text",3,"input","keydown","focus","blur","pBind","pAutoFocus"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"class","pBind",4,"ngIf"],["aria-hidden","true",3,"pBind"],[3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],[3,"ngStyle","pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],["hostName","select",3,"items","style","itemSize","autoSize","lazy","options","pt","onLazyLoad",4,"ngIf"],[3,"pt"],["pInputText","","type","text","role","searchbox","autocomplete","off",3,"input","keydown","blur","pSize","value","variant","pt"],["data-p-icon","search",3,"pBind",4,"ngIf"],[3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","select",3,"onLazyLoad","items","itemSize","autoSize","lazy","options","pt"],["role","listbox",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"class","ngStyle","pBind",4,"ngIf"],["role","option",3,"ngStyle","pBind"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","index","scrollerOptions"]],template:function(r,i){if(r&1){let o=se();C(0,Sz,6,23,"span",16)(1,Iz,2,19,"input",17)(2,Rz,3,2,"ng-container",18),E(3,"div",19),C(4,Bz,3,2,"ng-container",20)(5,Wz,2,2,"ng-template",null,0,at),T(),E(7,"p-overlay",21,1),Rr("visibleChange",function(a){return S(o),Xr(i.overlayVisible,a)||(i.overlayVisible=a),I(a)}),q("onAnimationStart",function(a){return S(o),I(i.onOverlayAnimationStart(a))})("onHide",function(){return S(o),I(i.hide())}),C(9,TH,13,22,"ng-template",null,2,at),T()}if(r&2){let o=pn(6);h("ngIf",!i.editable),g(),h("ngIf",i.editable),g(),h("ngIf",i.isVisibleClearIcon),g(),k(i.cx("dropdown")),h("pBind",i.ptm("dropdown")),J("aria-expanded",i.overlayVisible??!1)("data-pc-section","trigger"),g(),h("ngIf",i.loading)("ngIfElse",o),g(3),h("hostAttrSelector",i.$attrSelector)("pt",i.ptm("pcOverlay")),Or("visible",i.overlayVisible),h("options",i.overlayOptions)("target","@parent")("appendTo",i.$appendTo())}},dependencies:[Qe,Ar,Wt,kt,tr,kH,uR,Xh,$i,ql,Jh,sM,to,Gm,qm,Bu,Te,Gt,te],encapsulation:2,changeDetection:0})}return t})(),CR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Zm,Te,Te]})}return t})();var xR=` .p-inputnumber { display: inline-flex; position: relative; @@ -832,8 +1873,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a .p-inputnumber-horizontal .p-inputnumber-clear-icon { inset-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x')); } -`;var gC=["clearicon"],bC=["incrementbuttonicon"],_C=["decrementbuttonicon"],yC=["input"];function vC(t,n){if(t&1){let e=te();j(),k(0,"svg",7),Q("click",function(){w(e);let o=u(2);return C(o.clear())}),x()}if(t&2){let e=u(2);I(e.cx("clearIcon")),d("pBind",e.ptm("clearIcon"))}}function wC(t,n){}function CC(t,n){t&1&&_(0,wC,0,0,"ng-template")}function xC(t,n){if(t&1){let e=te();k(0,"span",8),Q("click",function(){w(e);let o=u(2);return C(o.clear())}),_(1,CC,1,0,null,9),x()}if(t&2){let e=u(2);I(e.cx("clearIcon")),d("pBind",e.ptm("clearIcon")),f(),d("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function kC(t,n){if(t&1&&(ne(0),_(1,vC,1,3,"svg",5)(2,xC,2,4,"span",6),ie()),t&2){let e=u();f(),d("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),f(),d("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function TC(t,n){if(t&1&&Z(0,"span",13),t&2){let e=u(2);d("pBind",e.ptm("incrementButtonIcon"))("ngClass",e.incrementButtonIcon)}}function SC(t,n){if(t&1&&(j(),Z(0,"svg",15)),t&2){let e=u(3);d("pBind",e.ptm("incrementButtonIcon"))}}function IC(t,n){}function EC(t,n){t&1&&_(0,IC,0,0,"ng-template")}function MC(t,n){if(t&1&&(ne(0),_(1,SC,1,1,"svg",14)(2,EC,1,0,null,9),ie()),t&2){let e=u(2);f(),d("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),f(),d("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function DC(t,n){if(t&1&&Z(0,"span",13),t&2){let e=u(2);d("pBind",e.ptm("decrementButtonIcon"))("ngClass",e.decrementButtonIcon)}}function OC(t,n){if(t&1&&(j(),Z(0,"svg",17)),t&2){let e=u(3);d("pBind",e.ptm("decrementButtonIcon"))}}function PC(t,n){}function FC(t,n){t&1&&_(0,PC,0,0,"ng-template")}function RC(t,n){if(t&1&&(ne(0),_(1,OC,1,1,"svg",16)(2,FC,1,0,null,9),ie()),t&2){let e=u(2);f(),d("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),f(),d("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function VC(t,n){if(t&1){let e=te();k(0,"span",10)(1,"button",11),Q("mousedown",function(o){w(e);let r=u();return C(r.onUpButtonMouseDown(o))})("mouseup",function(){w(e);let o=u();return C(o.onUpButtonMouseUp())})("mouseleave",function(){w(e);let o=u();return C(o.onUpButtonMouseLeave())})("keydown",function(o){w(e);let r=u();return C(r.onUpButtonKeyDown(o))})("keyup",function(){w(e);let o=u();return C(o.onUpButtonKeyUp())}),_(2,TC,1,2,"span",12)(3,MC,3,2,"ng-container",2),x(),k(4,"button",11),Q("mousedown",function(o){w(e);let r=u();return C(r.onDownButtonMouseDown(o))})("mouseup",function(){w(e);let o=u();return C(o.onDownButtonMouseUp())})("mouseleave",function(){w(e);let o=u();return C(o.onDownButtonMouseLeave())})("keydown",function(o){w(e);let r=u();return C(r.onDownButtonKeyDown(o))})("keyup",function(){w(e);let o=u();return C(o.onDownButtonKeyUp())}),_(5,DC,1,2,"span",12)(6,RC,3,2,"ng-container",2),x()()}if(t&2){let e=u();I(e.cx("buttonGroup")),d("pBind",e.ptm("buttonGroup")),f(),I(e.cn(e.cx("incrementButton"),e.incrementButtonClass)),d("pBind",e.ptm("incrementButton")),Y("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),f(),d("ngIf",e.incrementButtonIcon),f(),d("ngIf",!e.incrementButtonIcon),f(),I(e.cn(e.cx("decrementButton"),e.decrementButtonClass)),d("pBind",e.ptm("decrementButton")),Y("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),f(),d("ngIf",e.decrementButtonIcon),f(),d("ngIf",!e.decrementButtonIcon)}}function BC(t,n){if(t&1&&Z(0,"span",13),t&2){let e=u(2);d("pBind",e.ptm("incrementButtonIcon"))("ngClass",e.incrementButtonIcon)}}function AC(t,n){if(t&1&&(j(),Z(0,"svg",15)),t&2){let e=u(3);d("pBind",e.ptm("incrementButtonIcon"))}}function LC(t,n){}function NC(t,n){t&1&&_(0,LC,0,0,"ng-template")}function zC(t,n){if(t&1&&(ne(0),_(1,AC,1,1,"svg",14)(2,NC,1,0,null,9),ie()),t&2){let e=u(2);f(),d("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),f(),d("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function jC(t,n){if(t&1){let e=te();k(0,"button",11),Q("mousedown",function(o){w(e);let r=u();return C(r.onUpButtonMouseDown(o))})("mouseup",function(){w(e);let o=u();return C(o.onUpButtonMouseUp())})("mouseleave",function(){w(e);let o=u();return C(o.onUpButtonMouseLeave())})("keydown",function(o){w(e);let r=u();return C(r.onUpButtonKeyDown(o))})("keyup",function(){w(e);let o=u();return C(o.onUpButtonKeyUp())}),_(1,BC,1,2,"span",12)(2,zC,3,2,"ng-container",2),x()}if(t&2){let e=u();I(e.cn(e.cx("incrementButton"),e.incrementButtonClass)),d("pBind",e.ptm("incrementButton")),Y("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),f(),d("ngIf",e.incrementButtonIcon),f(),d("ngIf",!e.incrementButtonIcon)}}function HC(t,n){if(t&1&&Z(0,"span",13),t&2){let e=u(2);d("pBind",e.ptm("decrementButtonIcon"))("ngClass",e.decrementButtonIcon)}}function QC(t,n){if(t&1&&(j(),Z(0,"svg",17)),t&2){let e=u(3);d("pBind",e.ptm("decrementButtonIcon"))}}function qC(t,n){}function UC(t,n){t&1&&_(0,qC,0,0,"ng-template")}function GC(t,n){if(t&1&&(ne(0),_(1,QC,1,1,"svg",16)(2,UC,1,0,null,9),ie()),t&2){let e=u(2);f(),d("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),f(),d("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function $C(t,n){if(t&1){let e=te();k(0,"button",11),Q("mousedown",function(o){w(e);let r=u();return C(r.onDownButtonMouseDown(o))})("mouseup",function(){w(e);let o=u();return C(o.onDownButtonMouseUp())})("mouseleave",function(){w(e);let o=u();return C(o.onDownButtonMouseLeave())})("keydown",function(o){w(e);let r=u();return C(r.onDownButtonKeyDown(o))})("keyup",function(){w(e);let o=u();return C(o.onDownButtonKeyUp())}),_(1,HC,1,2,"span",12)(2,GC,3,2,"ng-container",2),x()}if(t&2){let e=u();I(e.cn(e.cx("decrementButton"),e.decrementButtonClass)),d("pBind",e.ptm("decrementButton")),Y("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),f(),d("ngIf",e.decrementButtonIcon),f(),d("ngIf",!e.decrementButtonIcon)}}var WC=` - ${qg} +`;var MH=["clearicon"],OH=["incrementbuttonicon"],RH=["decrementbuttonicon"],PH=["input"];function AH(t,n){if(t&1){let e=se();G(),E(0,"svg",7),q("click",function(){S(e);let i=m(2);return I(i.clear())}),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon"))}}function NH(t,n){}function FH(t,n){t&1&&C(0,NH,0,0,"ng-template")}function LH(t,n){if(t&1){let e=se();E(0,"span",8),q("click",function(){S(e);let i=m(2);return I(i.clear())}),C(1,FH,1,0,null,9),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon")),g(),h("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function BH(t,n){if(t&1&&(ie(0),C(1,AH,1,3,"svg",5)(2,LH,2,4,"span",6),oe()),t&2){let e=m();g(),h("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),h("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function VH(t,n){if(t&1&&X(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("incrementButtonIcon"))("ngClass",e.incrementButtonIcon)}}function jH(t,n){if(t&1&&(G(),X(0,"svg",15)),t&2){let e=m(3);h("pBind",e.ptm("incrementButtonIcon"))}}function zH(t,n){}function HH(t,n){t&1&&C(0,zH,0,0,"ng-template")}function $H(t,n){if(t&1&&(ie(0),C(1,jH,1,1,"svg",14)(2,HH,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function UH(t,n){if(t&1&&X(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("decrementButtonIcon"))("ngClass",e.decrementButtonIcon)}}function WH(t,n){if(t&1&&(G(),X(0,"svg",17)),t&2){let e=m(3);h("pBind",e.ptm("decrementButtonIcon"))}}function GH(t,n){}function qH(t,n){t&1&&C(0,GH,0,0,"ng-template")}function QH(t,n){if(t&1&&(ie(0),C(1,WH,1,1,"svg",16)(2,qH,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function KH(t,n){if(t&1){let e=se();E(0,"span",10)(1,"button",11),q("mousedown",function(i){S(e);let o=m();return I(o.onUpButtonMouseDown(i))})("mouseup",function(){S(e);let i=m();return I(i.onUpButtonMouseUp())})("mouseleave",function(){S(e);let i=m();return I(i.onUpButtonMouseLeave())})("keydown",function(i){S(e);let o=m();return I(o.onUpButtonKeyDown(i))})("keyup",function(){S(e);let i=m();return I(i.onUpButtonKeyUp())}),C(2,VH,1,2,"span",12)(3,$H,3,2,"ng-container",2),T(),E(4,"button",11),q("mousedown",function(i){S(e);let o=m();return I(o.onDownButtonMouseDown(i))})("mouseup",function(){S(e);let i=m();return I(i.onDownButtonMouseUp())})("mouseleave",function(){S(e);let i=m();return I(i.onDownButtonMouseLeave())})("keydown",function(i){S(e);let o=m();return I(o.onDownButtonKeyDown(i))})("keyup",function(){S(e);let i=m();return I(i.onDownButtonKeyUp())}),C(5,UH,1,2,"span",12)(6,QH,3,2,"ng-container",2),T()()}if(t&2){let e=m();k(e.cx("buttonGroup")),h("pBind",e.ptm("buttonGroup")),g(),k(e.cn(e.cx("incrementButton"),e.incrementButtonClass)),h("pBind",e.ptm("incrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.incrementButtonIcon),g(),h("ngIf",!e.incrementButtonIcon),g(),k(e.cn(e.cx("decrementButton"),e.decrementButtonClass)),h("pBind",e.ptm("decrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.decrementButtonIcon),g(),h("ngIf",!e.decrementButtonIcon)}}function YH(t,n){if(t&1&&X(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("incrementButtonIcon"))("ngClass",e.incrementButtonIcon)}}function ZH(t,n){if(t&1&&(G(),X(0,"svg",15)),t&2){let e=m(3);h("pBind",e.ptm("incrementButtonIcon"))}}function JH(t,n){}function XH(t,n){t&1&&C(0,JH,0,0,"ng-template")}function e$(t,n){if(t&1&&(ie(0),C(1,ZH,1,1,"svg",14)(2,XH,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function t$(t,n){if(t&1){let e=se();E(0,"button",11),q("mousedown",function(i){S(e);let o=m();return I(o.onUpButtonMouseDown(i))})("mouseup",function(){S(e);let i=m();return I(i.onUpButtonMouseUp())})("mouseleave",function(){S(e);let i=m();return I(i.onUpButtonMouseLeave())})("keydown",function(i){S(e);let o=m();return I(o.onUpButtonKeyDown(i))})("keyup",function(){S(e);let i=m();return I(i.onUpButtonKeyUp())}),C(1,YH,1,2,"span",12)(2,e$,3,2,"ng-container",2),T()}if(t&2){let e=m();k(e.cn(e.cx("incrementButton"),e.incrementButtonClass)),h("pBind",e.ptm("incrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.incrementButtonIcon),g(),h("ngIf",!e.incrementButtonIcon)}}function n$(t,n){if(t&1&&X(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("decrementButtonIcon"))("ngClass",e.decrementButtonIcon)}}function r$(t,n){if(t&1&&(G(),X(0,"svg",17)),t&2){let e=m(3);h("pBind",e.ptm("decrementButtonIcon"))}}function i$(t,n){}function o$(t,n){t&1&&C(0,i$,0,0,"ng-template")}function s$(t,n){if(t&1&&(ie(0),C(1,r$,1,1,"svg",16)(2,o$,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function a$(t,n){if(t&1){let e=se();E(0,"button",11),q("mousedown",function(i){S(e);let o=m();return I(o.onDownButtonMouseDown(i))})("mouseup",function(){S(e);let i=m();return I(i.onDownButtonMouseUp())})("mouseleave",function(){S(e);let i=m();return I(i.onDownButtonMouseLeave())})("keydown",function(i){S(e);let o=m();return I(o.onDownButtonKeyDown(i))})("keyup",function(){S(e);let i=m();return I(i.onDownButtonKeyUp())}),C(1,n$,1,2,"span",12)(2,s$,3,2,"ng-container",2),T()}if(t&2){let e=m();k(e.cn(e.cx("decrementButton"),e.decrementButtonClass)),h("pBind",e.ptm("decrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.decrementButtonIcon),g(),h("ngIf",!e.decrementButtonIcon)}}var l$=` + ${xR} /* For PrimeNG */ p-inputNumber.ng-invalid.ng-dirty > .p-inputtext, @@ -853,7 +1894,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a p-inputnumber.ng-invalid.ng-dirty > .p-inputtext::placeholder { color: dt('inputtext.invalid.placeholder.color'); } -`,KC={root:({instance:t})=>["p-inputnumber p-component p-inputwrapper",{"p-inputwrapper-filled":t.$filled()||t.allowEmpty===!1,"p-inputwrapper-focus":t.focused,"p-inputnumber-stacked":t.showButtons&&t.buttonLayout==="stacked","p-inputnumber-horizontal":t.showButtons&&t.buttonLayout==="horizontal","p-inputnumber-vertical":t.showButtons&&t.buttonLayout==="vertical","p-inputnumber-fluid":t.hasFluid,"p-invalid":t.invalid()}],pcInputText:"p-inputnumber-input",buttonGroup:"p-inputnumber-button-group",incrementButton:({instance:t})=>["p-inputnumber-button p-inputnumber-increment-button",{"p-disabled":t.showButtons&&t.max()!=null&&t.maxlength()}],decrementButton:({instance:t})=>["p-inputnumber-button p-inputnumber-decrement-button",{"p-disabled":t.showButtons&&t.min()!=null&&t.minlength()}],clearIcon:"p-inputnumber-clear-icon"},Ug=(()=>{class t extends Ge{name="inputnumber";style=WC;classes=KC;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var Gg=new we("INPUTNUMBER_INSTANCE"),YC={provide:Ot,useExisting:_t(()=>ds),multi:!0},ds=(()=>{class t extends Lo{injector;$pcInputNumber=G(Gg,{optional:!0,skipSelf:!0})??void 0;_componentStyle=G(Ug);bindDirectiveInstance=G(X,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;placeholder;tabindex;title;ariaLabelledBy;ariaDescribedBy;ariaLabel;ariaRequired;autocomplete;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;autofocus;onInput=new H;onFocus=new H;onBlur=new H;onKeyDown=new H;onClear=new H;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;templates;input;_clearIconTemplate;_incrementButtonIconTemplate;_decrementButtonIconTemplate;value;focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_decimalChar="";_group;_minusSign;_currency;_prefix;_suffix;_index;ngControl=null;constructor(e){super(),this.injector=e}onChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(o=>!!e[o])&&this.updateConstructParser()}onInit(){this.ngControl=this.injector.get(Bt,null,{optional:!0}),this.constructParser(),this.initialized=!0}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this._clearIconTemplate=e.template;break;case"incrementbuttonicon":this._incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this._decrementButtonIconTemplate=e.template;break}})}getOptions(){let e=(a,s,l)=>{if(!(a==null||isNaN(a)||!isFinite(a)))return Math.max(s,Math.min(l,Math.floor(a)))},i=e(this.minFractionDigits,0,20),o=e(this.maxFractionDigits,0,100),r=i!=null&&o!=null&&i>o?o:i;return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:r,maximumFractionDigits:o}}constructParser(){let e=this.getOptions(),i=Object.fromEntries(Object.entries(e).filter(([a,s])=>s!==void 0));this.numberFormat=new Intl.NumberFormat(this.locale,i);let o=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),r=new Map(o.map((a,s)=>[a,s]));this._numeral=new RegExp(`[${o.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._decimalChar=this.getDecimalChar(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=a=>r.get(a)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){let e=this.getDecimalChar();return new RegExp(`[${e}]`,"g")}getDecimalChar(){return new Intl.NumberFormat(this.locale,N(T({},this.getOptions()),{useGrouping:!1})).format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}getGroupingExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){let e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(e!=null){if(e==="-")return e;if(this.format){let o=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&e!=this.prefix&&(o=this.prefix+o),this.suffix&&e!=this.suffix&&(o=o+this.suffix),o}return e.toString()}return""}parseValue(e){let i=this._suffix?new RegExp(this._suffix,""):/(?:)/,o=this._prefix?new RegExp(this._prefix,""):/(?:)/,r=this._currency?new RegExp(this._currency,""):/(?:)/,a=e.replace(i,"").replace(o,"").trim().replace(/\s/g,"").replace(r,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(a){if(a==="-")return a;let s=+a;return isNaN(s)?null:s}return null}repeat(e,i,o){if(this.readonly)return;let r=i||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},r),this.spin(e,o)}spin(e,i){let o=(this.step()??1)*i,r=this.parseValue(this.input?.nativeElement.value)||0,a=this.validateValue(r+o),s=this.maxlength();s&&s=0;s--)if(this.isNumeralChar(r.charAt(s))){this.input.nativeElement.setSelectionRange(s,s);break}break;case"Tab":case"Enter":a=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(a),this.input.nativeElement.setAttribute("aria-valuenow",a),this.updateModel(e,a);break;case"Backspace":{if(e.preventDefault(),i===o){if(i==1&&this.prefix||i==r.length&&this.suffix)break;let s=r.charAt(i-1),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(s)){let p=this.getDecimalLength(r);if(this._group.test(s))this._group.lastIndex=0,a=r.slice(0,i-2)+r.slice(i-1);else if(this._decimal.test(s))this._decimal.lastIndex=0,p?this.input?.nativeElement.setSelectionRange(i-1,i-1):a=r.slice(0,i-1)+r.slice(i);else if(l>0&&i>l){let h=this.isDecimalMode()&&(this.minFractionDigits||0)0?a:""):a=r.slice(0,i-1)+r.slice(i)}else this.mode==="currency"&&this._currency&&s.search(this._currency)!=-1&&(a=r.slice(1));this.updateValue(e,a,null,"delete-single")}else a=this.deleteRange(r,i,o),this.updateValue(e,a,null,"delete-range");break}case"Delete":if(e.preventDefault(),i===o){if(i==0&&this.prefix||i==r.length-1&&this.suffix)break;let s=r.charAt(i),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(s)){let p=this.getDecimalLength(r);if(this._group.test(s))this._group.lastIndex=0,a=r.slice(0,i)+r.slice(i+2);else if(this._decimal.test(s))this._decimal.lastIndex=0,p?this.input?.nativeElement.setSelectionRange(i+1,i+1):a=r.slice(0,i)+r.slice(i+1);else if(l>0&&i>l){let h=this.isDecimalMode()&&(this.minFractionDigits||0)0?a:""):a=r.slice(0,i)+r.slice(i+1)}this.updateValue(e,a,null,"delete-back-single")}else a=this.deleteRange(r,i,o),this.updateValue(e,a,null,"delete-range");break;case"Home":this.min()&&(this.updateModel(e,this.min()),e.preventDefault());break;case"End":this.max()&&(this.updateModel(e,this.max()),e.preventDefault());break;default:break}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let i=e.which||e.keyCode,o=String.fromCharCode(i),r=this.isDecimalSign(o),a=this.isMinusSign(o);i!=13&&e.preventDefault(),!r&&e.code==="NumpadDecimal"&&(r=!0,o=this._decimalChar,i=o.charCodeAt(0));let{value:s,selectionStart:l,selectionEnd:c}=this.input.nativeElement,p=this.parseValue(s+o),h=p!=null?p.toString():"",m=s.substring(l,c),g=this.parseValue(m),b=g!=null?g.toString():"";if(l!==c&&b.length>0){this.insert(e,o,{isDecimalSign:r,isMinusSign:a});return}let y=this.maxlength();y&&h.length>y||(48<=i&&i<=57||a||r)&&this.insert(e,o,{isDecimalSign:r,isMinusSign:a})}onPaste(e){if(!this.$disabled()&&!this.readonly){e.preventDefault();let i=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(this.inputId==="integeronly"&&/[^\d-]/.test(i))return;if(i){this.maxlength()&&(i=i.toString().substring(0,this.maxlength()));let o=this.parseValue(i);o!=null&&this.insert(e,o.toString())}}}allowMinusSign(){let e=this.min();return e==null||e<0}isMinusSign(e){return this._minusSign.test(e)||e==="-"?(this._minusSign.lastIndex=0,!0):!1}isDecimalSign(e){return this._decimal.test(e)?(this._decimal.lastIndex=0,!0):!1}isDecimalMode(){return this.mode==="decimal"}getDecimalCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;let r=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:i,decimalCharIndexWithoutPrefix:r}}getCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;let o=e.search(this._minusSign);this._minusSign.lastIndex=0;let r=e.search(this._suffix);this._suffix.lastIndex=0;let a=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:i,minusCharIndex:o,suffixCharIndex:r,currencyCharIndex:a}}insert(e,i,o={isDecimalSign:!1,isMinusSign:!1}){let r=i.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&r!==-1)return;let a=this.input?.nativeElement.selectionStart,s=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim(),{decimalCharIndex:c,minusCharIndex:p,suffixCharIndex:h,currencyCharIndex:m}=this.getCharIndexes(l),g;if(o.isMinusSign)a===0&&(g=l,(p===-1||s!==0)&&(g=this.insertText(l,i,0,s)),this.updateValue(e,g,i,"insert"));else if(o.isDecimalSign)c>0&&a===c?this.updateValue(e,l,i,"insert"):c>a&&c0&&a>c){if(a+i.length-(c+1)<=b){let v=m>=a?m-1:h>=a?h:l.length;g=l.slice(0,a)+i+l.slice(a+i.length,v)+l.slice(v),this.updateValue(e,g,i,y)}}else g=this.insertText(l,i,a,s),this.updateValue(e,g,i,y)}}insertText(e,i,o,r){if((i==="."?i:i.split(".")).length===2){let s=e.slice(o,r).search(this._decimal);return this._decimal.lastIndex=0,s>0?e.slice(0,o)+this.formatValue(i)+e.slice(r):e||this.formatValue(i)}else return r-o===e.length?this.formatValue(i):o===0?i+e.slice(r):r===e.length?e.slice(0,o)+i:e.slice(0,o)+i+e.slice(r)}deleteRange(e,i,o){let r;return o-i===e.length?r="":i===0?r=e.slice(o):o===e.length?r=e.slice(0,i):r=e.slice(0,i)+e.slice(o),r}initCursor(){let e=this.input?.nativeElement.selectionStart,i=this.input?.nativeElement.selectionEnd,o=this.input?.nativeElement.value,r=o.length,a=null,s=(this.prefixChar||"").length;o=o.replace(this._prefix,""),(e===i||e!==0||i=0;)if(l=o.charAt(c),this.isNumeralChar(l)){a=c+s;break}else c--;if(a!==null)this.input?.nativeElement.setSelectionRange(a+1,a+1);else{for(c=e;co?o:e}updateInput(e,i,o,r){i=i||"";let a=this.input?.nativeElement.value,s=this.formatValue(e),l=a.length;if(s!==r&&(s=this.concatValues(s,r)),l===0){this.input.nativeElement.value=s,this.input.nativeElement.setSelectionRange(0,0);let p=this.initCursor()+i.length;this.input.nativeElement.setSelectionRange(p,p)}else{let c=this.input.nativeElement.selectionStart,p=this.input.nativeElement.selectionEnd,h=this.maxlength();if(h&&s.length>h&&(s=s.slice(0,h),c=Math.min(c,h),p=Math.min(p,h)),h&&hxe(e,void 0)],maxFractionDigits:[2,"maxFractionDigits","maxFractionDigits",e=>xe(e,void 0)],prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:[2,"showClear","showClear",P],autofocus:[2,"autofocus","autofocus",P]},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Ee([YC,Ug,{provide:Gg,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],decls:6,vars:36,consts:[["input",""],["pInputText","","role","spinbutton","inputmode","decimal",3,"input","keydown","keypress","paste","click","focus","blur","value","ngStyle","variant","invalid","pSize","pt","pAutoFocus","fluid"],[4,"ngIf"],[3,"pBind","class",4,"ngIf"],["type","button","tabindex","-1",3,"pBind","class","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind"],["type","button","tabindex","-1",3,"mousedown","mouseup","mouseleave","keydown","keyup","pBind"],[3,"pBind","ngClass",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","angle-up",3,"pBind",4,"ngIf"],["data-p-icon","angle-up",3,"pBind"],["data-p-icon","angle-down",3,"pBind",4,"ngIf"],["data-p-icon","angle-down",3,"pBind"]],template:function(i,o){if(i&1){let r=te();k(0,"input",1,0),Q("input",function(s){return w(r),C(o.onUserInput(s))})("keydown",function(s){return w(r),C(o.onInputKeyDown(s))})("keypress",function(s){return w(r),C(o.onInputKeyPress(s))})("paste",function(s){return w(r),C(o.onPaste(s))})("click",function(){return w(r),C(o.onInputClick())})("focus",function(s){return w(r),C(o.onInputFocus(s))})("blur",function(s){return w(r),C(o.onInputBlur(s))}),x(),_(2,kC,3,2,"ng-container",2)(3,VC,7,17,"span",3)(4,jC,3,7,"button",4)(5,$C,3,7,"button",4)}i&2&&(I(o.cn(o.cx("pcInputText"),o.inputStyleClass)),d("value",o.formattedValue())("ngStyle",o.inputStyle)("variant",o.$variant())("invalid",o.invalid())("pSize",o.size())("pt",o.ptm("pcInputText"))("pAutoFocus",o.autofocus)("fluid",o.hasFluid),Y("id",o.inputId)("aria-valuemin",o.min())("aria-valuemax",o.max())("aria-valuenow",o.value)("placeholder",o.placeholder)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-describedby",o.ariaDescribedBy)("title",o.title)("size",o.inputSize())("name",o.name())("autocomplete",o.autocomplete)("maxlength",o.maxlength())("minlength",o.minlength())("tabindex",o.tabindex)("aria-required",o.ariaRequired)("min",o.min())("max",o.max())("step",o.step()??1)("required",o.required()?"":void 0)("readonly",o.readonly?"":void 0)("disabled",o.$disabled()?"":void 0),f(2),d("ngIf",o.buttonLayout!="vertical"&&o.showClear&&o.value),f(),d("ngIf",o.showButtons&&o.buttonLayout==="stacked"),f(),d("ngIf",o.showButtons&&o.buttonLayout!=="stacked"),f(),d("ngIf",o.showButtons&&o.buttonLayout!=="stacked"))},dependencies:[$e,Cn,ht,ot,an,An,di,Fo,Tm,Cm,ve,dt,X],encapsulation:2,changeDetection:0})}return t})(),$g=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({imports:[ds,ve,ve]})}return t})();var Wg=` +`,c$={root:({instance:t})=>["p-inputnumber p-component p-inputwrapper",{"p-inputwrapper-filled":t.$filled()||t.allowEmpty===!1,"p-inputwrapper-focus":t.focused,"p-inputnumber-stacked":t.showButtons&&t.buttonLayout==="stacked","p-inputnumber-horizontal":t.showButtons&&t.buttonLayout==="horizontal","p-inputnumber-vertical":t.showButtons&&t.buttonLayout==="vertical","p-inputnumber-fluid":t.hasFluid,"p-invalid":t.invalid()}],pcInputText:"p-inputnumber-input",buttonGroup:"p-inputnumber-button-group",incrementButton:({instance:t})=>["p-inputnumber-button p-inputnumber-increment-button",{"p-disabled":t.showButtons&&t.max()!=null&&t.maxlength()}],decrementButton:({instance:t})=>["p-inputnumber-button p-inputnumber-decrement-button",{"p-disabled":t.showButtons&&t.min()!=null&&t.minlength()}],clearIcon:"p-inputnumber-clear-icon"},TR=(()=>{class t extends Oe{name="inputnumber";style=l$;classes=c$;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var ER=new H("INPUTNUMBER_INSTANCE"),d$={provide:Nn,useExisting:$t(()=>Jm),multi:!0},Jm=(()=>{class t extends vc{injector;$pcInputNumber=x(ER,{optional:!0,skipSelf:!0})??void 0;_componentStyle=x(TR);bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;placeholder;tabindex;title;ariaLabelledBy;ariaDescribedBy;ariaLabel;ariaRequired;autocomplete;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;autofocus;onInput=new z;onFocus=new z;onBlur=new z;onKeyDown=new z;onClear=new z;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;templates;input;_clearIconTemplate;_incrementButtonIconTemplate;_decrementButtonIconTemplate;value;focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_decimalChar="";_group;_minusSign;_currency;_prefix;_suffix;_index;ngControl=null;constructor(e){super(),this.injector=e}onChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(i=>!!e[i])&&this.updateConstructParser()}onInit(){this.ngControl=this.injector.get(Yn,null,{optional:!0}),this.constructParser(),this.initialized=!0}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this._clearIconTemplate=e.template;break;case"incrementbuttonicon":this._incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this._decrementButtonIconTemplate=e.template;break}})}getOptions(){let e=(s,a,l)=>{if(!(s==null||isNaN(s)||!isFinite(s)))return Math.max(a,Math.min(l,Math.floor(s)))},r=e(this.minFractionDigits,0,20),i=e(this.maxFractionDigits,0,100),o=r!=null&&i!=null&&r>i?i:r;return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:o,maximumFractionDigits:i}}constructParser(){let e=this.getOptions(),r=Object.fromEntries(Object.entries(e).filter(([s,a])=>a!==void 0));this.numberFormat=new Intl.NumberFormat(this.locale,r);let i=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(i.map((s,a)=>[s,a]));this._numeral=new RegExp(`[${i.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._decimalChar=this.getDecimalChar(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=s=>o.get(s)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){let e=this.getDecimalChar();return new RegExp(`[${e}]`,"g")}getDecimalChar(){return new Intl.NumberFormat(this.locale,A(_({},this.getOptions()),{useGrouping:!1})).format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}getGroupingExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){let e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(e!=null){if(e==="-")return e;if(this.format){let i=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&e!=this.prefix&&(i=this.prefix+i),this.suffix&&e!=this.suffix&&(i=i+this.suffix),i}return e.toString()}return""}parseValue(e){let r=this._suffix?new RegExp(this._suffix,""):/(?:)/,i=this._prefix?new RegExp(this._prefix,""):/(?:)/,o=this._currency?new RegExp(this._currency,""):/(?:)/,s=e.replace(r,"").replace(i,"").trim().replace(/\s/g,"").replace(o,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(s){if(s==="-")return s;let a=+s;return isNaN(a)?null:a}return null}repeat(e,r,i){if(this.readonly)return;let o=r||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,i)},o),this.spin(e,i)}spin(e,r){let i=(this.step()??1)*r,o=this.parseValue(this.input?.nativeElement.value)||0,s=this.validateValue(o+i),a=this.maxlength();a&&a=0;a--)if(this.isNumeralChar(o.charAt(a))){this.input.nativeElement.setSelectionRange(a,a);break}break;case"Tab":case"Enter":s=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(s),this.input.nativeElement.setAttribute("aria-valuenow",s),this.updateModel(e,s);break;case"Backspace":{if(e.preventDefault(),r===i){if(r==1&&this.prefix||r==o.length&&this.suffix)break;let a=o.charAt(r-1),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){let d=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,r-2)+o.slice(r-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,d?this.input?.nativeElement.setSelectionRange(r-1,r-1):s=o.slice(0,r-1)+o.slice(r);else if(l>0&&r>l){let u=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,r-1)+o.slice(r)}else this.mode==="currency"&&this._currency&&a.search(this._currency)!=-1&&(s=o.slice(1));this.updateValue(e,s,null,"delete-single")}else s=this.deleteRange(o,r,i),this.updateValue(e,s,null,"delete-range");break}case"Delete":if(e.preventDefault(),r===i){if(r==0&&this.prefix||r==o.length-1&&this.suffix)break;let a=o.charAt(r),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){let d=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,r)+o.slice(r+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,d?this.input?.nativeElement.setSelectionRange(r+1,r+1):s=o.slice(0,r)+o.slice(r+1);else if(l>0&&r>l){let u=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,r)+o.slice(r+1)}this.updateValue(e,s,null,"delete-back-single")}else s=this.deleteRange(o,r,i),this.updateValue(e,s,null,"delete-range");break;case"Home":this.min()&&(this.updateModel(e,this.min()),e.preventDefault());break;case"End":this.max()&&(this.updateModel(e,this.max()),e.preventDefault());break;default:break}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let r=e.which||e.keyCode,i=String.fromCharCode(r),o=this.isDecimalSign(i),s=this.isMinusSign(i);r!=13&&e.preventDefault(),!o&&e.code==="NumpadDecimal"&&(o=!0,i=this._decimalChar,r=i.charCodeAt(0));let{value:a,selectionStart:l,selectionEnd:c}=this.input.nativeElement,d=this.parseValue(a+i),u=d!=null?d.toString():"",p=a.substring(l,c),f=this.parseValue(p),y=f!=null?f.toString():"";if(l!==c&&y.length>0){this.insert(e,i,{isDecimalSign:o,isMinusSign:s});return}let b=this.maxlength();b&&u.length>b||(48<=r&&r<=57||s||o)&&this.insert(e,i,{isDecimalSign:o,isMinusSign:s})}onPaste(e){if(!this.$disabled()&&!this.readonly){e.preventDefault();let r=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(this.inputId==="integeronly"&&/[^\d-]/.test(r))return;if(r){this.maxlength()&&(r=r.toString().substring(0,this.maxlength()));let i=this.parseValue(r);i!=null&&this.insert(e,i.toString())}}}allowMinusSign(){let e=this.min();return e==null||e<0}isMinusSign(e){return this._minusSign.test(e)||e==="-"?(this._minusSign.lastIndex=0,!0):!1}isDecimalSign(e){return this._decimal.test(e)?(this._decimal.lastIndex=0,!0):!1}isDecimalMode(){return this.mode==="decimal"}getDecimalCharIndexes(e){let r=e.search(this._decimal);this._decimal.lastIndex=0;let o=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:r,decimalCharIndexWithoutPrefix:o}}getCharIndexes(e){let r=e.search(this._decimal);this._decimal.lastIndex=0;let i=e.search(this._minusSign);this._minusSign.lastIndex=0;let o=e.search(this._suffix);this._suffix.lastIndex=0;let s=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:r,minusCharIndex:i,suffixCharIndex:o,currencyCharIndex:s}}insert(e,r,i={isDecimalSign:!1,isMinusSign:!1}){let o=r.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&o!==-1)return;let s=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim(),{decimalCharIndex:c,minusCharIndex:d,suffixCharIndex:u,currencyCharIndex:p}=this.getCharIndexes(l),f;if(i.isMinusSign)s===0&&(f=l,(d===-1||a!==0)&&(f=this.insertText(l,r,0,a)),this.updateValue(e,f,r,"insert"));else if(i.isDecimalSign)c>0&&s===c?this.updateValue(e,l,r,"insert"):c>s&&c0&&s>c){if(s+r.length-(c+1)<=y){let v=p>=s?p-1:u>=s?u:l.length;f=l.slice(0,s)+r+l.slice(s+r.length,v)+l.slice(v),this.updateValue(e,f,r,b)}}else f=this.insertText(l,r,s,a),this.updateValue(e,f,r,b)}}insertText(e,r,i,o){if((r==="."?r:r.split(".")).length===2){let a=e.slice(i,o).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,i)+this.formatValue(r)+e.slice(o):e||this.formatValue(r)}else return o-i===e.length?this.formatValue(r):i===0?r+e.slice(o):o===e.length?e.slice(0,i)+r:e.slice(0,i)+r+e.slice(o)}deleteRange(e,r,i){let o;return i-r===e.length?o="":r===0?o=e.slice(i):i===e.length?o=e.slice(0,r):o=e.slice(0,r)+e.slice(i),o}initCursor(){let e=this.input?.nativeElement.selectionStart,r=this.input?.nativeElement.selectionEnd,i=this.input?.nativeElement.value,o=i.length,s=null,a=(this.prefixChar||"").length;i=i.replace(this._prefix,""),(e===r||e!==0||r=0;)if(l=i.charAt(c),this.isNumeralChar(l)){s=c+a;break}else c--;if(s!==null)this.input?.nativeElement.setSelectionRange(s+1,s+1);else{for(c=e;ci?i:e}updateInput(e,r,i,o){r=r||"";let s=this.input?.nativeElement.value,a=this.formatValue(e),l=s.length;if(a!==o&&(a=this.concatValues(a,o)),l===0){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);let d=this.initCursor()+r.length;this.input.nativeElement.setSelectionRange(d,d)}else{let c=this.input.nativeElement.selectionStart,d=this.input.nativeElement.selectionEnd,u=this.maxlength();if(u&&a.length>u&&(a=a.slice(0,u),c=Math.min(c,u),d=Math.min(d,u)),u&&uMe(e,void 0)],maxFractionDigits:[2,"maxFractionDigits","maxFractionDigits",e=>Me(e,void 0)],prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:[2,"showClear","showClear",R],autofocus:[2,"autofocus","autofocus",R]},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[xe([d$,TR,{provide:ER,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:6,vars:36,consts:[["input",""],["pInputText","","role","spinbutton","inputmode","decimal",3,"input","keydown","keypress","paste","click","focus","blur","value","ngStyle","variant","invalid","pSize","pt","pAutoFocus","fluid"],[4,"ngIf"],[3,"pBind","class",4,"ngIf"],["type","button","tabindex","-1",3,"pBind","class","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind"],["type","button","tabindex","-1",3,"mousedown","mouseup","mouseleave","keydown","keyup","pBind"],[3,"pBind","ngClass",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","angle-up",3,"pBind",4,"ngIf"],["data-p-icon","angle-up",3,"pBind"],["data-p-icon","angle-down",3,"pBind",4,"ngIf"],["data-p-icon","angle-down",3,"pBind"]],template:function(r,i){if(r&1){let o=se();E(0,"input",1,0),q("input",function(a){return S(o),I(i.onUserInput(a))})("keydown",function(a){return S(o),I(i.onInputKeyDown(a))})("keypress",function(a){return S(o),I(i.onInputKeyPress(a))})("paste",function(a){return S(o),I(i.onPaste(a))})("click",function(){return S(o),I(i.onInputClick())})("focus",function(a){return S(o),I(i.onInputFocus(a))})("blur",function(a){return S(o),I(i.onInputBlur(a))}),T(),C(2,BH,3,2,"ng-container",2)(3,KH,7,17,"span",3)(4,t$,3,7,"button",4)(5,a$,3,7,"button",4)}r&2&&(k(i.cn(i.cx("pcInputText"),i.inputStyleClass)),h("value",i.formattedValue())("ngStyle",i.inputStyle)("variant",i.$variant())("invalid",i.invalid())("pSize",i.size())("pt",i.ptm("pcInputText"))("pAutoFocus",i.autofocus)("fluid",i.hasFluid),J("id",i.inputId)("aria-valuemin",i.min())("aria-valuemax",i.max())("aria-valuenow",i.value)("placeholder",i.placeholder)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy)("title",i.title)("size",i.inputSize())("name",i.name())("autocomplete",i.autocomplete)("maxlength",i.maxlength())("minlength",i.minlength())("tabindex",i.tabindex)("aria-required",i.ariaRequired)("min",i.min())("max",i.max())("step",i.step()??1)("required",i.required()?"":void 0)("readonly",i.readonly?"":void 0)("disabled",i.$disabled()?"":void 0),g(2),h("ngIf",i.buttonLayout!="vertical"&&i.showClear&&i.value),g(),h("ngIf",i.showButtons&&i.buttonLayout==="stacked"),g(),h("ngIf",i.showButtons&&i.buttonLayout!=="stacked"),g(),h("ngIf",i.showButtons&&i.buttonLayout!=="stacked"))},dependencies:[Qe,ei,Wt,kt,tr,to,$i,ql,Yk,qk,Te,Gt,te],encapsulation:2,changeDetection:0})}return t})(),SR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Jm,Te,Te]})}return t})();var IR=` .p-paginator { display: flex; align-items: center; @@ -954,7 +1995,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a .p-paginator-last:dir(rtl) { transform: rotate(180deg); } -`;var ZC=["dropdownicon"],JC=["firstpagelinkicon"],XC=["previouspagelinkicon"],ex=["lastpagelinkicon"],tx=["nextpagelinkicon"],us=t=>({$implicit:t}),nx=t=>({pageLink:t});function ix(t,n){t&1&&J(0)}function ox(t,n){if(t&1&&(k(0,"div",10),_(1,ix,1,0,"ng-container",11),x()),t&2){let e=u();I(e.cx("contentStart")),d("pBind",e.ptm("contentStart")),f(),d("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",de(5,us,e.paginatorState))}}function rx(t,n){if(t&1&&(k(0,"span",10),oe(1),x()),t&2){let e=u();I(e.cx("current")),d("pBind",e.ptm("current")),f(),Ue(e.currentPageReport)}}function ax(t,n){if(t&1&&(j(),Z(0,"svg",14)),t&2){let e=u(2);I(e.cx("firstIcon")),d("pBind",e.ptm("firstIcon"))}}function sx(t,n){}function lx(t,n){t&1&&_(0,sx,0,0,"ng-template")}function cx(t,n){if(t&1&&(k(0,"span"),_(1,lx,1,0,null,15),x()),t&2){let e=u(2);I(e.cx("firstIcon")),f(),d("ngTemplateOutlet",e.firstPageLinkIconTemplate||e._firstPageLinkIconTemplate)}}function dx(t,n){if(t&1){let e=te();k(0,"button",12),Q("click",function(o){w(e);let r=u();return C(r.changePageToFirst(o))}),_(1,ax,1,3,"svg",13)(2,cx,2,3,"span",4),x()}if(t&2){let e=u();I(e.cx("first")),d("pBind",e.ptm("first")),Y("aria-label",e.getAriaLabel("firstPageLabel")),f(),d("ngIf",!e.firstPageLinkIconTemplate&&!e._firstPageLinkIconTemplate),f(),d("ngIf",e.firstPageLinkIconTemplate||e._firstPageLinkIconTemplate)}}function ux(t,n){if(t&1&&(j(),Z(0,"svg",16)),t&2){let e=u();I(e.cx("prevIcon")),d("pBind",e.ptm("prevIcon"))}}function px(t,n){}function fx(t,n){t&1&&_(0,px,0,0,"ng-template")}function hx(t,n){if(t&1&&(k(0,"span"),_(1,fx,1,0,null,15),x()),t&2){let e=u();I(e.cx("prevIcon")),f(),d("ngTemplateOutlet",e.previousPageLinkIconTemplate||e._previousPageLinkIconTemplate)}}function mx(t,n){if(t&1){let e=te();k(0,"button",12),Q("click",function(o){let r=w(e).$implicit,a=u(2);return C(a.onPageLinkClick(o,r-1))}),oe(1),x()}if(t&2){let e=n.$implicit,i=u(2);I(i.cx("page",de(6,nx,e))),d("pBind",i.ptm("page")),Y("aria-label",i.getPageAriaLabel(e))("aria-current",e-1==i.getPage()?"page":void 0),f(),ft(" ",i.getLocalization(e)," ")}}function gx(t,n){if(t&1&&(k(0,"span",10),_(1,mx,2,8,"button",17),x()),t&2){let e=u();I(e.cx("pages")),d("pBind",e.ptm("pages")),f(),d("ngForOf",e.pageLinks)}}function bx(t,n){if(t&1&&oe(0),t&2){let e=u(2);Ue(e.currentPageReport)}}function _x(t,n){t&1&&J(0)}function yx(t,n){if(t&1&&_(0,_x,1,0,"ng-container",11),t&2){let e=n.$implicit,i=u(3);d("ngTemplateOutlet",i.jumpToPageItemTemplate)("ngTemplateOutletContext",de(2,us,e))}}function vx(t,n){t&1&&(ne(0),_(1,yx,1,4,"ng-template",21),ie())}function wx(t,n){t&1&&J(0)}function Cx(t,n){if(t&1&&_(0,wx,1,0,"ng-container",15),t&2){let e=u(3);d("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function xx(t,n){t&1&&_(0,Cx,1,1,"ng-template",22)}function kx(t,n){if(t&1){let e=te();k(0,"p-select",18),Q("onChange",function(o){w(e);let r=u();return C(r.onPageDropdownChange(o))}),_(1,bx,1,1,"ng-template",19)(2,vx,2,0,"ng-container",20)(3,xx,1,0,null,20),x()}if(t&2){let e=u();d("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("styleClass",e.cx("pcJumpToPageDropdown"))("appendTo",e.dropdownAppendTo||e.$appendTo())("scrollHeight",e.dropdownScrollHeight)("pt",e.ptm("pcJumpToPageDropdown")),Y("aria-label",e.getAriaLabel("jumpToPageDropdownLabel")),f(2),d("ngIf",e.jumpToPageItemTemplate),f(),d("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Tx(t,n){if(t&1&&(j(),Z(0,"svg",23)),t&2){let e=u();I(e.cx("nextIcon")),d("pBind",e.ptm("nextIcon"))}}function Sx(t,n){}function Ix(t,n){t&1&&_(0,Sx,0,0,"ng-template")}function Ex(t,n){if(t&1&&(k(0,"span"),_(1,Ix,1,0,null,15),x()),t&2){let e=u();I(e.cx("nextIcon")),f(),d("ngTemplateOutlet",e.nextPageLinkIconTemplate||e._nextPageLinkIconTemplate)}}function Mx(t,n){if(t&1&&(j(),Z(0,"svg",25)),t&2){let e=u(2);I(e.cx("lastIcon")),d("pBind",e.ptm("lastIcon"))}}function Dx(t,n){}function Ox(t,n){t&1&&_(0,Dx,0,0,"ng-template")}function Px(t,n){if(t&1&&(k(0,"span"),_(1,Ox,1,0,null,15),x()),t&2){let e=u(2);I(e.cx("lastIcon")),f(),d("ngTemplateOutlet",e.lastPageLinkIconTemplate||e._lastPageLinkIconTemplate)}}function Fx(t,n){if(t&1){let e=te();k(0,"button",2),Q("click",function(o){w(e);let r=u();return C(r.changePageToLast(o))}),_(1,Mx,1,3,"svg",24)(2,Px,2,3,"span",4),x()}if(t&2){let e=u();I(e.cx("last")),d("pBind",e.ptm("last"))("disabled",e.isLastPage()||e.empty()),Y("aria-label",e.getAriaLabel("lastPageLabel")),f(),d("ngIf",!e.lastPageLinkIconTemplate&&!e._lastPageLinkIconTemplate),f(),d("ngIf",e.lastPageLinkIconTemplate||e._lastPageLinkIconTemplate)}}function Rx(t,n){if(t&1){let e=te();k(0,"p-inputnumber",26),Q("ngModelChange",function(o){w(e);let r=u();return C(r.changePage(o-1))}),x()}if(t&2){let e=u();I(e.cx("pcJumpToPageInput")),d("pt",e.ptm("pcJumpToPageInput"))("ngModel",e.currentPage())("disabled",e.empty())}}function Vx(t,n){t&1&&J(0)}function Bx(t,n){if(t&1&&_(0,Vx,1,0,"ng-container",11),t&2){let e=n.$implicit,i=u(3);d("ngTemplateOutlet",i.dropdownItemTemplate)("ngTemplateOutletContext",de(2,us,e))}}function Ax(t,n){t&1&&(ne(0),_(1,Bx,1,4,"ng-template",21),ie())}function Lx(t,n){t&1&&J(0)}function Nx(t,n){if(t&1&&_(0,Lx,1,0,"ng-container",15),t&2){let e=u(3);d("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function zx(t,n){t&1&&_(0,Nx,1,1,"ng-template",22)}function jx(t,n){if(t&1){let e=te();k(0,"p-select",27),vn("ngModelChange",function(o){w(e);let r=u();return yn(r.rows,o)||(r.rows=o),C(o)}),Q("onChange",function(o){w(e);let r=u();return C(r.onRppChange(o))}),_(1,Ax,2,0,"ng-container",20)(2,zx,1,0,null,20),x()}if(t&2){let e=u();d("options",e.rowsPerPageItems),_n("ngModel",e.rows),d("styleClass",e.cx("pcRowPerPageDropdown"))("disabled",e.empty())("appendTo",e.dropdownAppendTo||e.$appendTo())("scrollHeight",e.dropdownScrollHeight)("ariaLabel",e.getAriaLabel("rowsPerPageLabel"))("pt",e.ptm("pcRowPerPageDropdown")),f(),d("ngIf",e.dropdownItemTemplate),f(),d("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Hx(t,n){t&1&&J(0)}function Qx(t,n){if(t&1&&(k(0,"div",10),_(1,Hx,1,0,"ng-container",11),x()),t&2){let e=u();I(e.cx("contentEnd")),d("pBind",e.ptm("contentEnd")),f(),d("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",de(5,us,e.paginatorState))}}var qx={paginator:({instance:t})=>["p-paginator p-component"],content:"p-paginator-content",contentStart:"p-paginator-content-start",contentEnd:"p-paginator-content-end",first:({instance:t})=>["p-paginator-first",{"p-disabled":t.isFirstPage()||t.empty()}],firstIcon:"p-paginator-first-icon",prev:({instance:t})=>["p-paginator-prev",{"p-disabled":t.isFirstPage()||t.empty()}],prevIcon:"p-paginator-prev-icon",next:({instance:t})=>["p-paginator-next",{"p-disabled":t.isLastPage()||t.empty()}],nextIcon:"p-paginator-next-icon",last:({instance:t})=>["p-paginator-last",{"p-disabled":t.isLastPage()||t.empty()}],lastIcon:"p-paginator-last-icon",pages:"p-paginator-pages",page:({instance:t,pageLink:n})=>["p-paginator-page",{"p-paginator-page-selected":n-1==t.getPage()}],current:"p-paginator-current",pcRowPerPageDropdown:"p-paginator-rpp-dropdown",pcJumpToPageDropdown:"p-paginator-jtp-dropdown",pcJumpToPageInput:"p-paginator-jtp-input"},Kg=(()=>{class t extends Ge{name="paginator";style=Wg;classes=qx;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var Yg=new we("PAGINATOR_INSTANCE"),Nr=(()=>{class t extends vt{bindDirectiveInstance=G(X,{self:!0});$pcPaginator=G(Yg,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}pageLinkSize=5;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;jumpToPageItemTemplate;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}appendTo=ue(void 0);onPageChange=new H;dropdownIconTemplate;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;templates;_dropdownIconTemplate;_firstPageLinkIconTemplate;_previousPageLinkIconTemplate;_lastPageLinkIconTemplate;_nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;_componentStyle=G(Kg);$appendTo=Be(()=>this.appendTo()||this.config.overlayAppendTo());get display(){return this.alwaysShow||this.pageLinks&&this.pageLinks.length>1?null:"none"}constructor(){super()}onInit(){this.updatePaginatorState()}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"firstpagelinkicon":this._firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this._previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this._lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this._nextPageLinkIconTemplate=e.template;break}})}getAriaLabel(e){return this.config.translation.aria?this.config.translation.aria[e]:void 0}getPageAriaLabel(e){return this.config.translation.aria?this.config.translation.aria.pageLabel?.replace(/{page}/g,`${e}`):void 0}getLocalization(e){let i=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(i.map((r,a)=>[a,r]));return e>9?String(e).split("").map(a=>o.get(Number(a))).join(""):o.get(e)}onChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions(),e.pageLinkSize&&this.updatePageLinks()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];let e=null;for(let i of this.rowsPerPageOptions)typeof i=="object"&&i.showAll?e={label:i.showAll,value:this.totalRecords}:this.rowsPerPageItems.push({label:String(this.getLocalization(i)),value:i});e&&this.rowsPerPageItems.push(e)}}isFirstPage(){return this.getPage()===0}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),i=Math.min(this.pageLinkSize,e),o=Math.max(0,Math.ceil(this.getPage()-i/2)),r=Math.min(e-1,o+i-1);var a=this.pageLinkSize-(r-o+1);return o=Math.max(0,o-a),[o,r]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),i=e[0],o=e[1];for(let r=i;r<=o;r++)this.pageLinks.push(r+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let r=0;r=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,i){this.changePage(i),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return this.getPageCount()===0}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=U({type:t,selectors:[["p-paginator"]],contentQueries:function(i,o,r){if(i&1&&(F(r,ZC,4),F(r,JC,4),F(r,XC,4),F(r,ex,4),F(r,tx,4),F(r,Xe,4)),i&2){let a;M(a=D())&&(o.dropdownIconTemplate=a.first),M(a=D())&&(o.firstPageLinkIconTemplate=a.first),M(a=D())&&(o.previousPageLinkIconTemplate=a.first),M(a=D())&&(o.lastPageLinkIconTemplate=a.first),M(a=D())&&(o.nextPageLinkIconTemplate=a.first),M(a=D())&&(o.templates=a)}},hostVars:4,hostBindings:function(i,o){i&2&&(I(o.cn(o.cx("paginator"),o.styleClass)),bn("display",o.display))},inputs:{pageLinkSize:[2,"pageLinkSize","pageLinkSize",xe],styleClass:"styleClass",alwaysShow:[2,"alwaysShow","alwaysShow",P],dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",P],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",P],totalRecords:[2,"totalRecords","totalRecords",xe],rows:[2,"rows","rows",xe],rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",P],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",P],jumpToPageItemTemplate:"jumpToPageItemTemplate",showPageLinks:[2,"showPageLinks","showPageLinks",P],locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first",appendTo:[1,"appendTo"]},outputs:{onPageChange:"onPageChange"},features:[Ee([Kg,{provide:Yg,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],decls:15,vars:23,consts:[[3,"pBind","class",4,"ngIf"],["type","button","pRipple","",3,"pBind","class","click",4,"ngIf"],["type","button","pRipple","",3,"click","pBind","disabled"],["data-p-icon","angle-left",3,"pBind","class",4,"ngIf"],[3,"class",4,"ngIf"],[3,"options","ngModel","disabled","styleClass","appendTo","scrollHeight","pt","onChange",4,"ngIf"],["data-p-icon","angle-right",3,"pBind","class",4,"ngIf"],["type","button","pRipple","",3,"pBind","disabled","class","click",4,"ngIf"],[3,"pt","ngModel","class","disabled","ngModelChange",4,"ngIf"],[3,"options","ngModel","styleClass","disabled","appendTo","scrollHeight","ariaLabel","pt","ngModelChange","onChange",4,"ngIf"],[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","pRipple","",3,"click","pBind"],["data-p-icon","angle-double-left",3,"pBind","class",4,"ngIf"],["data-p-icon","angle-double-left",3,"pBind"],[4,"ngTemplateOutlet"],["data-p-icon","angle-left",3,"pBind"],["type","button","pRipple","",3,"pBind","class","click",4,"ngFor","ngForOf"],[3,"onChange","options","ngModel","disabled","styleClass","appendTo","scrollHeight","pt"],["pTemplate","selectedItem"],[4,"ngIf"],["pTemplate","item"],["pTemplate","dropdownicon"],["data-p-icon","angle-right",3,"pBind"],["data-p-icon","angle-double-right",3,"pBind","class",4,"ngIf"],["data-p-icon","angle-double-right",3,"pBind"],[3,"ngModelChange","pt","ngModel","disabled"],[3,"ngModelChange","onChange","options","ngModel","styleClass","disabled","appendTo","scrollHeight","ariaLabel","pt"]],template:function(i,o){i&1&&(_(0,ox,2,7,"div",0)(1,rx,2,4,"span",0)(2,dx,3,6,"button",1),k(3,"button",2),Q("click",function(a){return o.changePageToPrev(a)}),_(4,ux,1,3,"svg",3)(5,hx,2,3,"span",4),x(),_(6,gx,2,4,"span",0)(7,kx,4,10,"p-select",5),k(8,"button",2),Q("click",function(a){return o.changePageToNext(a)}),_(9,Tx,1,3,"svg",6)(10,Ex,2,3,"span",4),x(),_(11,Fx,3,7,"button",7)(12,Rx,1,5,"p-inputnumber",8)(13,jx,3,10,"p-select",9)(14,Qx,2,7,"div",0)),i&2&&(d("ngIf",o.templateLeft),f(),d("ngIf",o.showCurrentPageReport),f(),d("ngIf",o.showFirstLastIcon),f(),I(o.cx("prev")),d("pBind",o.ptm("prev"))("disabled",o.isFirstPage()||o.empty()),Y("aria-label",o.getAriaLabel("prevPageLabel")),f(),d("ngIf",!o.previousPageLinkIconTemplate&&!o._previousPageLinkIconTemplate),f(),d("ngIf",o.previousPageLinkIconTemplate||o._previousPageLinkIconTemplate),f(),d("ngIf",o.showPageLinks),f(),d("ngIf",o.showJumpToPageDropdown),f(),I(o.cx("next")),d("pBind",o.ptm("next"))("disabled",o.isLastPage()||o.empty()),Y("aria-label",o.getAriaLabel("nextPageLabel")),f(),d("ngIf",!o.nextPageLinkIconTemplate&&!o._nextPageLinkIconTemplate),f(),d("ngIf",o.nextPageLinkIconTemplate||o._nextPageLinkIconTemplate),f(),d("ngIf",o.showFirstLastIcon),f(),d("ngIf",o.showJumpToPageInput),f(),d("ngIf",o.rowsPerPageOptions),f(),d("ngIf",o.templateRight))},dependencies:[$e,xn,ht,ot,cs,ds,Vn,xi,Xi,ui,vm,wm,xm,km,ve,Xe,X],encapsulation:2,changeDetection:0})}return t})(),ps=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({imports:[Nr,ve,ve]})}return t})();var Jg=` +`;var u$=["dropdownicon"],p$=["firstpagelinkicon"],f$=["previouspagelinkicon"],h$=["lastpagelinkicon"],m$=["nextpagelinkicon"],Xm=t=>({$implicit:t}),g$=t=>({pageLink:t});function y$(t,n){t&1&&ne(0)}function b$(t,n){if(t&1&&(E(0,"div",10),C(1,y$,1,0,"ng-container",11),T()),t&2){let e=m();k(e.cx("contentStart")),h("pBind",e.ptm("contentStart")),g(),h("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",Ee(5,Xm,e.paginatorState))}}function v$(t,n){if(t&1&&(E(0,"span",10),ce(1),T()),t&2){let e=m();k(e.cx("current")),h("pBind",e.ptm("current")),g(),Ze(e.currentPageReport)}}function _$(t,n){if(t&1&&(G(),X(0,"svg",14)),t&2){let e=m(2);k(e.cx("firstIcon")),h("pBind",e.ptm("firstIcon"))}}function w$(t,n){}function C$(t,n){t&1&&C(0,w$,0,0,"ng-template")}function x$(t,n){if(t&1&&(E(0,"span"),C(1,C$,1,0,null,15),T()),t&2){let e=m(2);k(e.cx("firstIcon")),g(),h("ngTemplateOutlet",e.firstPageLinkIconTemplate||e._firstPageLinkIconTemplate)}}function T$(t,n){if(t&1){let e=se();E(0,"button",12),q("click",function(i){S(e);let o=m();return I(o.changePageToFirst(i))}),C(1,_$,1,3,"svg",13)(2,x$,2,3,"span",4),T()}if(t&2){let e=m();k(e.cx("first")),h("pBind",e.ptm("first")),J("aria-label",e.getAriaLabel("firstPageLabel")),g(),h("ngIf",!e.firstPageLinkIconTemplate&&!e._firstPageLinkIconTemplate),g(),h("ngIf",e.firstPageLinkIconTemplate||e._firstPageLinkIconTemplate)}}function E$(t,n){if(t&1&&(G(),X(0,"svg",16)),t&2){let e=m();k(e.cx("prevIcon")),h("pBind",e.ptm("prevIcon"))}}function S$(t,n){}function I$(t,n){t&1&&C(0,S$,0,0,"ng-template")}function D$(t,n){if(t&1&&(E(0,"span"),C(1,I$,1,0,null,15),T()),t&2){let e=m();k(e.cx("prevIcon")),g(),h("ngTemplateOutlet",e.previousPageLinkIconTemplate||e._previousPageLinkIconTemplate)}}function k$(t,n){if(t&1){let e=se();E(0,"button",12),q("click",function(i){let o=S(e).$implicit,s=m(2);return I(s.onPageLinkClick(i,o-1))}),ce(1),T()}if(t&2){let e=n.$implicit,r=m(2);k(r.cx("page",Ee(6,g$,e))),h("pBind",r.ptm("page")),J("aria-label",r.getPageAriaLabel(e))("aria-current",e-1==r.getPage()?"page":void 0),g(),Ut(" ",r.getLocalization(e)," ")}}function M$(t,n){if(t&1&&(E(0,"span",10),C(1,k$,2,8,"button",17),T()),t&2){let e=m();k(e.cx("pages")),h("pBind",e.ptm("pages")),g(),h("ngForOf",e.pageLinks)}}function O$(t,n){if(t&1&&ce(0),t&2){let e=m(2);Ze(e.currentPageReport)}}function R$(t,n){t&1&&ne(0)}function P$(t,n){if(t&1&&C(0,R$,1,0,"ng-container",11),t&2){let e=n.$implicit,r=m(3);h("ngTemplateOutlet",r.jumpToPageItemTemplate)("ngTemplateOutletContext",Ee(2,Xm,e))}}function A$(t,n){t&1&&(ie(0),C(1,P$,1,4,"ng-template",21),oe())}function N$(t,n){t&1&&ne(0)}function F$(t,n){if(t&1&&C(0,N$,1,0,"ng-container",15),t&2){let e=m(3);h("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function L$(t,n){t&1&&C(0,F$,1,1,"ng-template",22)}function B$(t,n){if(t&1){let e=se();E(0,"p-select",18),q("onChange",function(i){S(e);let o=m();return I(o.onPageDropdownChange(i))}),C(1,O$,1,1,"ng-template",19)(2,A$,2,0,"ng-container",20)(3,L$,1,0,null,20),T()}if(t&2){let e=m();h("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("styleClass",e.cx("pcJumpToPageDropdown"))("appendTo",e.dropdownAppendTo||e.$appendTo())("scrollHeight",e.dropdownScrollHeight)("pt",e.ptm("pcJumpToPageDropdown")),J("aria-label",e.getAriaLabel("jumpToPageDropdownLabel")),g(2),h("ngIf",e.jumpToPageItemTemplate),g(),h("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function V$(t,n){if(t&1&&(G(),X(0,"svg",23)),t&2){let e=m();k(e.cx("nextIcon")),h("pBind",e.ptm("nextIcon"))}}function j$(t,n){}function z$(t,n){t&1&&C(0,j$,0,0,"ng-template")}function H$(t,n){if(t&1&&(E(0,"span"),C(1,z$,1,0,null,15),T()),t&2){let e=m();k(e.cx("nextIcon")),g(),h("ngTemplateOutlet",e.nextPageLinkIconTemplate||e._nextPageLinkIconTemplate)}}function $$(t,n){if(t&1&&(G(),X(0,"svg",25)),t&2){let e=m(2);k(e.cx("lastIcon")),h("pBind",e.ptm("lastIcon"))}}function U$(t,n){}function W$(t,n){t&1&&C(0,U$,0,0,"ng-template")}function G$(t,n){if(t&1&&(E(0,"span"),C(1,W$,1,0,null,15),T()),t&2){let e=m(2);k(e.cx("lastIcon")),g(),h("ngTemplateOutlet",e.lastPageLinkIconTemplate||e._lastPageLinkIconTemplate)}}function q$(t,n){if(t&1){let e=se();E(0,"button",2),q("click",function(i){S(e);let o=m();return I(o.changePageToLast(i))}),C(1,$$,1,3,"svg",24)(2,G$,2,3,"span",4),T()}if(t&2){let e=m();k(e.cx("last")),h("pBind",e.ptm("last"))("disabled",e.isLastPage()||e.empty()),J("aria-label",e.getAriaLabel("lastPageLabel")),g(),h("ngIf",!e.lastPageLinkIconTemplate&&!e._lastPageLinkIconTemplate),g(),h("ngIf",e.lastPageLinkIconTemplate||e._lastPageLinkIconTemplate)}}function Q$(t,n){if(t&1){let e=se();E(0,"p-inputnumber",26),q("ngModelChange",function(i){S(e);let o=m();return I(o.changePage(i-1))}),T()}if(t&2){let e=m();k(e.cx("pcJumpToPageInput")),h("pt",e.ptm("pcJumpToPageInput"))("ngModel",e.currentPage())("disabled",e.empty())}}function K$(t,n){t&1&&ne(0)}function Y$(t,n){if(t&1&&C(0,K$,1,0,"ng-container",11),t&2){let e=n.$implicit,r=m(3);h("ngTemplateOutlet",r.dropdownItemTemplate)("ngTemplateOutletContext",Ee(2,Xm,e))}}function Z$(t,n){t&1&&(ie(0),C(1,Y$,1,4,"ng-template",21),oe())}function J$(t,n){t&1&&ne(0)}function X$(t,n){if(t&1&&C(0,J$,1,0,"ng-container",15),t&2){let e=m(3);h("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function eU(t,n){t&1&&C(0,X$,1,1,"ng-template",22)}function tU(t,n){if(t&1){let e=se();E(0,"p-select",27),Rr("ngModelChange",function(i){S(e);let o=m();return Xr(o.rows,i)||(o.rows=i),I(i)}),q("onChange",function(i){S(e);let o=m();return I(o.onRppChange(i))}),C(1,Z$,2,0,"ng-container",20)(2,eU,1,0,null,20),T()}if(t&2){let e=m();h("options",e.rowsPerPageItems),Or("ngModel",e.rows),h("styleClass",e.cx("pcRowPerPageDropdown"))("disabled",e.empty())("appendTo",e.dropdownAppendTo||e.$appendTo())("scrollHeight",e.dropdownScrollHeight)("ariaLabel",e.getAriaLabel("rowsPerPageLabel"))("pt",e.ptm("pcRowPerPageDropdown")),g(),h("ngIf",e.dropdownItemTemplate),g(),h("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function nU(t,n){t&1&&ne(0)}function rU(t,n){if(t&1&&(E(0,"div",10),C(1,nU,1,0,"ng-container",11),T()),t&2){let e=m();k(e.cx("contentEnd")),h("pBind",e.ptm("contentEnd")),g(),h("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",Ee(5,Xm,e.paginatorState))}}var iU={paginator:({instance:t})=>["p-paginator p-component"],content:"p-paginator-content",contentStart:"p-paginator-content-start",contentEnd:"p-paginator-content-end",first:({instance:t})=>["p-paginator-first",{"p-disabled":t.isFirstPage()||t.empty()}],firstIcon:"p-paginator-first-icon",prev:({instance:t})=>["p-paginator-prev",{"p-disabled":t.isFirstPage()||t.empty()}],prevIcon:"p-paginator-prev-icon",next:({instance:t})=>["p-paginator-next",{"p-disabled":t.isLastPage()||t.empty()}],nextIcon:"p-paginator-next-icon",last:({instance:t})=>["p-paginator-last",{"p-disabled":t.isLastPage()||t.empty()}],lastIcon:"p-paginator-last-icon",pages:"p-paginator-pages",page:({instance:t,pageLink:n})=>["p-paginator-page",{"p-paginator-page-selected":n-1==t.getPage()}],current:"p-paginator-current",pcRowPerPageDropdown:"p-paginator-rpp-dropdown",pcJumpToPageDropdown:"p-paginator-jtp-dropdown",pcJumpToPageInput:"p-paginator-jtp-input"},DR=(()=>{class t extends Oe{name="paginator";style=IR;classes=iU;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var kR=new H("PAGINATOR_INSTANCE"),ju=(()=>{class t extends ut{bindDirectiveInstance=x(te,{self:!0});$pcPaginator=x(kR,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}pageLinkSize=5;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;jumpToPageItemTemplate;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}appendTo=ae(void 0);onPageChange=new z;dropdownIconTemplate;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;templates;_dropdownIconTemplate;_firstPageLinkIconTemplate;_previousPageLinkIconTemplate;_lastPageLinkIconTemplate;_nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;_componentStyle=x(DR);$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());get display(){return this.alwaysShow||this.pageLinks&&this.pageLinks.length>1?null:"none"}constructor(){super()}onInit(){this.updatePaginatorState()}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"firstpagelinkicon":this._firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this._previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this._lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this._nextPageLinkIconTemplate=e.template;break}})}getAriaLabel(e){return this.config.translation.aria?this.config.translation.aria[e]:void 0}getPageAriaLabel(e){return this.config.translation.aria?this.config.translation.aria.pageLabel?.replace(/{page}/g,`${e}`):void 0}getLocalization(e){let r=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(r.map((o,s)=>[s,o]));return e>9?String(e).split("").map(s=>i.get(Number(s))).join(""):i.get(e)}onChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions(),e.pageLinkSize&&this.updatePageLinks()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];let e=null;for(let r of this.rowsPerPageOptions)typeof r=="object"&&r.showAll?e={label:r.showAll,value:this.totalRecords}:this.rowsPerPageItems.push({label:String(this.getLocalization(r)),value:r});e&&this.rowsPerPageItems.push(e)}}isFirstPage(){return this.getPage()===0}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),r=Math.min(this.pageLinkSize,e),i=Math.max(0,Math.ceil(this.getPage()-r/2)),o=Math.min(e-1,i+r-1);var s=this.pageLinkSize-(o-i+1);return i=Math.max(0,i-s),[i,o]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),r=e[0],i=e[1];for(let o=r;o<=i;o++)this.pageLinks.push(o+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let o=0;o=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,r){this.changePage(r),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return this.getPageCount()===0}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=$({type:t,selectors:[["p-paginator"]],contentQueries:function(r,i,o){if(r&1&&(V(o,u$,4),V(o,p$,4),V(o,f$,4),V(o,h$,4),V(o,m$,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.dropdownIconTemplate=s.first),M(s=O())&&(i.firstPageLinkIconTemplate=s.first),M(s=O())&&(i.previousPageLinkIconTemplate=s.first),M(s=O())&&(i.lastPageLinkIconTemplate=s.first),M(s=O())&&(i.nextPageLinkIconTemplate=s.first),M(s=O())&&(i.templates=s)}},hostVars:4,hostBindings:function(r,i){r&2&&(k(i.cn(i.cx("paginator"),i.styleClass)),er("display",i.display))},inputs:{pageLinkSize:[2,"pageLinkSize","pageLinkSize",Me],styleClass:"styleClass",alwaysShow:[2,"alwaysShow","alwaysShow",R],dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",R],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",R],totalRecords:[2,"totalRecords","totalRecords",Me],rows:[2,"rows","rows",Me],rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",R],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",R],jumpToPageItemTemplate:"jumpToPageItemTemplate",showPageLinks:[2,"showPageLinks","showPageLinks",R],locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first",appendTo:[1,"appendTo"]},outputs:{onPageChange:"onPageChange"},features:[xe([DR,{provide:kR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:15,vars:23,consts:[[3,"pBind","class",4,"ngIf"],["type","button","pRipple","",3,"pBind","class","click",4,"ngIf"],["type","button","pRipple","",3,"click","pBind","disabled"],["data-p-icon","angle-left",3,"pBind","class",4,"ngIf"],[3,"class",4,"ngIf"],[3,"options","ngModel","disabled","styleClass","appendTo","scrollHeight","pt","onChange",4,"ngIf"],["data-p-icon","angle-right",3,"pBind","class",4,"ngIf"],["type","button","pRipple","",3,"pBind","disabled","class","click",4,"ngIf"],[3,"pt","ngModel","class","disabled","ngModelChange",4,"ngIf"],[3,"options","ngModel","styleClass","disabled","appendTo","scrollHeight","ariaLabel","pt","ngModelChange","onChange",4,"ngIf"],[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","pRipple","",3,"click","pBind"],["data-p-icon","angle-double-left",3,"pBind","class",4,"ngIf"],["data-p-icon","angle-double-left",3,"pBind"],[4,"ngTemplateOutlet"],["data-p-icon","angle-left",3,"pBind"],["type","button","pRipple","",3,"pBind","class","click",4,"ngFor","ngForOf"],[3,"onChange","options","ngModel","disabled","styleClass","appendTo","scrollHeight","pt"],["pTemplate","selectedItem"],[4,"ngIf"],["pTemplate","item"],["pTemplate","dropdownicon"],["data-p-icon","angle-right",3,"pBind"],["data-p-icon","angle-double-right",3,"pBind","class",4,"ngIf"],["data-p-icon","angle-double-right",3,"pBind"],[3,"ngModelChange","pt","ngModel","disabled"],[3,"ngModelChange","onChange","options","ngModel","styleClass","disabled","appendTo","scrollHeight","ariaLabel","pt"]],template:function(r,i){r&1&&(C(0,b$,2,7,"div",0)(1,v$,2,4,"span",0)(2,T$,3,6,"button",1),E(3,"button",2),q("click",function(s){return i.changePageToPrev(s)}),C(4,E$,1,3,"svg",3)(5,D$,2,3,"span",4),T(),C(6,M$,2,4,"span",0)(7,B$,4,10,"p-select",5),E(8,"button",2),q("click",function(s){return i.changePageToNext(s)}),C(9,V$,1,3,"svg",6)(10,H$,2,3,"span",4),T(),C(11,q$,3,7,"button",7)(12,Q$,1,5,"p-inputnumber",8)(13,tU,3,10,"p-select",9)(14,rU,2,7,"div",0)),r&2&&(h("ngIf",i.templateLeft),g(),h("ngIf",i.showCurrentPageReport),g(),h("ngIf",i.showFirstLastIcon),g(),k(i.cx("prev")),h("pBind",i.ptm("prev"))("disabled",i.isFirstPage()||i.empty()),J("aria-label",i.getAriaLabel("prevPageLabel")),g(),h("ngIf",!i.previousPageLinkIconTemplate&&!i._previousPageLinkIconTemplate),g(),h("ngIf",i.previousPageLinkIconTemplate||i._previousPageLinkIconTemplate),g(),h("ngIf",i.showPageLinks),g(),h("ngIf",i.showJumpToPageDropdown),g(),k(i.cx("next")),h("pBind",i.ptm("next"))("disabled",i.isLastPage()||i.empty()),J("aria-label",i.getAriaLabel("nextPageLabel")),g(),h("ngIf",!i.nextPageLinkIconTemplate&&!i._nextPageLinkIconTemplate),g(),h("ngIf",i.nextPageLinkIconTemplate||i._nextPageLinkIconTemplate),g(),h("ngIf",i.showFirstLastIcon),g(),h("ngIf",i.showJumpToPageInput),g(),h("ngIf",i.rowsPerPageOptions),g(),h("ngIf",i.templateRight))},dependencies:[Qe,Ar,Wt,kt,Zm,Jm,Xi,ws,ka,Ui,Wk,Gk,Qk,Kk,Te,xt,te],encapsulation:2,changeDetection:0})}return t})(),eg=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[ju,Te,Te]})}return t})();var OR=` .p-dataview { position: relative; border-color: dt('dataview.border.color'); @@ -1013,7 +2054,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a justify-content: center; z-index: 2; } -`;var Ux=["list"],Gx=["grid"],$x=["header"],Wx=["emptymessage"],Kx=["footer"],Yx=["paginatorleft"],Zx=["paginatorright"],Jx=["paginatordropdownitem"],Xx=["loadingicon"],ek=["listicon"],tk=["gridicon"],nk=[[["p-header"]],[["p-footer"]]],ik=["p-header","p-footer"],ok=()=>({position:"top"}),t0=t=>({$implicit:t}),rk=()=>({position:"bottom"});function ak(t,n){if(t&1&&Z(0,"i"),t&2){let e=u(2);I(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon))}}function sk(t,n){}function lk(t,n){t&1&&_(0,sk,0,0,"ng-template")}function ck(t,n){if(t&1&&(ne(0),j(),Z(1,"svg",5),_(2,lk,1,0,null,6),ie()),t&2){let e=u(2);f(),I(e.cx("loadingIcon")),d("pBind",e.ptm("loadingIcon"))("spin",!0),f(),d("ngTemplateOutlet",e.loadingicon)}}function dk(t,n){if(t&1&&(k(0,"div",3)(1,"div",3),Re(2,ak,1,2,"i",4)(3,ck,3,5,"ng-container"),x()()),t&2){let e=u();I(e.cx("loading")),d("pBind",e.ptm("loading")),f(),I(e.cx("loadingOverlay")),d("pBind",e.ptm("loadingOverlay")),f(),Ve(e.loadingIcon?2:3)}}function uk(t,n){t&1&&J(0)}function pk(t,n){if(t&1&&(k(0,"div",3),zt(1),_(2,uk,1,0,"ng-container",6),x()),t&2){let e=u();I(e.cx("header")),d("pBind",e.ptm("header")),f(2),d("ngTemplateOutlet",e.headerTemplate)}}function fk(t,n){if(t&1){let e=te();k(0,"p-paginator",7),Q("onPageChange",function(o){w(e);let r=u();return C(r.paginate(o))}),x()}if(t&2){let e=u();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorleft)("templateRight",e.paginatorright)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatordropdownitem)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("styleClass",e.cn(e.cx("pcPaginator",Qn(18,ok)),e.paginatorStyleClass))("pt",e.ptm("pcPaginator"))}}function hk(t,n){t&1&&J(0)}function mk(t,n){if(t&1&&(_(0,hk,1,0,"ng-container",8),Ys(1,"slice")),t&2){let e=u();d("ngTemplateOutlet",e.listTemplate)("ngTemplateOutletContext",de(6,t0,e.paginator?Zs(1,2,e.filteredValue||e.value,e.lazy?0:e.first,(e.lazy?0:e.first)+e.rows):e.filteredValue||e.value))}}function gk(t,n){t&1&&J(0)}function bk(t,n){if(t&1&&(_(0,gk,1,0,"ng-container",8),Ys(1,"slice")),t&2){let e=u();d("ngTemplateOutlet",e.gridTemplate)("ngTemplateOutletContext",de(6,t0,e.paginator?Zs(1,2,e.filteredValue||e.value,e.lazy?0:e.first,(e.lazy?0:e.first)+e.rows):e.filteredValue||e.value))}}function _k(t,n){if(t&1&&(ne(0),oe(1),ie()),t&2){let e=u(2);f(),ft(" ",e.emptyMessageLabel," ")}}function yk(t,n){t&1&&J(0,null,0)}function vk(t,n){if(t&1&&(k(0,"div",3),_(1,_k,2,1,"ng-container",9)(2,yk,2,0,"ng-container",6),x()),t&2){let e=u();I(e.cx("emptyMessage")),d("pBind",e.ptm("emptyMessage")),f(),d("ngIf",!e.emptymessageTemplate)("ngIfElse",e.empty),f(),d("ngTemplateOutlet",e.emptymessageTemplate)}}function wk(t,n){if(t&1){let e=te();k(0,"p-paginator",7),Q("onPageChange",function(o){w(e);let r=u();return C(r.paginate(o))}),x()}if(t&2){let e=u();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorleft)("templateRight",e.paginatorright)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatordropdownitem)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("styleClass",e.cn(e.cx("pcPaginator",Qn(18,rk)),e.paginatorStyleClass))("pt",e.ptm("pcPaginator"))}}function Ck(t,n){t&1&&J(0)}function xk(t,n){if(t&1&&(k(0,"div",3),zt(1,1),_(2,Ck,1,0,"ng-container",6),x()),t&2){let e=u();I(e.cx("footer")),d("pBind",e.ptm("footer")),f(2),d("ngTemplateOutlet",e.footerTemplate)}}var kk={root:({instance:t})=>["p-dataview p-component",{"p-dataview-list":t.layout==="list","p-dataview-grid":t.layout==="grid"}],header:"p-dataview-header",loading:"p-dataview-loading",loadingOverlay:"p-dataview-loading-overlay p-overlay-mask",loadingIcon:"p-dataview-loading-icon",pcPaginator:({position:t})=>"p-dataview-paginator-"+t,content:"p-dataview-content",emptyMessage:"p-dataview-empty-message",footer:"p-dataview-footer"},Xg=(()=>{class t extends Ge{name="dataview";style=Jg;classes=kk;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var e0=new we("DATAVIEW_INSTANCE"),n0=(()=>{class t extends vt{bindDirectiveInstance=G(X,{self:!0});$pcDataView=G(e0,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}paginator;rows;totalRecords;pageLinks=5;rowsPerPageOptions;paginatorPosition="bottom";paginatorStyleClass;alwaysShowPaginator=!0;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showFirstLastIcon=!0;showPageLinks=!0;lazy;lazyLoadOnInit=!0;emptyMessage="";styleClass;gridStyleClass="";trackBy=(e,i)=>i;filterBy;filterLocale;loading;loadingIcon;first=0;sortField;sortOrder;value;layout="list";onLazyLoad=new H;onPage=new H;onSort=new H;onChangeLayout=new H;listTemplate;gridTemplate;headerTemplate;emptymessageTemplate;footerTemplate;paginatorleft;paginatorright;paginatordropdownitem;loadingicon;listicon;gridicon;header;footer;_value;filteredValue;filterValue;initialized;_layout="list";translationSubscription;_componentStyle=G(Xg);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Tt.EMPTY_MESSAGE)}filterService=G(co);onInit(){this.lazy&&this.lazyLoadOnInit&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.initialized=!0}onAfterViewInit(){}onChanges(e){e.layout&&!e.layout.firstChange&&this.onChangeLayout.emit({layout:e.layout.currentValue}),e.value&&(this._value=e.value.currentValue,this.updateTotalRecords(),!this.lazy&&this.hasFilter()&&this.filter(this.filterValue)),(e.sortField||e.sortOrder)&&(!this.lazy||this.initialized)&&this.sort()}updateTotalRecords(){this.totalRecords=this.lazy?this.totalRecords:this._value?this._value.length:0}paginate(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows})}sort(){this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.value.sort((e,i)=>{let o=Kt(e,this.sortField),r=Kt(i,this.sortField),a;return o==null&&r!=null?a=-1:o!=null&&r==null?a=1:o==null&&r==null?a=0:typeof o=="string"&&typeof r=="string"?a=o.localeCompare(r):a=or?1:0,this.sortOrder*a}),this.hasFilter()&&this.filter(this.filterValue)),this.onSort.emit({sortField:this.sortField,sortOrder:this.sortOrder})}isEmpty(){let e=this.filteredValue||this.value;return e==null||e.length==0}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder}}getBlockableElement(){return this.el.nativeElement.children[0]}filter(e,i="contains"){if(this.filterValue=e,this.value&&this.value.length){let o=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,o,e,i,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return this.filterValue&&this.filterValue.trim().length>0}onDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["p-dataView"],["p-dataview"],["p-data-view"]],contentQueries:function(i,o,r){if(i&1&&(F(r,Ux,5),F(r,Gx,5),F(r,$x,5),F(r,Wx,5),F(r,Kx,5),F(r,Yx,5),F(r,Zx,5),F(r,Jx,5),F(r,Xx,5),F(r,ek,5),F(r,tk,5),F(r,mf,5),F(r,gf,5)),i&2){let a;M(a=D())&&(o.listTemplate=a.first),M(a=D())&&(o.gridTemplate=a.first),M(a=D())&&(o.headerTemplate=a.first),M(a=D())&&(o.emptymessageTemplate=a.first),M(a=D())&&(o.footerTemplate=a.first),M(a=D())&&(o.paginatorleft=a.first),M(a=D())&&(o.paginatorright=a.first),M(a=D())&&(o.paginatordropdownitem=a.first),M(a=D())&&(o.loadingicon=a.first),M(a=D())&&(o.listicon=a.first),M(a=D())&&(o.gridicon=a.first),M(a=D())&&(o.header=a.first),M(a=D())&&(o.footer=a.first)}},hostVars:2,hostBindings:function(i,o){i&2&&I(o.cn(o.cx("root"),o.styleClass))},inputs:{paginator:[2,"paginator","paginator",P],rows:[2,"rows","rows",xe],totalRecords:[2,"totalRecords","totalRecords",xe],pageLinks:[2,"pageLinks","pageLinks",xe],rowsPerPageOptions:"rowsPerPageOptions",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",P],paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",P],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",P],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",P],showPageLinks:[2,"showPageLinks","showPageLinks",P],lazy:[2,"lazy","lazy",P],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",P],emptyMessage:"emptyMessage",styleClass:"styleClass",gridStyleClass:"gridStyleClass",trackBy:"trackBy",filterBy:"filterBy",filterLocale:"filterLocale",loading:[2,"loading","loading",P],loadingIcon:"loadingIcon",first:[2,"first","first",xe],sortField:"sortField",sortOrder:[2,"sortOrder","sortOrder",xe],value:"value",layout:"layout"},outputs:{onLazyLoad:"onLazyLoad",onPage:"onPage",onSort:"onSort",onChangeLayout:"onChangeLayout"},features:[Ee([Xg,{provide:e0,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],ngContentSelectors:ik,decls:9,vars:11,consts:[["empty",""],[3,"pBind","class"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","appendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","pt"],[3,"pBind"],[3,"class"],["data-p-icon","spinner",3,"pBind","spin"],[4,"ngTemplateOutlet"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","appendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"]],template:function(i,o){i&1&&(en(nk),Re(0,dk,4,7,"div",1),Re(1,pk,3,4,"div",1),Re(2,fk,1,19,"p-paginator",2),k(3,"div",3),Re(4,mk,2,8,"ng-container"),Re(5,bk,2,8,"ng-container"),Re(6,vk,3,6,"div",1),x(),Re(7,wk,1,19,"p-paginator",2),Re(8,xk,3,4,"div",1)),i&2&&(Ve(o.loading?0:-1),f(),Ve(o.header||o.headerTemplate?1:-1),f(),Ve(o.paginator&&(o.paginatorPosition==="top"||o.paginatorPosition=="both")?2:-1),f(),I(o.cx("content")),d("pBind",o.ptm("content")),f(),Ve(o.layout==="list"?4:-1),f(),Ve(o.layout==="grid"?5:-1),f(),Ve(o.isEmpty()&&!o.loading?6:-1),f(),Ve(o.paginator&&(o.paginatorPosition==="bottom"||o.paginatorPosition=="both")?7:-1),f(),Ve(o.footer||o.footerTemplate?8:-1))},dependencies:[$e,ht,ot,ps,Nr,Ri,ve,X,Up],encapsulation:2,changeDetection:0})}return t})();var i0=Fn` +`;var oU=["list"],sU=["grid"],aU=["header"],lU=["emptymessage"],cU=["footer"],dU=["paginatorleft"],uU=["paginatorright"],pU=["paginatordropdownitem"],fU=["loadingicon"],hU=["listicon"],mU=["gridicon"],gU=[[["p-header"]],[["p-footer"]]],yU=["p-header","p-footer"],bU=()=>({position:"top"}),AR=t=>({$implicit:t}),vU=()=>({position:"bottom"});function _U(t,n){if(t&1&&X(0,"i"),t&2){let e=m(2);k(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon))}}function wU(t,n){}function CU(t,n){t&1&&C(0,wU,0,0,"ng-template")}function xU(t,n){if(t&1&&(ie(0),G(),X(1,"svg",5),C(2,CU,1,0,null,6),oe()),t&2){let e=m(2);g(),k(e.cx("loadingIcon")),h("pBind",e.ptm("loadingIcon"))("spin",!0),g(),h("ngTemplateOutlet",e.loadingicon)}}function TU(t,n){if(t&1&&(E(0,"div",3)(1,"div",3),rt(2,_U,1,2,"i",4)(3,xU,3,5,"ng-container"),T()()),t&2){let e=m();k(e.cx("loading")),h("pBind",e.ptm("loading")),g(),k(e.cx("loadingOverlay")),h("pBind",e.ptm("loadingOverlay")),g(),it(e.loadingIcon?2:3)}}function EU(t,n){t&1&&ne(0)}function SU(t,n){if(t&1&&(E(0,"div",3),Ot(1),C(2,EU,1,0,"ng-container",6),T()),t&2){let e=m();k(e.cx("header")),h("pBind",e.ptm("header")),g(2),h("ngTemplateOutlet",e.headerTemplate)}}function IU(t,n){if(t&1){let e=se();E(0,"p-paginator",7),q("onPageChange",function(i){S(e);let o=m();return I(o.paginate(i))}),T()}if(t&2){let e=m();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorleft)("templateRight",e.paginatorright)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatordropdownitem)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("styleClass",e.cn(e.cx("pcPaginator",Pi(18,bU)),e.paginatorStyleClass))("pt",e.ptm("pcPaginator"))}}function DU(t,n){t&1&&ne(0)}function kU(t,n){if(t&1&&(C(0,DU,1,0,"ng-container",8),Jf(1,"slice")),t&2){let e=m();h("ngTemplateOutlet",e.listTemplate)("ngTemplateOutletContext",Ee(6,AR,e.paginator?Xf(1,2,e.filteredValue||e.value,e.lazy?0:e.first,(e.lazy?0:e.first)+e.rows):e.filteredValue||e.value))}}function MU(t,n){t&1&&ne(0)}function OU(t,n){if(t&1&&(C(0,MU,1,0,"ng-container",8),Jf(1,"slice")),t&2){let e=m();h("ngTemplateOutlet",e.gridTemplate)("ngTemplateOutletContext",Ee(6,AR,e.paginator?Xf(1,2,e.filteredValue||e.value,e.lazy?0:e.first,(e.lazy?0:e.first)+e.rows):e.filteredValue||e.value))}}function RU(t,n){if(t&1&&(ie(0),ce(1),oe()),t&2){let e=m(2);g(),Ut(" ",e.emptyMessageLabel," ")}}function PU(t,n){t&1&&ne(0,null,0)}function AU(t,n){if(t&1&&(E(0,"div",3),C(1,RU,2,1,"ng-container",9)(2,PU,2,0,"ng-container",6),T()),t&2){let e=m();k(e.cx("emptyMessage")),h("pBind",e.ptm("emptyMessage")),g(),h("ngIf",!e.emptymessageTemplate)("ngIfElse",e.empty),g(),h("ngTemplateOutlet",e.emptymessageTemplate)}}function NU(t,n){if(t&1){let e=se();E(0,"p-paginator",7),q("onPageChange",function(i){S(e);let o=m();return I(o.paginate(i))}),T()}if(t&2){let e=m();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorleft)("templateRight",e.paginatorright)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatordropdownitem)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("styleClass",e.cn(e.cx("pcPaginator",Pi(18,vU)),e.paginatorStyleClass))("pt",e.ptm("pcPaginator"))}}function FU(t,n){t&1&&ne(0)}function LU(t,n){if(t&1&&(E(0,"div",3),Ot(1,1),C(2,FU,1,0,"ng-container",6),T()),t&2){let e=m();k(e.cx("footer")),h("pBind",e.ptm("footer")),g(2),h("ngTemplateOutlet",e.footerTemplate)}}var BU={root:({instance:t})=>["p-dataview p-component",{"p-dataview-list":t.layout==="list","p-dataview-grid":t.layout==="grid"}],header:"p-dataview-header",loading:"p-dataview-loading",loadingOverlay:"p-dataview-loading-overlay p-overlay-mask",loadingIcon:"p-dataview-loading-icon",pcPaginator:({position:t})=>"p-dataview-paginator-"+t,content:"p-dataview-content",emptyMessage:"p-dataview-empty-message",footer:"p-dataview-footer"},RR=(()=>{class t extends Oe{name="dataview";style=OR;classes=BU;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var PR=new H("DATAVIEW_INSTANCE"),NR=(()=>{class t extends ut{bindDirectiveInstance=x(te,{self:!0});$pcDataView=x(PR,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}paginator;rows;totalRecords;pageLinks=5;rowsPerPageOptions;paginatorPosition="bottom";paginatorStyleClass;alwaysShowPaginator=!0;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showFirstLastIcon=!0;showPageLinks=!0;lazy;lazyLoadOnInit=!0;emptyMessage="";styleClass;gridStyleClass="";trackBy=(e,r)=>r;filterBy;filterLocale;loading;loadingIcon;first=0;sortField;sortOrder;value;layout="list";onLazyLoad=new z;onPage=new z;onSort=new z;onChangeLayout=new z;listTemplate;gridTemplate;headerTemplate;emptymessageTemplate;footerTemplate;paginatorleft;paginatorright;paginatordropdownitem;loadingicon;listicon;gridicon;header;footer;_value;filteredValue;filterValue;initialized;_layout="list";translationSubscription;_componentStyle=x(RR);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(xn.EMPTY_MESSAGE)}filterService=x(jl);onInit(){this.lazy&&this.lazyLoadOnInit&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.initialized=!0}onAfterViewInit(){}onChanges(e){e.layout&&!e.layout.firstChange&&this.onChangeLayout.emit({layout:e.layout.currentValue}),e.value&&(this._value=e.value.currentValue,this.updateTotalRecords(),!this.lazy&&this.hasFilter()&&this.filter(this.filterValue)),(e.sortField||e.sortOrder)&&(!this.lazy||this.initialized)&&this.sort()}updateTotalRecords(){this.totalRecords=this.lazy?this.totalRecords:this._value?this._value.length:0}paginate(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows})}sort(){this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.value.sort((e,r)=>{let i=On(e,this.sortField),o=On(r,this.sortField),s;return i==null&&o!=null?s=-1:i!=null&&o==null?s=1:i==null&&o==null?s=0:typeof i=="string"&&typeof o=="string"?s=i.localeCompare(o):s=io?1:0,this.sortOrder*s}),this.hasFilter()&&this.filter(this.filterValue)),this.onSort.emit({sortField:this.sortField,sortOrder:this.sortOrder})}isEmpty(){let e=this.filteredValue||this.value;return e==null||e.length==0}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder}}getBlockableElement(){return this.el.nativeElement.children[0]}filter(e,r="contains"){if(this.filterValue=e,this.value&&this.value.length){let i=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,i,e,r,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return this.filterValue&&this.filterValue.trim().length>0}onDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-dataView"],["p-dataview"],["p-data-view"]],contentQueries:function(r,i,o){if(r&1&&(V(o,oU,5),V(o,sU,5),V(o,aU,5),V(o,lU,5),V(o,cU,5),V(o,dU,5),V(o,uU,5),V(o,pU,5),V(o,fU,5),V(o,hU,5),V(o,mU,5),V(o,Ck,5),V(o,xk,5)),r&2){let s;M(s=O())&&(i.listTemplate=s.first),M(s=O())&&(i.gridTemplate=s.first),M(s=O())&&(i.headerTemplate=s.first),M(s=O())&&(i.emptymessageTemplate=s.first),M(s=O())&&(i.footerTemplate=s.first),M(s=O())&&(i.paginatorleft=s.first),M(s=O())&&(i.paginatorright=s.first),M(s=O())&&(i.paginatordropdownitem=s.first),M(s=O())&&(i.loadingicon=s.first),M(s=O())&&(i.listicon=s.first),M(s=O())&&(i.gridicon=s.first),M(s=O())&&(i.header=s.first),M(s=O())&&(i.footer=s.first)}},hostVars:2,hostBindings:function(r,i){r&2&&k(i.cn(i.cx("root"),i.styleClass))},inputs:{paginator:[2,"paginator","paginator",R],rows:[2,"rows","rows",Me],totalRecords:[2,"totalRecords","totalRecords",Me],pageLinks:[2,"pageLinks","pageLinks",Me],rowsPerPageOptions:"rowsPerPageOptions",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",R],paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",R],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",R],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",R],showPageLinks:[2,"showPageLinks","showPageLinks",R],lazy:[2,"lazy","lazy",R],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",R],emptyMessage:"emptyMessage",styleClass:"styleClass",gridStyleClass:"gridStyleClass",trackBy:"trackBy",filterBy:"filterBy",filterLocale:"filterLocale",loading:[2,"loading","loading",R],loadingIcon:"loadingIcon",first:[2,"first","first",Me],sortField:"sortField",sortOrder:[2,"sortOrder","sortOrder",Me],value:"value",layout:"layout"},outputs:{onLazyLoad:"onLazyLoad",onPage:"onPage",onSort:"onSort",onChangeLayout:"onChangeLayout"},features:[xe([RR,{provide:PR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:yU,decls:9,vars:11,consts:[["empty",""],[3,"pBind","class"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","appendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","pt"],[3,"pBind"],[3,"class"],["data-p-icon","spinner",3,"pBind","spin"],[4,"ngTemplateOutlet"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","appendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"]],template:function(r,i){r&1&&(Ht(gU),rt(0,TU,4,7,"div",1),rt(1,SU,3,4,"div",1),rt(2,IU,1,19,"p-paginator",2),E(3,"div",3),rt(4,kU,2,8,"ng-container"),rt(5,OU,2,8,"ng-container"),rt(6,AU,3,6,"div",1),T(),rt(7,NU,1,19,"p-paginator",2),rt(8,LU,3,4,"div",1)),r&2&&(it(i.loading?0:-1),g(),it(i.header||i.headerTemplate?1:-1),g(),it(i.paginator&&(i.paginatorPosition==="top"||i.paginatorPosition=="both")?2:-1),g(),k(i.cx("content")),h("pBind",i.ptm("content")),g(),it(i.layout==="list"?4:-1),g(),it(i.layout==="grid"?5:-1),g(),it(i.isEmpty()&&!i.loading?6:-1),g(),it(i.paginator&&(i.paginatorPosition==="bottom"||i.paginatorPosition=="both")?7:-1),g(),it(i.footer||i.footerTemplate?8:-1))},dependencies:[Qe,Wt,kt,eg,ju,To,Te,te,Xb],encapsulation:2,changeDetection:0})}return t})();var FR=Zi` query GetProductsForList($input: ProductSearchInput) { getProducts(input: $input) { isLastPage @@ -1040,8 +2081,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } } - ${Po} -`;var o0=` + ${hc} +`;var LR=` .p-togglebutton { display: inline-flex; cursor: pointer; @@ -1160,8 +2201,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a .p-togglebutton-fluid { width: 100%; } -`;var Tk=["icon"],Sk=["content"],s0=t=>({$implicit:t});function Ik(t,n){t&1&&J(0)}function Ek(t,n){if(t&1&&Z(0,"span",0),t&2){let e=u(3);I(e.cn(e.cx("icon"),e.checked?e.onIcon:e.offIcon,e.iconPos==="left"?e.cx("iconLeft"):e.cx("iconRight"))),d("pBind",e.ptm("icon"))}}function Mk(t,n){if(t&1&&Re(0,Ek,1,3,"span",2),t&2){let e=u(2);Ve(e.onIcon||e.offIcon?0:-1)}}function Dk(t,n){t&1&&J(0)}function Ok(t,n){if(t&1&&_(0,Dk,1,0,"ng-container",1),t&2){let e=u(2);d("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",de(2,s0,e.checked))}}function Pk(t,n){if(t&1&&(Re(0,Mk,1,1)(1,Ok,1,4,"ng-container"),k(2,"span",0),oe(3),x()),t&2){let e=u();Ve(e.iconTemplate?1:0),f(2),I(e.cx("label")),d("pBind",e.ptm("label")),f(),Ue(e.checked?e.hasOnLabel?e.onLabel:"\xA0":e.hasOffLabel?e.offLabel:"\xA0")}}var Fk=` - ${o0} +`;var VU=["icon"],jU=["content"],jR=t=>({$implicit:t});function zU(t,n){t&1&&ne(0)}function HU(t,n){if(t&1&&X(0,"span",0),t&2){let e=m(3);k(e.cn(e.cx("icon"),e.checked?e.onIcon:e.offIcon,e.iconPos==="left"?e.cx("iconLeft"):e.cx("iconRight"))),h("pBind",e.ptm("icon"))}}function $U(t,n){if(t&1&&rt(0,HU,1,3,"span",2),t&2){let e=m(2);it(e.onIcon||e.offIcon?0:-1)}}function UU(t,n){t&1&&ne(0)}function WU(t,n){if(t&1&&C(0,UU,1,0,"ng-container",1),t&2){let e=m(2);h("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",Ee(2,jR,e.checked))}}function GU(t,n){if(t&1&&(rt(0,$U,1,1)(1,WU,1,4,"ng-container"),E(2,"span",0),ce(3),T()),t&2){let e=m();it(e.iconTemplate?1:0),g(2),k(e.cx("label")),h("pBind",e.ptm("label")),g(),Ze(e.checked?e.hasOnLabel?e.onLabel:"\xA0":e.hasOffLabel?e.offLabel:"\xA0")}}var qU=` + ${LR} /* For PrimeNG (iconPos) */ .p-togglebutton-icon-right { @@ -1171,7 +2212,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a .p-togglebutton.ng-invalid.ng-dirty { border-color: dt('togglebutton.invalid.border.color'); } -`,Rk={root:({instance:t})=>["p-togglebutton p-component",{"p-togglebutton-checked":t.checked,"p-invalid":t.invalid(),"p-disabled":t.$disabled(),"p-togglebutton-sm p-inputfield-sm":t.size==="small","p-togglebutton-lg p-inputfield-lg":t.size==="large","p-togglebutton-fluid":t.fluid()}],content:"p-togglebutton-content",icon:"p-togglebutton-icon",iconLeft:"p-togglebutton-icon-left",iconRight:"p-togglebutton-icon-right",label:"p-togglebutton-label"},r0=(()=>{class t extends Ge{name="togglebutton";style=Fk;classes=Rk;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var a0=new we("TOGGLEBUTTON_INSTANCE"),Vk={provide:Ot,useExisting:_t(()=>Vc),multi:!0},Vc=(()=>{class t extends Bn{$pcToggleButton=G(a0,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=G(X,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onKeyDown(e){switch(e.code){case"Enter":this.toggle(e),e.preventDefault();break;case"Space":this.toggle(e),e.preventDefault();break}}toggle(e){!this.$disabled()&&!(this.allowEmpty===!1&&this.checked)&&(this.checked=!this.checked,this.writeModelValue(this.checked),this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onLabel="Yes";offLabel="No";onIcon;offIcon;ariaLabel;ariaLabelledBy;styleClass;inputId;tabindex=0;iconPos="left";autofocus;size;allowEmpty;fluid=ue(void 0,{transform:P});onChange=new H;iconTemplate;contentTemplate;templates;checked=!1;onInit(){(this.checked===null||this.checked===void 0)&&(this.checked=!1)}_componentStyle=G(r0);onBlur(){this.onModelTouched()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.offLabel&&this.offLabel.length>0}get active(){return this.checked===!0}_iconTemplate;_contentTemplate;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":this._iconTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}writeControlValue(e,i){this.checked=e,i(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(i,o,r){if(i&1&&(F(r,Tk,4),F(r,Sk,4),F(r,Xe,4)),i&2){let a;M(a=D())&&(o.iconTemplate=a.first),M(a=D())&&(o.contentTemplate=a.first),M(a=D())&&(o.templates=a)}},hostVars:8,hostBindings:function(i,o){i&1&&Q("keydown",function(a){return o.onKeyDown(a)})("click",function(a){return o.toggle(a)}),i&2&&(Y("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-pressed",o.checked?"true":"false")("role","button")("tabindex",o.tabindex!==void 0?o.tabindex:o.$disabled()?-1:0)("data-pc-name","togglebutton"),I(o.cn(o.cx("root"),o.styleClass)))},inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",styleClass:"styleClass",inputId:"inputId",tabindex:[2,"tabindex","tabindex",xe],iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",P],size:"size",allowEmpty:"allowEmpty",fluid:[1,"fluid"]},outputs:{onChange:"onChange"},features:[Ee([Vk,r0,{provide:a0,useExisting:t},{provide:Ae,useExisting:t}]),He([ui,X]),L],decls:3,vars:8,consts:[[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind"]],template:function(i,o){i&1&&(k(0,"span",0),_(1,Ik,1,0,"ng-container",1),Re(2,Pk,4,5),x()),i&2&&(I(o.cx("content")),d("pBind",o.ptm("content")),f(),d("ngTemplateOutlet",o.contentTemplate||o._contentTemplate)("ngTemplateOutletContext",de(6,s0,o.checked)),f(),Ve(o.contentTemplate?-1:2))},dependencies:[$e,ot,ve,dt,X],encapsulation:2,changeDetection:0})}return t})();var l0=` +`,QU={root:({instance:t})=>["p-togglebutton p-component",{"p-togglebutton-checked":t.checked,"p-invalid":t.invalid(),"p-disabled":t.$disabled(),"p-togglebutton-sm p-inputfield-sm":t.size==="small","p-togglebutton-lg p-inputfield-lg":t.size==="large","p-togglebutton-fluid":t.fluid()}],content:"p-togglebutton-content",icon:"p-togglebutton-icon",iconLeft:"p-togglebutton-icon-left",iconRight:"p-togglebutton-icon-right",label:"p-togglebutton-label"},BR=(()=>{class t extends Oe{name="togglebutton";style=qU;classes=QU;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var VR=new H("TOGGLEBUTTON_INSTANCE"),KU={provide:Nn,useExisting:$t(()=>Dw),multi:!0},Dw=(()=>{class t extends eo{$pcToggleButton=x(VR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onKeyDown(e){switch(e.code){case"Enter":this.toggle(e),e.preventDefault();break;case"Space":this.toggle(e),e.preventDefault();break}}toggle(e){!this.$disabled()&&!(this.allowEmpty===!1&&this.checked)&&(this.checked=!this.checked,this.writeModelValue(this.checked),this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onLabel="Yes";offLabel="No";onIcon;offIcon;ariaLabel;ariaLabelledBy;styleClass;inputId;tabindex=0;iconPos="left";autofocus;size;allowEmpty;fluid=ae(void 0,{transform:R});onChange=new z;iconTemplate;contentTemplate;templates;checked=!1;onInit(){(this.checked===null||this.checked===void 0)&&(this.checked=!1)}_componentStyle=x(BR);onBlur(){this.onModelTouched()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.offLabel&&this.offLabel.length>0}get active(){return this.checked===!0}_iconTemplate;_contentTemplate;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":this._iconTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}writeControlValue(e,r){this.checked=e,r(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(r,i,o){if(r&1&&(V(o,VU,4),V(o,jU,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.iconTemplate=s.first),M(s=O())&&(i.contentTemplate=s.first),M(s=O())&&(i.templates=s)}},hostVars:8,hostBindings:function(r,i){r&1&&q("keydown",function(s){return i.onKeyDown(s)})("click",function(s){return i.toggle(s)}),r&2&&(J("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-pressed",i.checked?"true":"false")("role","button")("tabindex",i.tabindex!==void 0?i.tabindex:i.$disabled()?-1:0)("data-pc-name","togglebutton"),k(i.cn(i.cx("root"),i.styleClass)))},inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",styleClass:"styleClass",inputId:"inputId",tabindex:[2,"tabindex","tabindex",Me],iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",R],size:"size",allowEmpty:"allowEmpty",fluid:[1,"fluid"]},outputs:{onChange:"onChange"},features:[xe([KU,BR,{provide:VR,useExisting:t},{provide:Ke,useExisting:t}]),et([Ui,te]),j],decls:3,vars:8,consts:[[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind"]],template:function(r,i){r&1&&(E(0,"span",0),C(1,zU,1,0,"ng-container",1),rt(2,GU,4,5),T()),r&2&&(k(i.cx("content")),h("pBind",i.ptm("content")),g(),h("ngTemplateOutlet",i.contentTemplate||i._contentTemplate)("ngTemplateOutletContext",Ee(6,jR,i.checked)),g(),it(i.contentTemplate?-1:2))},dependencies:[Qe,kt,Te,Gt,te],encapsulation:2,changeDetection:0})}return t})();var zR=` .p-selectbutton { display: inline-flex; user-select: none; @@ -1213,15 +2254,15 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a .p-selectbutton-fluid .p-togglebutton { flex: 1 1 0; } -`;var Bk=["item"],Ak=(t,n)=>({$implicit:t,index:n});function Lk(t,n){return this.getOptionLabel(n)}function Nk(t,n){t&1&&J(0)}function zk(t,n){if(t&1&&_(0,Nk,1,0,"ng-container",3),t&2){let e=u(2),i=e.$implicit,o=e.$index,r=u();d("ngTemplateOutlet",r.itemTemplate||r._itemTemplate)("ngTemplateOutletContext",at(2,Ak,i,o))}}function jk(t,n){t&1&&_(0,zk,1,5,"ng-template",null,0,Me)}function Hk(t,n){if(t&1){let e=te();k(0,"p-togglebutton",2),Q("onChange",function(o){let r=w(e),a=r.$implicit,s=r.$index,l=u();return C(l.onOptionSelect(o,a,s))}),Re(1,jk,2,0),x()}if(t&2){let e=n.$implicit,i=u();d("autofocus",i.autofocus)("styleClass",i.styleClass)("ngModel",i.isSelected(e))("onLabel",i.getOptionLabel(e))("offLabel",i.getOptionLabel(e))("disabled",i.$disabled()||i.isOptionDisabled(e))("allowEmpty",i.getAllowEmpty())("size",i.size())("fluid",i.fluid())("pt",i.ptm("pcToggleButton")),f(),Ve(i.itemTemplate||i._itemTemplate?1:-1)}}var Qk=` - ${l0} +`;var YU=["item"],ZU=(t,n)=>({$implicit:t,index:n});function JU(t,n){return this.getOptionLabel(n)}function XU(t,n){t&1&&ne(0)}function eW(t,n){if(t&1&&C(0,XU,1,0,"ng-container",3),t&2){let e=m(2),r=e.$implicit,i=e.$index,o=m();h("ngTemplateOutlet",o.itemTemplate||o._itemTemplate)("ngTemplateOutletContext",Dt(2,ZU,r,i))}}function tW(t,n){t&1&&C(0,eW,1,5,"ng-template",null,0,at)}function nW(t,n){if(t&1){let e=se();E(0,"p-togglebutton",2),q("onChange",function(i){let o=S(e),s=o.$implicit,a=o.$index,l=m();return I(l.onOptionSelect(i,s,a))}),rt(1,tW,2,0),T()}if(t&2){let e=n.$implicit,r=m();h("autofocus",r.autofocus)("styleClass",r.styleClass)("ngModel",r.isSelected(e))("onLabel",r.getOptionLabel(e))("offLabel",r.getOptionLabel(e))("disabled",r.$disabled()||r.isOptionDisabled(e))("allowEmpty",r.getAllowEmpty())("size",r.size())("fluid",r.fluid())("pt",r.ptm("pcToggleButton")),g(),it(r.itemTemplate||r._itemTemplate?1:-1)}}var rW=` + ${zR} /* For PrimeNG */ .p-selectbutton.ng-invalid.ng-dirty { outline: 1px solid dt('selectbutton.invalid.border.color'); outline-offset: 0; } -`,qk={root:({instance:t})=>["p-selectbutton p-component",{"p-invalid":t.invalid(),"p-selectbutton-fluid":t.fluid()}]},c0=(()=>{class t extends Ge{name="selectbutton";style=Qk;classes=qk;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var d0=new we("SELECTBUTTON_INSTANCE"),Uk={provide:Ot,useExisting:_t(()=>fs),multi:!0},fs=(()=>{class t extends Bn{options;optionLabel;optionValue;optionDisabled;get unselectable(){return this._unselectable}_unselectable=!1;set unselectable(e){this._unselectable=e,this.allowEmpty=!e}tabindex=0;multiple;allowEmpty=!0;styleClass;ariaLabelledBy;dataKey;autofocus;size=ue();fluid=ue(void 0,{transform:P});onOptionClick=new H;onChange=new H;itemTemplate;_itemTemplate;get equalityKey(){return this.optionValue?null:this.dataKey}value;focusedIndex=0;_componentStyle=G(c0);$pcSelectButton=G(d0,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=G(X,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}getAllowEmpty(){return this.multiple?this.allowEmpty||this.value?.length!==1:this.allowEmpty}getOptionLabel(e){return this.optionLabel?Kt(e,this.optionLabel):e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?Kt(e,this.optionValue):this.optionLabel||e.value===void 0?e:e.value}isOptionDisabled(e){return this.optionDisabled?Kt(e,this.optionDisabled):e.disabled!==void 0?e.disabled:!1}onOptionSelect(e,i,o){if(this.$disabled()||this.isOptionDisabled(i))return;let r=this.isSelected(i);if(r&&this.unselectable)return;let a=this.getOptionValue(i),s;if(this.multiple)r?s=this.value.filter(l=>!Gn(l,a,this.equalityKey||void 0)):s=this.value?[...this.value,a]:[a];else{if(r&&!this.allowEmpty)return;s=r?null:a}this.focusedIndex=o,this.value=s,this.writeModelValue(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:i,index:o})}changeTabIndexes(e,i){let o,r;for(let a=0;a<=this.el.nativeElement.children.length-1;a++)this.el.nativeElement.children[a].getAttribute("tabindex")==="0"&&(o={elem:this.el.nativeElement.children[a],index:a});i==="prev"?o.index===0?r=this.el.nativeElement.children.length-1:r=o.index-1:o.index===this.el.nativeElement.children.length-1?r=0:r=o.index+1,this.focusedIndex=r,this.el.nativeElement.children[r].focus()}onFocus(e,i){this.focusedIndex=i}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(i=>!Gn(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1,o=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value)){for(let r of this.value)if(Gn(r,o,this.dataKey)){i=!0;break}}}else i=Gn(this.getOptionValue(e),this.value,this.equalityKey||void 0);return i}templates;onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="item"&&(this._itemTemplate=e.template)})}writeControlValue(e,i){this.value=e,i(this.value),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["p-selectButton"],["p-selectbutton"],["p-select-button"]],contentQueries:function(i,o,r){if(i&1&&(F(r,Bk,4),F(r,Xe,4)),i&2){let a;M(a=D())&&(o.itemTemplate=a.first),M(a=D())&&(o.templates=a)}},hostVars:4,hostBindings:function(i,o){i&2&&(Y("role","group")("aria-labelledby",o.ariaLabelledBy),I(o.cx("root")))},inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[2,"unselectable","unselectable",P],tabindex:[2,"tabindex","tabindex",xe],multiple:[2,"multiple","multiple",P],allowEmpty:[2,"allowEmpty","allowEmpty",P],styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",dataKey:"dataKey",autofocus:[2,"autofocus","autofocus",P],size:[1,"size"],fluid:[1,"fluid"]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[Ee([Uk,c0,{provide:d0,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],decls:2,vars:0,consts:[["content",""],[3,"autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt"],[3,"onChange","autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&Di(0,Hk,2,11,"p-togglebutton",1,Lk,!0),i&2&&Oi(o.options)},dependencies:[Vc,Vn,xi,Xi,$e,ot,ve,dt],encapsulation:2,changeDetection:0})}return t})(),u0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({imports:[fs,ve,ve]})}return t})();function zo(t){return`${tt.serverUrl}${t}`}var Gk=["dt2"],$k=(t,n)=>({"fa-bars":t,"fa-table":n});function Wk(t,n){if(t&1){let e=te();k(0,"p-inputicon",17),Q("click",function(){w(e),u();let o=kt(6),r=u();return r.searchTrigger.next(""),r.filterValue.set(""),C(o.focus())}),x()}}function Kk(t,n){if(t&1&&Z(0,"i",18),t&2){let e=n.$implicit;d("ngClass",at(1,$k,e==="list",e==="grid"))}}function Yk(t,n){if(t&1){let e=te();k(0,"div",9)(1,"div",10)(2,"p-iconfield",11)(3,"p-iconfield",12),Z(4,"p-inputicon",13),k(5,"input",14,5),vn("ngModelChange",function(o){w(e);let r=u();return yn(r.filterValue,o)||(r.filterValue=o),C(o)}),Q("input",function(o){w(e);let r=u();return C(r.searchTrigger.next(o.target.value))}),x()(),Re(7,Wk,1,0,"p-inputicon",15),x()(),k(8,"p-selectbutton",16),vn("ngModelChange",function(o){w(e);let r=u();return yn(r.layout,o)||(r.layout=o),C(o)}),Q("ngModelChange",function(o){w(e);let r=u();return C(r.onLayoutChange(o))}),_(9,Kk,1,4,"ng-template",null,6,Me),x()()}if(t&2){let e=u();f(5),_n("ngModel",e.filterValue),f(2),Ve(e.filterValue()?7:-1),f(),_n("ngModel",e.layout),d("options",e.layoutOptions)("allowEmpty",!1)}}function Zk(t,n){if(t&1&&Z(0,"img",22),t&2){let e=u().$implicit,i=u(2);d("src",i.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.source),so)("alt",e.featuredAsset==null?null:e.featuredAsset.name)}}function Jk(t,n){if(t&1){let e=te();k(0,"div",20)(1,"div",21),Re(2,Zk,1,2,"img",22),k(3,"div",23)(4,"div")(5,"h3",24),oe(6),x(),k(7,"p",25),oe(8),x()(),k(9,"p-button",26),Q("click",function(){let o=w(e).$implicit,r=u(2);return C(r.openProduct(o))}),x()()()()}if(t&2){let e=n.$implicit;f(2),Ve(e.featuredAsset!=null&&e.featuredAsset.source?2:-1),f(4),Ue(e.identifier),f(2),Ue(e.description)}}function Xk(t,n){if(t&1&&(k(0,"div",19),Di(1,Jk,10,3,"div",20,Ws),x()),t&2){let e=n.$implicit;f(),Oi(e)}}function e2(t,n){if(t&1&&Z(0,"img",28),t&2){let e=u().$implicit,i=u(2);d("src",i.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.source),so)("alt",e.featuredAsset==null?null:e.featuredAsset.name)}}function t2(t,n){if(t&1){let e=te();k(0,"div",20),Re(1,e2,1,2,"img",28),k(2,"div",29)(3,"div")(4,"h3",24),oe(5),x(),k(6,"p",25),oe(7),x()(),k(8,"p-button",30),Q("click",function(){let o=w(e).$implicit,r=u(2);return C(r.openProduct(o))}),x()()()}if(t&2){let e=n.$implicit;f(),Ve(e.featuredAsset!=null&&e.featuredAsset.source?1:-1),f(4),Ue(e.identifier),f(2),Ue(e.description)}}function n2(t,n){if(t&1&&(k(0,"div",27),Di(1,t2,9,3,"div",20,Ws),x()),t&2){let e=n.$implicit;f(),Oi(e)}}function i2(t,n){t&1&&(k(0,"div",31),oe(1,"No results found"),x())}function o2(t,n){t&1&&(k(0,"div",31),oe(1,"No products found"),x())}function r2(t,n){if(t&1&&Re(0,i2,2,0,"div",31)(1,o2,2,0,"div",31),t&2){let e=u();Ve(e.filterValue()?0:1)}}var hs=class t{constructor(n){this.apollo=n;this.searchTrigger.pipe(yp(800),ea()).subscribe(e=>{this.onLazyLoad()})}apollo;router=G(Tn);dataViewComponent=Qp("dt2");products=Ie([]);loading=ue(!1);layout=Ie(localStorage.getItem("product-view-layout")==="list"?"list":"grid");layoutOptions=["list","grid"];listPageOptions=[10,25,50,75,100];gridPageOptions=[12,24,48,72,96];listRows=Ie(localStorage.getItem("product-view-list-rows")?parseInt(localStorage.getItem("product-view-list-rows")):25);gridRows=Ie(localStorage.getItem("product-view-grid-rows")?parseInt(localStorage.getItem("product-view-grid-rows")):12);rows=Be(()=>this.layout()==="list"?this.listRows():this.gridRows());currentTotalProducts=Ie(0);filterValue=Ie("");getPhxUrl=zo;searchTrigger=new Nt;getProducts=(...e)=>Ze(this,[...e],function*(n={}){return(yield rn(this.apollo.apollo().query({query:i0,variables:{input:n}})))?.data?.getProducts});onLazyLoad(n){return Ze(this,null,function*(){let e=yield this.getProducts({take:n?.rows??this.rows(),skip:n?.first??0,term:this.filterValue()});(n?.rows??-1)>=0&&n.rows!=this.rows()&&(this.layout()==="list"?(this.listRows.set(n.rows),localStorage.setItem("product-view-list-rows",n.rows.toString())):(this.gridRows.set(n.rows),localStorage.setItem("product-view-grid-rows",n.rows.toString()))),this.products.set(e?.items??[]),this.currentTotalProducts.set(e?.totalItems??0)})}openProduct(n){window.open(zo("/products/edit/"+n.id),"_blank")}onLayoutChange(n){this.layout.set(n),this.dataViewComponent()&&(this.dataViewComponent().first=0),localStorage.setItem("product-view-layout",n),this.onLazyLoad()}static \u0275fac=function(e){return new(e||t)(ye(Rn))};static \u0275cmp=U({type:t,selectors:[["app-product-view"]],viewQuery:function(e,i){e&1&&Ap(i.dataViewComponent,Gk,5),e&2&&Lp()},inputs:{loading:[1,"loading"]},decls:11,vars:8,consts:[["dt2",""],["header",""],["list",""],["grid",""],["emptymessage",""],["searchInput",""],["item",""],["title","Product View"],["lazy","",3,"onLazyLoad","value","paginator","lazy","totalRecords","loading","layout","rowsPerPageOptions","rows"],[1,"flex","justify-between","items-center","gap-4"],[1,"w-full"],["iconPosition","right",1,"mr-auto","drop-shadow"],["iconPosition","left",1,"ml-auto"],[1,"fa","fa-search"],["pInputText","","type","text","placeholder","Search...","fluid","",3,"ngModelChange","input","ngModel"],[1,"fa","fa-circle-xmark","cursor-pointer"],[1,"drop-shadow",3,"ngModelChange","ngModel","options","allowEmpty"],[1,"fa","fa-circle-xmark","cursor-pointer",3,"click"],[1,"fa",3,"ngClass"],[1,"flex","flex-col","gap-2","p-2"],[1,"bg-white","border","rounded-lg","p-4","drop-shadow-lg"],[1,"flex","items-center","gap-2"],[1,"w-16","h-16","p-1","rounded-lg","border",2,"object-fit","contain",3,"src","alt"],[1,"flex","justify-between","gap-2","w-full","items-center"],[1,"text-lg","font-bold","truncate"],[1,"text-sm","text-gray-500","line-clamp-2"],["icon","fa fa-arrow-up-right-from-square","size","large","text","","rounded","","outlined","",3,"click"],[1,"grid","grid-cols-2","sm:grid-cols-3","gap-2","p-2"],[1,"w-32","h-32","p-1","mx-auto","mb-4","rounded-lg","border",2,"object-fit","contain",3,"src","alt"],[1,"flex","justify-between","gap-2"],["icon","fa fa-arrow-up-right-from-square","size","small","text","","rounded","","outlined","",3,"click"],[1,"text-center","p-8","italic","text-muted-color"]],template:function(e,i){if(e&1){let o=te();k(0,"app-base",7)(1,"p-dataView",8,0),Q("onLazyLoad",function(a){return w(o),C(i.onLazyLoad(a))}),_(3,Yk,11,5,"ng-template",null,1,Me)(5,Xk,3,0,"ng-template",null,2,Me)(7,n2,3,0,"ng-template",null,3,Me)(9,r2,2,1,"ng-template",null,4,Me),x()()}e&2&&(f(),d("value",i.products())("paginator",!0)("lazy",!0)("totalRecords",i.currentTotalProducts())("loading",i.loading())("layout",i.layout())("rowsPerPageOptions",i.layout()==="list"?i.listPageOptions:i.gridPageOptions)("rows",i.rows()))},dependencies:[la,n0,fs,Vn,Ao,xi,Xi,Cn,$n,An,os,rs],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}} .p-dataview-content{background:transparent!important} .p-dataview-header, p-paginator{border-width:1px!important;border-radius:12px!important;margin-left:.5rem!important;margin-right:.5rem!important;--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}input[pInputText][_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important;border-width:1px!important}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var ms=class t{constructor(n){this.route=n;this.route.queryParams.subscribe(e=>{e.redirectTo?(this.redirectTo=atob(e.redirectTo),console.log("redirectTo",this.redirectTo)):this.redirectTo="/"})}route;apollo=G(Rn);fb=G(bg);router=G(Tn);loginForm=this.fb.group({username:["",Fr.required],password:["",Fr.required]});redirectTo="/";loading=Ie(!1);onSubmit(){return Ze(this,null,function*(){this.loading.set(!0);try{((yield rn(this.apollo.apollo().mutate({mutation:gm,variables:{username:this.loginForm.value.username,password:this.loginForm.value.password}}))).data?.login).__typename==="CurrentUser"&&this.router.navigate([this.redirectTo])}catch(n){console.error(n)}finally{this.loading.set(!1)}})}static \u0275fac=function(e){return new(e||t)(ye(Zp))};static \u0275cmp=U({type:t,selectors:[["app-login"]],decls:13,vars:2,consts:[[1,"min-h-screen","flex","items-center","justify-center","p-8"],[1,"border-2","rounded-2xl","bg-gray-100/50","drop-shadow-2xl","w-full","mx-auto","p-4",2,"max-width","300px"],[3,"ngSubmit","formGroup"],[1,"flex","flex-col","gap-2"],[1,"flex","flex-col"],["for","username"],["type","text","pInputText","","id","username","formControlName","username"],["for","password"],["type","password","pInputText","","id","password","formControlName","password"],["type","submit","label","Login","icon","fa fa-sign-in","styleClass","w-full mt-4",1,"w-full",3,"loading"]],template:function(e,i){e&1&&(k(0,"div",0)(1,"div",1)(2,"form",2),Q("ngSubmit",function(){return i.onSubmit()}),k(3,"div",3)(4,"div",4)(5,"label",5),oe(6,"Username"),x(),Z(7,"input",6),x(),k(8,"div",4)(9,"label",7),oe(10,"Password"),x(),Z(11,"input",8),x()(),Z(12,"p-button",9),x()()()),e&2&&(f(2),d("formGroup",i.loginForm),f(10),d("loading",i.loading()))},dependencies:[Vn,hg,Ao,xi,sg,_g,Mc,Dc,An,$n],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}input[pInputText][_ngcontent-%COMP%]{padding:.5rem!important;border-width:2px!important}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var oi=class t{router=G(Tn);canActivate(n,e){let i=tt.apiKey??localStorage.getItem("api-key");return!tt.production&&!i&&this.router.navigate(["login"],{queryParams:{redirectTo:btoa(window.location.pathname+window.location.search)}}),!0}static \u0275fac=function(e){return new(e||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac})};var p0=` +`,iW={root:({instance:t})=>["p-selectbutton p-component",{"p-invalid":t.invalid(),"p-selectbutton-fluid":t.fluid()}]},HR=(()=>{class t extends Oe{name="selectbutton";style=rW;classes=iW;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var $R=new H("SELECTBUTTON_INSTANCE"),oW={provide:Nn,useExisting:$t(()=>tg),multi:!0},tg=(()=>{class t extends eo{options;optionLabel;optionValue;optionDisabled;get unselectable(){return this._unselectable}_unselectable=!1;set unselectable(e){this._unselectable=e,this.allowEmpty=!e}tabindex=0;multiple;allowEmpty=!0;styleClass;ariaLabelledBy;dataKey;autofocus;size=ae();fluid=ae(void 0,{transform:R});onOptionClick=new z;onChange=new z;itemTemplate;_itemTemplate;get equalityKey(){return this.optionValue?null:this.dataKey}value;focusedIndex=0;_componentStyle=x(HR);$pcSelectButton=x($R,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}getAllowEmpty(){return this.multiple?this.allowEmpty||this.value?.length!==1:this.allowEmpty}getOptionLabel(e){return this.optionLabel?On(e,this.optionLabel):e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?On(e,this.optionValue):this.optionLabel||e.value===void 0?e:e.value}isOptionDisabled(e){return this.optionDisabled?On(e,this.optionDisabled):e.disabled!==void 0?e.disabled:!1}onOptionSelect(e,r,i){if(this.$disabled()||this.isOptionDisabled(r))return;let o=this.isSelected(r);if(o&&this.unselectable)return;let s=this.getOptionValue(r),a;if(this.multiple)o?a=this.value.filter(l=>!nr(l,s,this.equalityKey||void 0)):a=this.value?[...this.value,s]:[s];else{if(o&&!this.allowEmpty)return;a=o?null:s}this.focusedIndex=i,this.value=a,this.writeModelValue(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:r,index:i})}changeTabIndexes(e,r){let i,o;for(let s=0;s<=this.el.nativeElement.children.length-1;s++)this.el.nativeElement.children[s].getAttribute("tabindex")==="0"&&(i={elem:this.el.nativeElement.children[s],index:s});r==="prev"?i.index===0?o=this.el.nativeElement.children.length-1:o=i.index-1:i.index===this.el.nativeElement.children.length-1?o=0:o=i.index+1,this.focusedIndex=o,this.el.nativeElement.children[o].focus()}onFocus(e,r){this.focusedIndex=r}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(r=>!nr(r,this.getOptionValue(e),this.dataKey))}isSelected(e){let r=!1,i=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value)){for(let o of this.value)if(nr(o,i,this.dataKey)){r=!0;break}}}else r=nr(this.getOptionValue(e),this.value,this.equalityKey||void 0);return r}templates;onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="item"&&(this._itemTemplate=e.template)})}writeControlValue(e,r){this.value=e,r(this.value),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-selectButton"],["p-selectbutton"],["p-select-button"]],contentQueries:function(r,i,o){if(r&1&&(V(o,YU,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.itemTemplate=s.first),M(s=O())&&(i.templates=s)}},hostVars:4,hostBindings:function(r,i){r&2&&(J("role","group")("aria-labelledby",i.ariaLabelledBy),k(i.cx("root")))},inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[2,"unselectable","unselectable",R],tabindex:[2,"tabindex","tabindex",Me],multiple:[2,"multiple","multiple",R],allowEmpty:[2,"allowEmpty","allowEmpty",R],styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",dataKey:"dataKey",autofocus:[2,"autofocus","autofocus",R],size:[1,"size"],fluid:[1,"fluid"]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[xe([oW,HR,{provide:$R,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:2,vars:0,consts:[["content",""],[3,"autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt"],[3,"onChange","autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,i){r&1&&ts(0,nW,2,11,"p-togglebutton",1,JU,!0),r&2&&ns(i.options)},dependencies:[Dw,Xi,ws,ka,Qe,kt,Te,Gt],encapsulation:2,changeDetection:0})}return t})(),UR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[tg,Te,Te]})}return t})();function wc(t){return`${Bt.serverUrl}${t}`}var sW=["dt2"],aW=(t,n)=>({"fa-bars":t,"fa-table":n});function lW(t,n){if(t&1){let e=se();E(0,"p-inputicon",17),q("click",function(){S(e),m();let i=pn(6),o=m();return o.searchTrigger.next(""),o.filterValue.set(""),I(i.focus())}),T()}}function cW(t,n){if(t&1&&X(0,"i",18),t&2){let e=n.$implicit;h("ngClass",Dt(1,aW,e==="list",e==="grid"))}}function dW(t,n){if(t&1){let e=se();E(0,"div",9)(1,"div",10)(2,"p-iconfield",11)(3,"p-iconfield",12),X(4,"p-inputicon",13),E(5,"input",14,5),Rr("ngModelChange",function(i){S(e);let o=m();return Xr(o.filterValue,i)||(o.filterValue=i),I(i)}),q("input",function(i){S(e);let o=m();return I(o.searchTrigger.next(i.target.value))}),T()(),rt(7,lW,1,0,"p-inputicon",15),T()(),E(8,"p-selectbutton",16),Rr("ngModelChange",function(i){S(e);let o=m();return Xr(o.layout,i)||(o.layout=i),I(i)}),q("ngModelChange",function(i){S(e);let o=m();return I(o.onLayoutChange(i))}),C(9,cW,1,4,"ng-template",null,6,at),T()()}if(t&2){let e=m();g(5),Or("ngModel",e.filterValue),g(2),it(e.filterValue()?7:-1),g(),Or("ngModel",e.layout),h("options",e.layoutOptions)("allowEmpty",!1)}}function uW(t,n){if(t&1&&X(0,"img",22),t&2){let e=m().$implicit,r=m(2);h("src",r.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.source),Xs)("alt",e.featuredAsset==null?null:e.featuredAsset.name)}}function pW(t,n){if(t&1){let e=se();E(0,"div",20)(1,"div",21),rt(2,uW,1,2,"img",22),E(3,"div",23)(4,"div")(5,"h3",24),ce(6),T(),E(7,"p",25),ce(8),T()(),E(9,"p-button",26),q("click",function(){let i=S(e).$implicit,o=m(2);return I(o.openProduct(i))}),T()()()()}if(t&2){let e=n.$implicit;g(2),it(e.featuredAsset!=null&&e.featuredAsset.source?2:-1),g(4),Ze(e.identifier),g(2),Ze(e.description)}}function fW(t,n){if(t&1&&(E(0,"div",19),ts(1,pW,10,3,"div",20,Qf),T()),t&2){let e=n.$implicit;g(),ns(e)}}function hW(t,n){if(t&1&&X(0,"img",28),t&2){let e=m().$implicit,r=m(2);h("src",r.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.source),Xs)("alt",e.featuredAsset==null?null:e.featuredAsset.name)}}function mW(t,n){if(t&1){let e=se();E(0,"div",20),rt(1,hW,1,2,"img",28),E(2,"div",29)(3,"div")(4,"h3",24),ce(5),T(),E(6,"p",25),ce(7),T()(),E(8,"p-button",30),q("click",function(){let i=S(e).$implicit,o=m(2);return I(o.openProduct(i))}),T()()()}if(t&2){let e=n.$implicit;g(),it(e.featuredAsset!=null&&e.featuredAsset.source?1:-1),g(4),Ze(e.identifier),g(2),Ze(e.description)}}function gW(t,n){if(t&1&&(E(0,"div",27),ts(1,mW,9,3,"div",20,Qf),T()),t&2){let e=n.$implicit;g(),ns(e)}}function yW(t,n){t&1&&(E(0,"div",31),ce(1,"No results found"),T())}function bW(t,n){t&1&&(E(0,"div",31),ce(1,"No products found"),T())}function vW(t,n){if(t&1&&rt(0,yW,2,0,"div",31)(1,bW,2,0,"div",31),t&2){let e=m();it(e.filterValue()?0:1)}}var ng=class t{constructor(n){this.apollo=n;this.searchTrigger.pipe(e0(800),Fc()).subscribe(e=>{this.onLazyLoad()})}apollo;router=x(Vn);dataViewComponent=TI("dt2");products=ge([]);loading=ae(!1);layout=ge(localStorage.getItem("product-view-layout")==="list"?"list":"grid");layoutOptions=["list","grid"];listPageOptions=[10,25,50,75,100];gridPageOptions=[12,24,48,72,96];listRows=ge(localStorage.getItem("product-view-list-rows")?parseInt(localStorage.getItem("product-view-list-rows")):25);gridRows=ge(localStorage.getItem("product-view-grid-rows")?parseInt(localStorage.getItem("product-view-grid-rows")):12);rows=We(()=>this.layout()==="list"?this.listRows():this.gridRows());currentTotalProducts=ge(0);filterValue=ge("");getPhxUrl=wc;searchTrigger=new qe;getProducts=(...e)=>pt(this,[...e],function*(n={}){return(yield Cr(this.apollo.apollo().query({query:FR,variables:{input:n}})))?.data?.getProducts});onLazyLoad(n){return pt(this,null,function*(){let e=yield this.getProducts({take:n?.rows??this.rows(),skip:n?.first??0,term:this.filterValue()});(n?.rows??-1)>=0&&n.rows!=this.rows()&&(this.layout()==="list"?(this.listRows.set(n.rows),localStorage.setItem("product-view-list-rows",n.rows.toString())):(this.gridRows.set(n.rows),localStorage.setItem("product-view-grid-rows",n.rows.toString()))),this.products.set(e?.items??[]),this.currentTotalProducts.set(e?.totalItems??0)})}openProduct(n){window.open(wc("/products/edit/"+n.id),"_blank")}onLayoutChange(n){this.layout.set(n),this.dataViewComponent()&&(this.dataViewComponent().first=0),localStorage.setItem("product-view-layout",n),this.onLazyLoad()}static \u0275fac=function(e){return new(e||t)(de(Ji))};static \u0275cmp=$({type:t,selectors:[["app-product-view"]],viewQuery:function(e,r){e&1&&Ob(r.dataViewComponent,sW,5),e&2&&Kf()},inputs:{loading:[1,"loading"]},decls:11,vars:8,consts:[["dt2",""],["header",""],["list",""],["grid",""],["emptymessage",""],["searchInput",""],["item",""],["title","Product View"],["lazy","",3,"onLazyLoad","value","paginator","lazy","totalRecords","loading","layout","rowsPerPageOptions","rows"],[1,"flex","justify-between","items-center","gap-4"],[1,"w-full"],["iconPosition","right",1,"mr-auto","drop-shadow"],["iconPosition","left",1,"ml-auto"],[1,"fa","fa-search"],["pInputText","","type","text","placeholder","Search...","fluid","",3,"ngModelChange","input","ngModel"],[1,"fa","fa-circle-xmark","cursor-pointer"],[1,"drop-shadow",3,"ngModelChange","ngModel","options","allowEmpty"],[1,"fa","fa-circle-xmark","cursor-pointer",3,"click"],[1,"fa",3,"ngClass"],[1,"flex","flex-col","gap-2","p-2"],[1,"bg-white","border","rounded-lg","p-4","drop-shadow-lg"],[1,"flex","items-center","gap-2"],[1,"w-16","h-16","p-1","rounded-lg","border",2,"object-fit","contain",3,"src","alt"],[1,"flex","justify-between","gap-2","w-full","items-center"],[1,"text-lg","font-bold","truncate"],[1,"text-sm","text-gray-500","line-clamp-2"],["icon","fa fa-arrow-up-right-from-square","size","large","text","","rounded","","outlined","",3,"click"],[1,"grid","grid-cols-2","sm:grid-cols-3","gap-2","p-2"],[1,"w-32","h-32","p-1","mx-auto","mb-4","rounded-lg","border",2,"object-fit","contain",3,"src","alt"],[1,"flex","justify-between","gap-2"],["icon","fa fa-arrow-up-right-from-square","size","small","text","","rounded","","outlined","",3,"click"],[1,"text-center","p-8","italic","text-muted-color"]],template:function(e,r){if(e&1){let i=se();E(0,"app-base",7)(1,"p-dataView",8,0),q("onLazyLoad",function(s){return S(i),I(r.onLazyLoad(s))}),C(3,dW,11,5,"ng-template",null,1,at)(5,fW,3,0,"ng-template",null,2,at)(7,gW,3,0,"ng-template",null,3,at)(9,vW,2,1,"ng-template",null,4,at),T()()}e&2&&(g(),h("value",r.products())("paginator",!0)("lazy",!0)("totalRecords",r.currentTotalProducts())("loading",r.loading())("layout",r.layout())("rowsPerPageOptions",r.layout()==="list"?r.listPageOptions:r.gridPageOptions)("rows",r.rows()))},dependencies:[cs,NR,tg,Xi,bc,ws,ka,ei,rr,to,Gm,qm],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}} .p-dataview-content{background:transparent!important} .p-dataview-header, p-paginator{border-width:1px!important;border-radius:12px!important;margin-left:.5rem!important;margin-right:.5rem!important;--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}input[pInputText][_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important;border-width:1px!important}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var rg=class t{constructor(n){this.route=n;this.route.queryParams.subscribe(e=>{e.redirectTo?(this.redirectTo=atob(e.redirectTo),console.log("redirectTo",this.redirectTo)):this.redirectTo="/"})}route;apollo=x(Ji);fb=x(Y2);router=x(Vn);loginForm=this.fb.group({username:["",Nu.required],password:["",Nu.required]});redirectTo="/";loading=ge(!1);onSubmit(){return pt(this,null,function*(){this.loading.set(!0);try{((yield Cr(this.apollo.apollo().mutate({mutation:m2,variables:{username:this.loginForm.value.username,password:this.loginForm.value.password}}))).data?.login).__typename==="CurrentUser"&&this.router.navigate([this.redirectTo])}catch(n){console.error(n)}finally{this.loading.set(!1)}})}static \u0275fac=function(e){return new(e||t)(de(Li))};static \u0275cmp=$({type:t,selectors:[["app-login"]],decls:13,vars:2,consts:[[1,"min-h-screen","flex","items-center","justify-center","p-8"],[1,"border-2","rounded-2xl","bg-gray-100/50","drop-shadow-2xl","w-full","mx-auto","p-4",2,"max-width","300px"],[3,"ngSubmit","formGroup"],[1,"flex","flex-col","gap-2"],[1,"flex","flex-col"],["for","username"],["type","text","pInputText","","id","username","formControlName","username"],["for","password"],["type","password","pInputText","","id","password","formControlName","password"],["type","submit","label","Login","icon","fa fa-sign-in","styleClass","w-full mt-4",1,"w-full",3,"loading"]],template:function(e,r){e&1&&(E(0,"div",0)(1,"div",1)(2,"form",2),q("ngSubmit",function(){return r.onSubmit()}),E(3,"div",3)(4,"div",4)(5,"label",5),ce(6,"Username"),T(),X(7,"input",6),T(),E(8,"div",4)(9,"label",7),ce(10,"Password"),T(),X(11,"input",8),T()(),X(12,"p-button",9),T()()()),e&2&&(g(2),h("formGroup",r.loginForm),g(10),h("loading",r.loading()))},dependencies:[Xi,q2,bc,ws,j2,Z2,Cw,xw,to,rr],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}input[pInputText][_ngcontent-%COMP%]{padding:.5rem!important;border-width:2px!important}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var No=class t{router=x(Vn);canActivate(n,e){let r=Bt.apiKey??localStorage.getItem("api-key");return!Bt.production&&!r&&this.router.navigate(["login"],{queryParams:{redirectTo:btoa(window.location.pathname+window.location.search)}}),!0}static \u0275fac=function(e){return new(e||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})};var WR=` .p-datatable { position: relative; display: block; @@ -1828,7 +2869,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a .p-datatable-row-toggle-icon:dir(rtl) { transform: rotate(180deg); } -`;var f0=` +`;var GR=` .p-checkbox { position: relative; display: inline-flex; @@ -1967,8 +3008,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a width: dt('checkbox.icon.lg.size'); height: dt('checkbox.icon.lg.size'); } -`;var a2=["icon"],s2=["input"],l2=(t,n)=>({checked:t,class:n});function c2(t,n){if(t&1&&Z(0,"span",8),t&2){let e=u(3);I(e.cx("icon")),d("ngClass",e.checkboxIcon)("pBind",e.ptm("icon"))}}function d2(t,n){if(t&1&&(j(),Z(0,"svg",9)),t&2){let e=u(3);I(e.cx("icon")),d("pBind",e.ptm("icon"))}}function u2(t,n){if(t&1&&(ne(0),_(1,c2,1,4,"span",6)(2,d2,1,3,"svg",7),ie()),t&2){let e=u(2);f(),d("ngIf",e.checkboxIcon),f(),d("ngIf",!e.checkboxIcon)}}function p2(t,n){if(t&1&&(j(),Z(0,"svg",10)),t&2){let e=u(2);I(e.cx("icon")),d("pBind",e.ptm("icon"))}}function f2(t,n){if(t&1&&(ne(0),_(1,u2,3,2,"ng-container",3)(2,p2,1,3,"svg",5),ie()),t&2){let e=u();f(),d("ngIf",e.checked),f(),d("ngIf",e._indeterminate())}}function h2(t,n){}function m2(t,n){t&1&&_(0,h2,0,0,"ng-template")}var g2=` - ${f0} +`;var _W=["icon"],wW=["input"],CW=(t,n)=>({checked:t,class:n});function xW(t,n){if(t&1&&X(0,"span",8),t&2){let e=m(3);k(e.cx("icon")),h("ngClass",e.checkboxIcon)("pBind",e.ptm("icon"))}}function TW(t,n){if(t&1&&(G(),X(0,"svg",9)),t&2){let e=m(3);k(e.cx("icon")),h("pBind",e.ptm("icon"))}}function EW(t,n){if(t&1&&(ie(0),C(1,xW,1,4,"span",6)(2,TW,1,3,"svg",7),oe()),t&2){let e=m(2);g(),h("ngIf",e.checkboxIcon),g(),h("ngIf",!e.checkboxIcon)}}function SW(t,n){if(t&1&&(G(),X(0,"svg",10)),t&2){let e=m(2);k(e.cx("icon")),h("pBind",e.ptm("icon"))}}function IW(t,n){if(t&1&&(ie(0),C(1,EW,3,2,"ng-container",3)(2,SW,1,3,"svg",5),oe()),t&2){let e=m();g(),h("ngIf",e.checked),g(),h("ngIf",e._indeterminate())}}function DW(t,n){}function kW(t,n){t&1&&C(0,DW,0,0,"ng-template")}var MW=` + ${GR} /* For PrimeNG */ p-checkBox.ng-invalid.ng-dirty .p-checkbox-box, @@ -1976,7 +3017,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a p-checkbox.ng-invalid.ng-dirty .p-checkbox-box { border-color: dt('checkbox.invalid.border.color'); } -`,b2={root:({instance:t})=>["p-checkbox p-component",{"p-checkbox-checked p-highlight":t.checked,"p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-checkbox-sm p-inputfield-sm":t.size()==="small","p-checkbox-lg p-inputfield-lg":t.size()==="large"}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},h0=(()=>{class t extends Ge{name="checkbox";style=g2;classes=b2;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var m0=new we("CHECKBOX_INSTANCE"),_2={provide:Ot,useExisting:_t(()=>g0),multi:!0},g0=(()=>{class t extends Bn{hostName="";value;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;inputStyle;styleClass;inputClass;indeterminate=!1;formControl;checkboxIcon;readonly;autofocus;trueValue=!0;falseValue=!1;variant=ue();size=ue();onChange=new H;onFocus=new H;onBlur=new H;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.modelValue()===this.trueValue:pf(this.value,this.modelValue())}_indeterminate=Ie(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;focused=!1;_componentStyle=G(h0);bindDirectiveInstance=G(X,{self:!0});$pcCheckbox=G(m0,{optional:!0,skipSelf:!0})??void 0;$variant=Be(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"icon":this._checkboxIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break}})}onChanges(e){e.indeterminate&&this._indeterminate.set(e.indeterminate.currentValue)}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}updateModel(e){let i,o=this.injector.get(Bt,null,{optional:!0,self:!0}),r=o&&!this.formControl?o.value:this.modelValue();this.binary?(i=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.writeModelValue(i),this.onModelChange(i)):(this.checked||this._indeterminate()?i=r.filter(a=>!Gn(a,this.value)):i=r?[...r,this.value]:[this.value],this.onModelChange(i),this.writeModelValue(i),this.formControl&&this.formControl.setValue(i)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}focus(){this.inputViewChild?.nativeElement.focus()}writeControlValue(e,i){i(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(i,o,r){if(i&1&&(F(r,a2,4),F(r,Xe,4)),i&2){let a;M(a=D())&&(o.checkboxIconTemplate=a.first),M(a=D())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&Fe(s2,5),i&2){let r;M(r=D())&&(o.inputViewChild=r.first)}},hostVars:5,hostBindings:function(i,o){i&2&&(Y("data-p-highlight",o.checked)("data-p-checked",o.checked)("data-p-disabled",o.$disabled()),I(o.cn(o.cx("root"),o.styleClass)))},inputs:{hostName:"hostName",value:"value",binary:[2,"binary","binary",P],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",xe],inputId:"inputId",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",P],formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",P],autofocus:[2,"autofocus","autofocus",P],trueValue:"trueValue",falseValue:"falseValue",variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[Ee([_2,h0,{provide:m0,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],decls:5,vars:24,consts:[["input",""],["type","checkbox",3,"focus","blur","change","checked","pBind"],[3,"pBind"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","minus",3,"class","pBind",4,"ngIf"],[3,"class","ngClass","pBind",4,"ngIf"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","check",3,"pBind"],["data-p-icon","minus",3,"pBind"]],template:function(i,o){if(i&1){let r=te();k(0,"input",1,0),Q("focus",function(s){return w(r),C(o.onInputFocus(s))})("blur",function(s){return w(r),C(o.onInputBlur(s))})("change",function(s){return w(r),C(o.handleChange(s))}),x(),k(2,"div",2),_(3,f2,3,2,"ng-container",3)(4,m2,1,0,null,4),x()}i&2&&(jt(o.inputStyle),I(o.cn(o.cx("input"),o.inputClass)),d("checked",o.checked)("pBind",o.ptm("input")),Y("id",o.inputId)("value",o.value)("name",o.name())("tabindex",o.tabindex)("required",o.required()?"":void 0)("readonly",o.readonly?"":void 0)("disabled",o.$disabled()?"":void 0)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel),f(2),I(o.cx("box")),d("pBind",o.ptm("box")),f(),d("ngIf",!o.checkboxIconTemplate&&!o._checkboxIconTemplate),f(),d("ngTemplateOutlet",o.checkboxIconTemplate||o._checkboxIconTemplate)("ngTemplateOutletContext",at(21,l2,o.checked,o.cx("icon"))))},dependencies:[$e,Cn,ht,ot,ve,Qa,Fm,dt,X],encapsulation:2,changeDetection:0})}return t})(),b0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({imports:[g0,ve,ve]})}return t})();var _0=` +`,OW={root:({instance:t})=>["p-checkbox p-component",{"p-checkbox-checked p-highlight":t.checked,"p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-checkbox-sm p-inputfield-sm":t.size()==="small","p-checkbox-lg p-inputfield-lg":t.size()==="large"}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},qR=(()=>{class t extends Oe{name="checkbox";style=MW;classes=OW;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var QR=new H("CHECKBOX_INSTANCE"),RW={provide:Nn,useExisting:$t(()=>KR),multi:!0},KR=(()=>{class t extends eo{hostName="";value;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;inputStyle;styleClass;inputClass;indeterminate=!1;formControl;checkboxIcon;readonly;autofocus;trueValue=!0;falseValue=!1;variant=ae();size=ae();onChange=new z;onFocus=new z;onBlur=new z;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.modelValue()===this.trueValue:gk(this.value,this.modelValue())}_indeterminate=ge(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;focused=!1;_componentStyle=x(qR);bindDirectiveInstance=x(te,{self:!0});$pcCheckbox=x(QR,{optional:!0,skipSelf:!0})??void 0;$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"icon":this._checkboxIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break}})}onChanges(e){e.indeterminate&&this._indeterminate.set(e.indeterminate.currentValue)}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}updateModel(e){let r,i=this.injector.get(Yn,null,{optional:!0,self:!0}),o=i&&!this.formControl?i.value:this.modelValue();this.binary?(r=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.writeModelValue(r),this.onModelChange(r)):(this.checked||this._indeterminate()?r=o.filter(s=>!nr(s,this.value)):r=o?[...o,this.value]:[this.value],this.onModelChange(r),this.writeModelValue(r),this.formControl&&this.formControl.setValue(r)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:r,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}focus(){this.inputViewChild?.nativeElement.focus()}writeControlValue(e,r){r(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(r,i,o){if(r&1&&(V(o,_W,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.checkboxIconTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&ct(wW,5),r&2){let o;M(o=O())&&(i.inputViewChild=o.first)}},hostVars:5,hostBindings:function(r,i){r&2&&(J("data-p-highlight",i.checked)("data-p-checked",i.checked)("data-p-disabled",i.$disabled()),k(i.cn(i.cx("root"),i.styleClass)))},inputs:{hostName:"hostName",value:"value",binary:[2,"binary","binary",R],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",Me],inputId:"inputId",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",R],formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",R],autofocus:[2,"autofocus","autofocus",R],trueValue:"trueValue",falseValue:"falseValue",variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[xe([RW,qR,{provide:QR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:5,vars:24,consts:[["input",""],["type","checkbox",3,"focus","blur","change","checked","pBind"],[3,"pBind"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","minus",3,"class","pBind",4,"ngIf"],[3,"class","ngClass","pBind",4,"ngIf"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","check",3,"pBind"],["data-p-icon","minus",3,"pBind"]],template:function(r,i){if(r&1){let o=se();E(0,"input",1,0),q("focus",function(a){return S(o),I(i.onInputFocus(a))})("blur",function(a){return S(o),I(i.onInputBlur(a))})("change",function(a){return S(o),I(i.handleChange(a))}),T(),E(2,"div",2),C(3,IW,3,2,"ng-container",3)(4,kW,1,0,null,4),T()}r&2&&(Dn(i.inputStyle),k(i.cn(i.cx("input"),i.inputClass)),h("checked",i.checked)("pBind",i.ptm("input")),J("id",i.inputId)("value",i.value)("name",i.name())("tabindex",i.tabindex)("required",i.required()?"":void 0)("readonly",i.readonly?"":void 0)("disabled",i.$disabled()?"":void 0)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel),g(2),k(i.cx("box")),h("pBind",i.ptm("box")),g(),h("ngIf",!i.checkboxIconTemplate&&!i._checkboxIconTemplate),g(),h("ngTemplateOutlet",i.checkboxIconTemplate||i._checkboxIconTemplate)("ngTemplateOutletContext",Dt(21,CW,i.checked,i.cx("icon"))))},dependencies:[Qe,ei,Wt,kt,Te,Zh,iM,Gt,te],encapsulation:2,changeDetection:0})}return t})(),YR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[KR,Te,Te]})}return t})();var ZR=` .p-datepicker { display: inline-flex; max-width: 100%; @@ -2436,26 +3477,26 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a border-start-end-radius: dt('datepicker.dropdown.border.radius'); border-end-end-radius: dt('datepicker.dropdown.border.radius'); } -`;var y2=["date"],v2=["header"],w2=["footer"],C2=["disabledDate"],x2=["decade"],k2=["previousicon"],T2=["nexticon"],S2=["triggericon"],I2=["clearicon"],E2=["decrementicon"],M2=["incrementicon"],D2=["inputicon"],O2=["buttonbar"],P2=["inputfield"],F2=["contentWrapper"],R2=[[["p-header"]],[["p-footer"]]],V2=["p-header","p-footer"],B2=t=>({clickCallBack:t}),A2=(t,n)=>({showTransitionParams:t,hideTransitionParams:n}),L2=t=>({value:"visible",params:t}),y0=t=>({visibility:t}),Bc=t=>({$implicit:t}),N2=t=>({date:t}),z2=(t,n)=>({month:t,index:n}),j2=t=>({year:t}),H2=(t,n)=>({todayCallback:t,clearCallback:n});function Q2(t,n){if(t&1){let e=te();j(),k(0,"svg",10),Q("click",function(){w(e);let o=u(3);return C(o.clear())}),x()}if(t&2){let e=u(3);I(e.cx("clearIcon")),d("pBind",e.ptm("inputIcon"))}}function q2(t,n){}function U2(t,n){t&1&&_(0,q2,0,0,"ng-template")}function G2(t,n){if(t&1){let e=te();k(0,"span",11),Q("click",function(){w(e);let o=u(3);return C(o.clear())}),_(1,U2,1,0,null,12),x()}if(t&2){let e=u(3);I(e.cx("clearIcon")),d("pBind",e.ptm("inputIcon")),f(),d("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function $2(t,n){if(t&1&&(ne(0),_(1,Q2,1,3,"svg",8)(2,G2,2,4,"span",9),ie()),t&2){let e=u(2);f(),d("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),f(),d("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function W2(t,n){if(t&1&&Z(0,"span",15),t&2){let e=u(3);d("ngClass",e.icon)("pBind",e.ptm("dropdownIcon"))}}function K2(t,n){if(t&1&&(j(),Z(0,"svg",17)),t&2){let e=u(4);d("pBind",e.ptm("dropdownIcon"))}}function Y2(t,n){}function Z2(t,n){t&1&&_(0,Y2,0,0,"ng-template")}function J2(t,n){if(t&1&&(ne(0),_(1,K2,1,1,"svg",16)(2,Z2,1,0,null,12),ie()),t&2){let e=u(3);f(),d("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),f(),d("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function X2(t,n){if(t&1){let e=te();k(0,"button",13),Q("click",function(o){w(e),u();let r=kt(1),a=u();return C(a.onButtonClick(o,r))}),_(1,W2,1,2,"span",14)(2,J2,3,2,"ng-container",6),x()}if(t&2){let e=u(2);I(e.cx("dropdown")),d("disabled",e.$disabled())("pBind",e.ptm("dropdown")),Y("aria-label",e.iconButtonAriaLabel)("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.panelId:null),f(),d("ngIf",e.icon),f(),d("ngIf",!e.icon)}}function eT(t,n){if(t&1){let e=te();j(),k(0,"svg",21),Q("click",function(o){w(e);let r=u(3);return C(r.onButtonClick(o))}),x()}if(t&2){let e=u(3);I(e.cx("inputIcon")),d("pBind",e.ptm("inputIcon"))}}function tT(t,n){t&1&&J(0)}function nT(t,n){if(t&1&&(ne(0),k(1,"span",18),_(2,eT,1,3,"svg",19)(3,tT,1,0,"ng-container",20),x(),ie()),t&2){let e=u(2);f(),I(e.cx("inputIconContainer")),d("pBind",e.ptm("inputIconContainer")),f(),d("ngIf",!e.inputIconTemplate&&!e._inputIconTemplate),f(),d("ngTemplateOutlet",e.inputIconTemplate||e._inputIconTemplate)("ngTemplateOutletContext",de(6,B2,e.onButtonClick.bind(e)))}}function iT(t,n){if(t&1){let e=te();k(0,"input",5,0),Q("focus",function(o){w(e);let r=u();return C(r.onInputFocus(o))})("keydown",function(o){w(e);let r=u();return C(r.onInputKeydown(o))})("click",function(){w(e);let o=u();return C(o.onInputClick())})("blur",function(o){w(e);let r=u();return C(r.onInputBlur(o))})("input",function(o){w(e);let r=u();return C(r.onUserInput(o))}),x(),_(2,$2,3,2,"ng-container",6)(3,X2,3,9,"button",7)(4,nT,4,8,"ng-container",6)}if(t&2){let e=u();I(e.cn(e.cx("pcInputText"),e.inputStyleClass)),d("pSize",e.size())("value",e.inputFieldValue)("ngStyle",e.inputStyle)("pAutoFocus",e.autofocus)("variant",e.$variant())("fluid",e.hasFluid)("invalid",e.invalid())("pt",e.ptm("pcInputText")),Y("size",e.inputSize())("id",e.inputId)("name",e.name())("aria-required",e.required())("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.panelId:null)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("required",e.required()?"":void 0)("readonly",e.readonlyInput?"":void 0)("disabled",e.$disabled()?"":void 0)("placeholder",e.placeholder)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null),f(2),d("ngIf",e.showClear&&!e.$disabled()&&(e.inputfieldViewChild==null||e.inputfieldViewChild.nativeElement==null?null:e.inputfieldViewChild.nativeElement.value)),f(),d("ngIf",e.showIcon&&e.iconDisplay==="button"),f(),d("ngIf",e.iconDisplay==="input"&&e.showIcon)}}function oT(t,n){t&1&&J(0)}function rT(t,n){t&1&&(j(),Z(0,"svg",30))}function aT(t,n){}function sT(t,n){t&1&&_(0,aT,0,0,"ng-template")}function lT(t,n){if(t&1&&(k(0,"span"),_(1,sT,1,0,null,12),x()),t&2){let e=u(5);f(),d("ngTemplateOutlet",e.previousIconTemplate||e._previousIconTemplate)}}function cT(t,n){if(t&1&&_(0,rT,1,0,"svg",29)(1,lT,2,1,"span",6),t&2){let e=u(4);d("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate),f(),d("ngIf",e.previousIconTemplate||e._previousIconTemplate)}}function dT(t,n){if(t&1){let e=te();k(0,"button",31),Q("click",function(o){w(e);let r=u(4);return C(r.switchToMonthView(o))})("keydown",function(o){w(e);let r=u(4);return C(r.onContainerButtonKeydown(o))}),oe(1),x()}if(t&2){let e=u().$implicit,i=u(3);I(i.cx("selectMonth")),d("pBind",i.ptm("selectMonth")),Y("disabled",i.switchViewButtonDisabled()?"":void 0)("aria-label",i.getTranslation("chooseMonth"))("data-pc-group-section","navigator"),f(),ft(" ",i.getMonthName(e.month)," ")}}function uT(t,n){if(t&1){let e=te();k(0,"button",31),Q("click",function(o){w(e);let r=u(4);return C(r.switchToYearView(o))})("keydown",function(o){w(e);let r=u(4);return C(r.onContainerButtonKeydown(o))}),oe(1),x()}if(t&2){let e=u().$implicit,i=u(3);I(i.cx("selectYear")),d("pBind",i.ptm("selectYear")),Y("disabled",i.switchViewButtonDisabled()?"":void 0)("aria-label",i.getTranslation("chooseYear"))("data-pc-group-section","navigator"),f(),ft(" ",i.getYear(e)," ")}}function pT(t,n){if(t&1&&(ne(0),oe(1),ie()),t&2){let e=u(5);f(),ia("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1])}}function fT(t,n){t&1&&J(0)}function hT(t,n){if(t&1&&(k(0,"span",18),_(1,pT,2,2,"ng-container",6)(2,fT,1,0,"ng-container",20),x()),t&2){let e=u(4);I(e.cx("decade")),d("pBind",e.ptm("decade")),f(),d("ngIf",!e.decadeTemplate&&!e._decadeTemplate),f(),d("ngTemplateOutlet",e.decadeTemplate||e._decadeTemplate)("ngTemplateOutletContext",de(6,Bc,e.yearPickerValues))}}function mT(t,n){t&1&&(j(),Z(0,"svg",33))}function gT(t,n){}function bT(t,n){t&1&&_(0,gT,0,0,"ng-template")}function _T(t,n){if(t&1&&(ne(0),_(1,bT,1,0,null,12),ie()),t&2){let e=u(5);f(),d("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function yT(t,n){if(t&1&&_(0,mT,1,0,"svg",32)(1,_T,2,1,"ng-container",6),t&2){let e=u(4);d("ngIf",!e.nextIconTemplate&&!e._nextIconTemplate),f(),d("ngIf",e.nextIconTemplate||e._nextIconTemplate)}}function vT(t,n){if(t&1&&(k(0,"th",18)(1,"span",18),oe(2),x()()),t&2){let e=u(5);I(e.cx("weekHeader")),d("pBind",e.ptm("weekHeader")),f(),d("pBind",e.ptm("weekHeaderLabel")),f(),Ue(e.getTranslation("weekHeader"))}}function wT(t,n){if(t&1&&(k(0,"th",37)(1,"span",18),oe(2),x()()),t&2){let e=n.$implicit,i=u(5);I(i.cx("weekDayCell")),d("pBind",i.ptm("weekDayCell")),f(),I(i.cx("weekDay")),d("pBind",i.ptm("weekDay")),f(),Ue(e)}}function CT(t,n){if(t&1&&(k(0,"td",18)(1,"span",18),oe(2),x()()),t&2){let e=u().index,i=u(2).$implicit,o=u(3);I(o.cx("weekNumber")),d("pBind",o.ptm("weekNumber")),f(),I(o.cx("weekLabelContainer")),d("pBind",o.ptm("weekLabelContainer")),f(),ft(" ",i.weekNumbers[e]," ")}}function xT(t,n){if(t&1&&(ne(0),oe(1),ie()),t&2){let e=u(2).$implicit;f(),Ue(e.day)}}function kT(t,n){t&1&&J(0)}function TT(t,n){if(t&1&&(ne(0),_(1,kT,1,0,"ng-container",20),ie()),t&2){let e=u(2).$implicit,i=u(6);f(),d("ngTemplateOutlet",i.dateTemplate||i._dateTemplate)("ngTemplateOutletContext",de(2,Bc,e))}}function ST(t,n){t&1&&J(0)}function IT(t,n){if(t&1&&(ne(0),_(1,ST,1,0,"ng-container",20),ie()),t&2){let e=u(2).$implicit,i=u(6);f(),d("ngTemplateOutlet",i.disabledDateTemplate||i._disabledDateTemplate)("ngTemplateOutletContext",de(2,Bc,e))}}function ET(t,n){if(t&1&&(k(0,"div",40),oe(1),x()),t&2){let e=u(2).$implicit;f(),ft(" ",e.day," ")}}function MT(t,n){if(t&1){let e=te();ne(0),k(1,"span",38),Q("click",function(o){w(e);let r=u().$implicit,a=u(6);return C(a.onDateSelect(o,r))})("keydown",function(o){w(e);let r=u().$implicit,a=u(3).index,s=u(3);return C(s.onDateCellKeydown(o,r,a))}),_(2,xT,2,1,"ng-container",6)(3,TT,2,4,"ng-container",6)(4,IT,2,4,"ng-container",6),x(),_(5,ET,2,1,"div",39),ie()}if(t&2){let e=u().$implicit,i=u(6);f(),d("ngClass",i.dayClass(e))("pBind",i.ptm("day")),Y("data-date",i.formatDateKey(i.formatDateMetaToDate(e))),f(),d("ngIf",!i.dateTemplate&&!i._dateTemplate&&(e.selectable||!i.disabledDateTemplate&&!i._disabledDateTemplate)),f(),d("ngIf",e.selectable||!i.disabledDateTemplate&&!i._disabledDateTemplate),f(),d("ngIf",!e.selectable),f(),d("ngIf",i.isSelected(e))}}function DT(t,n){if(t&1&&(k(0,"td",18),_(1,MT,6,7,"ng-container",6),x()),t&2){let e=n.$implicit,i=u(6);I(i.cx("dayCell",de(5,N2,e))),d("pBind",i.ptm("dayCell")),Y("aria-label",e.day),f(),d("ngIf",e.otherMonth?i.showOtherMonths:!0)}}function OT(t,n){if(t&1&&(k(0,"tr",18),_(1,CT,3,7,"td",23)(2,DT,2,7,"td",24),x()),t&2){let e=n.$implicit,i=u(5);d("pBind",i.ptm("tableBodyRow")),f(),d("ngIf",i.showWeek),f(),d("ngForOf",e)}}function PT(t,n){if(t&1&&(k(0,"table",34)(1,"thead",18)(2,"tr",18),_(3,vT,3,5,"th",23)(4,wT,3,7,"th",35),x()(),k(5,"tbody",18),_(6,OT,3,3,"tr",36),x()()),t&2){let e=u().$implicit,i=u(3);I(i.cx("dayView")),d("pBind",i.ptm("table")),f(),d("pBind",i.ptm("tableHeader")),f(),d("pBind",i.ptm("tableHeaderRow")),f(),d("ngIf",i.showWeek),f(),d("ngForOf",i.weekDays),f(),d("pBind",i.ptm("tableBody")),f(),d("ngForOf",e.dates)}}function FT(t,n){if(t&1){let e=te();k(0,"div",18)(1,"div",18)(2,"p-button",25),Q("keydown",function(o){w(e);let r=u(3);return C(r.onContainerButtonKeydown(o))})("onClick",function(o){w(e);let r=u(3);return C(r.onPrevButtonClick(o))}),_(3,cT,2,2,"ng-template",null,2,Me),x(),k(5,"div",18),_(6,dT,2,7,"button",26)(7,uT,2,7,"button",26)(8,hT,3,8,"span",23),x(),k(9,"p-button",27),Q("keydown",function(o){w(e);let r=u(3);return C(r.onContainerButtonKeydown(o))})("onClick",function(o){w(e);let r=u(3);return C(r.onNextButtonClick(o))}),_(10,yT,2,2,"ng-template",null,2,Me),x()(),_(12,PT,7,9,"table",28),x()}if(t&2){let e=n.index,i=u(3);I(i.cx("calendar")),d("pBind",i.ptm("calendar")),f(),I(i.cx("header")),d("pBind",i.ptm("header")),f(),d("styleClass",i.cx("pcPrevButton"))("ngStyle",de(23,y0,e===0?"visible":"hidden"))("ariaLabel",i.prevIconAriaLabel)("pt",i.ptm("pcPrevButton")),Y("data-pc-group-section","navigator"),f(3),I(i.cx("title")),d("pBind",i.ptm("title")),f(),d("ngIf",i.currentView==="date"),f(),d("ngIf",i.currentView!=="year"),f(),d("ngIf",i.currentView==="year"),f(),d("styleClass",i.cx("pcNextButton"))("ngStyle",de(25,y0,e===i.months.length-1?"visible":"hidden"))("ariaLabel",i.nextIconAriaLabel)("pt",i.ptm("pcNextButton")),Y("data-pc-group-section","navigator"),f(3),d("ngIf",i.currentView==="date")}}function RT(t,n){if(t&1&&(k(0,"div",40),oe(1),x()),t&2){let e=u().$implicit;f(),ft(" ",e," ")}}function VT(t,n){if(t&1){let e=te();k(0,"span",42),Q("click",function(o){let r=w(e).index,a=u(4);return C(a.onMonthSelect(o,r))})("keydown",function(o){let r=w(e).index,a=u(4);return C(a.onMonthCellKeydown(o,r))}),oe(1),_(2,RT,2,1,"div",39),x()}if(t&2){let e=n.$implicit,i=n.index,o=u(4);I(o.cx("month",at(5,z2,e,i))),d("pBind",o.ptm("month")),f(),ft(" ",e," "),f(),d("ngIf",o.isMonthSelected(i))}}function BT(t,n){if(t&1&&(k(0,"div",18),_(1,VT,3,8,"span",41),x()),t&2){let e=u(3);I(e.cx("monthView")),d("pBind",e.ptm("monthView")),f(),d("ngForOf",e.monthPickerValues())}}function AT(t,n){if(t&1&&(k(0,"div",40),oe(1),x()),t&2){let e=u().$implicit;f(),ft(" ",e," ")}}function LT(t,n){if(t&1){let e=te();k(0,"span",42),Q("click",function(o){let r=w(e).$implicit,a=u(4);return C(a.onYearSelect(o,r))})("keydown",function(o){let r=w(e).$implicit,a=u(4);return C(a.onYearCellKeydown(o,r))}),oe(1),_(2,AT,2,1,"div",39),x()}if(t&2){let e=n.$implicit,i=u(4);I(i.cx("year",de(5,j2,e))),d("pBind",i.ptm("year")),f(),ft(" ",e," "),f(),d("ngIf",i.isYearSelected(e))}}function NT(t,n){if(t&1&&(k(0,"div",18),_(1,LT,3,7,"span",41),x()),t&2){let e=u(3);I(e.cx("yearView")),d("pBind",e.ptm("yearView")),f(),d("ngForOf",e.yearPickerValues())}}function zT(t,n){if(t&1&&(ne(0),k(1,"div",18),_(2,FT,13,27,"div",24),x(),_(3,BT,2,4,"div",23)(4,NT,2,4,"div",23),ie()),t&2){let e=u(2);f(),I(e.cx("calendarContainer")),d("pBind",e.ptm("calendarContainer")),f(),d("ngForOf",e.months),f(),d("ngIf",e.currentView==="month"),f(),d("ngIf",e.currentView==="year")}}function jT(t,n){if(t&1&&(j(),Z(0,"svg",46)),t&2){let e=u(4);d("pBind",e.ptm("pcIncrementButton").icon)}}function HT(t,n){}function QT(t,n){t&1&&_(0,HT,0,0,"ng-template")}function qT(t,n){if(t&1&&_(0,jT,1,1,"svg",45)(1,QT,1,0,null,12),t&2){let e=u(3);d("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),f(),d("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function UT(t,n){t&1&&(ne(0),oe(1,"0"),ie())}function GT(t,n){if(t&1&&(j(),Z(0,"svg",48)),t&2){let e=u(4);d("pBind",e.ptm("pcDecrementButton").icon)}}function $T(t,n){}function WT(t,n){t&1&&_(0,$T,0,0,"ng-template")}function KT(t,n){if(t&1&&_(0,GT,1,1,"svg",47)(1,WT,1,0,null,12),t&2){let e=u(3);d("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),f(),d("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function YT(t,n){if(t&1&&(j(),Z(0,"svg",46)),t&2){let e=u(4);d("pBind",e.ptm("pcIncrementButton").icon)}}function ZT(t,n){}function JT(t,n){t&1&&_(0,ZT,0,0,"ng-template")}function XT(t,n){if(t&1&&_(0,YT,1,1,"svg",45)(1,JT,1,0,null,12),t&2){let e=u(3);d("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),f(),d("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function eS(t,n){t&1&&(ne(0),oe(1,"0"),ie())}function tS(t,n){if(t&1&&(j(),Z(0,"svg",48)),t&2){let e=u(4);d("pBind",e.ptm("pcDecrementButton").icon)}}function nS(t,n){}function iS(t,n){t&1&&_(0,nS,0,0,"ng-template")}function oS(t,n){if(t&1&&_(0,tS,1,1,"svg",47)(1,iS,1,0,null,12),t&2){let e=u(3);d("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),f(),d("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function rS(t,n){if(t&1&&(k(0,"div",18)(1,"span",18),oe(2),x()()),t&2){let e=u(3);I(e.cx("separator")),d("pBind",e.ptm("separatorContainer")),f(),d("pBind",e.ptm("separator")),f(),Ue(e.timeSeparator)}}function aS(t,n){if(t&1&&(j(),Z(0,"svg",46)),t&2){let e=u(5);d("pBind",e.ptm("pcIncrementButton").icon)}}function sS(t,n){}function lS(t,n){t&1&&_(0,sS,0,0,"ng-template")}function cS(t,n){if(t&1&&_(0,aS,1,1,"svg",45)(1,lS,1,0,null,12),t&2){let e=u(4);d("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),f(),d("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function dS(t,n){t&1&&(ne(0),oe(1,"0"),ie())}function uS(t,n){if(t&1&&(j(),Z(0,"svg",48)),t&2){let e=u(5);d("pBind",e.ptm("pcDecrementButton").icon)}}function pS(t,n){}function fS(t,n){t&1&&_(0,pS,0,0,"ng-template")}function hS(t,n){if(t&1&&_(0,uS,1,1,"svg",47)(1,fS,1,0,null,12),t&2){let e=u(4);d("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),f(),d("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function mS(t,n){if(t&1){let e=te();k(0,"div",18)(1,"p-button",43),Q("keydown",function(o){w(e);let r=u(3);return C(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){w(e);let r=u(3);return C(r.incrementSecond(o))})("keydown.space",function(o){w(e);let r=u(3);return C(r.incrementSecond(o))})("mousedown",function(o){w(e);let r=u(3);return C(r.onTimePickerElementMouseDown(o,2,1))})("mouseup",function(o){w(e);let r=u(3);return C(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){w(e);let r=u(3);return C(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){w(e);let r=u(3);return C(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){w(e);let o=u(3);return C(o.onTimePickerElementMouseLeave())}),_(2,cS,2,2,"ng-template",null,2,Me),x(),k(4,"span",18),_(5,dS,2,0,"ng-container",6),oe(6),x(),k(7,"p-button",43),Q("keydown",function(o){w(e);let r=u(3);return C(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){w(e);let r=u(3);return C(r.decrementSecond(o))})("keydown.space",function(o){w(e);let r=u(3);return C(r.decrementSecond(o))})("mousedown",function(o){w(e);let r=u(3);return C(r.onTimePickerElementMouseDown(o,2,-1))})("mouseup",function(o){w(e);let r=u(3);return C(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){w(e);let r=u(3);return C(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){w(e);let r=u(3);return C(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){w(e);let o=u(3);return C(o.onTimePickerElementMouseLeave())}),_(8,hS,2,2,"ng-template",null,2,Me),x()()}if(t&2){let e=u(3);I(e.cx("secondPicker")),d("pBind",e.ptm("secondPicker")),f(),d("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),Y("aria-label",e.getTranslation("nextSecond"))("data-pc-group-section","timepickerbutton"),f(3),d("pBind",e.ptm("second")),f(),d("ngIf",e.currentSecond<10),f(),Ue(e.currentSecond),f(),d("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),Y("aria-label",e.getTranslation("prevSecond"))("data-pc-group-section","timepickerbutton")}}function gS(t,n){if(t&1&&(k(0,"div",18)(1,"span",18),oe(2),x()()),t&2){let e=u(3);I(e.cx("separator")),d("pBind",e.ptm("separatorContainer")),f(),d("pBind",e.ptm("separator")),f(),Ue(e.timeSeparator)}}function bS(t,n){if(t&1&&(j(),Z(0,"svg",46)),t&2){let e=u(5);d("pBind",e.ptm("pcIncrementButton").icon)}}function _S(t,n){}function yS(t,n){t&1&&_(0,_S,0,0,"ng-template")}function vS(t,n){if(t&1&&_(0,bS,1,1,"svg",45)(1,yS,1,0,null,12),t&2){let e=u(4);d("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),f(),d("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function wS(t,n){if(t&1&&(j(),Z(0,"svg",48)),t&2){let e=u(5);d("pBind",e.ptm("pcDecrementButton").icon)}}function CS(t,n){}function xS(t,n){t&1&&_(0,CS,0,0,"ng-template")}function kS(t,n){if(t&1&&_(0,wS,1,1,"svg",47)(1,xS,1,0,null,12),t&2){let e=u(4);d("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),f(),d("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function TS(t,n){if(t&1){let e=te();k(0,"div",18)(1,"p-button",49),Q("keydown",function(o){w(e);let r=u(3);return C(r.onContainerButtonKeydown(o))})("onClick",function(o){w(e);let r=u(3);return C(r.toggleAMPM(o))})("keydown.enter",function(o){w(e);let r=u(3);return C(r.toggleAMPM(o))}),_(2,vS,2,2,"ng-template",null,2,Me),x(),k(4,"span",18),oe(5),x(),k(6,"p-button",50),Q("keydown",function(o){w(e);let r=u(3);return C(r.onContainerButtonKeydown(o))})("click",function(o){w(e);let r=u(3);return C(r.toggleAMPM(o))})("keydown.enter",function(o){w(e);let r=u(3);return C(r.toggleAMPM(o))}),_(7,kS,2,2,"ng-template",null,2,Me),x()()}if(t&2){let e=u(3);I(e.cx("ampmPicker")),d("pBind",e.ptm("ampmPicker")),f(),d("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),Y("aria-label",e.getTranslation("am"))("data-pc-group-section","timepickerbutton"),f(3),d("pBind",e.ptm("ampm")),f(),Ue(e.pm?"PM":"AM"),f(),d("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),Y("aria-label",e.getTranslation("pm"))("data-pc-group-section","timepickerbutton")}}function SS(t,n){if(t&1){let e=te();k(0,"div",18)(1,"div",18)(2,"p-button",43),Q("keydown",function(o){w(e);let r=u(2);return C(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){w(e);let r=u(2);return C(r.incrementHour(o))})("keydown.space",function(o){w(e);let r=u(2);return C(r.incrementHour(o))})("mousedown",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseDown(o,0,1))})("mouseup",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){w(e);let o=u(2);return C(o.onTimePickerElementMouseLeave())}),_(3,qT,2,2,"ng-template",null,2,Me),x(),k(5,"span",18),_(6,UT,2,0,"ng-container",6),oe(7),x(),k(8,"p-button",43),Q("keydown",function(o){w(e);let r=u(2);return C(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){w(e);let r=u(2);return C(r.decrementHour(o))})("keydown.space",function(o){w(e);let r=u(2);return C(r.decrementHour(o))})("mousedown",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseDown(o,0,-1))})("mouseup",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){w(e);let o=u(2);return C(o.onTimePickerElementMouseLeave())}),_(9,KT,2,2,"ng-template",null,2,Me),x()(),k(11,"div",44)(12,"span",18),oe(13),x()(),k(14,"div",18)(15,"p-button",43),Q("keydown",function(o){w(e);let r=u(2);return C(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){w(e);let r=u(2);return C(r.incrementMinute(o))})("keydown.space",function(o){w(e);let r=u(2);return C(r.incrementMinute(o))})("mousedown",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseDown(o,1,1))})("mouseup",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){w(e);let o=u(2);return C(o.onTimePickerElementMouseLeave())}),_(16,XT,2,2,"ng-template",null,2,Me),x(),k(18,"span",18),_(19,eS,2,0,"ng-container",6),oe(20),x(),k(21,"p-button",43),Q("keydown",function(o){w(e);let r=u(2);return C(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){w(e);let r=u(2);return C(r.decrementMinute(o))})("keydown.space",function(o){w(e);let r=u(2);return C(r.decrementMinute(o))})("mousedown",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseDown(o,1,-1))})("mouseup",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){w(e);let r=u(2);return C(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){w(e);let o=u(2);return C(o.onTimePickerElementMouseLeave())}),_(22,oS,2,2,"ng-template",null,2,Me),x()(),_(24,rS,3,5,"div",23)(25,mS,10,14,"div",23)(26,gS,3,5,"div",23)(27,TS,9,13,"div",23),x()}if(t&2){let e=u(2);I(e.cx("timePicker")),d("pBind",e.ptm("timePicker")),f(),I(e.cx("hourPicker")),d("pBind",e.ptm("hourPicker")),f(),d("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),Y("aria-label",e.getTranslation("nextHour"))("data-pc-group-section","timepickerbutton"),f(3),d("pBind",e.ptm("hour")),f(),d("ngIf",e.currentHour<10),f(),Ue(e.currentHour),f(),d("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),Y("aria-label",e.getTranslation("prevHour"))("data-pc-group-section","timepickerbutton"),f(3),d("pBind",e.ptm("separatorContainer")),f(),d("pBind",e.ptm("separator")),f(),Ue(e.timeSeparator),f(),I(e.cx("minutePicker")),d("pBind",e.ptm("minutePicker")),f(),d("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),Y("aria-label",e.getTranslation("nextMinute"))("data-pc-group-section","timepickerbutton"),f(3),d("pBind",e.ptm("minute")),f(),d("ngIf",e.currentMinute<10),f(),Ue(e.currentMinute),f(),d("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),Y("aria-label",e.getTranslation("prevMinute"))("data-pc-group-section","timepickerbutton"),f(3),d("ngIf",e.showSeconds),f(),d("ngIf",e.showSeconds),f(),d("ngIf",e.hourFormat=="12"),f(),d("ngIf",e.hourFormat=="12")}}function IS(t,n){t&1&&J(0)}function ES(t,n){if(t&1&&_(0,IS,1,0,"ng-container",20),t&2){let e=u(3);d("ngTemplateOutlet",e.buttonBarTemplate||e._buttonBarTemplate)("ngTemplateOutletContext",at(2,H2,e.onTodayButtonClick.bind(e),e.onClearButtonClick.bind(e)))}}function MS(t,n){if(t&1){let e=te();k(0,"p-button",51),Q("keydown",function(o){w(e);let r=u(3);return C(r.onContainerButtonKeydown(o))})("onClick",function(o){w(e);let r=u(3);return C(r.onTodayButtonClick(o))}),x(),k(1,"p-button",51),Q("keydown",function(o){w(e);let r=u(3);return C(r.onContainerButtonKeydown(o))})("onClick",function(o){w(e);let r=u(3);return C(r.onClearButtonClick(o))}),x()}if(t&2){let e=u(3);d("styleClass",e.cx("pcTodayButton"))("label",e.getTranslation("today"))("ngClass",e.todayButtonStyleClass)("pt",e.ptm("pcTodayButton")),Y("data-pc-group-section","button"),f(),d("styleClass",e.cx("pcClearButton"))("label",e.getTranslation("clear"))("ngClass",e.clearButtonStyleClass)("pt",e.ptm("pcClearButton")),Y("data-pc-group-section","button")}}function DS(t,n){if(t&1&&(k(0,"div",18),Re(1,ES,1,5,"ng-container")(2,MS,2,10),x()),t&2){let e=u(2);I(e.cx("buttonbar")),d("pBind",e.ptm("buttonbar")),f(),Ve(e.buttonBarTemplate||e._buttonBarTemplate?1:2)}}function OS(t,n){t&1&&J(0)}function PS(t,n){if(t&1){let e=te();k(0,"div",22,1),Q("@overlayAnimation.start",function(o){w(e);let r=u();return C(r.onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){w(e);let r=u();return C(r.onOverlayAnimationDone(o))})("click",function(o){w(e);let r=u();return C(r.onOverlayClick(o))}),zt(2),_(3,oT,1,0,"ng-container",12)(4,zT,5,6,"ng-container",6)(5,SS,28,38,"div",23)(6,DS,3,4,"div",23),zt(7,1),_(8,OS,1,0,"ng-container",12),x()}if(t&2){let e=u();I(e.cn(e.cx("panel"),e.panelStyleClass)),d("ngStyle",e.panelStyle)("@overlayAnimation",de(18,L2,at(15,A2,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",e.inline===!0)("pBind",e.ptm("panel")),Y("id",e.panelId)("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),f(3),d("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),f(),d("ngIf",!e.timeOnly),f(),d("ngIf",(e.showTime||e.timeOnly)&&e.currentView==="date"),f(),d("ngIf",e.showButtonBar),f(2),d("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var FS=` - ${_0} +`;var PW=["date"],AW=["header"],NW=["footer"],FW=["disabledDate"],LW=["decade"],BW=["previousicon"],VW=["nexticon"],jW=["triggericon"],zW=["clearicon"],HW=["decrementicon"],$W=["incrementicon"],UW=["inputicon"],WW=["buttonbar"],GW=["inputfield"],qW=["contentWrapper"],QW=[[["p-header"]],[["p-footer"]]],KW=["p-header","p-footer"],YW=t=>({clickCallBack:t}),ZW=(t,n)=>({showTransitionParams:t,hideTransitionParams:n}),JW=t=>({value:"visible",params:t}),JR=t=>({visibility:t}),kw=t=>({$implicit:t}),XW=t=>({date:t}),eG=(t,n)=>({month:t,index:n}),tG=t=>({year:t}),nG=(t,n)=>({todayCallback:t,clearCallback:n});function rG(t,n){if(t&1){let e=se();G(),E(0,"svg",10),q("click",function(){S(e);let i=m(3);return I(i.clear())}),T()}if(t&2){let e=m(3);k(e.cx("clearIcon")),h("pBind",e.ptm("inputIcon"))}}function iG(t,n){}function oG(t,n){t&1&&C(0,iG,0,0,"ng-template")}function sG(t,n){if(t&1){let e=se();E(0,"span",11),q("click",function(){S(e);let i=m(3);return I(i.clear())}),C(1,oG,1,0,null,12),T()}if(t&2){let e=m(3);k(e.cx("clearIcon")),h("pBind",e.ptm("inputIcon")),g(),h("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function aG(t,n){if(t&1&&(ie(0),C(1,rG,1,3,"svg",8)(2,sG,2,4,"span",9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),h("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function lG(t,n){if(t&1&&X(0,"span",15),t&2){let e=m(3);h("ngClass",e.icon)("pBind",e.ptm("dropdownIcon"))}}function cG(t,n){if(t&1&&(G(),X(0,"svg",17)),t&2){let e=m(4);h("pBind",e.ptm("dropdownIcon"))}}function dG(t,n){}function uG(t,n){t&1&&C(0,dG,0,0,"ng-template")}function pG(t,n){if(t&1&&(ie(0),C(1,cG,1,1,"svg",16)(2,uG,1,0,null,12),oe()),t&2){let e=m(3);g(),h("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),g(),h("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function fG(t,n){if(t&1){let e=se();E(0,"button",13),q("click",function(i){S(e),m();let o=pn(1),s=m();return I(s.onButtonClick(i,o))}),C(1,lG,1,2,"span",14)(2,pG,3,2,"ng-container",6),T()}if(t&2){let e=m(2);k(e.cx("dropdown")),h("disabled",e.$disabled())("pBind",e.ptm("dropdown")),J("aria-label",e.iconButtonAriaLabel)("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.panelId:null),g(),h("ngIf",e.icon),g(),h("ngIf",!e.icon)}}function hG(t,n){if(t&1){let e=se();G(),E(0,"svg",21),q("click",function(i){S(e);let o=m(3);return I(o.onButtonClick(i))}),T()}if(t&2){let e=m(3);k(e.cx("inputIcon")),h("pBind",e.ptm("inputIcon"))}}function mG(t,n){t&1&&ne(0)}function gG(t,n){if(t&1&&(ie(0),E(1,"span",18),C(2,hG,1,3,"svg",19)(3,mG,1,0,"ng-container",20),T(),oe()),t&2){let e=m(2);g(),k(e.cx("inputIconContainer")),h("pBind",e.ptm("inputIconContainer")),g(),h("ngIf",!e.inputIconTemplate&&!e._inputIconTemplate),g(),h("ngTemplateOutlet",e.inputIconTemplate||e._inputIconTemplate)("ngTemplateOutletContext",Ee(6,YW,e.onButtonClick.bind(e)))}}function yG(t,n){if(t&1){let e=se();E(0,"input",5,0),q("focus",function(i){S(e);let o=m();return I(o.onInputFocus(i))})("keydown",function(i){S(e);let o=m();return I(o.onInputKeydown(i))})("click",function(){S(e);let i=m();return I(i.onInputClick())})("blur",function(i){S(e);let o=m();return I(o.onInputBlur(i))})("input",function(i){S(e);let o=m();return I(o.onUserInput(i))}),T(),C(2,aG,3,2,"ng-container",6)(3,fG,3,9,"button",7)(4,gG,4,8,"ng-container",6)}if(t&2){let e=m();k(e.cn(e.cx("pcInputText"),e.inputStyleClass)),h("pSize",e.size())("value",e.inputFieldValue)("ngStyle",e.inputStyle)("pAutoFocus",e.autofocus)("variant",e.$variant())("fluid",e.hasFluid)("invalid",e.invalid())("pt",e.ptm("pcInputText")),J("size",e.inputSize())("id",e.inputId)("name",e.name())("aria-required",e.required())("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.panelId:null)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("required",e.required()?"":void 0)("readonly",e.readonlyInput?"":void 0)("disabled",e.$disabled()?"":void 0)("placeholder",e.placeholder)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null),g(2),h("ngIf",e.showClear&&!e.$disabled()&&(e.inputfieldViewChild==null||e.inputfieldViewChild.nativeElement==null?null:e.inputfieldViewChild.nativeElement.value)),g(),h("ngIf",e.showIcon&&e.iconDisplay==="button"),g(),h("ngIf",e.iconDisplay==="input"&&e.showIcon)}}function bG(t,n){t&1&&ne(0)}function vG(t,n){t&1&&(G(),X(0,"svg",30))}function _G(t,n){}function wG(t,n){t&1&&C(0,_G,0,0,"ng-template")}function CG(t,n){if(t&1&&(E(0,"span"),C(1,wG,1,0,null,12),T()),t&2){let e=m(5);g(),h("ngTemplateOutlet",e.previousIconTemplate||e._previousIconTemplate)}}function xG(t,n){if(t&1&&C(0,vG,1,0,"svg",29)(1,CG,2,1,"span",6),t&2){let e=m(4);h("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate),g(),h("ngIf",e.previousIconTemplate||e._previousIconTemplate)}}function TG(t,n){if(t&1){let e=se();E(0,"button",31),q("click",function(i){S(e);let o=m(4);return I(o.switchToMonthView(i))})("keydown",function(i){S(e);let o=m(4);return I(o.onContainerButtonKeydown(i))}),ce(1),T()}if(t&2){let e=m().$implicit,r=m(3);k(r.cx("selectMonth")),h("pBind",r.ptm("selectMonth")),J("disabled",r.switchViewButtonDisabled()?"":void 0)("aria-label",r.getTranslation("chooseMonth"))("data-pc-group-section","navigator"),g(),Ut(" ",r.getMonthName(e.month)," ")}}function EG(t,n){if(t&1){let e=se();E(0,"button",31),q("click",function(i){S(e);let o=m(4);return I(o.switchToYearView(i))})("keydown",function(i){S(e);let o=m(4);return I(o.onContainerButtonKeydown(i))}),ce(1),T()}if(t&2){let e=m().$implicit,r=m(3);k(r.cx("selectYear")),h("pBind",r.ptm("selectYear")),J("disabled",r.switchViewButtonDisabled()?"":void 0)("aria-label",r.getTranslation("chooseYear"))("data-pc-group-section","navigator"),g(),Ut(" ",r.getYear(e)," ")}}function SG(t,n){if(t&1&&(ie(0),ce(1),oe()),t&2){let e=m(5);g(),_l("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1])}}function IG(t,n){t&1&&ne(0)}function DG(t,n){if(t&1&&(E(0,"span",18),C(1,SG,2,2,"ng-container",6)(2,IG,1,0,"ng-container",20),T()),t&2){let e=m(4);k(e.cx("decade")),h("pBind",e.ptm("decade")),g(),h("ngIf",!e.decadeTemplate&&!e._decadeTemplate),g(),h("ngTemplateOutlet",e.decadeTemplate||e._decadeTemplate)("ngTemplateOutletContext",Ee(6,kw,e.yearPickerValues))}}function kG(t,n){t&1&&(G(),X(0,"svg",33))}function MG(t,n){}function OG(t,n){t&1&&C(0,MG,0,0,"ng-template")}function RG(t,n){if(t&1&&(ie(0),C(1,OG,1,0,null,12),oe()),t&2){let e=m(5);g(),h("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function PG(t,n){if(t&1&&C(0,kG,1,0,"svg",32)(1,RG,2,1,"ng-container",6),t&2){let e=m(4);h("ngIf",!e.nextIconTemplate&&!e._nextIconTemplate),g(),h("ngIf",e.nextIconTemplate||e._nextIconTemplate)}}function AG(t,n){if(t&1&&(E(0,"th",18)(1,"span",18),ce(2),T()()),t&2){let e=m(5);k(e.cx("weekHeader")),h("pBind",e.ptm("weekHeader")),g(),h("pBind",e.ptm("weekHeaderLabel")),g(),Ze(e.getTranslation("weekHeader"))}}function NG(t,n){if(t&1&&(E(0,"th",37)(1,"span",18),ce(2),T()()),t&2){let e=n.$implicit,r=m(5);k(r.cx("weekDayCell")),h("pBind",r.ptm("weekDayCell")),g(),k(r.cx("weekDay")),h("pBind",r.ptm("weekDay")),g(),Ze(e)}}function FG(t,n){if(t&1&&(E(0,"td",18)(1,"span",18),ce(2),T()()),t&2){let e=m().index,r=m(2).$implicit,i=m(3);k(i.cx("weekNumber")),h("pBind",i.ptm("weekNumber")),g(),k(i.cx("weekLabelContainer")),h("pBind",i.ptm("weekLabelContainer")),g(),Ut(" ",r.weekNumbers[e]," ")}}function LG(t,n){if(t&1&&(ie(0),ce(1),oe()),t&2){let e=m(2).$implicit;g(),Ze(e.day)}}function BG(t,n){t&1&&ne(0)}function VG(t,n){if(t&1&&(ie(0),C(1,BG,1,0,"ng-container",20),oe()),t&2){let e=m(2).$implicit,r=m(6);g(),h("ngTemplateOutlet",r.dateTemplate||r._dateTemplate)("ngTemplateOutletContext",Ee(2,kw,e))}}function jG(t,n){t&1&&ne(0)}function zG(t,n){if(t&1&&(ie(0),C(1,jG,1,0,"ng-container",20),oe()),t&2){let e=m(2).$implicit,r=m(6);g(),h("ngTemplateOutlet",r.disabledDateTemplate||r._disabledDateTemplate)("ngTemplateOutletContext",Ee(2,kw,e))}}function HG(t,n){if(t&1&&(E(0,"div",40),ce(1),T()),t&2){let e=m(2).$implicit;g(),Ut(" ",e.day," ")}}function $G(t,n){if(t&1){let e=se();ie(0),E(1,"span",38),q("click",function(i){S(e);let o=m().$implicit,s=m(6);return I(s.onDateSelect(i,o))})("keydown",function(i){S(e);let o=m().$implicit,s=m(3).index,a=m(3);return I(a.onDateCellKeydown(i,o,s))}),C(2,LG,2,1,"ng-container",6)(3,VG,2,4,"ng-container",6)(4,zG,2,4,"ng-container",6),T(),C(5,HG,2,1,"div",39),oe()}if(t&2){let e=m().$implicit,r=m(6);g(),h("ngClass",r.dayClass(e))("pBind",r.ptm("day")),J("data-date",r.formatDateKey(r.formatDateMetaToDate(e))),g(),h("ngIf",!r.dateTemplate&&!r._dateTemplate&&(e.selectable||!r.disabledDateTemplate&&!r._disabledDateTemplate)),g(),h("ngIf",e.selectable||!r.disabledDateTemplate&&!r._disabledDateTemplate),g(),h("ngIf",!e.selectable),g(),h("ngIf",r.isSelected(e))}}function UG(t,n){if(t&1&&(E(0,"td",18),C(1,$G,6,7,"ng-container",6),T()),t&2){let e=n.$implicit,r=m(6);k(r.cx("dayCell",Ee(5,XW,e))),h("pBind",r.ptm("dayCell")),J("aria-label",e.day),g(),h("ngIf",e.otherMonth?r.showOtherMonths:!0)}}function WG(t,n){if(t&1&&(E(0,"tr",18),C(1,FG,3,7,"td",23)(2,UG,2,7,"td",24),T()),t&2){let e=n.$implicit,r=m(5);h("pBind",r.ptm("tableBodyRow")),g(),h("ngIf",r.showWeek),g(),h("ngForOf",e)}}function GG(t,n){if(t&1&&(E(0,"table",34)(1,"thead",18)(2,"tr",18),C(3,AG,3,5,"th",23)(4,NG,3,7,"th",35),T()(),E(5,"tbody",18),C(6,WG,3,3,"tr",36),T()()),t&2){let e=m().$implicit,r=m(3);k(r.cx("dayView")),h("pBind",r.ptm("table")),g(),h("pBind",r.ptm("tableHeader")),g(),h("pBind",r.ptm("tableHeaderRow")),g(),h("ngIf",r.showWeek),g(),h("ngForOf",r.weekDays),g(),h("pBind",r.ptm("tableBody")),g(),h("ngForOf",e.dates)}}function qG(t,n){if(t&1){let e=se();E(0,"div",18)(1,"div",18)(2,"p-button",25),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.onPrevButtonClick(i))}),C(3,xG,2,2,"ng-template",null,2,at),T(),E(5,"div",18),C(6,TG,2,7,"button",26)(7,EG,2,7,"button",26)(8,DG,3,8,"span",23),T(),E(9,"p-button",27),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.onNextButtonClick(i))}),C(10,PG,2,2,"ng-template",null,2,at),T()(),C(12,GG,7,9,"table",28),T()}if(t&2){let e=n.index,r=m(3);k(r.cx("calendar")),h("pBind",r.ptm("calendar")),g(),k(r.cx("header")),h("pBind",r.ptm("header")),g(),h("styleClass",r.cx("pcPrevButton"))("ngStyle",Ee(23,JR,e===0?"visible":"hidden"))("ariaLabel",r.prevIconAriaLabel)("pt",r.ptm("pcPrevButton")),J("data-pc-group-section","navigator"),g(3),k(r.cx("title")),h("pBind",r.ptm("title")),g(),h("ngIf",r.currentView==="date"),g(),h("ngIf",r.currentView!=="year"),g(),h("ngIf",r.currentView==="year"),g(),h("styleClass",r.cx("pcNextButton"))("ngStyle",Ee(25,JR,e===r.months.length-1?"visible":"hidden"))("ariaLabel",r.nextIconAriaLabel)("pt",r.ptm("pcNextButton")),J("data-pc-group-section","navigator"),g(3),h("ngIf",r.currentView==="date")}}function QG(t,n){if(t&1&&(E(0,"div",40),ce(1),T()),t&2){let e=m().$implicit;g(),Ut(" ",e," ")}}function KG(t,n){if(t&1){let e=se();E(0,"span",42),q("click",function(i){let o=S(e).index,s=m(4);return I(s.onMonthSelect(i,o))})("keydown",function(i){let o=S(e).index,s=m(4);return I(s.onMonthCellKeydown(i,o))}),ce(1),C(2,QG,2,1,"div",39),T()}if(t&2){let e=n.$implicit,r=n.index,i=m(4);k(i.cx("month",Dt(5,eG,e,r))),h("pBind",i.ptm("month")),g(),Ut(" ",e," "),g(),h("ngIf",i.isMonthSelected(r))}}function YG(t,n){if(t&1&&(E(0,"div",18),C(1,KG,3,8,"span",41),T()),t&2){let e=m(3);k(e.cx("monthView")),h("pBind",e.ptm("monthView")),g(),h("ngForOf",e.monthPickerValues())}}function ZG(t,n){if(t&1&&(E(0,"div",40),ce(1),T()),t&2){let e=m().$implicit;g(),Ut(" ",e," ")}}function JG(t,n){if(t&1){let e=se();E(0,"span",42),q("click",function(i){let o=S(e).$implicit,s=m(4);return I(s.onYearSelect(i,o))})("keydown",function(i){let o=S(e).$implicit,s=m(4);return I(s.onYearCellKeydown(i,o))}),ce(1),C(2,ZG,2,1,"div",39),T()}if(t&2){let e=n.$implicit,r=m(4);k(r.cx("year",Ee(5,tG,e))),h("pBind",r.ptm("year")),g(),Ut(" ",e," "),g(),h("ngIf",r.isYearSelected(e))}}function XG(t,n){if(t&1&&(E(0,"div",18),C(1,JG,3,7,"span",41),T()),t&2){let e=m(3);k(e.cx("yearView")),h("pBind",e.ptm("yearView")),g(),h("ngForOf",e.yearPickerValues())}}function eq(t,n){if(t&1&&(ie(0),E(1,"div",18),C(2,qG,13,27,"div",24),T(),C(3,YG,2,4,"div",23)(4,XG,2,4,"div",23),oe()),t&2){let e=m(2);g(),k(e.cx("calendarContainer")),h("pBind",e.ptm("calendarContainer")),g(),h("ngForOf",e.months),g(),h("ngIf",e.currentView==="month"),g(),h("ngIf",e.currentView==="year")}}function tq(t,n){if(t&1&&(G(),X(0,"svg",46)),t&2){let e=m(4);h("pBind",e.ptm("pcIncrementButton").icon)}}function nq(t,n){}function rq(t,n){t&1&&C(0,nq,0,0,"ng-template")}function iq(t,n){if(t&1&&C(0,tq,1,1,"svg",45)(1,rq,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function oq(t,n){t&1&&(ie(0),ce(1,"0"),oe())}function sq(t,n){if(t&1&&(G(),X(0,"svg",48)),t&2){let e=m(4);h("pBind",e.ptm("pcDecrementButton").icon)}}function aq(t,n){}function lq(t,n){t&1&&C(0,aq,0,0,"ng-template")}function cq(t,n){if(t&1&&C(0,sq,1,1,"svg",47)(1,lq,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function dq(t,n){if(t&1&&(G(),X(0,"svg",46)),t&2){let e=m(4);h("pBind",e.ptm("pcIncrementButton").icon)}}function uq(t,n){}function pq(t,n){t&1&&C(0,uq,0,0,"ng-template")}function fq(t,n){if(t&1&&C(0,dq,1,1,"svg",45)(1,pq,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function hq(t,n){t&1&&(ie(0),ce(1,"0"),oe())}function mq(t,n){if(t&1&&(G(),X(0,"svg",48)),t&2){let e=m(4);h("pBind",e.ptm("pcDecrementButton").icon)}}function gq(t,n){}function yq(t,n){t&1&&C(0,gq,0,0,"ng-template")}function bq(t,n){if(t&1&&C(0,mq,1,1,"svg",47)(1,yq,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function vq(t,n){if(t&1&&(E(0,"div",18)(1,"span",18),ce(2),T()()),t&2){let e=m(3);k(e.cx("separator")),h("pBind",e.ptm("separatorContainer")),g(),h("pBind",e.ptm("separator")),g(),Ze(e.timeSeparator)}}function _q(t,n){if(t&1&&(G(),X(0,"svg",46)),t&2){let e=m(5);h("pBind",e.ptm("pcIncrementButton").icon)}}function wq(t,n){}function Cq(t,n){t&1&&C(0,wq,0,0,"ng-template")}function xq(t,n){if(t&1&&C(0,_q,1,1,"svg",45)(1,Cq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function Tq(t,n){t&1&&(ie(0),ce(1,"0"),oe())}function Eq(t,n){if(t&1&&(G(),X(0,"svg",48)),t&2){let e=m(5);h("pBind",e.ptm("pcDecrementButton").icon)}}function Sq(t,n){}function Iq(t,n){t&1&&C(0,Sq,0,0,"ng-template")}function Dq(t,n){if(t&1&&C(0,Eq,1,1,"svg",47)(1,Iq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function kq(t,n){if(t&1){let e=se();E(0,"div",18)(1,"p-button",43),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(3);return I(o.incrementSecond(i))})("keydown.space",function(i){S(e);let o=m(3);return I(o.incrementSecond(i))})("mousedown",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseDown(i,2,1))})("mouseup",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(3);return I(i.onTimePickerElementMouseLeave())}),C(2,xq,2,2,"ng-template",null,2,at),T(),E(4,"span",18),C(5,Tq,2,0,"ng-container",6),ce(6),T(),E(7,"p-button",43),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(3);return I(o.decrementSecond(i))})("keydown.space",function(i){S(e);let o=m(3);return I(o.decrementSecond(i))})("mousedown",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseDown(i,2,-1))})("mouseup",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(3);return I(i.onTimePickerElementMouseLeave())}),C(8,Dq,2,2,"ng-template",null,2,at),T()()}if(t&2){let e=m(3);k(e.cx("secondPicker")),h("pBind",e.ptm("secondPicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("nextSecond"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("second")),g(),h("ngIf",e.currentSecond<10),g(),Ze(e.currentSecond),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("prevSecond"))("data-pc-group-section","timepickerbutton")}}function Mq(t,n){if(t&1&&(E(0,"div",18)(1,"span",18),ce(2),T()()),t&2){let e=m(3);k(e.cx("separator")),h("pBind",e.ptm("separatorContainer")),g(),h("pBind",e.ptm("separator")),g(),Ze(e.timeSeparator)}}function Oq(t,n){if(t&1&&(G(),X(0,"svg",46)),t&2){let e=m(5);h("pBind",e.ptm("pcIncrementButton").icon)}}function Rq(t,n){}function Pq(t,n){t&1&&C(0,Rq,0,0,"ng-template")}function Aq(t,n){if(t&1&&C(0,Oq,1,1,"svg",45)(1,Pq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function Nq(t,n){if(t&1&&(G(),X(0,"svg",48)),t&2){let e=m(5);h("pBind",e.ptm("pcDecrementButton").icon)}}function Fq(t,n){}function Lq(t,n){t&1&&C(0,Fq,0,0,"ng-template")}function Bq(t,n){if(t&1&&C(0,Nq,1,1,"svg",47)(1,Lq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function Vq(t,n){if(t&1){let e=se();E(0,"div",18)(1,"p-button",49),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.toggleAMPM(i))})("keydown.enter",function(i){S(e);let o=m(3);return I(o.toggleAMPM(i))}),C(2,Aq,2,2,"ng-template",null,2,at),T(),E(4,"span",18),ce(5),T(),E(6,"p-button",50),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("click",function(i){S(e);let o=m(3);return I(o.toggleAMPM(i))})("keydown.enter",function(i){S(e);let o=m(3);return I(o.toggleAMPM(i))}),C(7,Bq,2,2,"ng-template",null,2,at),T()()}if(t&2){let e=m(3);k(e.cx("ampmPicker")),h("pBind",e.ptm("ampmPicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("am"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("ampm")),g(),Ze(e.pm?"PM":"AM"),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("pm"))("data-pc-group-section","timepickerbutton")}}function jq(t,n){if(t&1){let e=se();E(0,"div",18)(1,"div",18)(2,"p-button",43),q("keydown",function(i){S(e);let o=m(2);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(2);return I(o.incrementHour(i))})("keydown.space",function(i){S(e);let o=m(2);return I(o.incrementHour(i))})("mousedown",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseDown(i,0,1))})("mouseup",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(2);return I(i.onTimePickerElementMouseLeave())}),C(3,iq,2,2,"ng-template",null,2,at),T(),E(5,"span",18),C(6,oq,2,0,"ng-container",6),ce(7),T(),E(8,"p-button",43),q("keydown",function(i){S(e);let o=m(2);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(2);return I(o.decrementHour(i))})("keydown.space",function(i){S(e);let o=m(2);return I(o.decrementHour(i))})("mousedown",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseDown(i,0,-1))})("mouseup",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(2);return I(i.onTimePickerElementMouseLeave())}),C(9,cq,2,2,"ng-template",null,2,at),T()(),E(11,"div",44)(12,"span",18),ce(13),T()(),E(14,"div",18)(15,"p-button",43),q("keydown",function(i){S(e);let o=m(2);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(2);return I(o.incrementMinute(i))})("keydown.space",function(i){S(e);let o=m(2);return I(o.incrementMinute(i))})("mousedown",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseDown(i,1,1))})("mouseup",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(2);return I(i.onTimePickerElementMouseLeave())}),C(16,fq,2,2,"ng-template",null,2,at),T(),E(18,"span",18),C(19,hq,2,0,"ng-container",6),ce(20),T(),E(21,"p-button",43),q("keydown",function(i){S(e);let o=m(2);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(2);return I(o.decrementMinute(i))})("keydown.space",function(i){S(e);let o=m(2);return I(o.decrementMinute(i))})("mousedown",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseDown(i,1,-1))})("mouseup",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(2);return I(i.onTimePickerElementMouseLeave())}),C(22,bq,2,2,"ng-template",null,2,at),T()(),C(24,vq,3,5,"div",23)(25,kq,10,14,"div",23)(26,Mq,3,5,"div",23)(27,Vq,9,13,"div",23),T()}if(t&2){let e=m(2);k(e.cx("timePicker")),h("pBind",e.ptm("timePicker")),g(),k(e.cx("hourPicker")),h("pBind",e.ptm("hourPicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("nextHour"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("hour")),g(),h("ngIf",e.currentHour<10),g(),Ze(e.currentHour),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("prevHour"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("separatorContainer")),g(),h("pBind",e.ptm("separator")),g(),Ze(e.timeSeparator),g(),k(e.cx("minutePicker")),h("pBind",e.ptm("minutePicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("nextMinute"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("minute")),g(),h("ngIf",e.currentMinute<10),g(),Ze(e.currentMinute),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("prevMinute"))("data-pc-group-section","timepickerbutton"),g(3),h("ngIf",e.showSeconds),g(),h("ngIf",e.showSeconds),g(),h("ngIf",e.hourFormat=="12"),g(),h("ngIf",e.hourFormat=="12")}}function zq(t,n){t&1&&ne(0)}function Hq(t,n){if(t&1&&C(0,zq,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.buttonBarTemplate||e._buttonBarTemplate)("ngTemplateOutletContext",Dt(2,nG,e.onTodayButtonClick.bind(e),e.onClearButtonClick.bind(e)))}}function $q(t,n){if(t&1){let e=se();E(0,"p-button",51),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.onTodayButtonClick(i))}),T(),E(1,"p-button",51),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.onClearButtonClick(i))}),T()}if(t&2){let e=m(3);h("styleClass",e.cx("pcTodayButton"))("label",e.getTranslation("today"))("ngClass",e.todayButtonStyleClass)("pt",e.ptm("pcTodayButton")),J("data-pc-group-section","button"),g(),h("styleClass",e.cx("pcClearButton"))("label",e.getTranslation("clear"))("ngClass",e.clearButtonStyleClass)("pt",e.ptm("pcClearButton")),J("data-pc-group-section","button")}}function Uq(t,n){if(t&1&&(E(0,"div",18),rt(1,Hq,1,5,"ng-container")(2,$q,2,10),T()),t&2){let e=m(2);k(e.cx("buttonbar")),h("pBind",e.ptm("buttonbar")),g(),it(e.buttonBarTemplate||e._buttonBarTemplate?1:2)}}function Wq(t,n){t&1&&ne(0)}function Gq(t,n){if(t&1){let e=se();E(0,"div",22,1),q("@overlayAnimation.start",function(i){S(e);let o=m();return I(o.onOverlayAnimationStart(i))})("@overlayAnimation.done",function(i){S(e);let o=m();return I(o.onOverlayAnimationDone(i))})("click",function(i){S(e);let o=m();return I(o.onOverlayClick(i))}),Ot(2),C(3,bG,1,0,"ng-container",12)(4,eq,5,6,"ng-container",6)(5,jq,28,38,"div",23)(6,Uq,3,4,"div",23),Ot(7,1),C(8,Wq,1,0,"ng-container",12),T()}if(t&2){let e=m();k(e.cn(e.cx("panel"),e.panelStyleClass)),h("ngStyle",e.panelStyle)("@overlayAnimation",Ee(18,JW,Dt(15,ZW,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",e.inline===!0)("pBind",e.ptm("panel")),J("id",e.panelId)("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),g(3),h("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),g(),h("ngIf",!e.timeOnly),g(),h("ngIf",(e.showTime||e.timeOnly)&&e.currentView==="date"),g(),h("ngIf",e.showButtonBar),g(2),h("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var qq=` + ${ZR} /* For PrimeNG */ .p-datepicker.ng-invalid.ng-dirty .p-inputtext { border-color: dt('inputtext.invalid.border.color'); } -`,RS={root:()=>({position:"relative"})},VS={root:({instance:t})=>["p-datepicker p-component p-inputwrapper",{"p-invalid":t.invalid(),"p-datepicker-fluid":t.hasFluid,"p-inputwrapper-filled":t.$filled(),"p-variant-filled":t.$variant()==="filled","p-inputwrapper-focus":t.focus||t.overlayVisible,"p-focus":t.focus||t.overlayVisible}],pcInputText:"p-datepicker-input",dropdown:"p-datepicker-dropdown",inputIconContainer:"p-datepicker-input-icon-container",inputIcon:"p-datepicker-input-icon",panel:({instance:t})=>["p-datepicker-panel p-component",{"p-datepicker-panel p-component":!0,"p-datepicker-panel-inline":t.inline,"p-disabled":t.$disabled(),"p-datepicker-timeonly":t.timeOnly}],calendarContainer:"p-datepicker-calendar-container",calendar:"p-datepicker-calendar",header:"p-datepicker-header",pcPrevButton:"p-datepicker-prev-button",title:"p-datepicker-title",selectMonth:"p-datepicker-select-month",selectYear:"p-datepicker-select-year",decade:"p-datepicker-decade",pcNextButton:"p-datepicker-next-button",dayView:"p-datepicker-day-view",weekHeader:"p-datepicker-weekheader p-disabled",weekNumber:"p-datepicker-weeknumber",weekLabelContainer:"p-datepicker-weeklabel-container p-disabled",weekDayCell:"p-datepicker-weekday-cell",weekDay:"p-datepicker-weekday",dayCell:({date:t})=>["p-datepicker-day-cell",{"p-datepicker-other-month":t.otherMonth,"p-datepicker-today":t.today}],day:({instance:t,date:n})=>{let e="";if(t.isRangeSelection()&&t.isSelected(n)&&n.selectable){let i=t.value[0],o=t.value[1],r=i&&n.year===i.getFullYear()&&n.month===i.getMonth()&&n.day===i.getDate(),a=o&&n.year===o.getFullYear()&&n.month===o.getMonth()&&n.day===o.getDate();e=r||a?"p-datepicker-day-selected":"p-datepicker-day-selected-range"}return{"p-datepicker-day":!0,"p-datepicker-day-selected":!t.isRangeSelection()&&t.isSelected(n)&&n.selectable,"p-disabled":t.$disabled()||!n.selectable,[e]:!0}},monthView:"p-datepicker-month-view",month:({instance:t,index:n})=>["p-datepicker-month",{"p-datepicker-month-selected":t.isMonthSelected(n),"p-disabled":t.isMonthDisabled(n)}],yearView:"p-datepicker-year-view",year:({instance:t,year:n})=>["p-datepicker-year",{"p-datepicker-year-selected":t.isYearSelected(n),"p-disabled":t.isYearDisabled(n)}],timePicker:"p-datepicker-time-picker",hourPicker:"p-datepicker-hour-picker",pcIncrementButton:"p-datepicker-increment-button",pcDecrementButton:"p-datepicker-decrement-button",separator:"p-datepicker-separator",minutePicker:"p-datepicker-minute-picker",secondPicker:"p-datepicker-second-picker",ampmPicker:"p-datepicker-ampm-picker",buttonbar:"p-datepicker-buttonbar",pcTodayButton:"p-datepicker-today-button",pcClearButton:"p-datepicker-clear-button",clearIcon:"p-datepicker-clear-icon"},v0=(()=>{class t extends Ge{name="datepicker";style=FS;classes=VS;inlineStyles=RS;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var BS={provide:Ot,useExisting:_t(()=>C0),multi:!0},w0=new we("DATEPICKER_INSTANCE"),C0=(()=>{class t extends Lo{zone;overlayService;bindDirectiveInstance=G(X,{self:!0});$pcDatePicker=G(w0,{optional:!0,skipSelf:!0})??void 0;iconDisplay="button";styleClass;inputStyle;inputId;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;get dateFormat(){return this._dateFormat}set dateFormat(e){this._dateFormat=e,this.initialized&&this.updateInputfield()}multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;readonlyInput;shortYearCutoff="+10";get hourFormat(){return this._hourFormat}set hourFormat(e){this._hourFormat=e,this.initialized&&this.updateInputfield()}timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass;clearButtonStyleClass;autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get showTime(){return this._showTime}set showTime(e){this._showTime=e,this.currentHour===void 0&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){let i=e||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}appendTo=ue(void 0);onFocus=new H;onBlur=new H;onClose=new H;onSelect=new H;onClear=new H;onInput=new H;onTodayClick=new H;onClearClick=new H;onMonthChange=new H;onYearChange=new H;onClickOutside=new H;onShow=new H;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}_componentStyle=G(v0);contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;p;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;$appendTo=Be(()=>this.appendTo()||this.config.overlayAppendTo());calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;_minDate;_maxDate;_dateFormat;_hourFormat="24";_showTime;_yearRange;preventDocumentListener;dayClass(e){return this._componentStyle.classes.day({instance:this,date:e})}dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;buttonBarTemplate;_dateTemplate;_headerTemplate;_footerTemplate;_disabledDateTemplate;_decadeTemplate;_previousIconTemplate;_nextIconTemplate;_triggerIconTemplate;_clearIconTemplate;_decrementIconTemplate;_incrementIconTemplate;_inputIconTemplate;_buttonBarTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.currentView==="year"?this.getTranslation("prevDecade"):this.currentView==="month"?this.getTranslation("prevYear"):this.getTranslation("prevMonth")}get nextIconAriaLabel(){return this.currentView==="year"?this.getTranslation("nextDecade"):this.currentView==="month"?this.getTranslation("nextYear"):this.getTranslation("nextMonth")}constructor(e,i){super(),this.zone=e,this.overlayService=i,this.window=this.document.defaultView}onInit(){this.attributeSelector=rt("pn_id_"),this.panelId=this.attributeSelector+"_panel";let e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,this.view==="date"&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}onAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.$disabled()&&!this.inline&&(this.initFocusableCell(),this.numberOfMonths===1&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=Jo(this.el?.nativeElement)+"px")))}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}templates;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":this._dateTemplate=e.template;break;case"decade":this._decadeTemplate=e.template;break;case"disabledDate":this._disabledDateTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"inputicon":this._inputIconTemplate=e.template;break;case"buttonbar":this._buttonBarTemplate=e.template;break;case"previousicon":this._previousIconTemplate=e.template;break;case"nexticon":this._nextIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"decrementicon":this._decrementIconTemplate=e.template;break;case"incrementicon":this._incrementIconTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;default:this._dateTemplate=e.template;break}})}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,i){this.yearOptions=[];for(let o=e;o<=i;o++)this.yearOptions.push(o)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),i=this.getTranslation(Tt.DAY_NAMES_MIN);for(let o=0;o<7;o++)this.weekDays.push(i[e]),e=e==6?0:++e}monthPickerValues(){let e=[];for(let i=0;i<=11;i++)e.push(this.config.getTranslation("monthNamesShort")[i]);return e}yearPickerValues(){let e=[],i=this.currentYear-this.currentYear%10;for(let o=0;o<10;o++)e.push(i+o);return e}createMonths(e,i){this.months=this.months=[];for(let o=0;o11&&(r=r%12,a=i+Math.floor((e+o)/12)),this.months.push(this.createMonth(r,a))}}getWeekNumber(e){let i=new Date(e.getTime());if(this.startWeekFromFirstDayOfYear){let r=+this.getFirstDateOfWeek();i.setDate(i.getDate()+6+r-i.getDay())}else i.setDate(i.getDate()+4-(i.getDay()||7));let o=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((o-i.getTime())/864e5)/7)+1}createMonth(e,i){let o=[],r=this.getFirstDayOfMonthIndex(e,i),a=this.getDaysCountInMonth(e,i),s=this.getDaysCountInPrevMonth(e,i),l=1,c=new Date,p=[],h=Math.ceil((a+r)/7);for(let m=0;ma){let y=this.getNextMonthAndYear(e,i);g.push({day:l-a,month:y.month,year:y.year,otherMonth:!0,today:this.isToday(c,l-a,y.month,y.year),selectable:this.isSelectable(l-a,y.month,y.year,!0)})}else g.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)});l++}this.showWeek&&p.push(this.getWeekNumber(new Date(g[0].year,g[0].month,g[0].day))),o.push(g)}return{month:e,year:i,dates:o,weekNumbers:p}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=this.showSeconds?e.getSeconds():0,this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){if(this.$disabled()){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===0?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}navForward(e){if(this.$disabled()){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===11?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.currentYeare[e.length-1]){let i=e[e.length-1]-e[0];this.populateYearOptions(e[0]+i,e[e.length-1]+i)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,i){if(this.$disabled()||!i.selectable){e.preventDefault();return}this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((o,r)=>!this.isDateEquals(o,i)),this.value.length===0&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),this.hideOnDateTimeSelect&&(this.isSingleSelection()||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()}shouldSelectDate(e){return this.isMultipleSelection()&&this.maxDateCount!=null?this.maxDateCount>(this.value?this.value.length:0):!0}onMonthSelect(e,i){this.view==="month"?this.onDateSelect(e,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,i){this.view==="year"?this.onDateSelect(e,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value){if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i11,e>=12?this.currentHour=e==12?12:e-12:this.currentHour=e==0?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let i=this.formatDateMetaToDate(e);if(this.showTime&&(this.hourFormat=="12"?this.currentHour===12?i.setHours(this.pm?12:0):i.setHours(this.pm?this.currentHour+12:this.currentHour):i.setHours(this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond)),this.minDate&&this.minDate>i&&(i=this.minDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.maxDate&&this.maxDate=o.getTime()?r=i:(o=i,r=null),this.updateModel([o,r])}else this.updateModel([i,null]);this.onSelect.emit(i)}updateModel(e){if(this.value=e,this.dataType=="date")this.writeModelValue(this.value),this.onModelChange(this.value);else if(this.dataType=="string")if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let i=null;Array.isArray(this.value)&&(i=this.value.map(o=>this.formatDateTime(o))),this.writeModelValue(i),this.onModelChange(i)}}getFirstDayOfMonthIndex(e,i){let o=new Date;o.setDate(1),o.setMonth(e),o.setFullYear(i);let r=o.getDay()+this.getSundayIndex();return r>=7?r-7:r}getDaysCountInMonth(e,i){return 32-this.daylightSavingAdjust(new Date(i,e,32)).getDate()}getDaysCountInPrevMonth(e,i){let o=this.getPreviousMonthAndYear(e,i);return this.getDaysCountInMonth(o.month,o.year)}getPreviousMonthAndYear(e,i){let o,r;return e===0?(o=11,r=i-1):(o=e-1,r=i),{month:o,year:r}}getNextMonthAndYear(e,i){let o,r;return e===11?(o=0,r=i+1):(o=e+1,r=i),{month:o,year:r}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(this.value){if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let i=!1;for(let o of this.value)if(i=this.isDateEquals(o,e),i)break;return i}else if(this.isRangeSelection())return this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e)}else return!1}isComparable(){return this.value!=null&&typeof this.value!="string"}isMonthSelected(e){if(!this.isComparable())return!1;if(this.isMultipleSelection())return this.value.some(i=>i.getMonth()===e&&i.getFullYear()===this.currentYear);if(this.isRangeSelection())if(this.value[1]){let i=new Date(this.currentYear,e,1),o=new Date(this.value[0].getFullYear(),this.value[0].getMonth(),1),r=new Date(this.value[1].getFullYear(),this.value[1].getMonth(),1);return i>=o&&i<=r}else return this.value[0]?.getFullYear()===this.currentYear&&this.value[0]?.getMonth()===e;else return this.value.getMonth()===e&&this.value.getFullYear()===this.currentYear}isMonthDisabled(e,i){let o=i??this.currentYear;for(let r=1;rthis.isMonthDisabled(o,e))}isYearSelected(e){if(this.isComparable()){let i=this.isRangeSelection()?this.value[0]:this.value;return this.isMultipleSelection()?!1:i.getFullYear()===e}return!1}isDateEquals(e,i){return e&&tr(e)?e.getDate()===i.day&&e.getMonth()===i.month&&e.getFullYear()===i.year:!1}isDateBetween(e,i,o){let r=!1;if(tr(e)&&tr(i)){let a=this.formatDateMetaToDate(o);return e.getTime()<=a.getTime()&&i.getTime()>=a.getTime()}return r}isSingleSelection(){return this.selectionMode==="single"}isRangeSelection(){return this.selectionMode==="range"}isMultipleSelection(){return this.selectionMode==="multiple"}isToday(e,i,o,r){return e.getDate()===i&&e.getMonth()===o&&e.getFullYear()===r}isSelectable(e,i,o,r){let a=!0,s=!0,l=!0,c=!0;return r&&!this.selectOtherMonths?!1:(this.minDate&&(this.minDate.getFullYear()>o||this.minDate.getFullYear()===o&&this.currentView!="year"&&(this.minDate.getMonth()>i||this.minDate.getMonth()===i&&this.minDate.getDate()>e))&&(a=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.$disabled()}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:if(this.inline||this.trapFocus(e),this.inline){let i=et(this.el?.nativeElement,".p-datepicker-header"),o=e.target;if(this.timeOnly)return;o==i?.children[i?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;default:break}}onInputKeydown(e){this.isKeydown=!0,e.keyCode===40&&this.contentViewChild?this.trapFocus(e):e.keyCode===27?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):e.keyCode===13?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):e.keyCode===9&&this.contentViewChild&&(Xo(this.contentViewChild.nativeElement).forEach(i=>i.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,i,o){let r=e.currentTarget,a=r.parentElement,s=this.formatDateMetaToDate(i);switch(e.which){case 40:{r.tabIndex="-1";let b=er(a),y=a.parentElement.nextElementSibling;if(y){let v=y.children[b].children[0];sn(v,"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(y.children[b].children[0].tabIndex="0",y.children[b].children[0].focus())}else this.navigationState={backward:!1},this.navForward(e);e.preventDefault();break}case 38:{r.tabIndex="-1";let b=er(a),y=a.parentElement.previousElementSibling;if(y){let v=y.children[b].children[0];sn(v,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(v.tabIndex="0",v.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{r.tabIndex="-1";let b=a.previousElementSibling;if(b){let y=b.children[0];sn(y,"p-disabled")||sn(y.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,o):(y.tabIndex="0",y.focus())}else this.navigateToMonth(!0,o);e.preventDefault();break}case 39:{r.tabIndex="-1";let b=a.nextElementSibling;if(b){let y=b.children[0];sn(y,"p-disabled")?this.navigateToMonth(!1,o):(y.tabIndex="0",y.focus())}else this.navigateToMonth(!1,o);e.preventDefault();break}case 13:case 32:{this.onDateSelect(e,i),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}case 33:{r.tabIndex="-1";let b=new Date(s.getFullYear(),s.getMonth()-1,s.getDate()),y=this.formatDateKey(b);this.navigateToMonth(!0,o,`span[data-date='${y}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 34:{r.tabIndex="-1";let b=new Date(s.getFullYear(),s.getMonth()+1,s.getDate()),y=this.formatDateKey(b);this.navigateToMonth(!1,o,`span[data-date='${y}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 36:r.tabIndex="-1";let l=new Date(s.getFullYear(),s.getMonth(),1),c=this.formatDateKey(l),p=et(r.offsetParent,`span[data-date='${c}']:not(.p-disabled):not(.p-ink)`);p&&(p.tabIndex="0",p.focus()),e.preventDefault();break;case 35:r.tabIndex="-1";let h=new Date(s.getFullYear(),s.getMonth()+1,0),m=this.formatDateKey(h),g=et(r.offsetParent,`span[data-date='${m}']:not(.p-disabled):not(.p-ink)`);h&&(g.tabIndex="0",g.focus()),e.preventDefault();break;default:break}}onMonthCellKeydown(e,i){let o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var r=o.parentElement.children,a=er(o);let s=r[e.which===40?a+3:a-3];s&&(s.tabIndex="0",s.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let s=o.previousElementSibling;s?(s.tabIndex="0",s.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let s=o.nextElementSibling;s?(s.tabIndex="0",s.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onMonthSelect(e,i),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}default:break}}onYearCellKeydown(e,i){let o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var r=o.parentElement.children,a=er(o);let s=r[e.which===40?a+2:a-2];s&&(s.tabIndex="0",s.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let s=o.previousElementSibling;s?(s.tabIndex="0",s.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let s=o.nextElementSibling;s?(s.tabIndex="0",s.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onYearSelect(e,i),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.trapFocus(e);break}default:break}}navigateToMonth(e,i,o){if(e)if(this.numberOfMonths===1||i===0)this.navigationState={backward:!0},this._focusKey=o,this.navBackward(event);else{let r=this.contentViewChild.nativeElement.children[i-1];if(o){let a=et(r,o);a.tabIndex="0",a.focus()}else{let a=qn(r,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),s=a[a.length-1];s.tabIndex="0",s.focus()}}else if(this.numberOfMonths===1||i===this.numberOfMonths-1)this.navigationState={backward:!1},this._focusKey=o,this.navForward(event);else{let r=this.contentViewChild.nativeElement.children[i+1];if(o){let a=et(r,o);a.tabIndex="0",a.focus()}else{let a=et(r,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");a.tabIndex="0",a.focus()}}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?et(this.contentViewChild.nativeElement,".p-datepicker-prev-button").focus():et(this.contentViewChild.nativeElement,".p-datepicker-next-button").focus();else{if(this.navigationState.backward){let i;this.currentView==="month"?i=qn(this.contentViewChild.nativeElement,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"):this.currentView==="year"?i=qn(this.contentViewChild.nativeElement,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"):i=qn(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i&&i.length>0&&(e=i[i.length-1])}else this.currentView==="month"?e=et(this.contentViewChild.nativeElement,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"):this.currentView==="year"?e=et(this.contentViewChild.nativeElement,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"):e=et(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null,this._focusKey=null}else this.initFocusableCell()}initFocusableCell(){let e=this.contentViewChild?.nativeElement,i;if(this.currentView==="month"){let o=qn(e,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"),r=et(e,".p-datepicker-month-view .p-datepicker-month.p-highlight");o.forEach(a=>a.tabIndex=-1),i=r||o[0],o.length===0&&qn(e,'.p-datepicker-month-view .p-datepicker-month.p-disabled[tabindex = "0"]').forEach(s=>s.tabIndex=-1)}else if(this.currentView==="year"){let o=qn(e,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"),r=et(e,".p-datepicker-year-view .p-datepicker-year.p-highlight");o.forEach(a=>a.tabIndex=-1),i=r||o[0],o.length===0&&qn(e,'.p-datepicker-year-view .p-datepicker-year.p-disabled[tabindex = "0"]').forEach(s=>s.tabIndex=-1)}else if(i=et(e,"span.p-highlight"),!i){let o=et(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");o?i=o:i=et(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}i&&(i.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.$disabled()||i.focus()},1),this.preventFocus=!1)}trapFocus(e){let i=Xo(this.contentViewChild.nativeElement);if(i&&i.length>0)if(!i[0].ownerDocument.activeElement)i[0].focus();else{let o=i.indexOf(i[0].ownerDocument.activeElement);if(e.shiftKey)if(o==-1||o===0)if(this.focusTrap)i[i.length-1].focus();else{if(o===-1)return this.hideOverlay();if(o===0)return}else i[o-1].focus();else if(o==-1)if(this.timeOnly)i[0].focus();else{let r=0;for(let a=0;a=12),!0){case(b&&s&&this.minDate.getHours()===12&&this.minDate.getHours()>c):a[0]=11;case(b&&this.minDate.getHours()===c&&this.minDate.getMinutes()>i):a[1]=this.minDate.getMinutes();case(b&&this.minDate.getHours()===c&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o):a[2]=this.minDate.getSeconds();break;case(b&&!s&&this.minDate.getHours()-1===c&&this.minDate.getHours()>c):a[0]=11,this.pm=!0;case(b&&this.minDate.getHours()===c&&this.minDate.getMinutes()>i):a[1]=this.minDate.getMinutes();case(b&&this.minDate.getHours()===c&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o):a[2]=this.minDate.getSeconds();break;case(b&&s&&this.minDate.getHours()>c&&c!==12):this.setCurrentHourPM(this.minDate.getHours()),a[0]=this.currentHour||0;case(b&&this.minDate.getHours()===c&&this.minDate.getMinutes()>i):a[1]=this.minDate.getMinutes();case(b&&this.minDate.getHours()===c&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o):a[2]=this.minDate.getSeconds();break;case(b&&this.minDate.getHours()>c):a[0]=this.minDate.getHours();case(b&&this.minDate.getHours()===c&&this.minDate.getMinutes()>i):a[1]=this.minDate.getMinutes();case(b&&this.minDate.getHours()===c&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o):a[2]=this.minDate.getSeconds();break;case(y&&this.maxDate.getHours()=24?o-24:o:this.hourFormat=="12"&&(i<12&&o>11&&(r=!this.pm),o=o>=13?o-12:o),this.toggleAMPMIfNotMinDate(r),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(o,this.currentMinute,this.currentSecond,r),e.preventDefault()}toggleAMPMIfNotMinDate(e){let i=this.value,o=i?i.toDateString():null;this.minDate&&o&&this.minDate.toDateString()===o&&this.minDate.getHours()>=12?this.pm=!0:this.pm=e}onTimePickerElementMouseDown(e,i,o){this.$disabled()||(this.repeat(e,null,i,o),e.preventDefault())}onTimePickerElementMouseUp(e){this.$disabled()||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.$disabled()&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,i,o,r){let a=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,o,r),this.cd.markForCheck()},a),o){case 0:r===1?this.incrementHour(e):this.decrementHour(e);break;case 1:r===1?this.incrementMinute(e):this.decrementMinute(e);break;case 2:r===1?this.incrementSecond(e):this.decrementSecond(e);break}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let i=(this.currentHour??0)-this.stepHour,o=this.pm;this.hourFormat=="24"?i=i<0?24+i:i:this.hourFormat=="12"&&(this.currentHour===12&&(o=!this.pm),i=i<=0?12+i:i),this.toggleAMPMIfNotMinDate(o),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(i,this.currentMinute,this.currentSecond,o),e.preventDefault()}incrementMinute(e){let i=(this.currentMinute??0)+this.stepMinute;i=i>59?i-60:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,i,this.currentSecond,this.pm),e.preventDefault()}decrementMinute(e){let i=(this.currentMinute??0)-this.stepMinute;i=i<0?60+i:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,i,this.currentSecond||0,this.pm),e.preventDefault()}incrementSecond(e){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,i,this.pm),e.preventDefault()}decrementSecond(e){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,i,this.pm),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,this.hourFormat=="12"?this.currentHour===12?e.setHours(this.pm?12:0):e.setHours(this.pm?this.currentHour+12:this.currentHour):e.setHours(this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(this.value[1]?e=[this.value[0],e]:e=[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){let i=!this.pm;this.pm=i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,this.currentSecond||0,i),this.updateTime(),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let i=e.target.value;try{let o=this.parseValueFromString(i);this.isValidSelection(o)?(this.updateModel(o),this.updateUI()):this.keepInvalid&&this.updateModel(o)}catch{let r=this.keepInvalid?i:null;this.updateModel(r)}this.onInput.emit(e)}isValidSelection(e){if(this.isSingleSelection())return this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1);let i=e.every(o=>this.isSelectable(o.getDate(),o.getMonth(),o.getFullYear(),!1));return i&&this.isRangeSelection()&&(i=e.length===1||e.length>1&&e[1]>=e[0]),i}parseValueFromString(e){if(!e||e.trim().length===0)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(e);else if(this.isMultipleSelection()){let o=e.split(this.multipleSeparator);i=[];for(let r of o)i.push(this.parseDateTime(r.trim()))}else if(this.isRangeSelection()){let o=e.split(" "+this.rangeSeparator+" ");i=[];for(let r=0;r{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),yf())}disableModality(){this.mask&&(lo(this.mask,"p-overlay-mask-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let e=this.document.body.children,i;for(let o=0;o{let h=o+1{let g=""+h;if(r(p))for(;g.lengthr(p)?g[h]:m[h],l="",c=!1;if(e)for(o=0;o11&&o!=12&&(o-=12),this.hourFormat=="12"?i+=o===0?12:o<10?"0"+o:o:i+=o<10?"0"+o:o,i+=":",i+=r<10?"0"+r:r,this.showSeconds&&(i+=":",i+=a<10?"0"+a:a),this.hourFormat=="12"&&(i+=e.getHours()>11?" PM":" AM"),i}parseTime(e){let i=e.split(":"),o=this.showSeconds?3:2;if(i.length!==o)throw"Invalid time";let r=parseInt(i[0]),a=parseInt(i[1]),s=this.showSeconds?parseInt(i[2]):null;if(isNaN(r)||isNaN(a)||r>23||a>59||this.hourFormat=="12"&&r>12||this.showSeconds&&(isNaN(s)||s>59))throw"Invalid time";return this.hourFormat=="12"&&(r!==12&&this.pm?r+=12:!this.pm&&r===12&&(r-=12)),{hour:r,minute:a,second:s}}parseDate(e,i){if(i==null||e==null)throw"Invalid arguments";if(e=typeof e=="object"?e.toString():e+"",e==="")return null;let o,r,a,s=0,l=typeof this.shortYearCutoff!="string"?this.shortYearCutoff:new Date().getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,p=-1,h=-1,m=-1,g=!1,b,y=R=>{let z=o+1{let z=y(R),W=R==="@"?14:R==="!"?20:R==="y"&&z?4:R==="o"?3:2,ge=R==="y"?W:1,Le=new RegExp("^\\d{"+ge+","+W+"}"),Ne=e.substring(s).match(Le);if(!Ne)throw"Missing number at position "+s;return s+=Ne[0].length,parseInt(Ne[0],10)},S=(R,z,W)=>{let ge=-1,Le=y(R)?W:z,Ne=[];for(let nt=0;nt-(nt[1].length-Ft[1].length));for(let nt=0;nt{if(e.charAt(s)!==i.charAt(o))throw"Unexpected literal at position "+s;s++};for(this.view==="month"&&(h=1),o=0;o-1){p=1,h=m;do{if(r=this.getDaysCountInMonth(c,p-1),h<=r)break;p++,h-=r}while(!0)}if(this.view==="year"&&(p=p===-1?1:p,h=h===-1?1:h),b=this.daylightSavingAdjust(new Date(c,p-1,h)),b.getFullYear()!==c||b.getMonth()+1!==p||b.getDate()!==h)throw"Invalid date";return b}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}isValidDateForTimeConstraints(e){return this.keepInvalid?!0:(!this.minDate||e>=this.minDate)&&(!this.maxDate||e<=this.maxDate)}onTodayButtonClick(e){let i=new Date,o={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(i.getMonth(),i.getFullYear()),this.onDateSelect(e,o),this.onTodayClick.emit(i)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",nl(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let i=[...this.responsiveOptions].filter(o=>!!(o.breakpoint&&o.numMonths)).sort((o,r)=>-1*o.breakpoint.localeCompare(r.breakpoint,void 0,{numeric:!0}));for(let o=0;o({position:"relative"})},Kq={root:({instance:t})=>["p-datepicker p-component p-inputwrapper",{"p-invalid":t.invalid(),"p-datepicker-fluid":t.hasFluid,"p-inputwrapper-filled":t.$filled(),"p-variant-filled":t.$variant()==="filled","p-inputwrapper-focus":t.focus||t.overlayVisible,"p-focus":t.focus||t.overlayVisible}],pcInputText:"p-datepicker-input",dropdown:"p-datepicker-dropdown",inputIconContainer:"p-datepicker-input-icon-container",inputIcon:"p-datepicker-input-icon",panel:({instance:t})=>["p-datepicker-panel p-component",{"p-datepicker-panel p-component":!0,"p-datepicker-panel-inline":t.inline,"p-disabled":t.$disabled(),"p-datepicker-timeonly":t.timeOnly}],calendarContainer:"p-datepicker-calendar-container",calendar:"p-datepicker-calendar",header:"p-datepicker-header",pcPrevButton:"p-datepicker-prev-button",title:"p-datepicker-title",selectMonth:"p-datepicker-select-month",selectYear:"p-datepicker-select-year",decade:"p-datepicker-decade",pcNextButton:"p-datepicker-next-button",dayView:"p-datepicker-day-view",weekHeader:"p-datepicker-weekheader p-disabled",weekNumber:"p-datepicker-weeknumber",weekLabelContainer:"p-datepicker-weeklabel-container p-disabled",weekDayCell:"p-datepicker-weekday-cell",weekDay:"p-datepicker-weekday",dayCell:({date:t})=>["p-datepicker-day-cell",{"p-datepicker-other-month":t.otherMonth,"p-datepicker-today":t.today}],day:({instance:t,date:n})=>{let e="";if(t.isRangeSelection()&&t.isSelected(n)&&n.selectable){let r=t.value[0],i=t.value[1],o=r&&n.year===r.getFullYear()&&n.month===r.getMonth()&&n.day===r.getDate(),s=i&&n.year===i.getFullYear()&&n.month===i.getMonth()&&n.day===i.getDate();e=o||s?"p-datepicker-day-selected":"p-datepicker-day-selected-range"}return{"p-datepicker-day":!0,"p-datepicker-day-selected":!t.isRangeSelection()&&t.isSelected(n)&&n.selectable,"p-disabled":t.$disabled()||!n.selectable,[e]:!0}},monthView:"p-datepicker-month-view",month:({instance:t,index:n})=>["p-datepicker-month",{"p-datepicker-month-selected":t.isMonthSelected(n),"p-disabled":t.isMonthDisabled(n)}],yearView:"p-datepicker-year-view",year:({instance:t,year:n})=>["p-datepicker-year",{"p-datepicker-year-selected":t.isYearSelected(n),"p-disabled":t.isYearDisabled(n)}],timePicker:"p-datepicker-time-picker",hourPicker:"p-datepicker-hour-picker",pcIncrementButton:"p-datepicker-increment-button",pcDecrementButton:"p-datepicker-decrement-button",separator:"p-datepicker-separator",minutePicker:"p-datepicker-minute-picker",secondPicker:"p-datepicker-second-picker",ampmPicker:"p-datepicker-ampm-picker",buttonbar:"p-datepicker-buttonbar",pcTodayButton:"p-datepicker-today-button",pcClearButton:"p-datepicker-clear-button",clearIcon:"p-datepicker-clear-icon"},XR=(()=>{class t extends Oe{name="datepicker";style=qq;classes=Kq;inlineStyles=Qq;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var Yq={provide:Nn,useExisting:$t(()=>tP),multi:!0},eP=new H("DATEPICKER_INSTANCE"),tP=(()=>{class t extends vc{zone;overlayService;bindDirectiveInstance=x(te,{self:!0});$pcDatePicker=x(eP,{optional:!0,skipSelf:!0})??void 0;iconDisplay="button";styleClass;inputStyle;inputId;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;get dateFormat(){return this._dateFormat}set dateFormat(e){this._dateFormat=e,this.initialized&&this.updateInputfield()}multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;readonlyInput;shortYearCutoff="+10";get hourFormat(){return this._hourFormat}set hourFormat(e){this._hourFormat=e,this.initialized&&this.updateInputfield()}timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass;clearButtonStyleClass;autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get showTime(){return this._showTime}set showTime(e){this._showTime=e,this.currentHour===void 0&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){let r=e||new Date;this.currentMonth=r.getMonth(),this.currentYear=r.getFullYear(),this.initTime(r),this.createMonths(this.currentMonth,this.currentYear)}}appendTo=ae(void 0);onFocus=new z;onBlur=new z;onClose=new z;onSelect=new z;onClear=new z;onInput=new z;onTodayClick=new z;onClearClick=new z;onMonthChange=new z;onYearChange=new z;onClickOutside=new z;onShow=new z;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}_componentStyle=x(XR);contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;p;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;_minDate;_maxDate;_dateFormat;_hourFormat="24";_showTime;_yearRange;preventDocumentListener;dayClass(e){return this._componentStyle.classes.day({instance:this,date:e})}dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;buttonBarTemplate;_dateTemplate;_headerTemplate;_footerTemplate;_disabledDateTemplate;_decadeTemplate;_previousIconTemplate;_nextIconTemplate;_triggerIconTemplate;_clearIconTemplate;_decrementIconTemplate;_incrementIconTemplate;_inputIconTemplate;_buttonBarTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.currentView==="year"?this.getTranslation("prevDecade"):this.currentView==="month"?this.getTranslation("prevYear"):this.getTranslation("prevMonth")}get nextIconAriaLabel(){return this.currentView==="year"?this.getTranslation("nextDecade"):this.currentView==="month"?this.getTranslation("nextYear"):this.getTranslation("nextMonth")}constructor(e,r){super(),this.zone=e,this.overlayService=r,this.window=this.document.defaultView}onInit(){this.attributeSelector=gt("pn_id_"),this.panelId=this.attributeSelector+"_panel";let e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,this.view==="date"&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}onAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.$disabled()&&!this.inline&&(this.initFocusableCell(),this.numberOfMonths===1&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=Mn(this.el?.nativeElement)+"px")))}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}templates;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":this._dateTemplate=e.template;break;case"decade":this._decadeTemplate=e.template;break;case"disabledDate":this._disabledDateTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"inputicon":this._inputIconTemplate=e.template;break;case"buttonbar":this._buttonBarTemplate=e.template;break;case"previousicon":this._previousIconTemplate=e.template;break;case"nexticon":this._nextIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"decrementicon":this._decrementIconTemplate=e.template;break;case"incrementicon":this._incrementIconTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;default:this._dateTemplate=e.template;break}})}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,r){this.yearOptions=[];for(let i=e;i<=r;i++)this.yearOptions.push(i)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),r=this.getTranslation(xn.DAY_NAMES_MIN);for(let i=0;i<7;i++)this.weekDays.push(r[e]),e=e==6?0:++e}monthPickerValues(){let e=[];for(let r=0;r<=11;r++)e.push(this.config.getTranslation("monthNamesShort")[r]);return e}yearPickerValues(){let e=[],r=this.currentYear-this.currentYear%10;for(let i=0;i<10;i++)e.push(r+i);return e}createMonths(e,r){this.months=this.months=[];for(let i=0;i11&&(o=o%12,s=r+Math.floor((e+i)/12)),this.months.push(this.createMonth(o,s))}}getWeekNumber(e){let r=new Date(e.getTime());if(this.startWeekFromFirstDayOfYear){let o=+this.getFirstDateOfWeek();r.setDate(r.getDate()+6+o-r.getDay())}else r.setDate(r.getDate()+4-(r.getDay()||7));let i=r.getTime();return r.setMonth(0),r.setDate(1),Math.floor(Math.round((i-r.getTime())/864e5)/7)+1}createMonth(e,r){let i=[],o=this.getFirstDayOfMonthIndex(e,r),s=this.getDaysCountInMonth(e,r),a=this.getDaysCountInPrevMonth(e,r),l=1,c=new Date,d=[],u=Math.ceil((s+o)/7);for(let p=0;ps){let b=this.getNextMonthAndYear(e,r);f.push({day:l-s,month:b.month,year:b.year,otherMonth:!0,today:this.isToday(c,l-s,b.month,b.year),selectable:this.isSelectable(l-s,b.month,b.year,!0)})}else f.push({day:l,month:e,year:r,today:this.isToday(c,l,e,r),selectable:this.isSelectable(l,e,r,!1)});l++}this.showWeek&&d.push(this.getWeekNumber(new Date(f[0].year,f[0].month,f[0].day))),i.push(f)}return{month:e,year:r,dates:i,weekNumbers:d}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=this.showSeconds?e.getSeconds():0,this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){if(this.$disabled()){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===0?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}navForward(e){if(this.$disabled()){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===11?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.currentYeare[e.length-1]){let r=e[e.length-1]-e[0];this.populateYearOptions(e[0]+r,e[e.length-1]+r)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,r){if(this.$disabled()||!r.selectable){e.preventDefault();return}this.isMultipleSelection()&&this.isSelected(r)?(this.value=this.value.filter((i,o)=>!this.isDateEquals(i,r)),this.value.length===0&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(r)&&this.selectDate(r),this.hideOnDateTimeSelect&&(this.isSingleSelection()||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()}shouldSelectDate(e){return this.isMultipleSelection()&&this.maxDateCount!=null?this.maxDateCount>(this.value?this.value.length:0):!0}onMonthSelect(e,r){this.view==="month"?this.onDateSelect(e,{year:this.currentYear,month:r,day:1,selectable:!0}):(this.currentMonth=r,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,r){this.view==="year"?this.onDateSelect(e,{year:r,month:0,day:1,selectable:!0}):(this.currentYear=r,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value){if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let r=0;r11,e>=12?this.currentHour=e==12?12:e-12:this.currentHour=e==0?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let r=this.formatDateMetaToDate(e);if(this.showTime&&(this.hourFormat=="12"?this.currentHour===12?r.setHours(this.pm?12:0):r.setHours(this.pm?this.currentHour+12:this.currentHour):r.setHours(this.currentHour),r.setMinutes(this.currentMinute),r.setSeconds(this.currentSecond)),this.minDate&&this.minDate>r&&(r=this.minDate,this.setCurrentHourPM(r.getHours()),this.currentMinute=r.getMinutes(),this.currentSecond=r.getSeconds()),this.maxDate&&this.maxDate=i.getTime()?o=r:(i=r,o=null),this.updateModel([i,o])}else this.updateModel([r,null]);this.onSelect.emit(r)}updateModel(e){if(this.value=e,this.dataType=="date")this.writeModelValue(this.value),this.onModelChange(this.value);else if(this.dataType=="string")if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let r=null;Array.isArray(this.value)&&(r=this.value.map(i=>this.formatDateTime(i))),this.writeModelValue(r),this.onModelChange(r)}}getFirstDayOfMonthIndex(e,r){let i=new Date;i.setDate(1),i.setMonth(e),i.setFullYear(r);let o=i.getDay()+this.getSundayIndex();return o>=7?o-7:o}getDaysCountInMonth(e,r){return 32-this.daylightSavingAdjust(new Date(r,e,32)).getDate()}getDaysCountInPrevMonth(e,r){let i=this.getPreviousMonthAndYear(e,r);return this.getDaysCountInMonth(i.month,i.year)}getPreviousMonthAndYear(e,r){let i,o;return e===0?(i=11,o=r-1):(i=e-1,o=r),{month:i,year:o}}getNextMonthAndYear(e,r){let i,o;return e===11?(i=0,o=r+1):(i=e+1,o=r),{month:i,year:o}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(this.value){if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let r=!1;for(let i of this.value)if(r=this.isDateEquals(i,e),r)break;return r}else if(this.isRangeSelection())return this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e)}else return!1}isComparable(){return this.value!=null&&typeof this.value!="string"}isMonthSelected(e){if(!this.isComparable())return!1;if(this.isMultipleSelection())return this.value.some(r=>r.getMonth()===e&&r.getFullYear()===this.currentYear);if(this.isRangeSelection())if(this.value[1]){let r=new Date(this.currentYear,e,1),i=new Date(this.value[0].getFullYear(),this.value[0].getMonth(),1),o=new Date(this.value[1].getFullYear(),this.value[1].getMonth(),1);return r>=i&&r<=o}else return this.value[0]?.getFullYear()===this.currentYear&&this.value[0]?.getMonth()===e;else return this.value.getMonth()===e&&this.value.getFullYear()===this.currentYear}isMonthDisabled(e,r){let i=r??this.currentYear;for(let o=1;othis.isMonthDisabled(i,e))}isYearSelected(e){if(this.isComparable()){let r=this.isRangeSelection()?this.value[0]:this.value;return this.isMultipleSelection()?!1:r.getFullYear()===e}return!1}isDateEquals(e,r){return e&&ru(e)?e.getDate()===r.day&&e.getMonth()===r.month&&e.getFullYear()===r.year:!1}isDateBetween(e,r,i){let o=!1;if(ru(e)&&ru(r)){let s=this.formatDateMetaToDate(i);return e.getTime()<=s.getTime()&&r.getTime()>=s.getTime()}return o}isSingleSelection(){return this.selectionMode==="single"}isRangeSelection(){return this.selectionMode==="range"}isMultipleSelection(){return this.selectionMode==="multiple"}isToday(e,r,i,o){return e.getDate()===r&&e.getMonth()===i&&e.getFullYear()===o}isSelectable(e,r,i,o){let s=!0,a=!0,l=!0,c=!0;return o&&!this.selectOtherMonths?!1:(this.minDate&&(this.minDate.getFullYear()>i||this.minDate.getFullYear()===i&&this.currentView!="year"&&(this.minDate.getMonth()>r||this.minDate.getMonth()===r&&this.minDate.getDate()>e))&&(s=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.$disabled()}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:if(this.inline||this.trapFocus(e),this.inline){let r=wt(this.el?.nativeElement,".p-datepicker-header"),i=e.target;if(this.timeOnly)return;i==r?.children[r?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;default:break}}onInputKeydown(e){this.isKeydown=!0,e.keyCode===40&&this.contentViewChild?this.trapFocus(e):e.keyCode===27?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):e.keyCode===13?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):e.keyCode===9&&this.contentViewChild&&(ca(this.contentViewChild.nativeElement).forEach(r=>r.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,r,i){let o=e.currentTarget,s=o.parentElement,a=this.formatDateMetaToDate(r);switch(e.which){case 40:{o.tabIndex="-1";let y=tu(s),b=s.parentElement.nextElementSibling;if(b){let v=b.children[y].children[0];wn(v,"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(b.children[y].children[0].tabIndex="0",b.children[y].children[0].focus())}else this.navigationState={backward:!1},this.navForward(e);e.preventDefault();break}case 38:{o.tabIndex="-1";let y=tu(s),b=s.parentElement.previousElementSibling;if(b){let v=b.children[y].children[0];wn(v,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(v.tabIndex="0",v.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{o.tabIndex="-1";let y=s.previousElementSibling;if(y){let b=y.children[0];wn(b,"p-disabled")||wn(b.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,i):(b.tabIndex="0",b.focus())}else this.navigateToMonth(!0,i);e.preventDefault();break}case 39:{o.tabIndex="-1";let y=s.nextElementSibling;if(y){let b=y.children[0];wn(b,"p-disabled")?this.navigateToMonth(!1,i):(b.tabIndex="0",b.focus())}else this.navigateToMonth(!1,i);e.preventDefault();break}case 13:case 32:{this.onDateSelect(e,r),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}case 33:{o.tabIndex="-1";let y=new Date(a.getFullYear(),a.getMonth()-1,a.getDate()),b=this.formatDateKey(y);this.navigateToMonth(!0,i,`span[data-date='${b}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 34:{o.tabIndex="-1";let y=new Date(a.getFullYear(),a.getMonth()+1,a.getDate()),b=this.formatDateKey(y);this.navigateToMonth(!1,i,`span[data-date='${b}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 36:o.tabIndex="-1";let l=new Date(a.getFullYear(),a.getMonth(),1),c=this.formatDateKey(l),d=wt(o.offsetParent,`span[data-date='${c}']:not(.p-disabled):not(.p-ink)`);d&&(d.tabIndex="0",d.focus()),e.preventDefault();break;case 35:o.tabIndex="-1";let u=new Date(a.getFullYear(),a.getMonth()+1,0),p=this.formatDateKey(u),f=wt(o.offsetParent,`span[data-date='${p}']:not(.p-disabled):not(.p-ink)`);u&&(f.tabIndex="0",f.focus()),e.preventDefault();break;default:break}}onMonthCellKeydown(e,r){let i=e.currentTarget;switch(e.which){case 38:case 40:{i.tabIndex="-1";var o=i.parentElement.children,s=tu(i);let a=o[e.which===40?s+3:s-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{i.tabIndex="-1";let a=i.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{i.tabIndex="-1";let a=i.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onMonthSelect(e,r),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}default:break}}onYearCellKeydown(e,r){let i=e.currentTarget;switch(e.which){case 38:case 40:{i.tabIndex="-1";var o=i.parentElement.children,s=tu(i);let a=o[e.which===40?s+2:s-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{i.tabIndex="-1";let a=i.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{i.tabIndex="-1";let a=i.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onYearSelect(e,r),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.trapFocus(e);break}default:break}}navigateToMonth(e,r,i){if(e)if(this.numberOfMonths===1||r===0)this.navigationState={backward:!0},this._focusKey=i,this.navBackward(event);else{let o=this.contentViewChild.nativeElement.children[r-1];if(i){let s=wt(o,i);s.tabIndex="0",s.focus()}else{let s=Vi(o,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),a=s[s.length-1];a.tabIndex="0",a.focus()}}else if(this.numberOfMonths===1||r===this.numberOfMonths-1)this.navigationState={backward:!1},this._focusKey=i,this.navForward(event);else{let o=this.contentViewChild.nativeElement.children[r+1];if(i){let s=wt(o,i);s.tabIndex="0",s.focus()}else{let s=wt(o,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?wt(this.contentViewChild.nativeElement,".p-datepicker-prev-button").focus():wt(this.contentViewChild.nativeElement,".p-datepicker-next-button").focus();else{if(this.navigationState.backward){let r;this.currentView==="month"?r=Vi(this.contentViewChild.nativeElement,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"):this.currentView==="year"?r=Vi(this.contentViewChild.nativeElement,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"):r=Vi(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),r&&r.length>0&&(e=r[r.length-1])}else this.currentView==="month"?e=wt(this.contentViewChild.nativeElement,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"):this.currentView==="year"?e=wt(this.contentViewChild.nativeElement,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"):e=wt(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null,this._focusKey=null}else this.initFocusableCell()}initFocusableCell(){let e=this.contentViewChild?.nativeElement,r;if(this.currentView==="month"){let i=Vi(e,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"),o=wt(e,".p-datepicker-month-view .p-datepicker-month.p-highlight");i.forEach(s=>s.tabIndex=-1),r=o||i[0],i.length===0&&Vi(e,'.p-datepicker-month-view .p-datepicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(this.currentView==="year"){let i=Vi(e,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"),o=wt(e,".p-datepicker-year-view .p-datepicker-year.p-highlight");i.forEach(s=>s.tabIndex=-1),r=o||i[0],i.length===0&&Vi(e,'.p-datepicker-year-view .p-datepicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(r=wt(e,"span.p-highlight"),!r){let i=wt(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");i?r=i:r=wt(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}r&&(r.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.$disabled()||r.focus()},1),this.preventFocus=!1)}trapFocus(e){let r=ca(this.contentViewChild.nativeElement);if(r&&r.length>0)if(!r[0].ownerDocument.activeElement)r[0].focus();else{let i=r.indexOf(r[0].ownerDocument.activeElement);if(e.shiftKey)if(i==-1||i===0)if(this.focusTrap)r[r.length-1].focus();else{if(i===-1)return this.hideOverlay();if(i===0)return}else r[i-1].focus();else if(i==-1)if(this.timeOnly)r[0].focus();else{let o=0;for(let s=0;s=12),!0){case(y&&a&&this.minDate.getHours()===12&&this.minDate.getHours()>c):s[0]=11;case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()>r):s[1]=this.minDate.getMinutes();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i):s[2]=this.minDate.getSeconds();break;case(y&&!a&&this.minDate.getHours()-1===c&&this.minDate.getHours()>c):s[0]=11,this.pm=!0;case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()>r):s[1]=this.minDate.getMinutes();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i):s[2]=this.minDate.getSeconds();break;case(y&&a&&this.minDate.getHours()>c&&c!==12):this.setCurrentHourPM(this.minDate.getHours()),s[0]=this.currentHour||0;case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()>r):s[1]=this.minDate.getMinutes();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i):s[2]=this.minDate.getSeconds();break;case(y&&this.minDate.getHours()>c):s[0]=this.minDate.getHours();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()>r):s[1]=this.minDate.getMinutes();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i):s[2]=this.minDate.getSeconds();break;case(b&&this.maxDate.getHours()=24?i-24:i:this.hourFormat=="12"&&(r<12&&i>11&&(o=!this.pm),i=i>=13?i-12:i),this.toggleAMPMIfNotMinDate(o),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(i,this.currentMinute,this.currentSecond,o),e.preventDefault()}toggleAMPMIfNotMinDate(e){let r=this.value,i=r?r.toDateString():null;this.minDate&&i&&this.minDate.toDateString()===i&&this.minDate.getHours()>=12?this.pm=!0:this.pm=e}onTimePickerElementMouseDown(e,r,i){this.$disabled()||(this.repeat(e,null,r,i),e.preventDefault())}onTimePickerElementMouseUp(e){this.$disabled()||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.$disabled()&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,r,i,o){let s=r||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,i,o),this.cd.markForCheck()},s),i){case 0:o===1?this.incrementHour(e):this.decrementHour(e);break;case 1:o===1?this.incrementMinute(e):this.decrementMinute(e);break;case 2:o===1?this.incrementSecond(e):this.decrementSecond(e);break}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let r=(this.currentHour??0)-this.stepHour,i=this.pm;this.hourFormat=="24"?r=r<0?24+r:r:this.hourFormat=="12"&&(this.currentHour===12&&(i=!this.pm),r=r<=0?12+r:r),this.toggleAMPMIfNotMinDate(i),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(r,this.currentMinute,this.currentSecond,i),e.preventDefault()}incrementMinute(e){let r=(this.currentMinute??0)+this.stepMinute;r=r>59?r-60:r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,r,this.currentSecond,this.pm),e.preventDefault()}decrementMinute(e){let r=(this.currentMinute??0)-this.stepMinute;r=r<0?60+r:r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,r,this.currentSecond||0,this.pm),e.preventDefault()}incrementSecond(e){let r=this.currentSecond+this.stepSecond;r=r>59?r-60:r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,r,this.pm),e.preventDefault()}decrementSecond(e){let r=this.currentSecond-this.stepSecond;r=r<0?60+r:r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,r,this.pm),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,this.hourFormat=="12"?this.currentHour===12?e.setHours(this.pm?12:0):e.setHours(this.pm?this.currentHour+12:this.currentHour):e.setHours(this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(this.value[1]?e=[this.value[0],e]:e=[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){let r=!this.pm;this.pm=r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,this.currentSecond||0,r),this.updateTime(),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let r=e.target.value;try{let i=this.parseValueFromString(r);this.isValidSelection(i)?(this.updateModel(i),this.updateUI()):this.keepInvalid&&this.updateModel(i)}catch{let o=this.keepInvalid?r:null;this.updateModel(o)}this.onInput.emit(e)}isValidSelection(e){if(this.isSingleSelection())return this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1);let r=e.every(i=>this.isSelectable(i.getDate(),i.getMonth(),i.getFullYear(),!1));return r&&this.isRangeSelection()&&(r=e.length===1||e.length>1&&e[1]>=e[0]),r}parseValueFromString(e){if(!e||e.trim().length===0)return null;let r;if(this.isSingleSelection())r=this.parseDateTime(e);else if(this.isMultipleSelection()){let i=e.split(this.multipleSeparator);r=[];for(let o of i)r.push(this.parseDateTime(o.trim()))}else if(this.isRangeSelection()){let i=e.split(" "+this.rangeSeparator+" ");r=[];for(let o=0;o{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),Bk())}disableModality(){this.mask&&(ri(this.mask,"p-overlay-mask-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let e=this.document.body.children,r;for(let i=0;i{let u=i+1{let f=""+u;if(o(d))for(;f.lengtho(d)?f[u]:p[u],l="",c=!1;if(e)for(i=0;i11&&i!=12&&(i-=12),this.hourFormat=="12"?r+=i===0?12:i<10?"0"+i:i:r+=i<10?"0"+i:i,r+=":",r+=o<10?"0"+o:o,this.showSeconds&&(r+=":",r+=s<10?"0"+s:s),this.hourFormat=="12"&&(r+=e.getHours()>11?" PM":" AM"),r}parseTime(e){let r=e.split(":"),i=this.showSeconds?3:2;if(r.length!==i)throw"Invalid time";let o=parseInt(r[0]),s=parseInt(r[1]),a=this.showSeconds?parseInt(r[2]):null;if(isNaN(o)||isNaN(s)||o>23||s>59||this.hourFormat=="12"&&o>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return this.hourFormat=="12"&&(o!==12&&this.pm?o+=12:!this.pm&&o===12&&(o-=12)),{hour:o,minute:s,second:a}}parseDate(e,r){if(r==null||e==null)throw"Invalid arguments";if(e=typeof e=="object"?e.toString():e+"",e==="")return null;let i,o,s,a=0,l=typeof this.shortYearCutoff!="string"?this.shortYearCutoff:new Date().getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,d=-1,u=-1,p=-1,f=!1,y,b=P=>{let B=i+1{let B=b(P),Y=P==="@"?14:P==="!"?20:P==="y"&&B?4:P==="o"?3:2,ye=P==="y"?Y:1,Xe=new RegExp("^\\d{"+ye+","+Y+"}"),tt=e.substring(a).match(Xe);if(!tt)throw"Missing number at position "+a;return a+=tt[0].length,parseInt(tt[0],10)},w=(P,B,Y)=>{let ye=-1,Xe=b(P)?Y:B,tt=[];for(let vt=0;vt-(vt[1].length-tn[1].length));for(let vt=0;vt{if(e.charAt(a)!==r.charAt(i))throw"Unexpected literal at position "+a;a++};for(this.view==="month"&&(u=1),i=0;i-1){d=1,u=p;do{if(o=this.getDaysCountInMonth(c,d-1),u<=o)break;d++,u-=o}while(!0)}if(this.view==="year"&&(d=d===-1?1:d,u=u===-1?1:u),y=this.daylightSavingAdjust(new Date(c,d-1,u)),y.getFullYear()!==c||y.getMonth()+1!==d||y.getDate()!==u)throw"Invalid date";return y}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}isValidDateForTimeConstraints(e){return this.keepInvalid?!0:(!this.minDate||e>=this.minDate)&&(!this.maxDate||e<=this.maxDate)}onTodayButtonClick(e){let r=new Date,i={day:r.getDate(),month:r.getMonth(),year:r.getFullYear(),otherMonth:r.getMonth()!==this.currentMonth||r.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(r.getMonth(),r.getFullYear()),this.onDateSelect(e,i),this.onTodayClick.emit(r)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",nu(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let r=[...this.responsiveOptions].filter(i=>!!(i.breakpoint&&i.numMonths)).sort((i,o)=>-1*i.breakpoint.localeCompare(o.breakpoint,void 0,{numeric:!0}));for(let i=0;i{let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(e,"mousedown",i=>{this.isOutsideClicked(i)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(i),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new nr(this.el?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return sn(e.target,"p-datepicker-prev-button")||sn(e.target,"p-datepicker-prev-icon")||sn(e.target,"p-datepicker-next-button")||sn(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!Un()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}writeControlValue(e){if(this.value=e,this.value&&typeof this.value=="string")try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=e)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}onDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Sn.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(i){return new(i||t)(ye(It),ye(uo))};static \u0275cmp=U({type:t,selectors:[["p-datePicker"],["p-datepicker"],["p-date-picker"]],contentQueries:function(i,o,r){if(i&1&&(F(r,y2,4),F(r,v2,4),F(r,w2,4),F(r,C2,4),F(r,x2,4),F(r,k2,4),F(r,T2,4),F(r,S2,4),F(r,I2,4),F(r,E2,4),F(r,M2,4),F(r,D2,4),F(r,O2,4),F(r,Xe,4)),i&2){let a;M(a=D())&&(o.dateTemplate=a.first),M(a=D())&&(o.headerTemplate=a.first),M(a=D())&&(o.footerTemplate=a.first),M(a=D())&&(o.disabledDateTemplate=a.first),M(a=D())&&(o.decadeTemplate=a.first),M(a=D())&&(o.previousIconTemplate=a.first),M(a=D())&&(o.nextIconTemplate=a.first),M(a=D())&&(o.triggerIconTemplate=a.first),M(a=D())&&(o.clearIconTemplate=a.first),M(a=D())&&(o.decrementIconTemplate=a.first),M(a=D())&&(o.incrementIconTemplate=a.first),M(a=D())&&(o.inputIconTemplate=a.first),M(a=D())&&(o.buttonBarTemplate=a.first),M(a=D())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&(Fe(P2,5),Fe(F2,5)),i&2){let r;M(r=D())&&(o.inputfieldViewChild=r.first),M(r=D())&&(o.content=r.first)}},hostVars:4,hostBindings:function(i,o){i&2&&(jt(o.sx("root")),I(o.cn(o.cx("root"),o.styleClass)))},inputs:{iconDisplay:"iconDisplay",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[2,"inline","inline",P],showOtherMonths:[2,"showOtherMonths","showOtherMonths",P],selectOtherMonths:[2,"selectOtherMonths","selectOtherMonths",P],showIcon:[2,"showIcon","showIcon",P],icon:"icon",readonlyInput:[2,"readonlyInput","readonlyInput",P],shortYearCutoff:"shortYearCutoff",hourFormat:"hourFormat",timeOnly:[2,"timeOnly","timeOnly",P],stepHour:[2,"stepHour","stepHour",xe],stepMinute:[2,"stepMinute","stepMinute",xe],stepSecond:[2,"stepSecond","stepSecond",xe],showSeconds:[2,"showSeconds","showSeconds",P],showOnFocus:[2,"showOnFocus","showOnFocus",P],showWeek:[2,"showWeek","showWeek",P],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[2,"showClear","showClear",P],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[2,"maxDateCount","maxDateCount",xe],showButtonBar:[2,"showButtonBar","showButtonBar",P],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[2,"autofocus","autofocus",P],autoZIndex:[2,"autoZIndex","autoZIndex",P],baseZIndex:[2,"baseZIndex","baseZIndex",xe],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[2,"keepInvalid","keepInvalid",P],hideOnDateTimeSelect:[2,"hideOnDateTimeSelect","hideOnDateTimeSelect",P],touchUI:[2,"touchUI","touchUI",P],timeSeparator:"timeSeparator",focusTrap:[2,"focusTrap","focusTrap",P],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[2,"tabindex","tabindex",xe],minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",view:"view",defaultDate:"defaultDate",appendTo:[1,"appendTo"]},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Ee([BS,v0,{provide:w0,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],ngContentSelectors:V2,decls:2,vars:2,consts:[["inputfield",""],["contentWrapper",""],["icon",""],[3,"ngIf"],[3,"ngStyle","class","pBind","click",4,"ngIf"],["pInputText","","type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"focus","keydown","click","blur","input","pSize","value","ngStyle","pAutoFocus","variant","fluid","invalid","pt"],[4,"ngIf"],["type","button","aria-haspopup","dialog","tabindex","0",3,"class","disabled","pBind","click",4,"ngIf"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","tabindex","0",3,"click","disabled","pBind"],[3,"ngClass","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","calendar",3,"pBind",4,"ngIf"],["data-p-icon","calendar",3,"pBind"],[3,"pBind"],["data-p-icon","calendar",3,"class","pBind","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","calendar",3,"click","pBind"],[3,"click","ngStyle","pBind"],[3,"class","pBind",4,"ngIf"],[3,"class","pBind",4,"ngFor","ngForOf"],["rounded","","variant","text","severity","secondary","type","button",3,"keydown","onClick","styleClass","ngStyle","ariaLabel","pt"],["type","button","pRipple","",3,"class","pBind","click","keydown",4,"ngIf"],["rounded","","variant","text","severity","secondary",3,"keydown","onClick","styleClass","ngStyle","ariaLabel","pt"],["role","grid",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-left",4,"ngIf"],["data-p-icon","chevron-left"],["type","button","pRipple","",3,"click","keydown","pBind"],["data-p-icon","chevron-right",4,"ngIf"],["data-p-icon","chevron-right"],["role","grid",3,"pBind"],["scope","col",3,"class","pBind",4,"ngFor","ngForOf"],[3,"pBind",4,"ngFor","ngForOf"],["scope","col",3,"pBind"],["draggable","false","pRipple","",3,"click","keydown","ngClass","pBind"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],["pRipple","",3,"class","pBind","click","keydown",4,"ngFor","ngForOf"],["pRipple","",3,"click","keydown","pBind"],["rounded","","variant","text","severity","secondary",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave","styleClass","pt"],[1,"p-datepicker-separator",3,"pBind"],["data-p-icon","chevron-up",3,"pBind",4,"ngIf"],["data-p-icon","chevron-up",3,"pBind"],["data-p-icon","chevron-down",3,"pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind"],["text","","rounded","","severity","secondary",3,"keydown","onClick","keydown.enter","styleClass","pt"],["text","","rounded","","severity","secondary",3,"keydown","click","keydown.enter","styleClass","pt"],["size","small","severity","secondary","variant","text","size","small",3,"keydown","onClick","styleClass","label","ngClass","pt"]],template:function(i,o){i&1&&(en(R2),_(0,iT,5,27,"ng-template",3)(1,PS,9,20,"div",4)),i&2&&(d("ngIf",!o.inline),f(),d("ngIf",o.inline||o.overlayVisible))},dependencies:[$e,Cn,xn,ht,ot,an,$n,ui,Em,Mm,Dm,qa,Fo,Im,di,An,ve,dt,X],encapsulation:2,data:{animation:[Vr("overlayAnimation",[Oc("visibleTouchUI",qt({transform:"translate(-50%,-50%)",opacity:1})),ii("void => visible",[qt({opacity:0,transform:"scaleY(0.8)"}),ni("{{showTransitionParams}}",qt({opacity:1,transform:"*"}))]),ii("visible => void",[ni("{{hideTransitionParams}}",qt({opacity:0}))]),ii("void => visibleTouchUI",[qt({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),ni("{{showTransitionParams}}")]),ii("visibleTouchUI => void",[ni("{{hideTransitionParams}}",qt({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),x0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({imports:[C0,ve,ve]})}return t})();var AS=["data-p-icon","filter-fill"],k0=(()=>{class t extends ce{static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["","data-p-icon","filter-fill"]],features:[L],attrs:AS,decls:1,vars:0,consts:[["d","M13.7274 0.33847C13.6228 0.130941 13.4095 0 13.1764 0H0.82351C0.590451 0 0.377157 0.130941 0.272568 0.33847C0.167157 0.545999 0.187746 0.795529 0.325275 0.98247L4.73527 6.99588V13.3824C4.73527 13.7233 5.01198 14 5.35292 14H8.64704C8.98798 14 9.26469 13.7233 9.26469 13.3824V6.99588L13.6747 0.98247C13.8122 0.795529 13.8328 0.545999 13.7274 0.33847Z","fill","currentColor"]],template:function(i,o){i&1&&(j(),ae(0,"path",0))},encapsulation:2})}return t})();var T0=` + `}}this.responsiveStyleElement.innerHTML=e,nu(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce)}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(e,"mousedown",r=>{this.isOutsideClicked(r)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(r),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new xo(this.el?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return wn(e.target,"p-datepicker-prev-button")||wn(e.target,"p-datepicker-prev-icon")||wn(e.target,"p-datepicker-next-button")||wn(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!_o()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}writeControlValue(e){if(this.value=e,this.value&&typeof this.value=="string")try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=e)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}onDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&ir.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(r){return new(r||t)(de($e),de(zl))};static \u0275cmp=$({type:t,selectors:[["p-datePicker"],["p-datepicker"],["p-date-picker"]],contentQueries:function(r,i,o){if(r&1&&(V(o,PW,4),V(o,AW,4),V(o,NW,4),V(o,FW,4),V(o,LW,4),V(o,BW,4),V(o,VW,4),V(o,jW,4),V(o,zW,4),V(o,HW,4),V(o,$W,4),V(o,UW,4),V(o,WW,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.dateTemplate=s.first),M(s=O())&&(i.headerTemplate=s.first),M(s=O())&&(i.footerTemplate=s.first),M(s=O())&&(i.disabledDateTemplate=s.first),M(s=O())&&(i.decadeTemplate=s.first),M(s=O())&&(i.previousIconTemplate=s.first),M(s=O())&&(i.nextIconTemplate=s.first),M(s=O())&&(i.triggerIconTemplate=s.first),M(s=O())&&(i.clearIconTemplate=s.first),M(s=O())&&(i.decrementIconTemplate=s.first),M(s=O())&&(i.incrementIconTemplate=s.first),M(s=O())&&(i.inputIconTemplate=s.first),M(s=O())&&(i.buttonBarTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(GW,5),ct(qW,5)),r&2){let o;M(o=O())&&(i.inputfieldViewChild=o.first),M(o=O())&&(i.content=o.first)}},hostVars:4,hostBindings:function(r,i){r&2&&(Dn(i.sx("root")),k(i.cn(i.cx("root"),i.styleClass)))},inputs:{iconDisplay:"iconDisplay",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[2,"inline","inline",R],showOtherMonths:[2,"showOtherMonths","showOtherMonths",R],selectOtherMonths:[2,"selectOtherMonths","selectOtherMonths",R],showIcon:[2,"showIcon","showIcon",R],icon:"icon",readonlyInput:[2,"readonlyInput","readonlyInput",R],shortYearCutoff:"shortYearCutoff",hourFormat:"hourFormat",timeOnly:[2,"timeOnly","timeOnly",R],stepHour:[2,"stepHour","stepHour",Me],stepMinute:[2,"stepMinute","stepMinute",Me],stepSecond:[2,"stepSecond","stepSecond",Me],showSeconds:[2,"showSeconds","showSeconds",R],showOnFocus:[2,"showOnFocus","showOnFocus",R],showWeek:[2,"showWeek","showWeek",R],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[2,"showClear","showClear",R],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[2,"maxDateCount","maxDateCount",Me],showButtonBar:[2,"showButtonBar","showButtonBar",R],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[2,"autofocus","autofocus",R],autoZIndex:[2,"autoZIndex","autoZIndex",R],baseZIndex:[2,"baseZIndex","baseZIndex",Me],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[2,"keepInvalid","keepInvalid",R],hideOnDateTimeSelect:[2,"hideOnDateTimeSelect","hideOnDateTimeSelect",R],touchUI:[2,"touchUI","touchUI",R],timeSeparator:"timeSeparator",focusTrap:[2,"focusTrap","focusTrap",R],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[2,"tabindex","tabindex",Me],minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",view:"view",defaultDate:"defaultDate",appendTo:[1,"appendTo"]},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[xe([Yq,XR,{provide:eP,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:KW,decls:2,vars:2,consts:[["inputfield",""],["contentWrapper",""],["icon",""],[3,"ngIf"],[3,"ngStyle","class","pBind","click",4,"ngIf"],["pInputText","","type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"focus","keydown","click","blur","input","pSize","value","ngStyle","pAutoFocus","variant","fluid","invalid","pt"],[4,"ngIf"],["type","button","aria-haspopup","dialog","tabindex","0",3,"class","disabled","pBind","click",4,"ngIf"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","tabindex","0",3,"click","disabled","pBind"],[3,"ngClass","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","calendar",3,"pBind",4,"ngIf"],["data-p-icon","calendar",3,"pBind"],[3,"pBind"],["data-p-icon","calendar",3,"class","pBind","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","calendar",3,"click","pBind"],[3,"click","ngStyle","pBind"],[3,"class","pBind",4,"ngIf"],[3,"class","pBind",4,"ngFor","ngForOf"],["rounded","","variant","text","severity","secondary","type","button",3,"keydown","onClick","styleClass","ngStyle","ariaLabel","pt"],["type","button","pRipple","",3,"class","pBind","click","keydown",4,"ngIf"],["rounded","","variant","text","severity","secondary",3,"keydown","onClick","styleClass","ngStyle","ariaLabel","pt"],["role","grid",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-left",4,"ngIf"],["data-p-icon","chevron-left"],["type","button","pRipple","",3,"click","keydown","pBind"],["data-p-icon","chevron-right",4,"ngIf"],["data-p-icon","chevron-right"],["role","grid",3,"pBind"],["scope","col",3,"class","pBind",4,"ngFor","ngForOf"],[3,"pBind",4,"ngFor","ngForOf"],["scope","col",3,"pBind"],["draggable","false","pRipple","",3,"click","keydown","ngClass","pBind"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],["pRipple","",3,"class","pBind","click","keydown",4,"ngFor","ngForOf"],["pRipple","",3,"click","keydown","pBind"],["rounded","","variant","text","severity","secondary",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave","styleClass","pt"],[1,"p-datepicker-separator",3,"pBind"],["data-p-icon","chevron-up",3,"pBind",4,"ngIf"],["data-p-icon","chevron-up",3,"pBind"],["data-p-icon","chevron-down",3,"pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind"],["text","","rounded","","severity","secondary",3,"keydown","onClick","keydown.enter","styleClass","pt"],["text","","rounded","","severity","secondary",3,"keydown","click","keydown.enter","styleClass","pt"],["size","small","severity","secondary","variant","text","size","small",3,"keydown","onClick","styleClass","label","ngClass","pt"]],template:function(r,i){r&1&&(Ht(QW),C(0,yG,5,27,"ng-template",3)(1,Gq,9,20,"div",4)),r&2&&(h("ngIf",!i.inline),g(),h("ngIf",i.inline||i.overlayVisible))},dependencies:[Qe,ei,Ar,Wt,kt,tr,rr,Ui,Xk,eM,tM,Jh,ql,Jk,$i,to,Te,Gt,te],encapsulation:2,data:{animation:[Lu("overlayAnimation",[Tw("visibleTouchUI",sr({transform:"translate(-50%,-50%)",opacity:1})),Ao("void => visible",[sr({opacity:0,transform:"scaleY(0.8)"}),Po("{{showTransitionParams}}",sr({opacity:1,transform:"*"}))]),Ao("visible => void",[Po("{{hideTransitionParams}}",sr({opacity:0}))]),Ao("void => visibleTouchUI",[sr({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),Po("{{showTransitionParams}}")]),Ao("visibleTouchUI => void",[Po("{{hideTransitionParams}}",sr({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),nP=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[tP,Te,Te]})}return t})();var Zq=["data-p-icon","filter-fill"],rP=(()=>{class t extends we{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["","data-p-icon","filter-fill"]],features:[j],attrs:Zq,decls:1,vars:0,consts:[["d","M13.7274 0.33847C13.6228 0.130941 13.4095 0 13.1764 0H0.82351C0.590451 0 0.377157 0.130941 0.272568 0.33847C0.167157 0.545999 0.187746 0.795529 0.325275 0.98247L4.73527 6.99588V13.3824C4.73527 13.7233 5.01198 14 5.35292 14H8.64704C8.98798 14 9.26469 13.7233 9.26469 13.3824V6.99588L13.6747 0.98247C13.8122 0.795529 13.8328 0.545999 13.7274 0.33847Z","fill","currentColor"]],template:function(r,i){r&1&&(G(),ue(0,"path",0))},encapsulation:2})}return t})();var iP=` .p-radiobutton { position: relative; display: inline-flex; @@ -2599,8 +3640,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a width: dt('radiobutton.icon.lg.size'); height: dt('radiobutton.icon.lg.size'); } -`;var LS=["input"],NS=` - ${T0} +`;var Jq=["input"],Xq=` + ${iP} /* For PrimeNG */ p-radioButton.ng-invalid.ng-dirty .p-radiobutton-box, @@ -2608,8 +3649,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a p-radiobutton.ng-invalid.ng-dirty .p-radiobutton-box { border-color: dt('radiobutton.invalid.border.color'); } -`,zS={root:({instance:t})=>["p-radiobutton p-component",{"p-radiobutton-checked":t.checked,"p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-radiobutton-sm p-inputfield-sm":t.size()==="small","p-radiobutton-lg p-inputfield-lg":t.size()==="large"}],box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},S0=(()=>{class t extends Ge{name="radiobutton";style=NS;classes=zS;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var I0=new we("RADIOBUTTON_INSTANCE"),jS={provide:Ot,useExisting:_t(()=>E0),multi:!0},HS=(()=>{class t{accessors=[];add(e,i){this.accessors.push([e,i])}remove(e){this.accessors=this.accessors.filter(i=>i[1]!==e)}select(e){this.accessors.forEach(i=>{this.isSameGroup(i,e)&&i[1]!==e&&i[1].writeValue(e.value)})}isSameGroup(e,i){return e[0].control?e[0].control.root===i.control.control.root&&e[1].name()===i.name():!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),E0=(()=>{class t extends Bn{$pcRadioButton=G(I0,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=G(X,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}value;tabindex;inputId;ariaLabelledBy;ariaLabel;styleClass;autofocus;binary;variant=ue();size=ue();onClick=new H;onFocus=new H;onBlur=new H;inputViewChild;$variant=Be(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());checked;focused;control;_componentStyle=G(S0);injector=G(Hn);registry=G(HS);onInit(){this.control=this.injector.get(Bt),this.registry.add(this.control,this)}onChange(e){this.$disabled()||this.select(e)}select(e){this.$disabled()||(this.checked=!0,this.writeModelValue(this.checked),this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}focus(){this.inputViewChild.nativeElement.focus()}writeControlValue(e,i){this.checked=this.binary?!!e:e==this.value,i(this.checked),this.cd.markForCheck()}onDestroy(){this.registry.remove(this)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["p-radioButton"],["p-radiobutton"],["p-radio-button"]],viewQuery:function(i,o){if(i&1&&Fe(LS,5),i&2){let r;M(r=D())&&(o.inputViewChild=r.first)}},hostVars:2,hostBindings:function(i,o){i&2&&I(o.cx("root"))},inputs:{value:"value",tabindex:[2,"tabindex","tabindex",xe],inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",styleClass:"styleClass",autofocus:[2,"autofocus","autofocus",P],binary:[2,"binary","binary",P],variant:[1,"variant"],size:[1,"size"]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Ee([jS,S0,{provide:I0,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],decls:4,vars:20,consts:[["input",""],["type","radio",3,"focus","blur","change","checked","pAutoFocus","pBind"],[3,"pBind"]],template:function(i,o){if(i&1){let r=te();k(0,"input",1,0),Q("focus",function(s){return w(r),C(o.onInputFocus(s))})("blur",function(s){return w(r),C(o.onInputBlur(s))})("change",function(s){return w(r),C(o.onChange(s))}),x(),k(2,"div",2),Z(3,"div",2),x()}i&2&&(I(o.cx("input")),d("checked",o.checked)("pAutoFocus",o.autofocus)("pBind",o.ptm("input")),Y("id",o.inputId)("name",o.name())("required",o.required()?"":void 0)("disabled",o.$disabled()?"":void 0)("value",o.modelValue())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-checked",o.checked)("tabindex",o.tabindex),f(2),I(o.cx("box")),d("pBind",o.ptm("box")),f(),I(o.cx("icon")),d("pBind",o.ptm("icon")))},dependencies:[$e,di,ve,dt,X],encapsulation:2,changeDetection:0})}return t})(),M0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({imports:[E0,ve,ve]})}return t})();var QS=["header"],qS=["headergrouped"],US=["body"],GS=["loadingbody"],$S=["caption"],WS=["footer"],KS=["footergrouped"],YS=["summary"],ZS=["colgroup"],JS=["expandedrow"],XS=["groupheader"],eI=["groupfooter"],tI=["frozenexpandedrow"],nI=["frozenheader"],iI=["frozenbody"],oI=["frozenfooter"],rI=["frozencolgroup"],aI=["emptymessage"],sI=["paginatorleft"],lI=["paginatorright"],cI=["paginatordropdownitem"],dI=["loadingicon"],uI=["reorderindicatorupicon"],pI=["reorderindicatordownicon"],fI=["sorticon"],hI=["checkboxicon"],mI=["headercheckboxicon"],gI=["paginatordropdownicon"],bI=["paginatorfirstpagelinkicon"],_I=["paginatorlastpagelinkicon"],yI=["paginatorpreviouspagelinkicon"],vI=["paginatornextpagelinkicon"],wI=["resizeHelper"],CI=["reorderIndicatorUp"],xI=["reorderIndicatorDown"],kI=["wrapper"],TI=["table"],SI=["thead"],II=["tfoot"],EI=["scroller"],MI=t=>({height:t}),D0=(t,n)=>({$implicit:t,options:n}),DI=t=>({columns:t}),Ac=t=>({$implicit:t});function OI(t,n){if(t&1&&Z(0,"i",17),t&2){let e=u(2);I(e.cn(e.cx("loadingIcon"),e.loadingIcon)),d("pBind",e.ptm("loadingIcon"))}}function PI(t,n){if(t&1&&(j(),Z(0,"svg",19)),t&2){let e=u(3);I(e.cx("loadingIcon")),d("spin",!0)("pBind",e.ptm("loadingIcon"))}}function FI(t,n){}function RI(t,n){t&1&&_(0,FI,0,0,"ng-template")}function VI(t,n){if(t&1&&(k(0,"span",17),_(1,RI,1,0,null,20),x()),t&2){let e=u(3);I(e.cx("loadingIcon")),d("pBind",e.ptm("loadingIcon")),f(),d("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function BI(t,n){if(t&1&&(ne(0),_(1,PI,1,4,"svg",18)(2,VI,2,4,"span",10),ie()),t&2){let e=u(2);f(),d("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),f(),d("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function AI(t,n){if(t&1&&(k(0,"div",17),_(1,OI,1,3,"i",10)(2,BI,3,2,"ng-container",14),x()),t&2){let e=u();I(e.cx("mask")),d("pBind",e.ptm("mask")),f(),d("ngIf",e.loadingIcon),f(),d("ngIf",!e.loadingIcon)}}function LI(t,n){t&1&&J(0)}function NI(t,n){if(t&1&&(k(0,"div",17),_(1,LI,1,0,"ng-container",20),x()),t&2){let e=u();I(e.cx("header")),d("pBind",e.ptm("header")),f(),d("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function zI(t,n){t&1&&J(0)}function jI(t,n){if(t&1&&_(0,zI,1,0,"ng-container",20),t&2){let e=u(3);d("ngTemplateOutlet",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate)}}function HI(t,n){t&1&&_(0,jI,1,1,"ng-template",22)}function QI(t,n){t&1&&J(0)}function qI(t,n){if(t&1&&_(0,QI,1,0,"ng-container",20),t&2){let e=u(3);d("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function UI(t,n){t&1&&_(0,qI,1,1,"ng-template",23)}function GI(t,n){t&1&&J(0)}function $I(t,n){if(t&1&&_(0,GI,1,0,"ng-container",20),t&2){let e=u(3);d("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function WI(t,n){t&1&&_(0,$I,1,1,"ng-template",24)}function KI(t,n){t&1&&J(0)}function YI(t,n){if(t&1&&_(0,KI,1,0,"ng-container",20),t&2){let e=u(3);d("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function ZI(t,n){t&1&&_(0,YI,1,1,"ng-template",25)}function JI(t,n){t&1&&J(0)}function XI(t,n){if(t&1&&_(0,JI,1,0,"ng-container",20),t&2){let e=u(3);d("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function eE(t,n){t&1&&_(0,XI,1,1,"ng-template",26)}function tE(t,n){if(t&1){let e=te();k(0,"p-paginator",21),Q("onPageChange",function(o){w(e);let r=u();return C(r.onPageChange(o))}),_(1,HI,1,0,null,14)(2,UI,1,0,null,14)(3,WI,1,0,null,14)(4,ZI,1,0,null,14)(5,eE,1,0,null,14),x()}if(t&2){let e=u();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate||e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate||e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate||e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.cx("pcPaginator")+" "+e.paginatorStyleClass&&e.paginatorStyleClass)("locale",e.paginatorLocale)("pt",e.ptm("pcPaginator")),f(),d("ngIf",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate),f(),d("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),f(),d("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),f(),d("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),f(),d("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function nE(t,n){t&1&&J(0)}function iE(t,n){if(t&1&&_(0,nE,1,0,"ng-container",28),t&2){let e=n.$implicit,i=n.options;u(2);let o=kt(8);d("ngTemplateOutlet",o)("ngTemplateOutletContext",at(2,D0,e,i))}}function oE(t,n){if(t&1){let e=te();k(0,"p-scroller",27,2),Q("onLazyLoad",function(o){w(e);let r=u();return C(r.onLazyItemLoad(o))}),_(2,iE,1,5,"ng-template",null,3,Me),x()}if(t&2){let e=u();jt(de(16,MI,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),d("items",e.processedData)("columns",e.columns)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("autoSize",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate||e._loadingBodyTemplate)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller"))}}function rE(t,n){t&1&&J(0)}function aE(t,n){if(t&1&&(ne(0),_(1,rE,1,0,"ng-container",28),ie()),t&2){let e=u(),i=kt(8);f(),d("ngTemplateOutlet",i)("ngTemplateOutletContext",at(4,D0,e.processedData,de(2,DI,e.columns)))}}function sE(t,n){t&1&&J(0)}function lE(t,n){t&1&&J(0)}function cE(t,n){if(t&1&&Z(0,"tbody",35),t&2){let e=u().options,i=u();I(i.cx("tbody")),d("pBind",i.ptm("tbody"))("value",i.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",i.frozenBodyTemplate||i._frozenBodyTemplate)("frozen",!0)}}function dE(t,n){if(t&1&&Z(0,"tbody",36),t&2){let e=u().options,i=u();jt("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);"),I(i.cx("virtualScrollerSpacer")),d("pBind",i.ptm("virtualScrollerSpacer"))}}function uE(t,n){t&1&&J(0)}function pE(t,n){if(t&1&&(k(0,"tfoot",37,6),_(2,uE,1,0,"ng-container",28),x()),t&2){let e=u().options,i=u();d("ngClass",i.cx("footer"))("ngStyle",i.sx("tfoot"))("pBind",i.ptm("tfoot")),f(2),d("ngTemplateOutlet",i.footerGroupedTemplate||i.footerTemplate||i._footerTemplate||i._footerGroupedTemplate)("ngTemplateOutletContext",de(5,Ac,e.columns))}}function fE(t,n){if(t&1&&(k(0,"table",29,4),_(2,sE,1,0,"ng-container",28),k(3,"thead",30,5),_(5,lE,1,0,"ng-container",28),x(),_(6,cE,1,8,"tbody",31),Z(7,"tbody",32),_(8,dE,1,5,"tbody",33)(9,pE,3,7,"tfoot",34),x()),t&2){let e=n.options,i=u();jt(i.tableStyle),I(i.cn(i.cx("table"),i.tableStyleClass)),d("pBind",i.ptm("table")),Y("id",i.id+"-table"),f(2),d("ngTemplateOutlet",i.colGroupTemplate||i._colGroupTemplate)("ngTemplateOutletContext",de(26,Ac,e.columns)),f(),I(i.cx("thead")),d("ngStyle",i.sx("thead"))("pBind",i.ptm("thead")),f(2),d("ngTemplateOutlet",i.headerGroupedTemplate||i.headerTemplate||i._headerTemplate)("ngTemplateOutletContext",de(28,Ac,e.columns)),f(),d("ngIf",i.frozenValue||i.frozenBodyTemplate||i._frozenBodyTemplate),f(),jt(e.contentStyle),I(i.cx("tbody",e.contentStyleClass)),d("pBind",i.ptm("tbody"))("value",i.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",i.bodyTemplate||i._bodyTemplate)("scrollerOptions",e),f(),d("ngIf",e.spacerStyle),f(),d("ngIf",i.footerGroupedTemplate||i.footerTemplate||i._footerTemplate||i._footerGroupedTemplate)}}function hE(t,n){t&1&&J(0)}function mE(t,n){if(t&1&&_(0,hE,1,0,"ng-container",20),t&2){let e=u(3);d("ngTemplateOutlet",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate)}}function gE(t,n){t&1&&_(0,mE,1,1,"ng-template",22)}function bE(t,n){t&1&&J(0)}function _E(t,n){if(t&1&&_(0,bE,1,0,"ng-container",20),t&2){let e=u(3);d("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function yE(t,n){t&1&&_(0,_E,1,1,"ng-template",23)}function vE(t,n){t&1&&J(0)}function wE(t,n){if(t&1&&_(0,vE,1,0,"ng-container",20),t&2){let e=u(3);d("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function CE(t,n){t&1&&_(0,wE,1,1,"ng-template",24)}function xE(t,n){t&1&&J(0)}function kE(t,n){if(t&1&&_(0,xE,1,0,"ng-container",20),t&2){let e=u(3);d("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function TE(t,n){t&1&&_(0,kE,1,1,"ng-template",25)}function SE(t,n){t&1&&J(0)}function IE(t,n){if(t&1&&_(0,SE,1,0,"ng-container",20),t&2){let e=u(3);d("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function EE(t,n){t&1&&_(0,IE,1,1,"ng-template",26)}function ME(t,n){if(t&1){let e=te();k(0,"p-paginator",21),Q("onPageChange",function(o){w(e);let r=u();return C(r.onPageChange(o))}),_(1,gE,1,0,null,14)(2,yE,1,0,null,14)(3,CE,1,0,null,14)(4,TE,1,0,null,14)(5,EE,1,0,null,14),x()}if(t&2){let e=u();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate||e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate||e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate||e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.cx("pcPaginator")+" "+e.paginatorStyleClass&&e.paginatorStyleClass)("locale",e.paginatorLocale)("pt",e.ptm("pcPaginator")),f(),d("ngIf",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate),f(),d("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),f(),d("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),f(),d("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),f(),d("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function DE(t,n){t&1&&J(0)}function OE(t,n){if(t&1&&(k(0,"div",38),_(1,DE,1,0,"ng-container",20),x()),t&2){let e=u();d("ngClass",e.cx("footer"))("pBind",e.ptm("footer")),f(),d("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function PE(t,n){if(t&1&&Z(0,"div",38,7),t&2){let e=u();bn("display","none"),d("ngClass",e.cx("columnResizeIndicator"))("pBind",e.ptm("columnResizeIndicator"))}}function FE(t,n){if(t&1&&(j(),Z(0,"svg",40)),t&2){let e=u(2);d("pBind",e.ptm("rowReorderIndicatorUp").icon)}}function RE(t,n){}function VE(t,n){t&1&&_(0,RE,0,0,"ng-template")}function BE(t,n){if(t&1&&(k(0,"span",38,8),_(2,FE,1,1,"svg",39)(3,VE,1,0,null,20),x()),t&2){let e=u();bn("display","none"),d("ngClass",e.cx("rowReorderIndicatorUp"))("pBind",e.ptm("rowReorderIndicatorUp")),f(2),d("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),f(),d("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function AE(t,n){if(t&1&&(j(),Z(0,"svg",42)),t&2){let e=u(2);d("pBind",e.ptm("rowReorderIndicatorDown").icon)}}function LE(t,n){}function NE(t,n){t&1&&_(0,LE,0,0,"ng-template")}function zE(t,n){if(t&1&&(k(0,"span",38,9),_(2,AE,1,1,"svg",41)(3,NE,1,0,null,20),x()),t&2){let e=u();bn("display","none"),d("ngClass",e.cx("rowReorderIndicatorDown"))("pBind",e.ptm("rowReorderIndicatorDown")),f(2),d("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),f(),d("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var jE=["pTableBody",""],zc=(t,n,e,i,o)=>({$implicit:t,rowIndex:n,columns:e,editing:i,frozen:o}),HE=(t,n,e,i,o,r,a)=>({$implicit:t,rowIndex:n,columns:e,editing:i,frozen:o,rowgroup:r,rowspan:a}),gs=(t,n,e,i,o,r)=>({$implicit:t,rowIndex:n,columns:e,expanded:i,editing:o,frozen:r}),O0=(t,n,e,i)=>({$implicit:t,rowIndex:n,columns:e,frozen:i}),P0=(t,n)=>({$implicit:t,frozen:n});function QE(t,n){t&1&&J(0)}function qE(t,n){if(t&1&&(ne(0,3),_(1,QE,1,0,"ng-container",4),ie()),t&2){let e=u(),i=e.$implicit,o=e.index,r=u(2);f(),d("ngTemplateOutlet",r.dataTable.groupHeaderTemplate||r.dataTable._groupHeaderTemplate)("ngTemplateOutletContext",oa(2,zc,i,r.getRowIndex(o),r.columns,r.dataTable.editMode==="row"&&r.dataTable.isRowEditing(i),r.frozen))}}function UE(t,n){t&1&&J(0)}function GE(t,n){if(t&1&&(ne(0),_(1,UE,1,0,"ng-container",4),ie()),t&2){let e=u(),i=e.$implicit,o=e.index,r=u(2);f(),d("ngTemplateOutlet",i?r.template:r.dataTable.loadingBodyTemplate||r.dataTable._loadingBodyTemplate)("ngTemplateOutletContext",oa(2,zc,i,r.getRowIndex(o),r.columns,r.dataTable.editMode==="row"&&r.dataTable.isRowEditing(i),r.frozen))}}function $E(t,n){t&1&&J(0)}function WE(t,n){if(t&1&&(ne(0),_(1,$E,1,0,"ng-container",4),ie()),t&2){let e=u(),i=e.$implicit,o=e.index,r=u(2);f(),d("ngTemplateOutlet",i?r.template:r.dataTable.loadingBodyTemplate||r.dataTable._loadingBodyTemplate)("ngTemplateOutletContext",jp(2,HE,i,r.getRowIndex(o),r.columns,r.dataTable.editMode==="row"&&r.dataTable.isRowEditing(i),r.frozen,r.shouldRenderRowspan(r.value,i,o),r.calculateRowGroupSize(r.value,i,o)))}}function KE(t,n){t&1&&J(0)}function YE(t,n){if(t&1&&(ne(0,3),_(1,KE,1,0,"ng-container",4),ie()),t&2){let e=u(),i=e.$implicit,o=e.index,r=u(2);f(),d("ngTemplateOutlet",r.dataTable.groupFooterTemplate||r.dataTable._groupFooterTemplate)("ngTemplateOutletContext",oa(2,zc,i,r.getRowIndex(o),r.columns,r.dataTable.editMode==="row"&&r.dataTable.isRowEditing(i),r.frozen))}}function ZE(t,n){if(t&1&&_(0,qE,2,8,"ng-container",2)(1,GE,2,8,"ng-container",0)(2,WE,2,10,"ng-container",0)(3,YE,2,8,"ng-container",2),t&2){let e=n.$implicit,i=n.index,o=u(2);d("ngIf",(o.dataTable.groupHeaderTemplate||o.dataTable._groupHeaderTemplate)&&!o.dataTable.virtualScroll&&o.dataTable.rowGroupMode==="subheader"&&o.shouldRenderRowGroupHeader(o.value,e,o.getRowIndex(i))),f(),d("ngIf",o.dataTable.rowGroupMode!=="rowspan"),f(),d("ngIf",o.dataTable.rowGroupMode==="rowspan"),f(),d("ngIf",(o.dataTable.groupFooterTemplate||o.dataTable._groupFooterTemplate)&&!o.dataTable.virtualScroll&&o.dataTable.rowGroupMode==="subheader"&&o.shouldRenderRowGroupFooter(o.value,e,o.getRowIndex(i)))}}function JE(t,n){if(t&1&&(ne(0),_(1,ZE,4,4,"ng-template",1),ie()),t&2){let e=u();f(),d("ngForOf",e.value)("ngForTrackBy",e.dataTable.rowTrackBy)}}function XE(t,n){t&1&&J(0)}function eM(t,n){if(t&1&&(ne(0),_(1,XE,1,0,"ng-container",4),ie()),t&2){let e=u(),i=e.$implicit,o=e.index,r=u(2);f(),d("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Zo(2,gs,i,r.getRowIndex(o),r.columns,r.dataTable.isRowExpanded(i),r.dataTable.editMode==="row"&&r.dataTable.isRowEditing(i),r.frozen))}}function tM(t,n){t&1&&J(0)}function nM(t,n){if(t&1&&(ne(0,3),_(1,tM,1,0,"ng-container",4),ie()),t&2){let e=u(),i=e.$implicit,o=e.index,r=u(2);f(),d("ngTemplateOutlet",r.dataTable.groupHeaderTemplate||r.dataTable._groupHeaderTemplate)("ngTemplateOutletContext",Zo(2,gs,i,r.getRowIndex(o),r.columns,r.dataTable.isRowExpanded(i),r.dataTable.editMode==="row"&&r.dataTable.isRowEditing(i),r.frozen))}}function iM(t,n){t&1&&J(0)}function oM(t,n){t&1&&J(0)}function rM(t,n){if(t&1&&(ne(0,3),_(1,oM,1,0,"ng-container",4),ie()),t&2){let e=u(2),i=e.$implicit,o=e.index,r=u(2);f(),d("ngTemplateOutlet",r.dataTable.groupFooterTemplate||r.dataTable._groupFooterTemplate)("ngTemplateOutletContext",Zo(2,gs,i,r.getRowIndex(o),r.columns,r.dataTable.isRowExpanded(i),r.dataTable.editMode==="row"&&r.dataTable.isRowEditing(i),r.frozen))}}function aM(t,n){if(t&1&&(ne(0),_(1,iM,1,0,"ng-container",4)(2,rM,2,9,"ng-container",2),ie()),t&2){let e=u(),i=e.$implicit,o=e.index,r=u(2);f(),d("ngTemplateOutlet",r.dataTable.expandedRowTemplate||r.dataTable._expandedRowTemplate)("ngTemplateOutletContext",Ks(3,O0,i,r.getRowIndex(o),r.columns,r.frozen)),f(),d("ngIf",(r.dataTable.groupFooterTemplate||r.dataTable._groupFooterTemplate)&&r.dataTable.rowGroupMode==="subheader"&&r.shouldRenderRowGroupFooter(r.value,i,r.getRowIndex(o)))}}function sM(t,n){if(t&1&&_(0,eM,2,9,"ng-container",0)(1,nM,2,9,"ng-container",2)(2,aM,3,8,"ng-container",0),t&2){let e=n.$implicit,i=n.index,o=u(2);d("ngIf",!(o.dataTable.groupHeaderTemplate&&o.dataTable._groupHeaderTemplate)),f(),d("ngIf",(o.dataTable.groupHeaderTemplate||o.dataTable._groupHeaderTemplate)&&o.dataTable.rowGroupMode==="subheader"&&o.shouldRenderRowGroupHeader(o.value,e,o.getRowIndex(i))),f(),d("ngIf",o.dataTable.isRowExpanded(e))}}function lM(t,n){if(t&1&&(ne(0),_(1,sM,3,3,"ng-template",1),ie()),t&2){let e=u();f(),d("ngForOf",e.value)("ngForTrackBy",e.dataTable.rowTrackBy)}}function cM(t,n){t&1&&J(0)}function dM(t,n){t&1&&J(0)}function uM(t,n){if(t&1&&(ne(0),_(1,dM,1,0,"ng-container",4),ie()),t&2){let e=u(),i=e.$implicit,o=e.index,r=u(2);f(),d("ngTemplateOutlet",r.dataTable.frozenExpandedRowTemplate||r.dataTable._frozenExpandedRowTemplate)("ngTemplateOutletContext",Ks(2,O0,i,r.getRowIndex(o),r.columns,r.frozen))}}function pM(t,n){if(t&1&&_(0,cM,1,0,"ng-container",4)(1,uM,2,7,"ng-container",0),t&2){let e=n.$implicit,i=n.index,o=u(2);d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",Zo(3,gs,e,o.getRowIndex(i),o.columns,o.dataTable.isRowExpanded(e),o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(e),o.frozen)),f(),d("ngIf",o.dataTable.isRowExpanded(e))}}function fM(t,n){if(t&1&&(ne(0),_(1,pM,2,10,"ng-template",1),ie()),t&2){let e=u();f(),d("ngForOf",e.value)("ngForTrackBy",e.dataTable.rowTrackBy)}}function hM(t,n){t&1&&J(0)}function mM(t,n){if(t&1&&(ne(0),_(1,hM,1,0,"ng-container",4),ie()),t&2){let e=u();f(),d("ngTemplateOutlet",e.dataTable.loadingBodyTemplate||e.dataTable._loadingBodyTemplate)("ngTemplateOutletContext",at(2,P0,e.columns,e.frozen))}}function gM(t,n){t&1&&J(0)}function bM(t,n){if(t&1&&(ne(0),_(1,gM,1,0,"ng-container",4),ie()),t&2){let e=u();f(),d("ngTemplateOutlet",e.dataTable.emptyMessageTemplate||e.dataTable._emptyMessageTemplate)("ngTemplateOutletContext",at(2,P0,e.columns,e.frozen))}}var _M=` - ${p0} +`,eQ={root:({instance:t})=>["p-radiobutton p-component",{"p-radiobutton-checked":t.checked,"p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-radiobutton-sm p-inputfield-sm":t.size()==="small","p-radiobutton-lg p-inputfield-lg":t.size()==="large"}],box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},oP=(()=>{class t extends Oe{name="radiobutton";style=Xq;classes=eQ;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var sP=new H("RADIOBUTTON_INSTANCE"),tQ={provide:Nn,useExisting:$t(()=>aP),multi:!0},nQ=(()=>{class t{accessors=[];add(e,r){this.accessors.push([e,r])}remove(e){this.accessors=this.accessors.filter(r=>r[1]!==e)}select(e){this.accessors.forEach(r=>{this.isSameGroup(r,e)&&r[1]!==e&&r[1].writeValue(e.value)})}isSameGroup(e,r){return e[0].control?e[0].control.root===r.control.control.root&&e[1].name()===r.name():!1}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aP=(()=>{class t extends eo{$pcRadioButton=x(sP,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}value;tabindex;inputId;ariaLabelledBy;ariaLabel;styleClass;autofocus;binary;variant=ae();size=ae();onClick=new z;onFocus=new z;onBlur=new z;inputViewChild;$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());checked;focused;control;_componentStyle=x(oP);injector=x(Vt);registry=x(nQ);onInit(){this.control=this.injector.get(Yn),this.registry.add(this.control,this)}onChange(e){this.$disabled()||this.select(e)}select(e){this.$disabled()||(this.checked=!0,this.writeModelValue(this.checked),this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}focus(){this.inputViewChild.nativeElement.focus()}writeControlValue(e,r){this.checked=this.binary?!!e:e==this.value,r(this.checked),this.cd.markForCheck()}onDestroy(){this.registry.remove(this)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-radioButton"],["p-radiobutton"],["p-radio-button"]],viewQuery:function(r,i){if(r&1&&ct(Jq,5),r&2){let o;M(o=O())&&(i.inputViewChild=o.first)}},hostVars:2,hostBindings:function(r,i){r&2&&k(i.cx("root"))},inputs:{value:"value",tabindex:[2,"tabindex","tabindex",Me],inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",styleClass:"styleClass",autofocus:[2,"autofocus","autofocus",R],binary:[2,"binary","binary",R],variant:[1,"variant"],size:[1,"size"]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[xe([tQ,oP,{provide:sP,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:4,vars:20,consts:[["input",""],["type","radio",3,"focus","blur","change","checked","pAutoFocus","pBind"],[3,"pBind"]],template:function(r,i){if(r&1){let o=se();E(0,"input",1,0),q("focus",function(a){return S(o),I(i.onInputFocus(a))})("blur",function(a){return S(o),I(i.onInputBlur(a))})("change",function(a){return S(o),I(i.onChange(a))}),T(),E(2,"div",2),X(3,"div",2),T()}r&2&&(k(i.cx("input")),h("checked",i.checked)("pAutoFocus",i.autofocus)("pBind",i.ptm("input")),J("id",i.inputId)("name",i.name())("required",i.required()?"":void 0)("disabled",i.$disabled()?"":void 0)("value",i.modelValue())("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-checked",i.checked)("tabindex",i.tabindex),g(2),k(i.cx("box")),h("pBind",i.ptm("box")),g(),k(i.cx("icon")),h("pBind",i.ptm("icon")))},dependencies:[Qe,$i,Te,Gt,te],encapsulation:2,changeDetection:0})}return t})(),lP=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[aP,Te,Te]})}return t})();var rQ=["header"],iQ=["headergrouped"],oQ=["body"],sQ=["loadingbody"],aQ=["caption"],lQ=["footer"],cQ=["footergrouped"],dQ=["summary"],uQ=["colgroup"],pQ=["expandedrow"],fQ=["groupheader"],hQ=["groupfooter"],mQ=["frozenexpandedrow"],gQ=["frozenheader"],yQ=["frozenbody"],bQ=["frozenfooter"],vQ=["frozencolgroup"],_Q=["emptymessage"],wQ=["paginatorleft"],CQ=["paginatorright"],xQ=["paginatordropdownitem"],TQ=["loadingicon"],EQ=["reorderindicatorupicon"],SQ=["reorderindicatordownicon"],IQ=["sorticon"],DQ=["checkboxicon"],kQ=["headercheckboxicon"],MQ=["paginatordropdownicon"],OQ=["paginatorfirstpagelinkicon"],RQ=["paginatorlastpagelinkicon"],PQ=["paginatorpreviouspagelinkicon"],AQ=["paginatornextpagelinkicon"],NQ=["resizeHelper"],FQ=["reorderIndicatorUp"],LQ=["reorderIndicatorDown"],BQ=["wrapper"],VQ=["table"],jQ=["thead"],zQ=["tfoot"],HQ=["scroller"],$Q=t=>({height:t}),cP=(t,n)=>({$implicit:t,options:n}),UQ=t=>({columns:t}),Mw=t=>({$implicit:t});function WQ(t,n){if(t&1&&X(0,"i",17),t&2){let e=m(2);k(e.cn(e.cx("loadingIcon"),e.loadingIcon)),h("pBind",e.ptm("loadingIcon"))}}function GQ(t,n){if(t&1&&(G(),X(0,"svg",19)),t&2){let e=m(3);k(e.cx("loadingIcon")),h("spin",!0)("pBind",e.ptm("loadingIcon"))}}function qQ(t,n){}function QQ(t,n){t&1&&C(0,qQ,0,0,"ng-template")}function KQ(t,n){if(t&1&&(E(0,"span",17),C(1,QQ,1,0,null,20),T()),t&2){let e=m(3);k(e.cx("loadingIcon")),h("pBind",e.ptm("loadingIcon")),g(),h("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function YQ(t,n){if(t&1&&(ie(0),C(1,GQ,1,4,"svg",18)(2,KQ,2,4,"span",10),oe()),t&2){let e=m(2);g(),h("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),g(),h("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function ZQ(t,n){if(t&1&&(E(0,"div",17),C(1,WQ,1,3,"i",10)(2,YQ,3,2,"ng-container",14),T()),t&2){let e=m();k(e.cx("mask")),h("pBind",e.ptm("mask")),g(),h("ngIf",e.loadingIcon),g(),h("ngIf",!e.loadingIcon)}}function JQ(t,n){t&1&&ne(0)}function XQ(t,n){if(t&1&&(E(0,"div",17),C(1,JQ,1,0,"ng-container",20),T()),t&2){let e=m();k(e.cx("header")),h("pBind",e.ptm("header")),g(),h("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function eK(t,n){t&1&&ne(0)}function tK(t,n){if(t&1&&C(0,eK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate)}}function nK(t,n){t&1&&C(0,tK,1,1,"ng-template",22)}function rK(t,n){t&1&&ne(0)}function iK(t,n){if(t&1&&C(0,rK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function oK(t,n){t&1&&C(0,iK,1,1,"ng-template",23)}function sK(t,n){t&1&&ne(0)}function aK(t,n){if(t&1&&C(0,sK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function lK(t,n){t&1&&C(0,aK,1,1,"ng-template",24)}function cK(t,n){t&1&&ne(0)}function dK(t,n){if(t&1&&C(0,cK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function uK(t,n){t&1&&C(0,dK,1,1,"ng-template",25)}function pK(t,n){t&1&&ne(0)}function fK(t,n){if(t&1&&C(0,pK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function hK(t,n){t&1&&C(0,fK,1,1,"ng-template",26)}function mK(t,n){if(t&1){let e=se();E(0,"p-paginator",21),q("onPageChange",function(i){S(e);let o=m();return I(o.onPageChange(i))}),C(1,nK,1,0,null,14)(2,oK,1,0,null,14)(3,lK,1,0,null,14)(4,uK,1,0,null,14)(5,hK,1,0,null,14),T()}if(t&2){let e=m();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate||e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate||e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate||e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.cx("pcPaginator")+" "+e.paginatorStyleClass&&e.paginatorStyleClass)("locale",e.paginatorLocale)("pt",e.ptm("pcPaginator")),g(),h("ngIf",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate),g(),h("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),g(),h("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),g(),h("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),g(),h("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function gK(t,n){t&1&&ne(0)}function yK(t,n){if(t&1&&C(0,gK,1,0,"ng-container",28),t&2){let e=n.$implicit,r=n.options;m(2);let i=pn(8);h("ngTemplateOutlet",i)("ngTemplateOutletContext",Dt(2,cP,e,r))}}function bK(t,n){if(t&1){let e=se();E(0,"p-scroller",27,2),q("onLazyLoad",function(i){S(e);let o=m();return I(o.onLazyItemLoad(i))}),C(2,yK,1,5,"ng-template",null,3,at),T()}if(t&2){let e=m();Dn(Ee(16,$Q,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),h("items",e.processedData)("columns",e.columns)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("autoSize",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate||e._loadingBodyTemplate)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller"))}}function vK(t,n){t&1&&ne(0)}function _K(t,n){if(t&1&&(ie(0),C(1,vK,1,0,"ng-container",28),oe()),t&2){let e=m(),r=pn(8);g(),h("ngTemplateOutlet",r)("ngTemplateOutletContext",Dt(4,cP,e.processedData,Ee(2,UQ,e.columns)))}}function wK(t,n){t&1&&ne(0)}function CK(t,n){t&1&&ne(0)}function xK(t,n){if(t&1&&X(0,"tbody",35),t&2){let e=m().options,r=m();k(r.cx("tbody")),h("pBind",r.ptm("tbody"))("value",r.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",r.frozenBodyTemplate||r._frozenBodyTemplate)("frozen",!0)}}function TK(t,n){if(t&1&&X(0,"tbody",36),t&2){let e=m().options,r=m();Dn("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);"),k(r.cx("virtualScrollerSpacer")),h("pBind",r.ptm("virtualScrollerSpacer"))}}function EK(t,n){t&1&&ne(0)}function SK(t,n){if(t&1&&(E(0,"tfoot",37,6),C(2,EK,1,0,"ng-container",28),T()),t&2){let e=m().options,r=m();h("ngClass",r.cx("footer"))("ngStyle",r.sx("tfoot"))("pBind",r.ptm("tfoot")),g(2),h("ngTemplateOutlet",r.footerGroupedTemplate||r.footerTemplate||r._footerTemplate||r._footerGroupedTemplate)("ngTemplateOutletContext",Ee(5,Mw,e.columns))}}function IK(t,n){if(t&1&&(E(0,"table",29,4),C(2,wK,1,0,"ng-container",28),E(3,"thead",30,5),C(5,CK,1,0,"ng-container",28),T(),C(6,xK,1,8,"tbody",31),X(7,"tbody",32),C(8,TK,1,5,"tbody",33)(9,SK,3,7,"tfoot",34),T()),t&2){let e=n.options,r=m();Dn(r.tableStyle),k(r.cn(r.cx("table"),r.tableStyleClass)),h("pBind",r.ptm("table")),J("id",r.id+"-table"),g(2),h("ngTemplateOutlet",r.colGroupTemplate||r._colGroupTemplate)("ngTemplateOutletContext",Ee(26,Mw,e.columns)),g(),k(r.cx("thead")),h("ngStyle",r.sx("thead"))("pBind",r.ptm("thead")),g(2),h("ngTemplateOutlet",r.headerGroupedTemplate||r.headerTemplate||r._headerTemplate)("ngTemplateOutletContext",Ee(28,Mw,e.columns)),g(),h("ngIf",r.frozenValue||r.frozenBodyTemplate||r._frozenBodyTemplate),g(),Dn(e.contentStyle),k(r.cx("tbody",e.contentStyleClass)),h("pBind",r.ptm("tbody"))("value",r.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",r.bodyTemplate||r._bodyTemplate)("scrollerOptions",e),g(),h("ngIf",e.spacerStyle),g(),h("ngIf",r.footerGroupedTemplate||r.footerTemplate||r._footerTemplate||r._footerGroupedTemplate)}}function DK(t,n){t&1&&ne(0)}function kK(t,n){if(t&1&&C(0,DK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate)}}function MK(t,n){t&1&&C(0,kK,1,1,"ng-template",22)}function OK(t,n){t&1&&ne(0)}function RK(t,n){if(t&1&&C(0,OK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function PK(t,n){t&1&&C(0,RK,1,1,"ng-template",23)}function AK(t,n){t&1&&ne(0)}function NK(t,n){if(t&1&&C(0,AK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function FK(t,n){t&1&&C(0,NK,1,1,"ng-template",24)}function LK(t,n){t&1&&ne(0)}function BK(t,n){if(t&1&&C(0,LK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function VK(t,n){t&1&&C(0,BK,1,1,"ng-template",25)}function jK(t,n){t&1&&ne(0)}function zK(t,n){if(t&1&&C(0,jK,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function HK(t,n){t&1&&C(0,zK,1,1,"ng-template",26)}function $K(t,n){if(t&1){let e=se();E(0,"p-paginator",21),q("onPageChange",function(i){S(e);let o=m();return I(o.onPageChange(i))}),C(1,MK,1,0,null,14)(2,PK,1,0,null,14)(3,FK,1,0,null,14)(4,VK,1,0,null,14)(5,HK,1,0,null,14),T()}if(t&2){let e=m();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate||e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate||e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate||e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.cx("pcPaginator")+" "+e.paginatorStyleClass&&e.paginatorStyleClass)("locale",e.paginatorLocale)("pt",e.ptm("pcPaginator")),g(),h("ngIf",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate),g(),h("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),g(),h("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),g(),h("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),g(),h("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function UK(t,n){t&1&&ne(0)}function WK(t,n){if(t&1&&(E(0,"div",38),C(1,UK,1,0,"ng-container",20),T()),t&2){let e=m();h("ngClass",e.cx("footer"))("pBind",e.ptm("footer")),g(),h("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function GK(t,n){if(t&1&&X(0,"div",38,7),t&2){let e=m();er("display","none"),h("ngClass",e.cx("columnResizeIndicator"))("pBind",e.ptm("columnResizeIndicator"))}}function qK(t,n){if(t&1&&(G(),X(0,"svg",40)),t&2){let e=m(2);h("pBind",e.ptm("rowReorderIndicatorUp").icon)}}function QK(t,n){}function KK(t,n){t&1&&C(0,QK,0,0,"ng-template")}function YK(t,n){if(t&1&&(E(0,"span",38,8),C(2,qK,1,1,"svg",39)(3,KK,1,0,null,20),T()),t&2){let e=m();er("display","none"),h("ngClass",e.cx("rowReorderIndicatorUp"))("pBind",e.ptm("rowReorderIndicatorUp")),g(2),h("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),g(),h("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function ZK(t,n){if(t&1&&(G(),X(0,"svg",42)),t&2){let e=m(2);h("pBind",e.ptm("rowReorderIndicatorDown").icon)}}function JK(t,n){}function XK(t,n){t&1&&C(0,JK,0,0,"ng-template")}function eY(t,n){if(t&1&&(E(0,"span",38,9),C(2,ZK,1,1,"svg",41)(3,XK,1,0,null,20),T()),t&2){let e=m();er("display","none"),h("ngClass",e.cx("rowReorderIndicatorDown"))("pBind",e.ptm("rowReorderIndicatorDown")),g(2),h("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),g(),h("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var tY=["pTableBody",""],Pw=(t,n,e,r,i)=>({$implicit:t,rowIndex:n,columns:e,editing:r,frozen:i}),nY=(t,n,e,r,i,o,s)=>({$implicit:t,rowIndex:n,columns:e,editing:r,frozen:i,rowgroup:o,rowspan:s}),ig=(t,n,e,r,i,o)=>({$implicit:t,rowIndex:n,columns:e,expanded:r,editing:i,frozen:o}),dP=(t,n,e,r)=>({$implicit:t,rowIndex:n,columns:e,frozen:r}),uP=(t,n)=>({$implicit:t,frozen:n});function rY(t,n){t&1&&ne(0)}function iY(t,n){if(t&1&&(ie(0,3),C(1,rY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.dataTable.groupHeaderTemplate||o.dataTable._groupHeaderTemplate)("ngTemplateOutletContext",bd(2,Pw,r,o.getRowIndex(i),o.columns,o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen))}}function oY(t,n){t&1&&ne(0)}function sY(t,n){if(t&1&&(ie(0),C(1,oY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",r?o.template:o.dataTable.loadingBodyTemplate||o.dataTable._loadingBodyTemplate)("ngTemplateOutletContext",bd(2,Pw,r,o.getRowIndex(i),o.columns,o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen))}}function aY(t,n){t&1&&ne(0)}function lY(t,n){if(t&1&&(ie(0),C(1,aY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",r?o.template:o.dataTable.loadingBodyTemplate||o.dataTable._loadingBodyTemplate)("ngTemplateOutletContext",Ab(2,nY,r,o.getRowIndex(i),o.columns,o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen,o.shouldRenderRowspan(o.value,r,i),o.calculateRowGroupSize(o.value,r,i)))}}function cY(t,n){t&1&&ne(0)}function dY(t,n){if(t&1&&(ie(0,3),C(1,cY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.dataTable.groupFooterTemplate||o.dataTable._groupFooterTemplate)("ngTemplateOutletContext",bd(2,Pw,r,o.getRowIndex(i),o.columns,o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen))}}function uY(t,n){if(t&1&&C(0,iY,2,8,"ng-container",2)(1,sY,2,8,"ng-container",0)(2,lY,2,10,"ng-container",0)(3,dY,2,8,"ng-container",2),t&2){let e=n.$implicit,r=n.index,i=m(2);h("ngIf",(i.dataTable.groupHeaderTemplate||i.dataTable._groupHeaderTemplate)&&!i.dataTable.virtualScroll&&i.dataTable.rowGroupMode==="subheader"&&i.shouldRenderRowGroupHeader(i.value,e,i.getRowIndex(r))),g(),h("ngIf",i.dataTable.rowGroupMode!=="rowspan"),g(),h("ngIf",i.dataTable.rowGroupMode==="rowspan"),g(),h("ngIf",(i.dataTable.groupFooterTemplate||i.dataTable._groupFooterTemplate)&&!i.dataTable.virtualScroll&&i.dataTable.rowGroupMode==="subheader"&&i.shouldRenderRowGroupFooter(i.value,e,i.getRowIndex(r)))}}function pY(t,n){if(t&1&&(ie(0),C(1,uY,4,4,"ng-template",1),oe()),t&2){let e=m();g(),h("ngForOf",e.value)("ngForTrackBy",e.dataTable.rowTrackBy)}}function fY(t,n){t&1&&ne(0)}function hY(t,n){if(t&1&&(ie(0),C(1,fY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.template)("ngTemplateOutletContext",wl(2,ig,r,o.getRowIndex(i),o.columns,o.dataTable.isRowExpanded(r),o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen))}}function mY(t,n){t&1&&ne(0)}function gY(t,n){if(t&1&&(ie(0,3),C(1,mY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.dataTable.groupHeaderTemplate||o.dataTable._groupHeaderTemplate)("ngTemplateOutletContext",wl(2,ig,r,o.getRowIndex(i),o.columns,o.dataTable.isRowExpanded(r),o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen))}}function yY(t,n){t&1&&ne(0)}function bY(t,n){t&1&&ne(0)}function vY(t,n){if(t&1&&(ie(0,3),C(1,bY,1,0,"ng-container",4),oe()),t&2){let e=m(2),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.dataTable.groupFooterTemplate||o.dataTable._groupFooterTemplate)("ngTemplateOutletContext",wl(2,ig,r,o.getRowIndex(i),o.columns,o.dataTable.isRowExpanded(r),o.dataTable.editMode==="row"&&o.dataTable.isRowEditing(r),o.frozen))}}function _Y(t,n){if(t&1&&(ie(0),C(1,yY,1,0,"ng-container",4)(2,vY,2,9,"ng-container",2),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.dataTable.expandedRowTemplate||o.dataTable._expandedRowTemplate)("ngTemplateOutletContext",Yf(3,dP,r,o.getRowIndex(i),o.columns,o.frozen)),g(),h("ngIf",(o.dataTable.groupFooterTemplate||o.dataTable._groupFooterTemplate)&&o.dataTable.rowGroupMode==="subheader"&&o.shouldRenderRowGroupFooter(o.value,r,o.getRowIndex(i)))}}function wY(t,n){if(t&1&&C(0,hY,2,9,"ng-container",0)(1,gY,2,9,"ng-container",2)(2,_Y,3,8,"ng-container",0),t&2){let e=n.$implicit,r=n.index,i=m(2);h("ngIf",!(i.dataTable.groupHeaderTemplate&&i.dataTable._groupHeaderTemplate)),g(),h("ngIf",(i.dataTable.groupHeaderTemplate||i.dataTable._groupHeaderTemplate)&&i.dataTable.rowGroupMode==="subheader"&&i.shouldRenderRowGroupHeader(i.value,e,i.getRowIndex(r))),g(),h("ngIf",i.dataTable.isRowExpanded(e))}}function CY(t,n){if(t&1&&(ie(0),C(1,wY,3,3,"ng-template",1),oe()),t&2){let e=m();g(),h("ngForOf",e.value)("ngForTrackBy",e.dataTable.rowTrackBy)}}function xY(t,n){t&1&&ne(0)}function TY(t,n){t&1&&ne(0)}function EY(t,n){if(t&1&&(ie(0),C(1,TY,1,0,"ng-container",4),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m(2);g(),h("ngTemplateOutlet",o.dataTable.frozenExpandedRowTemplate||o.dataTable._frozenExpandedRowTemplate)("ngTemplateOutletContext",Yf(2,dP,r,o.getRowIndex(i),o.columns,o.frozen))}}function SY(t,n){if(t&1&&C(0,xY,1,0,"ng-container",4)(1,EY,2,7,"ng-container",0),t&2){let e=n.$implicit,r=n.index,i=m(2);h("ngTemplateOutlet",i.template)("ngTemplateOutletContext",wl(3,ig,e,i.getRowIndex(r),i.columns,i.dataTable.isRowExpanded(e),i.dataTable.editMode==="row"&&i.dataTable.isRowEditing(e),i.frozen)),g(),h("ngIf",i.dataTable.isRowExpanded(e))}}function IY(t,n){if(t&1&&(ie(0),C(1,SY,2,10,"ng-template",1),oe()),t&2){let e=m();g(),h("ngForOf",e.value)("ngForTrackBy",e.dataTable.rowTrackBy)}}function DY(t,n){t&1&&ne(0)}function kY(t,n){if(t&1&&(ie(0),C(1,DY,1,0,"ng-container",4),oe()),t&2){let e=m();g(),h("ngTemplateOutlet",e.dataTable.loadingBodyTemplate||e.dataTable._loadingBodyTemplate)("ngTemplateOutletContext",Dt(2,uP,e.columns,e.frozen))}}function MY(t,n){t&1&&ne(0)}function OY(t,n){if(t&1&&(ie(0),C(1,MY,1,0,"ng-container",4),oe()),t&2){let e=m();g(),h("ngTemplateOutlet",e.dataTable.emptyMessageTemplate||e.dataTable._emptyMessageTemplate)("ngTemplateOutletContext",Dt(2,uP,e.columns,e.frozen))}}var RY=` + ${WR} /* For PrimeNG */ .p-datatable-scrollable-table > .p-datatable-thead { @@ -2720,21 +3761,21 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a display: block; width: 100%; } -`,yM={root:({instance:t})=>["p-datatable p-component",{"p-datatable-hoverable":t.rowHover||t.selectionMode,"p-datatable-resizable":t.resizableColumns,"p-datatable-resizable-fit":t.resizableColumns&&t.columnResizeMode==="fit","p-datatable-scrollable":t.scrollable,"p-datatable-flex-scrollable":t.scrollable&&t.scrollHeight==="flex","p-datatable-striped":t.stripedRows,"p-datatable-gridlines":t.showGridlines,"p-datatable-sm":t.size==="small","p-datatable-lg":t.size==="large"}],mask:"p-datatable-mask p-overlay-mask",loadingIcon:"p-datatable-loading-icon",header:"p-datatable-header",pcPaginator:({instance:t})=>"p-datatable-paginator-"+t.paginatorPosition,tableContainer:"p-datatable-table-container",table:({instance:t})=>["p-datatable-table",{"p-datatable-scrollable-table":t.scrollable,"p-datatable-resizable-table":t.resizableColumns,"p-datatable-resizable-table-fit":t.resizableColumns&&t.columnResizeMode==="fit"}],thead:"p-datatable-thead",columnResizer:"p-datatable-column-resizer",columnHeaderContent:"p-datatable-column-header-content",columnTitle:"p-datatable-column-title",columnFooter:"p-datatable-column-footer",sortIcon:"p-datatable-sort-icon",pcSortBadge:"p-datatable-sort-badge",filter:({instance:t})=>({"p-datatable-filter":!0,"p-datatable-inline-filter":t.display==="row","p-datatable-popover-filter":t.display==="menu"}),filterElementContainer:"p-datatable-filter-element-container",pcColumnFilterButton:"p-datatable-column-filter-button",pcColumnFilterClearButton:"p-datatable-column-filter-clear-button",filterOverlay:({instance:t})=>({"p-datatable-filter-overlay p-component":!0,"p-datatable-filter-overlay-popover":t.display==="menu"}),filterConstraintList:"p-datatable-filter-constraint-list",filterConstraint:"p-datatable-filter-constraint",filterConstraintSeparator:"p-datatable-filter-constraint-separator",filterOperator:"p-datatable-filter-operator",pcFilterOperatorDropdown:"p-datatable-filter-operator-dropdown",filterRuleList:"p-datatable-filter-rule-list",filterRule:"p-datatable-filter-rule",pcFilterConstraintDropdown:"p-datatable-filter-constraint-dropdown",pcFilterRemoveRuleButton:"p-datatable-filter-remove-rule-button",pcFilterAddRuleButton:"p-datatable-filter-add-rule-button",filterButtonbar:"p-datatable-filter-buttonbar",pcFilterClearButton:"p-datatable-filter-clear-button",pcFilterApplyButton:"p-datatable-filter-apply-button",tbody:({instance:t})=>({"p-datatable-tbody":!0,"p-datatable-frozen-tbody":t.frozenValue||t.frozenBodyTemplate,"p-virtualscroller-content":t.virtualScroll}),rowGroupHeader:"p-datatable-row-group-header",rowToggleButton:"p-datatable-row-toggle-button",rowToggleIcon:"p-datatable-row-toggle-icon",rowExpansion:"p-datatable-row-expansion",rowGroupFooter:"p-datatable-row-group-footer",emptyMessage:"p-datatable-empty-message",bodyCell:({instance:t})=>({"p-datatable-frozen-column":t.columnProp("frozen")}),reorderableRowHandle:"p-datatable-reorderable-row-handle",pcRowEditorInit:"p-datatable-row-editor-init",pcRowEditorSave:"p-datatable-row-editor-save",pcRowEditorCancel:"p-datatable-row-editor-cancel",tfoot:"p-datatable-tfoot",footerCell:({instance:t})=>({"p-datatable-frozen-column":t.columnProp("frozen")}),virtualScrollerSpacer:"p-datatable-virtualscroller-spacer",footer:"p-datatable-tfoot",columnResizeIndicator:"p-datatable-column-resize-indicator",rowReorderIndicatorUp:"p-datatable-row-reorder-indicator-up",rowReorderIndicatorDown:"p-datatable-row-reorder-indicator-down",sortableColumn:({instance:t})=>({"p-datatable-sortable-column":t.isEnabled()," p-datatable-column-sorted":t.sorted}),sortableColumnIcon:"p-datatable-sort-icon",sortableColumnBadge:"p-sortable-column-badge",selectableRow:({instance:t})=>({"p-datatable-selectable-row":t.isEnabled(),"p-datatable-row-selected":t.selected}),resizableColumn:"p-datatable-resizable-column",reorderableColumn:"p-datatable-reorderable-column",rowEditorCancel:"p-datatable-row-editor-cancel"},vM={tableContainer:({instance:t})=>({"max-height":t.virtualScroll?"":t.scrollHeight,overflow:"auto"}),thead:{position:"sticky"},tfoot:{position:"sticky"}},Lc=(()=>{class t extends Ge{name="datatable";style=_M;classes=yM;inlineStyles=vM;static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();var wM=new we("TABLE_INSTANCE"),Nc=(()=>{class t{sortSource=new Nt;selectionSource=new Nt;contextMenuSource=new Nt;valueSource=new Nt;columnsSource=new Nt;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})(),jc=(()=>{class t extends vt{frozenColumns;frozenValue;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new H;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;rowSelectable;rowTrackBy=(e,i)=>i;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;size;showGridlines;stripedRows;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}totalRecords=0;get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new H;selectionChange=new H;onRowSelect=new H;onRowUnselect=new H;onPage=new H;onSort=new H;onFilter=new H;onLazyLoad=new H;onRowExpand=new H;onRowCollapse=new H;onContextMenuSelect=new H;onColResize=new H;onColReorder=new H;onRowReorder=new H;onEditInit=new H;onEditComplete=new H;onEditCancel=new H;onHeaderCheckboxToggle=new H;sortFunction=new H;firstChange=new H;rowsChange=new H;onStateSave=new H;onStateRestore=new H;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;_templates;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;_headerTemplate;headerTemplate;_headerGroupedTemplate;headerGroupedTemplate;_bodyTemplate;bodyTemplate;_loadingBodyTemplate;loadingBodyTemplate;_captionTemplate;captionTemplate;_footerTemplate;footerTemplate;_footerGroupedTemplate;footerGroupedTemplate;_summaryTemplate;summaryTemplate;_colGroupTemplate;colGroupTemplate;_expandedRowTemplate;expandedRowTemplate;_groupHeaderTemplate;groupHeaderTemplate;_groupFooterTemplate;groupFooterTemplate;_frozenExpandedRowTemplate;frozenExpandedRowTemplate;_frozenHeaderTemplate;frozenHeaderTemplate;_frozenBodyTemplate;frozenBodyTemplate;_frozenFooterTemplate;frozenFooterTemplate;_frozenColGroupTemplate;frozenColGroupTemplate;_emptyMessageTemplate;emptyMessageTemplate;_paginatorLeftTemplate;paginatorLeftTemplate;_paginatorRightTemplate;paginatorRightTemplate;_paginatorDropdownItemTemplate;paginatorDropdownItemTemplate;_loadingIconTemplate;loadingIconTemplate;_reorderIndicatorUpIconTemplate;reorderIndicatorUpIconTemplate;_reorderIndicatorDownIconTemplate;reorderIndicatorDownIconTemplate;_sortIconTemplate;sortIconTemplate;_checkboxIconTemplate;checkboxIconTemplate;_headerCheckboxIconTemplate;headerCheckboxIconTemplate;_paginatorDropdownIconTemplate;paginatorDropdownIconTemplate;_paginatorFirstPageLinkIconTemplate;paginatorFirstPageLinkIconTemplate;_paginatorLastPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;_paginatorPreviousPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;_paginatorNextPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=Cf();styleElement;responsiveStyleElement;overlayService=G(uo);filterService=G(co);tableService=G(Nc);zone=G(It);_componentStyle=G(Lc);bindDirectiveInstance=G(X,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),this.responsiveLayout==="stack"&&this.createResponsiveStyle(),this.initialized=!0}onAfterContentInit(){this._templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"expandedrow":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenexpandedrow":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownicon":this.paginatorDropdownIconTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template;break}})}onAfterViewInit(){kn(this.platformId)&&this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}onChanges(e){e.totalRecords&&e.totalRecords.firstChange&&(this._totalRecords=e.totalRecords.currentValue),e.value&&(this.isStateful()&&!this.stateRestored&&kn(this.platformId)&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._totalRecords===0&&this._value?this._value.length:this._totalRecords??0,this.sortMode=="single"&&(this.sortField||this.groupRowsBy)?this.sortSingle():this.sortMode=="multiple"&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this.isStateful()||(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue)),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&(this.restoreColumnOrder(),this.tableService.onColumnsChange(this._columns))),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,this.sortMode==="multiple"&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){let i=e||this.processedData;if(i&&this.paginator){let o=this.lazy?0:this.first;return i.slice(o,o+this.rows)}return i}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(be.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(be.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let i=e.originalEvent;if(this.sortMode==="single"&&(this._sortOrder=this.sortField===e.field?this.sortOrder*-1:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),this.sortMode==="multiple"){let o=i.metaKey||i.ctrlKey,r=this.getSortMeta(e.field);r?o?r.order=r.order*-1:(this._multiSortMeta=[{field:e.field,order:r.order*-1}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!o||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,i=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField){this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],this.sortMultiple();return}if(e&&i){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:i}):(this.value.sort((r,a)=>{let s=be.resolveFieldData(r,e),l=be.resolveFieldData(a,e),c=null;return s==null&&l!=null?c=-1:s!=null&&l==null?c=1:s==null&&l==null?c=0:typeof s=="string"&&typeof l=="string"?c=s.localeCompare(l):c=sl?1:0,i*(c||0)}),this._value=[...this.value]),this.hasFilter()&&this._filter());let o={field:e,order:i};this.onSort.emit(o),this.tableService.onSort(o)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,i)=>this.multisortField(e,i,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,i,o,r){let a=be.resolveFieldData(e,o[r].field),s=be.resolveFieldData(i,o[r].field);return be.compare(a,s,this.filterLocale)===0?o.length-1>r?this.multisortField(e,i,o,r+1):0:this.compareValuesOnSort(a,s,o[r].order)}compareValuesOnSort(e,i,o){return be.sort(e,i,o,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length){for(let i=0;ib!=m),this.selectionChange.emit(this.selection),p&&delete this.selectionKeys[p]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:a,type:"row"})}else this.isSingleSelectionMode()?(this._selection=a,this.selectionChange.emit(a),p&&(this.selectionKeys={},this.selectionKeys[p]=1)):this.isMultipleSelectionMode()&&(h?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,a],this.selectionChange.emit(this.selection),p&&(this.selectionKeys[p]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:a,type:"row",index:s})}else if(this.selectionMode==="single")l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:a,type:"row",index:s})):(this._selection=a,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:a,type:"row",index:s}),p&&(this.selectionKeys={},this.selectionKeys[p]=1));else if(this.selectionMode==="multiple")if(l){let h=this.findIndexInSelection(a);this._selection=this.selection.filter((m,g)=>g!=h),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:a,type:"row",index:s}),p&&delete this.selectionKeys[p]}else this._selection=this.selection?[...this.selection,a]:[a],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:a,type:"row",index:s}),p&&(this.selectionKeys[p]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){let i=e.rowData,o=e.rowIndex,r=()=>{this.contextMenu.show(e.originalEvent),this.contextMenu.hideCallback=()=>{this.contextMenuSelection=null,this.contextMenuSelectionChange.emit(null),this.tableService.onContextMenu(null)}};if(this.contextMenuSelectionMode==="separate")this.contextMenuSelection=i,this.contextMenuSelectionChange.emit(i),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:i,index:e.rowIndex}),r(),this.tableService.onContextMenu(i);else if(this.contextMenuSelectionMode==="joint"){this.preventSelectionSetterPropagation=!0;let a=this.isSelected(i),s=this.dataKey?String(be.resolveFieldData(i,this.dataKey)):null;if(!a){if(!this.isRowSelectable(i,o))return;this.isSingleSelectionMode()?(this.selection=i,this.selectionChange.emit(i),s&&(this.selectionKeys={},this.selectionKeys[s]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),s&&(this.selectionKeys[s]=1))}this.tableService.onSelectionChange(),r(),this.onContextMenuSelect.emit({originalEvent:e,data:i,index:e.rowIndex})}}}selectRange(e,i,o){let r,a;this.anchorRowIndex>i?(r=i,a=this.anchorRowIndex):this.anchorRowIndexa?(i=this.anchorRowIndex,o=this.rangeRowIndex):rm!=c);let p=this.dataKey?String(be.resolveFieldData(l,this.dataKey)):null;p&&delete this.selectionKeys[p],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return e&&this.selection?this.dataKey?this.selectionKeys[be.resolveFieldData(e,this.dataKey)]!==void 0:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection):!1}findIndexInSelection(e){let i=-1;if(this.selection&&this.selection.length){for(let o=0;ol!=a),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),r&&delete this.selectionKeys[r]}else{if(!this.isRowSelectable(i,e.rowIndex))return;this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),r&&(this.selectionKeys[r]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox({originalEvent:e},i){if(this._selectAll!==null)this.selectAllChange.emit({originalEvent:e,checked:i});else{let o=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData,r=this.selectionPageOnly&&this._selection?this._selection.filter(a=>!o.some(s=>this.equals(a,s))):[];i&&(r=this.frozenValue?[...r,...this.frozenValue,...o]:[...r,...o],r=this.rowSelectable?r.filter((a,s)=>this.rowSelectable({data:a,index:s})):r),this._selection=r,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:i}),this.isStateful()&&this.saveState()}}equals(e,i){return this.compareSelectionBy==="equals"?e===i:be.equals(e,i,this.dataKey)}filter(e,i,o){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[i]&&delete this.filters[i]:this.filters[i]={value:e,matchMode:o},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,i){this.filter(e,"global",i)}isFilterBlank(e){return e!=null?!!(typeof e=="string"&&e.trim().length==0||Array.isArray(e)&&e.length==0):!0}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(!this.hasFilter())this.filteredValue=null,this.paginator&&(this.totalRecords=this._totalRecords===0&&this.value?this.value.length:this._totalRecords);else{let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let i=0;ithis.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._totalRecords===0&&this._value?this._value.length:this._totalRecords??0}clearFilterValues(){for(let[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let i of e)i.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let i,o="",r=this.columns;e&&e.selectionOnly?i=this.selection||[]:e&&e.allValues?i=this.value||[]:(i=this.filteredValue||this.value,this.frozenValue&&(i=i?[...this.frozenValue,...i]:this.frozenValue));let a=r.filter(p=>p.exportable!==!1&&p.field);o+=a.map(p=>'"'+this.getExportHeader(p)+'"').join(this.csvSeparator);let s=i.map(p=>a.map(h=>{let m=be.resolveFieldData(p,h.field);return m!=null?this.exportFunction?m=this.exportFunction({data:m,field:h.field}):m=String(m).replace(/"/g,'""'):m="",'"'+m+'"'}).join(this.csvSeparator)).join(` -`);s.length&&(o+=` -`+s);let l=new Blob([new Uint8Array([239,187,191]),o],{type:"text/csv;charset=utf-8;"}),c=this.renderer.createElement("a");c.style.display="none",this.renderer.appendChild(this.document.body,c),c.download!==void 0?(c.setAttribute("href",URL.createObjectURL(l)),c.setAttribute("download",this.exportFilename+".csv"),c.click()):(o="data:text/csv;charset=utf-8,"+o,this.document.defaultView?.open(encodeURI(o))),this.renderer.removeChild(this.document.body,c)}onLazyItemLoad(e){this.onLazyLoad.emit(N(T(T({},this.createLazyLoadMetadata()),e),{rows:e.last-e.first}))}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.scroller&&this.scroller.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,i,o,r){this.editingCell=e,this.editingCellData=i,this.editingCellField=o,this.editingCellRowIndex=r,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&he.find(this.editingCell,".ng-invalid.ng-dirty").length===0}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(he.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let i=String(be.resolveFieldData(e,this.dataKey));this.editingRowKeys[i]=!0}saveRowEdit(e,i){if(he.find(i,".ng-invalid.ng-dirty").length===0){let o=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[o]}}cancelRowEdit(e){let i=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[i]}toggleRow(e,i){if(!this.dataKey&&!this.groupRowsBy)throw new Error("dataKey or groupRowsBy must be defined to use row expansion");let o=this.groupRowsBy?String(be.resolveFieldData(e,this.groupRowsBy)):String(be.resolveFieldData(e,this.dataKey));this.expandedRowKeys[o]!=null?(delete this.expandedRowKeys[o],this.onRowCollapse.emit({originalEvent:i,data:e})):(this.rowExpandMode==="single"&&(this.expandedRowKeys={}),this.expandedRowKeys[o]=!0,this.onRowExpand.emit({originalEvent:i,data:e})),i&&i.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return this.groupRowsBy?this.expandedRowKeys[String(be.resolveFieldData(e,this.groupRowsBy))]===!0:this.expandedRowKeys[String(be.resolveFieldData(e,this.dataKey))]===!0}isRowEditing(e){return this.editingRowKeys[String(be.resolveFieldData(e,this.dataKey))]===!0}isSingleSelectionMode(){return this.selectionMode==="single"}isMultipleSelectionMode(){return this.selectionMode==="multiple"}onColumnResizeBegin(e){let i=he.getOffset(this.el?.nativeElement).left;this.resizeColumnElement=e.target.closest("th"),this.columnResizing=!0,e.type=="touchstart"?this.lastResizerHelperX=e.changedTouches[0].clientX-i+this.el?.nativeElement.scrollLeft:this.lastResizerHelperX=e.pageX-i+this.el?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let i=he.getOffset(this.el?.nativeElement).left;he.addClass(this.el?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.el?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",e.type=="touchmove"?this.resizeHelperViewChild.nativeElement.style.left=e.changedTouches[0].clientX-i+this.el?.nativeElement.scrollLeft+"px":this.resizeHelperViewChild.nativeElement.style.left=e.pageX-i+this.el?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,o=this.resizeColumnElement.offsetWidth+e,r=this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,""),a=r?parseFloat(r):15;if(o>=a){if(this.columnResizeMode==="fit"){let l=this.resizeColumnElement.nextElementSibling.offsetWidth-e;o>15&&l>15&&this.resizeTableCells(o,l)}else if(this.columnResizeMode==="expand"){this._initialColWidths=this._totalTableWidth();let s=this.tableViewChild?.nativeElement.offsetWidth+e;this.setResizeTableWidth(s+"px"),this.resizeTableCells(o,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",he.removeClass(this.el?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[],i=he.findSingle(this.el.nativeElement,".p-datatable-thead");return he.find(i,"tr > th").forEach(r=>e.push(he.getOuterWidth(r))),e}onColumnDragStart(e,i){this.reorderIconWidth=he.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=he.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=i,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,i){if(this.reorderableColumns&&this.draggedColumn&&i){e.preventDefault();let o=he.getOffset(this.el?.nativeElement),r=he.getOffset(i);if(this.draggedColumn!=i){let a=he.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),s=he.indexWithinGroup(i,"preorderablecolumn"),l=r.left-o.left,c=o.top-r.top,p=r.left+i.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=r.top-o.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=r.top-o.top+i.offsetHeight+"px",e.pageX>p?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,i){if(e.preventDefault(),this.draggedColumn){let o=he.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),r=he.indexWithinGroup(i,"preorderablecolumn"),a=o!=r;if(a&&(r-o==1&&this.dropPosition===-1||o-r==1&&this.dropPosition===1)&&(a=!1),a&&ro&&this.dropPosition===-1&&(r=r-1),a&&(be.reorderArray(this.columns,o,r),this.onColReorder.emit({dragIndex:o,dropIndex:r,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement){let s=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();be.reorderArray(s,o+1,r+1),this.updateStyleElement(s,o,0,0)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,i){let o=he.index(this.resizeColumnElement),r=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(r,o,e,i)}updateStyleElement(e,i,o,r){this.destroyStyleElement(),this.createStyleElement();let a="";e.forEach((s,l)=>{let c=l===i?o:r&&l===i+1?r:s,p=`width: ${c}px !important; max-width: ${c}px !important;`;a+=` +`,PY={root:({instance:t})=>["p-datatable p-component",{"p-datatable-hoverable":t.rowHover||t.selectionMode,"p-datatable-resizable":t.resizableColumns,"p-datatable-resizable-fit":t.resizableColumns&&t.columnResizeMode==="fit","p-datatable-scrollable":t.scrollable,"p-datatable-flex-scrollable":t.scrollable&&t.scrollHeight==="flex","p-datatable-striped":t.stripedRows,"p-datatable-gridlines":t.showGridlines,"p-datatable-sm":t.size==="small","p-datatable-lg":t.size==="large"}],mask:"p-datatable-mask p-overlay-mask",loadingIcon:"p-datatable-loading-icon",header:"p-datatable-header",pcPaginator:({instance:t})=>"p-datatable-paginator-"+t.paginatorPosition,tableContainer:"p-datatable-table-container",table:({instance:t})=>["p-datatable-table",{"p-datatable-scrollable-table":t.scrollable,"p-datatable-resizable-table":t.resizableColumns,"p-datatable-resizable-table-fit":t.resizableColumns&&t.columnResizeMode==="fit"}],thead:"p-datatable-thead",columnResizer:"p-datatable-column-resizer",columnHeaderContent:"p-datatable-column-header-content",columnTitle:"p-datatable-column-title",columnFooter:"p-datatable-column-footer",sortIcon:"p-datatable-sort-icon",pcSortBadge:"p-datatable-sort-badge",filter:({instance:t})=>({"p-datatable-filter":!0,"p-datatable-inline-filter":t.display==="row","p-datatable-popover-filter":t.display==="menu"}),filterElementContainer:"p-datatable-filter-element-container",pcColumnFilterButton:"p-datatable-column-filter-button",pcColumnFilterClearButton:"p-datatable-column-filter-clear-button",filterOverlay:({instance:t})=>({"p-datatable-filter-overlay p-component":!0,"p-datatable-filter-overlay-popover":t.display==="menu"}),filterConstraintList:"p-datatable-filter-constraint-list",filterConstraint:"p-datatable-filter-constraint",filterConstraintSeparator:"p-datatable-filter-constraint-separator",filterOperator:"p-datatable-filter-operator",pcFilterOperatorDropdown:"p-datatable-filter-operator-dropdown",filterRuleList:"p-datatable-filter-rule-list",filterRule:"p-datatable-filter-rule",pcFilterConstraintDropdown:"p-datatable-filter-constraint-dropdown",pcFilterRemoveRuleButton:"p-datatable-filter-remove-rule-button",pcFilterAddRuleButton:"p-datatable-filter-add-rule-button",filterButtonbar:"p-datatable-filter-buttonbar",pcFilterClearButton:"p-datatable-filter-clear-button",pcFilterApplyButton:"p-datatable-filter-apply-button",tbody:({instance:t})=>({"p-datatable-tbody":!0,"p-datatable-frozen-tbody":t.frozenValue||t.frozenBodyTemplate,"p-virtualscroller-content":t.virtualScroll}),rowGroupHeader:"p-datatable-row-group-header",rowToggleButton:"p-datatable-row-toggle-button",rowToggleIcon:"p-datatable-row-toggle-icon",rowExpansion:"p-datatable-row-expansion",rowGroupFooter:"p-datatable-row-group-footer",emptyMessage:"p-datatable-empty-message",bodyCell:({instance:t})=>({"p-datatable-frozen-column":t.columnProp("frozen")}),reorderableRowHandle:"p-datatable-reorderable-row-handle",pcRowEditorInit:"p-datatable-row-editor-init",pcRowEditorSave:"p-datatable-row-editor-save",pcRowEditorCancel:"p-datatable-row-editor-cancel",tfoot:"p-datatable-tfoot",footerCell:({instance:t})=>({"p-datatable-frozen-column":t.columnProp("frozen")}),virtualScrollerSpacer:"p-datatable-virtualscroller-spacer",footer:"p-datatable-tfoot",columnResizeIndicator:"p-datatable-column-resize-indicator",rowReorderIndicatorUp:"p-datatable-row-reorder-indicator-up",rowReorderIndicatorDown:"p-datatable-row-reorder-indicator-down",sortableColumn:({instance:t})=>({"p-datatable-sortable-column":t.isEnabled()," p-datatable-column-sorted":t.sorted}),sortableColumnIcon:"p-datatable-sort-icon",sortableColumnBadge:"p-sortable-column-badge",selectableRow:({instance:t})=>({"p-datatable-selectable-row":t.isEnabled(),"p-datatable-row-selected":t.selected}),resizableColumn:"p-datatable-resizable-column",reorderableColumn:"p-datatable-reorderable-column",rowEditorCancel:"p-datatable-row-editor-cancel"},AY={tableContainer:({instance:t})=>({"max-height":t.virtualScroll?"":t.scrollHeight,overflow:"auto"}),thead:{position:"sticky"},tfoot:{position:"sticky"}},Ow=(()=>{class t extends Oe{name="datatable";style=RY;classes=PY;inlineStyles=AY;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var NY=new H("TABLE_INSTANCE"),Rw=(()=>{class t{sortSource=new qe;selectionSource=new qe;contextMenuSource=new qe;valueSource=new qe;columnsSource=new qe;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),Aw=(()=>{class t extends ut{frozenColumns;frozenValue;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new z;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;rowSelectable;rowTrackBy=(e,r)=>r;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;size;showGridlines;stripedRows;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}totalRecords=0;get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new z;selectionChange=new z;onRowSelect=new z;onRowUnselect=new z;onPage=new z;onSort=new z;onFilter=new z;onLazyLoad=new z;onRowExpand=new z;onRowCollapse=new z;onContextMenuSelect=new z;onColResize=new z;onColReorder=new z;onRowReorder=new z;onEditInit=new z;onEditComplete=new z;onEditCancel=new z;onHeaderCheckboxToggle=new z;sortFunction=new z;firstChange=new z;rowsChange=new z;onStateSave=new z;onStateRestore=new z;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;_templates;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;_headerTemplate;headerTemplate;_headerGroupedTemplate;headerGroupedTemplate;_bodyTemplate;bodyTemplate;_loadingBodyTemplate;loadingBodyTemplate;_captionTemplate;captionTemplate;_footerTemplate;footerTemplate;_footerGroupedTemplate;footerGroupedTemplate;_summaryTemplate;summaryTemplate;_colGroupTemplate;colGroupTemplate;_expandedRowTemplate;expandedRowTemplate;_groupHeaderTemplate;groupHeaderTemplate;_groupFooterTemplate;groupFooterTemplate;_frozenExpandedRowTemplate;frozenExpandedRowTemplate;_frozenHeaderTemplate;frozenHeaderTemplate;_frozenBodyTemplate;frozenBodyTemplate;_frozenFooterTemplate;frozenFooterTemplate;_frozenColGroupTemplate;frozenColGroupTemplate;_emptyMessageTemplate;emptyMessageTemplate;_paginatorLeftTemplate;paginatorLeftTemplate;_paginatorRightTemplate;paginatorRightTemplate;_paginatorDropdownItemTemplate;paginatorDropdownItemTemplate;_loadingIconTemplate;loadingIconTemplate;_reorderIndicatorUpIconTemplate;reorderIndicatorUpIconTemplate;_reorderIndicatorDownIconTemplate;reorderIndicatorDownIconTemplate;_sortIconTemplate;sortIconTemplate;_checkboxIconTemplate;checkboxIconTemplate;_headerCheckboxIconTemplate;headerCheckboxIconTemplate;_paginatorDropdownIconTemplate;paginatorDropdownIconTemplate;_paginatorFirstPageLinkIconTemplate;paginatorFirstPageLinkIconTemplate;_paginatorLastPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;_paginatorPreviousPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;_paginatorNextPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=vM();styleElement;responsiveStyleElement;overlayService=x(zl);filterService=x(jl);tableService=x(Rw);zone=x($e);_componentStyle=x(Ow);bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),this.responsiveLayout==="stack"&&this.createResponsiveStyle(),this.initialized=!0}onAfterContentInit(){this._templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"expandedrow":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenexpandedrow":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownicon":this.paginatorDropdownIconTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template;break}})}onAfterViewInit(){kn(this.platformId)&&this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}onChanges(e){e.totalRecords&&e.totalRecords.firstChange&&(this._totalRecords=e.totalRecords.currentValue),e.value&&(this.isStateful()&&!this.stateRestored&&kn(this.platformId)&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._totalRecords===0&&this._value?this._value.length:this._totalRecords??0,this.sortMode=="single"&&(this.sortField||this.groupRowsBy)?this.sortSingle():this.sortMode=="multiple"&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this.isStateful()||(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue)),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&(this.restoreColumnOrder(),this.tableService.onColumnsChange(this._columns))),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,this.sortMode==="multiple"&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){let r=e||this.processedData;if(r&&this.paginator){let i=this.lazy?0:this.first;return r.slice(i,i+this.rows)}return r}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(Pe.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(Pe.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let r=e.originalEvent;if(this.sortMode==="single"&&(this._sortOrder=this.sortField===e.field?this.sortOrder*-1:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),this.sortMode==="multiple"){let i=r.metaKey||r.ctrlKey,o=this.getSortMeta(e.field);o?i?o.order=o.order*-1:(this._multiSortMeta=[{field:e.field,order:o.order*-1}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!i||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,r=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField){this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],this.sortMultiple();return}if(e&&r){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:r}):(this.value.sort((o,s)=>{let a=Pe.resolveFieldData(o,e),l=Pe.resolveFieldData(s,e),c=null;return a==null&&l!=null?c=-1:a!=null&&l==null?c=1:a==null&&l==null?c=0:typeof a=="string"&&typeof l=="string"?c=a.localeCompare(l):c=al?1:0,r*(c||0)}),this._value=[...this.value]),this.hasFilter()&&this._filter());let i={field:e,order:r};this.onSort.emit(i),this.tableService.onSort(i)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,r)=>this.multisortField(e,r,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,r,i,o){let s=Pe.resolveFieldData(e,i[o].field),a=Pe.resolveFieldData(r,i[o].field);return Pe.compare(s,a,this.filterLocale)===0?i.length-1>o?this.multisortField(e,r,i,o+1):0:this.compareValuesOnSort(s,a,i[o].order)}compareValuesOnSort(e,r,i){return Pe.sort(e,r,i,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length){for(let r=0;ry!=p),this.selectionChange.emit(this.selection),d&&delete this.selectionKeys[d]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row"})}else this.isSingleSelectionMode()?(this._selection=s,this.selectionChange.emit(s),d&&(this.selectionKeys={},this.selectionKeys[d]=1)):this.isMultipleSelectionMode()&&(u?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,s],this.selectionChange.emit(this.selection),d&&(this.selectionKeys[d]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a})}else if(this.selectionMode==="single")l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a})):(this._selection=s,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),d&&(this.selectionKeys={},this.selectionKeys[d]=1));else if(this.selectionMode==="multiple")if(l){let u=this.findIndexInSelection(s);this._selection=this.selection.filter((p,f)=>f!=u),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),d&&delete this.selectionKeys[d]}else this._selection=this.selection?[...this.selection,s]:[s],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),d&&(this.selectionKeys[d]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){let r=e.rowData,i=e.rowIndex,o=()=>{this.contextMenu.show(e.originalEvent),this.contextMenu.hideCallback=()=>{this.contextMenuSelection=null,this.contextMenuSelectionChange.emit(null),this.tableService.onContextMenu(null)}};if(this.contextMenuSelectionMode==="separate")this.contextMenuSelection=r,this.contextMenuSelectionChange.emit(r),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:r,index:e.rowIndex}),o(),this.tableService.onContextMenu(r);else if(this.contextMenuSelectionMode==="joint"){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(r),a=this.dataKey?String(Pe.resolveFieldData(r,this.dataKey)):null;if(!s){if(!this.isRowSelectable(r,i))return;this.isSingleSelectionMode()?(this.selection=r,this.selectionChange.emit(r),a&&(this.selectionKeys={},this.selectionKeys[a]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,r]:[r],this.selectionChange.emit(this.selection),a&&(this.selectionKeys[a]=1))}this.tableService.onSelectionChange(),o(),this.onContextMenuSelect.emit({originalEvent:e,data:r,index:e.rowIndex})}}}selectRange(e,r,i){let o,s;this.anchorRowIndex>r?(o=r,s=this.anchorRowIndex):this.anchorRowIndexs?(r=this.anchorRowIndex,i=this.rangeRowIndex):op!=c);let d=this.dataKey?String(Pe.resolveFieldData(l,this.dataKey)):null;d&&delete this.selectionKeys[d],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return e&&this.selection?this.dataKey?this.selectionKeys[Pe.resolveFieldData(e,this.dataKey)]!==void 0:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection):!1}findIndexInSelection(e){let r=-1;if(this.selection&&this.selection.length){for(let i=0;il!=s),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:r,type:"checkbox"}),o&&delete this.selectionKeys[o]}else{if(!this.isRowSelectable(r,e.rowIndex))return;this._selection=this.selection?[...this.selection,r]:[r],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:r,type:"checkbox"}),o&&(this.selectionKeys[o]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox({originalEvent:e},r){if(this._selectAll!==null)this.selectAllChange.emit({originalEvent:e,checked:r});else{let i=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData,o=this.selectionPageOnly&&this._selection?this._selection.filter(s=>!i.some(a=>this.equals(s,a))):[];r&&(o=this.frozenValue?[...o,...this.frozenValue,...i]:[...o,...i],o=this.rowSelectable?o.filter((s,a)=>this.rowSelectable({data:s,index:a})):o),this._selection=o,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:r}),this.isStateful()&&this.saveState()}}equals(e,r){return this.compareSelectionBy==="equals"?e===r:Pe.equals(e,r,this.dataKey)}filter(e,r,i){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[r]&&delete this.filters[r]:this.filters[r]={value:e,matchMode:i},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,r){this.filter(e,"global",r)}isFilterBlank(e){return e!=null?!!(typeof e=="string"&&e.trim().length==0||Array.isArray(e)&&e.length==0):!0}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(!this.hasFilter())this.filteredValue=null,this.paginator&&(this.totalRecords=this._totalRecords===0&&this.value?this.value.length:this._totalRecords);else{let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let r=0;rthis.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._totalRecords===0&&this._value?this._value.length:this._totalRecords??0}clearFilterValues(){for(let[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let r of e)r.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let r,i="",o=this.columns;e&&e.selectionOnly?r=this.selection||[]:e&&e.allValues?r=this.value||[]:(r=this.filteredValue||this.value,this.frozenValue&&(r=r?[...this.frozenValue,...r]:this.frozenValue));let s=o.filter(d=>d.exportable!==!1&&d.field);i+=s.map(d=>'"'+this.getExportHeader(d)+'"').join(this.csvSeparator);let a=r.map(d=>s.map(u=>{let p=Pe.resolveFieldData(d,u.field);return p!=null?this.exportFunction?p=this.exportFunction({data:p,field:u.field}):p=String(p).replace(/"/g,'""'):p="",'"'+p+'"'}).join(this.csvSeparator)).join(` +`);a.length&&(i+=` +`+a);let l=new Blob([new Uint8Array([239,187,191]),i],{type:"text/csv;charset=utf-8;"}),c=this.renderer.createElement("a");c.style.display="none",this.renderer.appendChild(this.document.body,c),c.download!==void 0?(c.setAttribute("href",URL.createObjectURL(l)),c.setAttribute("download",this.exportFilename+".csv"),c.click()):(i="data:text/csv;charset=utf-8,"+i,this.document.defaultView?.open(encodeURI(i))),this.renderer.removeChild(this.document.body,c)}onLazyItemLoad(e){this.onLazyLoad.emit(A(_(_({},this.createLazyLoadMetadata()),e),{rows:e.last-e.first}))}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.scroller&&this.scroller.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,r,i,o){this.editingCell=e,this.editingCellData=r,this.editingCellField=i,this.editingCellRowIndex=o,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&De.find(this.editingCell,".ng-invalid.ng-dirty").length===0}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(De.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let r=String(Pe.resolveFieldData(e,this.dataKey));this.editingRowKeys[r]=!0}saveRowEdit(e,r){if(De.find(r,".ng-invalid.ng-dirty").length===0){let i=String(Pe.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[i]}}cancelRowEdit(e){let r=String(Pe.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[r]}toggleRow(e,r){if(!this.dataKey&&!this.groupRowsBy)throw new Error("dataKey or groupRowsBy must be defined to use row expansion");let i=this.groupRowsBy?String(Pe.resolveFieldData(e,this.groupRowsBy)):String(Pe.resolveFieldData(e,this.dataKey));this.expandedRowKeys[i]!=null?(delete this.expandedRowKeys[i],this.onRowCollapse.emit({originalEvent:r,data:e})):(this.rowExpandMode==="single"&&(this.expandedRowKeys={}),this.expandedRowKeys[i]=!0,this.onRowExpand.emit({originalEvent:r,data:e})),r&&r.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return this.groupRowsBy?this.expandedRowKeys[String(Pe.resolveFieldData(e,this.groupRowsBy))]===!0:this.expandedRowKeys[String(Pe.resolveFieldData(e,this.dataKey))]===!0}isRowEditing(e){return this.editingRowKeys[String(Pe.resolveFieldData(e,this.dataKey))]===!0}isSingleSelectionMode(){return this.selectionMode==="single"}isMultipleSelectionMode(){return this.selectionMode==="multiple"}onColumnResizeBegin(e){let r=De.getOffset(this.el?.nativeElement).left;this.resizeColumnElement=e.target.closest("th"),this.columnResizing=!0,e.type=="touchstart"?this.lastResizerHelperX=e.changedTouches[0].clientX-r+this.el?.nativeElement.scrollLeft:this.lastResizerHelperX=e.pageX-r+this.el?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let r=De.getOffset(this.el?.nativeElement).left;De.addClass(this.el?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.el?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",e.type=="touchmove"?this.resizeHelperViewChild.nativeElement.style.left=e.changedTouches[0].clientX-r+this.el?.nativeElement.scrollLeft+"px":this.resizeHelperViewChild.nativeElement.style.left=e.pageX-r+this.el?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,i=this.resizeColumnElement.offsetWidth+e,o=this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,""),s=o?parseFloat(o):15;if(i>=s){if(this.columnResizeMode==="fit"){let l=this.resizeColumnElement.nextElementSibling.offsetWidth-e;i>15&&l>15&&this.resizeTableCells(i,l)}else if(this.columnResizeMode==="expand"){this._initialColWidths=this._totalTableWidth();let a=this.tableViewChild?.nativeElement.offsetWidth+e;this.setResizeTableWidth(a+"px"),this.resizeTableCells(i,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",De.removeClass(this.el?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[],r=De.findSingle(this.el.nativeElement,".p-datatable-thead");return De.find(r,"tr > th").forEach(o=>e.push(De.getOuterWidth(o))),e}onColumnDragStart(e,r){this.reorderIconWidth=De.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=De.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=r,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,r){if(this.reorderableColumns&&this.draggedColumn&&r){e.preventDefault();let i=De.getOffset(this.el?.nativeElement),o=De.getOffset(r);if(this.draggedColumn!=r){let s=De.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),a=De.indexWithinGroup(r,"preorderablecolumn"),l=o.left-i.left,c=i.top-o.top,d=o.left+r.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=o.top-i.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=o.top-i.top+r.offsetHeight+"px",e.pageX>d?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+r.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+r.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,r){if(e.preventDefault(),this.draggedColumn){let i=De.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),o=De.indexWithinGroup(r,"preorderablecolumn"),s=i!=o;if(s&&(o-i==1&&this.dropPosition===-1||i-o==1&&this.dropPosition===1)&&(s=!1),s&&oi&&this.dropPosition===-1&&(o=o-1),s&&(Pe.reorderArray(this.columns,i,o),this.onColReorder.emit({dragIndex:i,dropIndex:o,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement){let a=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();Pe.reorderArray(a,i+1,o+1),this.updateStyleElement(a,i,0,0)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,r){let i=De.index(this.resizeColumnElement),o=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(o,i,e,r)}updateStyleElement(e,r,i,o){this.destroyStyleElement(),this.createStyleElement();let s="";e.forEach((a,l)=>{let c=l===r?i:o&&l===r+1?o:a,d=`width: ${c}px !important; max-width: ${c}px !important;`;s+=` #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${l+1}), #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${l+1}), #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${l+1}) { - ${p} + ${d} } - `}),this.renderer.setProperty(this.styleElement,"innerHTML",a)}onRowDragStart(e,i){this.rowDragging=!0,this.draggedRowIndex=i,e.dataTransfer.setData("text","b")}onRowDragOver(e,i,o){if(this.rowDragging&&this.draggedRowIndex!==i){let r=he.getOffset(o).top,a=e.pageY,s=r+he.getOuterHeight(o)/2,l=o.previousElementSibling;athis.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1;be.reorderArray(this.value,this.draggedRowIndex,o),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:o})}this.onRowDragLeave(e,i),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return e==null||e.length==0}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(kn(this.platformId))switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}else throw new Error("Browser storage is not available in the server side.")}isStateful(){return this.stateKey!=null}saveState(){let e=this.getStorage(),i={};this.paginator&&(i.first=this.first,i.rows=this.rows),this.sortField&&(i.sortField=this.sortField,i.sortOrder=this.sortOrder),this.multiSortMeta&&(i.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(i.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(i),this.reorderableColumns&&this.saveColumnOrder(i),this.selection&&(i.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(i.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(i)),this.onStateSave.emit(i)}clearState(){let e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){let i=this.getStorage().getItem(this.stateKey),o=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,r=function(a,s){return typeof s=="string"&&o.test(s)?new Date(s):s};if(i){let a=JSON.parse(i,r);this.paginator&&(this.first!==void 0&&(this.first=a.first,this.firstChange.emit(this.first)),this.rows!==void 0&&(this.rows=a.rows,this.rowsChange.emit(this.rows))),a.sortField&&(this.restoringSort=!0,this._sortField=a.sortField,this._sortOrder=a.sortOrder),a.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=a.multiSortMeta),a.filters&&(this.restoringFilter=!0,this.filters=a.filters),this.resizableColumns&&(this.columnWidthsState=a.columnWidths,this.tableWidthState=a.tableWidth),a.expandedRowKeys&&(this.expandedRowKeys=a.expandedRowKeys),a.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(a.selection)),this.stateRestored=!0,this.onStateRestore.emit(a)}}saveColumnWidths(e){let i=[],o=[],r=this.el?.nativeElement;r&&(o=he.find(r,".p-datatable-thead > tr > th")),o.forEach(a=>i.push(he.getOuterWidth(a))),e.columnWidths=i.join(","),this.columnResizeMode==="expand"&&this.tableViewChild&&(e.tableWidth=he.getOuterWidth(this.tableViewChild.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if(this.columnResizeMode==="expand"&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),be.isNotEmpty(e)){this.createStyleElement();let i="";e.forEach((o,r)=>{let a=`width: ${o}px !important; max-width: ${o}px !important`;i+=` - #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${r+1}), - #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${r+1}), - #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${r+1}) { - ${a} + `}),this.renderer.setProperty(this.styleElement,"innerHTML",s)}onRowDragStart(e,r){this.rowDragging=!0,this.draggedRowIndex=r,e.dataTransfer.setData("text","b")}onRowDragOver(e,r,i){if(this.rowDragging&&this.draggedRowIndex!==r){let o=De.getOffset(i).top,s=e.pageY,a=o+De.getOuterHeight(i)/2,l=i.previousElementSibling;sthis.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1;Pe.reorderArray(this.value,this.draggedRowIndex,i),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:i})}this.onRowDragLeave(e,r),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return e==null||e.length==0}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(kn(this.platformId))switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}else throw new Error("Browser storage is not available in the server side.")}isStateful(){return this.stateKey!=null}saveState(){let e=this.getStorage(),r={};this.paginator&&(r.first=this.first,r.rows=this.rows),this.sortField&&(r.sortField=this.sortField,r.sortOrder=this.sortOrder),this.multiSortMeta&&(r.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(r.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(r),this.reorderableColumns&&this.saveColumnOrder(r),this.selection&&(r.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(r.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(r)),this.onStateSave.emit(r)}clearState(){let e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){let r=this.getStorage().getItem(this.stateKey),i=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,o=function(s,a){return typeof a=="string"&&i.test(a)?new Date(a):a};if(r){let s=JSON.parse(r,o);this.paginator&&(this.first!==void 0&&(this.first=s.first,this.firstChange.emit(this.first)),this.rows!==void 0&&(this.rows=s.rows,this.rowsChange.emit(this.rows))),s.sortField&&(this.restoringSort=!0,this._sortField=s.sortField,this._sortOrder=s.sortOrder),s.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=s.multiSortMeta),s.filters&&(this.restoringFilter=!0,this.filters=s.filters),this.resizableColumns&&(this.columnWidthsState=s.columnWidths,this.tableWidthState=s.tableWidth),s.expandedRowKeys&&(this.expandedRowKeys=s.expandedRowKeys),s.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(s.selection)),this.stateRestored=!0,this.onStateRestore.emit(s)}}saveColumnWidths(e){let r=[],i=[],o=this.el?.nativeElement;o&&(i=De.find(o,".p-datatable-thead > tr > th")),i.forEach(s=>r.push(De.getOuterWidth(s))),e.columnWidths=r.join(","),this.columnResizeMode==="expand"&&this.tableViewChild&&(e.tableWidth=De.getOuterWidth(this.tableViewChild.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if(this.columnResizeMode==="expand"&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),Pe.isNotEmpty(e)){this.createStyleElement();let r="";e.forEach((i,o)=>{let s=`width: ${i}px !important; max-width: ${i}px !important`;r+=` + #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${o+1}), + #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${o+1}), + #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${o+1}) { + ${s} } - `}),this.styleElement.innerHTML=i}}}saveColumnOrder(e){if(this.columns){let i=[];this.columns.map(o=>{i.push(o.field||o.key)}),e.columnOrder=i}}restoreColumnOrder(){let i=this.getStorage().getItem(this.stateKey);if(i){let r=JSON.parse(i).columnOrder;if(r){let a=[];r.map(s=>{let l=this.findColumnByKey(s);l&&a.push(l)}),this.columnOrderStateRestored=!0,this.columns=a}}}findColumnByKey(e){if(this.columns){for(let i of this.columns)if(i.key===e||i.field===e)return i}else return null}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",he.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement),he.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){if(kn(this.platformId)&&!this.responsiveStyleElement){this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",he.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.responsiveStyleElement);let e=` + `}),this.styleElement.innerHTML=r}}}saveColumnOrder(e){if(this.columns){let r=[];this.columns.map(i=>{r.push(i.field||i.key)}),e.columnOrder=r}}restoreColumnOrder(){let r=this.getStorage().getItem(this.stateKey);if(r){let o=JSON.parse(r).columnOrder;if(o){let s=[];o.map(a=>{let l=this.findColumnByKey(a);l&&s.push(l)}),this.columnOrderStateRestored=!0,this.columns=s}}}findColumnByKey(e){if(this.columns){for(let r of this.columns)if(r.key===e||r.field===e)return r}else return null}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",De.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement),De.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){if(kn(this.platformId)&&!this.responsiveStyleElement){this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",De.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.responsiveStyleElement);let e=` @media screen and (max-width: ${this.breakpoint}) { #${this.id}-table > .p-datatable-thead > tr > th, #${this.id}-table > .p-datatable-tfoot > tr > td { @@ -2762,7 +3803,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a display: block; } } - `;this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",e),he.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce)}}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=A(t)))(o||t)}})();static \u0275cmp=U({type:t,selectors:[["p-table"]],contentQueries:function(i,o,r){if(i&1&&(F(r,QS,4),F(r,qS,4),F(r,US,4),F(r,GS,4),F(r,$S,4),F(r,WS,4),F(r,KS,4),F(r,YS,4),F(r,ZS,4),F(r,JS,4),F(r,XS,4),F(r,eI,4),F(r,tI,4),F(r,nI,4),F(r,iI,4),F(r,oI,4),F(r,rI,4),F(r,aI,4),F(r,sI,4),F(r,lI,4),F(r,cI,4),F(r,dI,4),F(r,uI,4),F(r,pI,4),F(r,fI,4),F(r,hI,4),F(r,mI,4),F(r,gI,4),F(r,bI,4),F(r,_I,4),F(r,yI,4),F(r,vI,4),F(r,Xe,4)),i&2){let a;M(a=D())&&(o._headerTemplate=a.first),M(a=D())&&(o._headerGroupedTemplate=a.first),M(a=D())&&(o._bodyTemplate=a.first),M(a=D())&&(o._loadingBodyTemplate=a.first),M(a=D())&&(o._captionTemplate=a.first),M(a=D())&&(o._footerTemplate=a.first),M(a=D())&&(o._footerGroupedTemplate=a.first),M(a=D())&&(o._summaryTemplate=a.first),M(a=D())&&(o._colGroupTemplate=a.first),M(a=D())&&(o._expandedRowTemplate=a.first),M(a=D())&&(o._groupHeaderTemplate=a.first),M(a=D())&&(o._groupFooterTemplate=a.first),M(a=D())&&(o._frozenExpandedRowTemplate=a.first),M(a=D())&&(o._frozenHeaderTemplate=a.first),M(a=D())&&(o._frozenBodyTemplate=a.first),M(a=D())&&(o._frozenFooterTemplate=a.first),M(a=D())&&(o._frozenColGroupTemplate=a.first),M(a=D())&&(o._emptyMessageTemplate=a.first),M(a=D())&&(o._paginatorLeftTemplate=a.first),M(a=D())&&(o._paginatorRightTemplate=a.first),M(a=D())&&(o._paginatorDropdownItemTemplate=a.first),M(a=D())&&(o._loadingIconTemplate=a.first),M(a=D())&&(o._reorderIndicatorUpIconTemplate=a.first),M(a=D())&&(o._reorderIndicatorDownIconTemplate=a.first),M(a=D())&&(o._sortIconTemplate=a.first),M(a=D())&&(o._checkboxIconTemplate=a.first),M(a=D())&&(o._headerCheckboxIconTemplate=a.first),M(a=D())&&(o._paginatorDropdownIconTemplate=a.first),M(a=D())&&(o._paginatorFirstPageLinkIconTemplate=a.first),M(a=D())&&(o._paginatorLastPageLinkIconTemplate=a.first),M(a=D())&&(o._paginatorPreviousPageLinkIconTemplate=a.first),M(a=D())&&(o._paginatorNextPageLinkIconTemplate=a.first),M(a=D())&&(o._templates=a)}},viewQuery:function(i,o){if(i&1&&(Fe(wI,5),Fe(CI,5),Fe(xI,5),Fe(kI,5),Fe(TI,5),Fe(SI,5),Fe(II,5),Fe(EI,5)),i&2){let r;M(r=D())&&(o.resizeHelperViewChild=r.first),M(r=D())&&(o.reorderIndicatorUpViewChild=r.first),M(r=D())&&(o.reorderIndicatorDownViewChild=r.first),M(r=D())&&(o.wrapperViewChild=r.first),M(r=D())&&(o.tableViewChild=r.first),M(r=D())&&(o.tableHeaderViewChild=r.first),M(r=D())&&(o.tableFooterViewChild=r.first),M(r=D())&&(o.scroller=r.first)}},hostVars:2,hostBindings:function(i,o){i&2&&I(o.cn(o.cx("root"),o.styleClass))},inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:[2,"paginator","paginator",P],pageLinks:[2,"pageLinks","pageLinks",xe],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",P],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",P],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",P],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",P],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",P],showPageLinks:[2,"showPageLinks","showPageLinks",P],defaultSortOrder:[2,"defaultSortOrder","defaultSortOrder",xe],sortMode:"sortMode",resetPageOnSort:[2,"resetPageOnSort","resetPageOnSort",P],selectionMode:"selectionMode",selectionPageOnly:[2,"selectionPageOnly","selectionPageOnly",P],contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[2,"metaKeySelection","metaKeySelection",P],rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:[2,"lazy","lazy",P],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",P],compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[2,"filterDelay","filterDelay",xe],filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:[2,"scrollable","scrollable",P],rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:[2,"virtualScroll","virtualScroll",P],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",xe],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[2,"virtualScrollDelay","virtualScrollDelay",xe],frozenWidth:"frozenWidth",contextMenu:"contextMenu",resizableColumns:[2,"resizableColumns","resizableColumns",P],columnResizeMode:"columnResizeMode",reorderableColumns:[2,"reorderableColumns","reorderableColumns",P],loading:[2,"loading","loading",P],loadingIcon:"loadingIcon",showLoader:[2,"showLoader","showLoader",P],rowHover:[2,"rowHover","rowHover",P],customSort:[2,"customSort","customSort",P],showInitialSortBadge:[2,"showInitialSortBadge","showInitialSortBadge",P],exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",size:"size",showGridlines:[2,"showGridlines","showGridlines",P],stripedRows:[2,"stripedRows","stripedRows",P],groupRowsByOrder:[2,"groupRowsByOrder","groupRowsByOrder",xe],responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},standalone:!1,features:[Ee([Nc,Lc,{provide:wM,useExisting:t},{provide:Ae,useExisting:t}]),He([X]),L],decls:14,vars:14,consts:[["wrapper",""],["buildInTable",""],["scroller",""],["content",""],["table",""],["thead",""],["tfoot",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],[3,"class","pBind",4,"ngIf"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","appendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","pt","onPageChange",4,"ngIf"],[3,"ngStyle","pBind"],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","autoSize","lazy","loaderDisabled","showSpacer","showLoader","options","pt","onLazyLoad",4,"ngIf"],[4,"ngIf"],[3,"ngClass","pBind",4,"ngIf"],[3,"ngClass","pBind","display",4,"ngIf"],[3,"pBind"],["data-p-icon","spinner",3,"spin","class","pBind",4,"ngIf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngTemplateOutlet"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","appendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","pt"],["pTemplate","dropdownicon"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"onLazyLoad","items","columns","scrollHeight","itemSize","step","delay","inline","autoSize","lazy","loaderDisabled","showSpacer","showLoader","options","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"pBind"],["role","rowgroup",3,"ngStyle","pBind"],["role","rowgroup",3,"class","pBind","value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",3,"pBind","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup",3,"style","class","pBind",4,"ngIf"],["role","rowgroup",3,"ngClass","ngStyle","pBind",4,"ngIf"],["role","rowgroup",3,"pBind","value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",3,"pBind"],["role","rowgroup",3,"ngClass","ngStyle","pBind"],[3,"ngClass","pBind"],["data-p-icon","arrow-down",3,"pBind",4,"ngIf"],["data-p-icon","arrow-down",3,"pBind"],["data-p-icon","arrow-up",3,"pBind",4,"ngIf"],["data-p-icon","arrow-up",3,"pBind"]],template:function(i,o){i&1&&(_(0,AI,3,5,"div",10)(1,NI,2,4,"div",10)(2,tE,6,25,"p-paginator",11),k(3,"div",12,0),_(5,oE,4,18,"p-scroller",13)(6,aE,2,7,"ng-container",14)(7,fE,10,30,"ng-template",null,1,Me),x(),_(9,ME,6,25,"p-paginator",11)(10,OE,2,3,"div",15)(11,PE,2,4,"div",16)(12,BE,4,6,"span",16)(13,zE,4,6,"span",16)),i&2&&(d("ngIf",o.loading&&o.showLoader),f(),d("ngIf",o.captionTemplate||o._captionTemplate),f(),d("ngIf",o.paginator&&(o.paginatorPosition==="top"||o.paginatorPosition=="both")),f(),I(o.cx("tableContainer")),d("ngStyle",o.sx("tableContainer"))("pBind",o.ptm("tableContainer")),f(2),d("ngIf",o.virtualScroll),f(),d("ngIf",!o.virtualScroll),f(3),d("ngIf",o.paginator&&(o.paginatorPosition==="bottom"||o.paginatorPosition=="both")),f(),d("ngIf",o.summaryTemplate||o._summaryTemplate),f(),d("ngIf",o.resizableColumns),f(),d("ngIf",o.reorderableColumns),f(),d("ngIf",o.reorderableColumns))},dependencies:()=>[Cn,ht,ot,an,Nr,Xe,Ar,mc,gc,Ri,X,CM],encapsulation:2})}return t})(),CM=(()=>{class t extends vt{dataTable;tableService;hostName="Table";columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dataTable.scrollable&&this.dataTable.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;onAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dataTable.scrollable&&this.dataTable.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,i){super(),this.dataTable=e,this.tableService=i,this.subscription=this.dataTable.tableService.valueSource$.subscribe(()=>{this.dataTable.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,i,o){let r=be.resolveFieldData(i,this.dataTable?.groupRowsBy||""),a=e[o-(this.dataTable?._first||0)-1];if(a){let s=be.resolveFieldData(a,this.dataTable?.groupRowsBy||"");return r!==s}else return!0}shouldRenderRowGroupFooter(e,i,o){let r=be.resolveFieldData(i,this.dataTable?.groupRowsBy||""),a=e[o-(this.dataTable?._first||0)+1];if(a){let s=be.resolveFieldData(a,this.dataTable?.groupRowsBy||"");return r!==s}else return!0}shouldRenderRowspan(e,i,o){let r=be.resolveFieldData(i,this.dataTable?.groupRowsBy),a=e[o-1];if(a){let s=be.resolveFieldData(a,this.dataTable?.groupRowsBy||"");return r!==s}else return!0}calculateRowGroupSize(e,i,o){let r=be.resolveFieldData(i,this.dataTable?.groupRowsBy),a=r,s=0;for(;r===a;){s++;let l=e[++o];if(l)a=be.resolveFieldData(l,this.dataTable?.groupRowsBy||"");else break}return s===1?null:s}onDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=he.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=he.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dataTable.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,i){return this.dataTable.virtualScroll?(i=i||this.scrollerOptions,i?i[e]:null):null}getRowIndex(e){let i=this.dataTable.paginator?this.dataTable.first+e:e,o=this.getScrollerOption("getItemOptions");return o?o(i).index:i}static \u0275fac=function(i){return new(i||t)(ye(jc),ye(Nc))};static \u0275cmp=U({type:t,selectors:[["","pTableBody",""]],inputs:{columns:[0,"pTableBody","columns"],template:[0,"pTableBodyTemplate","template"],value:"value",frozen:[2,"frozen","frozen",P],frozenRows:[2,"frozenRows","frozenRows",P],scrollerOptions:"scrollerOptions"},standalone:!1,features:[L],attrs:jE,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&_(0,JE,2,2,"ng-container",0)(1,lM,2,2,"ng-container",0)(2,fM,2,2,"ng-container",0)(3,mM,2,5,"ng-container",0)(4,bM,2,5,"ng-container",0),i&2&&(d("ngIf",!o.dataTable.expandedRowTemplate&&!o.dataTable._expandedRowTemplate),f(),d("ngIf",(o.dataTable.expandedRowTemplate||o.dataTable._expandedRowTemplate)&&!(o.frozen&&(o.dataTable.frozenExpandedRowTemplate||o.dataTable._frozenExpandedRowTemplate))),f(),d("ngIf",(o.dataTable.frozenExpandedRowTemplate||o.dataTable._frozenExpandedRowTemplate)&&o.frozen),f(),d("ngIf",o.dataTable.loading),f(),d("ngIf",o.dataTable.isEmpty()&&!o.dataTable.loading))},dependencies:[xn,ht,ot],encapsulation:2})}return t})();var F0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=je({type:t});static \u0275inj=ze({providers:[Lc],imports:[$e,ps,Ig,Qg,Vn,wf,u0,x0,$g,vf,b0,Fc,mc,gc,Ri,Bm,Lm,Am,Om,k0,Pm,Rm,Nm,M0,dt,ve,Fc]})}return t})();var R0=Fn` + `;this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",e),De.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce)}}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-table"]],contentQueries:function(r,i,o){if(r&1&&(V(o,rQ,4),V(o,iQ,4),V(o,oQ,4),V(o,sQ,4),V(o,aQ,4),V(o,lQ,4),V(o,cQ,4),V(o,dQ,4),V(o,uQ,4),V(o,pQ,4),V(o,fQ,4),V(o,hQ,4),V(o,mQ,4),V(o,gQ,4),V(o,yQ,4),V(o,bQ,4),V(o,vQ,4),V(o,_Q,4),V(o,wQ,4),V(o,CQ,4),V(o,xQ,4),V(o,TQ,4),V(o,EQ,4),V(o,SQ,4),V(o,IQ,4),V(o,DQ,4),V(o,kQ,4),V(o,MQ,4),V(o,OQ,4),V(o,RQ,4),V(o,PQ,4),V(o,AQ,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i._headerTemplate=s.first),M(s=O())&&(i._headerGroupedTemplate=s.first),M(s=O())&&(i._bodyTemplate=s.first),M(s=O())&&(i._loadingBodyTemplate=s.first),M(s=O())&&(i._captionTemplate=s.first),M(s=O())&&(i._footerTemplate=s.first),M(s=O())&&(i._footerGroupedTemplate=s.first),M(s=O())&&(i._summaryTemplate=s.first),M(s=O())&&(i._colGroupTemplate=s.first),M(s=O())&&(i._expandedRowTemplate=s.first),M(s=O())&&(i._groupHeaderTemplate=s.first),M(s=O())&&(i._groupFooterTemplate=s.first),M(s=O())&&(i._frozenExpandedRowTemplate=s.first),M(s=O())&&(i._frozenHeaderTemplate=s.first),M(s=O())&&(i._frozenBodyTemplate=s.first),M(s=O())&&(i._frozenFooterTemplate=s.first),M(s=O())&&(i._frozenColGroupTemplate=s.first),M(s=O())&&(i._emptyMessageTemplate=s.first),M(s=O())&&(i._paginatorLeftTemplate=s.first),M(s=O())&&(i._paginatorRightTemplate=s.first),M(s=O())&&(i._paginatorDropdownItemTemplate=s.first),M(s=O())&&(i._loadingIconTemplate=s.first),M(s=O())&&(i._reorderIndicatorUpIconTemplate=s.first),M(s=O())&&(i._reorderIndicatorDownIconTemplate=s.first),M(s=O())&&(i._sortIconTemplate=s.first),M(s=O())&&(i._checkboxIconTemplate=s.first),M(s=O())&&(i._headerCheckboxIconTemplate=s.first),M(s=O())&&(i._paginatorDropdownIconTemplate=s.first),M(s=O())&&(i._paginatorFirstPageLinkIconTemplate=s.first),M(s=O())&&(i._paginatorLastPageLinkIconTemplate=s.first),M(s=O())&&(i._paginatorPreviousPageLinkIconTemplate=s.first),M(s=O())&&(i._paginatorNextPageLinkIconTemplate=s.first),M(s=O())&&(i._templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(NQ,5),ct(FQ,5),ct(LQ,5),ct(BQ,5),ct(VQ,5),ct(jQ,5),ct(zQ,5),ct(HQ,5)),r&2){let o;M(o=O())&&(i.resizeHelperViewChild=o.first),M(o=O())&&(i.reorderIndicatorUpViewChild=o.first),M(o=O())&&(i.reorderIndicatorDownViewChild=o.first),M(o=O())&&(i.wrapperViewChild=o.first),M(o=O())&&(i.tableViewChild=o.first),M(o=O())&&(i.tableHeaderViewChild=o.first),M(o=O())&&(i.tableFooterViewChild=o.first),M(o=O())&&(i.scroller=o.first)}},hostVars:2,hostBindings:function(r,i){r&2&&k(i.cn(i.cx("root"),i.styleClass))},inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:[2,"paginator","paginator",R],pageLinks:[2,"pageLinks","pageLinks",Me],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",R],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",R],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",R],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",R],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",R],showPageLinks:[2,"showPageLinks","showPageLinks",R],defaultSortOrder:[2,"defaultSortOrder","defaultSortOrder",Me],sortMode:"sortMode",resetPageOnSort:[2,"resetPageOnSort","resetPageOnSort",R],selectionMode:"selectionMode",selectionPageOnly:[2,"selectionPageOnly","selectionPageOnly",R],contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[2,"metaKeySelection","metaKeySelection",R],rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:[2,"lazy","lazy",R],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",R],compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[2,"filterDelay","filterDelay",Me],filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:[2,"scrollable","scrollable",R],rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:[2,"virtualScroll","virtualScroll",R],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",Me],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[2,"virtualScrollDelay","virtualScrollDelay",Me],frozenWidth:"frozenWidth",contextMenu:"contextMenu",resizableColumns:[2,"resizableColumns","resizableColumns",R],columnResizeMode:"columnResizeMode",reorderableColumns:[2,"reorderableColumns","reorderableColumns",R],loading:[2,"loading","loading",R],loadingIcon:"loadingIcon",showLoader:[2,"showLoader","showLoader",R],rowHover:[2,"rowHover","rowHover",R],customSort:[2,"customSort","customSort",R],showInitialSortBadge:[2,"showInitialSortBadge","showInitialSortBadge",R],exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",size:"size",showGridlines:[2,"showGridlines","showGridlines",R],stripedRows:[2,"stripedRows","stripedRows",R],groupRowsByOrder:[2,"groupRowsByOrder","groupRowsByOrder",Me],responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},standalone:!1,features:[xe([Rw,Ow,{provide:NY,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:14,vars:14,consts:[["wrapper",""],["buildInTable",""],["scroller",""],["content",""],["table",""],["thead",""],["tfoot",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],[3,"class","pBind",4,"ngIf"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","appendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","pt","onPageChange",4,"ngIf"],[3,"ngStyle","pBind"],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","autoSize","lazy","loaderDisabled","showSpacer","showLoader","options","pt","onLazyLoad",4,"ngIf"],[4,"ngIf"],[3,"ngClass","pBind",4,"ngIf"],[3,"ngClass","pBind","display",4,"ngIf"],[3,"pBind"],["data-p-icon","spinner",3,"spin","class","pBind",4,"ngIf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngTemplateOutlet"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","appendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","pt"],["pTemplate","dropdownicon"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"onLazyLoad","items","columns","scrollHeight","itemSize","step","delay","inline","autoSize","lazy","loaderDisabled","showSpacer","showLoader","options","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"pBind"],["role","rowgroup",3,"ngStyle","pBind"],["role","rowgroup",3,"class","pBind","value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",3,"pBind","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup",3,"style","class","pBind",4,"ngIf"],["role","rowgroup",3,"ngClass","ngStyle","pBind",4,"ngIf"],["role","rowgroup",3,"pBind","value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",3,"pBind"],["role","rowgroup",3,"ngClass","ngStyle","pBind"],[3,"ngClass","pBind"],["data-p-icon","arrow-down",3,"pBind",4,"ngIf"],["data-p-icon","arrow-down",3,"pBind"],["data-p-icon","arrow-up",3,"pBind",4,"ngIf"],["data-p-icon","arrow-up",3,"pBind"]],template:function(r,i){r&1&&(C(0,ZQ,3,5,"div",10)(1,XQ,2,4,"div",10)(2,mK,6,25,"p-paginator",11),E(3,"div",12,0),C(5,bK,4,18,"p-scroller",13)(6,_K,2,7,"ng-container",14)(7,IK,10,30,"ng-template",null,1,at),T(),C(9,$K,6,25,"p-paginator",11)(10,WK,2,3,"div",15)(11,GK,2,4,"div",16)(12,YK,4,6,"span",16)(13,eY,4,6,"span",16)),r&2&&(h("ngIf",i.loading&&i.showLoader),g(),h("ngIf",i.captionTemplate||i._captionTemplate),g(),h("ngIf",i.paginator&&(i.paginatorPosition==="top"||i.paginatorPosition=="both")),g(),k(i.cx("tableContainer")),h("ngStyle",i.sx("tableContainer"))("pBind",i.ptm("tableContainer")),g(2),h("ngIf",i.virtualScroll),g(),h("ngIf",!i.virtualScroll),g(3),h("ngIf",i.paginator&&(i.paginatorPosition==="bottom"||i.paginatorPosition=="both")),g(),h("ngIf",i.summaryTemplate||i._summaryTemplate),g(),h("ngIf",i.resizableColumns),g(),h("ngIf",i.reorderableColumns),g(),h("ngIf",i.reorderableColumns))},dependencies:()=>[ei,Wt,kt,tr,ju,xt,Bu,Xv,e_,To,te,FY],encapsulation:2})}return t})(),FY=(()=>{class t extends ut{dataTable;tableService;hostName="Table";columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dataTable.scrollable&&this.dataTable.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;onAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dataTable.scrollable&&this.dataTable.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,r){super(),this.dataTable=e,this.tableService=r,this.subscription=this.dataTable.tableService.valueSource$.subscribe(()=>{this.dataTable.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,r,i){let o=Pe.resolveFieldData(r,this.dataTable?.groupRowsBy||""),s=e[i-(this.dataTable?._first||0)-1];if(s){let a=Pe.resolveFieldData(s,this.dataTable?.groupRowsBy||"");return o!==a}else return!0}shouldRenderRowGroupFooter(e,r,i){let o=Pe.resolveFieldData(r,this.dataTable?.groupRowsBy||""),s=e[i-(this.dataTable?._first||0)+1];if(s){let a=Pe.resolveFieldData(s,this.dataTable?.groupRowsBy||"");return o!==a}else return!0}shouldRenderRowspan(e,r,i){let o=Pe.resolveFieldData(r,this.dataTable?.groupRowsBy),s=e[i-1];if(s){let a=Pe.resolveFieldData(s,this.dataTable?.groupRowsBy||"");return o!==a}else return!0}calculateRowGroupSize(e,r,i){let o=Pe.resolveFieldData(r,this.dataTable?.groupRowsBy),s=o,a=0;for(;o===s;){a++;let l=e[++i];if(l)s=Pe.resolveFieldData(l,this.dataTable?.groupRowsBy||"");else break}return a===1?null:a}onDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=De.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=De.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dataTable.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,r){return this.dataTable.virtualScroll?(r=r||this.scrollerOptions,r?r[e]:null):null}getRowIndex(e){let r=this.dataTable.paginator?this.dataTable.first+e:e,i=this.getScrollerOption("getItemOptions");return i?i(r).index:r}static \u0275fac=function(r){return new(r||t)(de(Aw),de(Rw))};static \u0275cmp=$({type:t,selectors:[["","pTableBody",""]],inputs:{columns:[0,"pTableBody","columns"],template:[0,"pTableBodyTemplate","template"],value:"value",frozen:[2,"frozen","frozen",R],frozenRows:[2,"frozenRows","frozenRows",R],scrollerOptions:"scrollerOptions"},standalone:!1,features:[j],attrs:tY,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,i){r&1&&C(0,pY,2,2,"ng-container",0)(1,CY,2,2,"ng-container",0)(2,IY,2,2,"ng-container",0)(3,kY,2,5,"ng-container",0)(4,OY,2,5,"ng-container",0),r&2&&(h("ngIf",!i.dataTable.expandedRowTemplate&&!i.dataTable._expandedRowTemplate),g(),h("ngIf",(i.dataTable.expandedRowTemplate||i.dataTable._expandedRowTemplate)&&!(i.frozen&&(i.dataTable.frozenExpandedRowTemplate||i.dataTable._frozenExpandedRowTemplate))),g(),h("ngIf",(i.dataTable.frozenExpandedRowTemplate||i.dataTable._frozenExpandedRowTemplate)&&i.frozen),g(),h("ngIf",i.dataTable.loading),g(),h("ngIf",i.dataTable.isEmpty()&&!i.dataTable.loading))},dependencies:[Ar,Wt,kt],encapsulation:2})}return t})();var pP=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({providers:[Ow],imports:[Qe,eg,sR,CR,Xi,yM,UR,nP,SR,Yh,YR,Sw,Xv,e_,To,aM,cM,lM,nM,rP,rM,oM,dM,lP,Gt,Te,Sw]})}return t})();var fP=Zi` query GetAddressesForList($input: AddressSearchInput) { getAddresses(input: $input) { isLastPage @@ -2793,5 +3834,5 @@ query GetAddressesForList($input: AddressSearchInput) { } } } -${Po} -`;var kM=()=>[10,25,50,75,100];function TM(t,n){t&1&&(k(0,"tr"),Z(1,"th"),k(2,"th"),oe(3,"Name"),x(),k(4,"th"),oe(5,"Email"),x(),k(6,"th"),oe(7,"Address"),x(),Z(8,"th"),x())}function SM(t,n){if(t&1&&(k(0,"div",4),Z(1,"img",7),x()),t&2){let e=u().$implicit,i=u();f(),d("src",i.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.preview),so)("alt",e.featuredAsset==null?null:e.featuredAsset.displayName)}}function IM(t,n){if(t&1&&(Z(0,"br"),k(1,"div",8),oe(2),x()),t&2){let e=u().$implicit;f(2),Ue(e.addition)}}function EM(t,n){if(t&1){let e=te();k(0,"tr")(1,"td"),Re(2,SM,2,2,"div",4),x(),k(3,"td")(4,"b"),oe(5),x(),Re(6,IM,3,1),x(),k(7,"td")(8,"a",5),oe(9),x()(),k(10,"td"),oe(11),Z(12,"br"),oe(13),Z(14,"br"),oe(15),x(),k(16,"td")(17,"p-button",6),Q("click",function(){let o=w(e).$implicit,r=u();return C(r.openAddress(o))}),x()()()}if(t&2){let e=n.$implicit;f(2),Ve(e.featuredAsset!=null&&e.featuredAsset.preview?2:-1),f(3),Ue(e.name),f(),Ve(e.addition&&e.addition.length>0?6:-1),f(2),d("href","mailto:"+e.defaultEmail,so),f(),Ue(e.defaultEmail),f(2),ft(" ",e.primaryPostalAddress==null?null:e.primaryPostalAddress.street),f(2),ia(" ",e.primaryPostalAddress==null?null:e.primaryPostalAddress.postalCode," ",e.primaryPostalAddress==null?null:e.primaryPostalAddress.city),f(2),ft(" ",e.primaryPostalAddress==null?null:e.primaryPostalAddress.countryName," ")}}var bs=class t{apollo=G(Rn);addresses=Ie([]);rows=Ie(localStorage.getItem("address-list-rows")?parseInt(localStorage.getItem("address-list-rows")):10);totalItems=Ie(0);getPhxUrl=zo;constructor(){wn(()=>{let n=this.rows();n>0&&n!==parseInt(localStorage.getItem("address-list-rows")??"0")&&localStorage.setItem("address-list-rows",n.toString())})}getAddresses=(...e)=>Ze(this,[...e],function*(n={}){return(yield rn(this.apollo.apollo().query({query:R0,variables:{input:n}})))?.data?.getAddresses});onLazyLoad(n){return Ze(this,null,function*(){let e=yield this.getAddresses({take:n?.rows??this.rows(),skip:n?.first??0});this.addresses.set(e?.items??[]),this.totalItems.set(e?.totalItems??0)})}openAddress(n){window.open(zo("/crm/address/edit/"+n.id),"_blank")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["app-address-list"]],decls:4,vars:5,consts:[["title","Address List"],["lazy","","paginator","",3,"onLazyLoad","rowsChange","value","rows","totalRecords","rowsPerPageOptions"],["pTemplate","header"],["pTemplate","body"],[1,"flex","justify-center","items-center"],[1,"text-blue-500","hover:text-blue-700","hover:underline",3,"href"],["icon","fa fa-arrow-up-right-from-square","size","small","text","","rounded","","outlined","",3,"click"],[2,"object-fit","contain","max-width","100px","max-height","70px",3,"src","alt"],[1,"text-muted-color","italic","text-sm"]],template:function(e,i){e&1&&(k(0,"app-base",0)(1,"p-table",1),Q("onLazyLoad",function(r){return i.onLazyLoad(r)}),vn("rowsChange",function(r){return yn(i.rows,r)||(i.rows=r),r}),_(2,TM,9,0,"ng-template",2)(3,EM,18,9,"ng-template",3),x()()),e&2&&(f(),d("value",i.addresses()),_n("rows",i.rows),d("totalRecords",i.totalItems())("rowsPerPageOptions",Qn(4,kM)))},dependencies:[la,F0,jc,Xe,$n],encapsulation:2})};var Hc=[{path:"",canActivate:[tt.production?()=>!0:oi],component:ja},{path:"product-view",canActivate:[tt.production?()=>!0:oi],component:hs},{path:"address-list",canActivate:[tt.production?()=>!0:oi],component:bs},{path:"login",component:ms}];var MM={schedule(t,n){let e=setTimeout(t,n);return()=>clearTimeout(e)}};function DM(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}function OM(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}var Qc;function PM(t,n){if(!Qc){let e=Element.prototype;Qc=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?Qc.call(t,n):!1}function FM(t){let n={};return t.forEach(({propName:e,templateName:i,transform:o})=>{n[DM(i)]=[e,o]}),n}function RM(t,n){return n.get(Us).resolveComponentFactory(t).inputs}function VM(t,n){let e=t.childNodes,i=n.map(()=>[]),o=-1;n.some((r,a)=>r==="*"?(o=a,!0):!1);for(let r=0,a=e.length;ro!=="*"&&PM(t,o)?(i=r,!0):!1),i}var AM=10,qc=class{componentFactory;inputMap=new Map;constructor(n,e){this.componentFactory=e.get(Us).resolveComponentFactory(n);for(let i of this.componentFactory.inputs)this.inputMap.set(i.propName,i.templateName)}create(n){return new Uc(this.componentFactory,n,this.inputMap)}},Uc=class{componentFactory;injector;inputMap;eventEmitters=new Zr(1);events=this.eventEmitters.pipe(xp(n=>_p(...n)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(n,e,i){this.componentFactory=n,this.injector=e,this.inputMap=i,this.ngZone=this.injector.get(It),this.appRef=this.injector.get($s),this.cdScheduler=e.get(Ip),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=MM.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},AM))})}getInputValue(n){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){if(this.componentRef===null){this.initialInputValues.set(n,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(n)??n,e),Mp(this.componentRef.hostView)&&(Dp(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(n){let e=Hn.create({providers:[],parent:this.injector}),i=VM(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[n,e]of this.initialInputValues)this.setInputValue(n,e);this.initialInputValues.clear()}initializeOutputs(n){let e=this.componentFactory.outputs.map(({propName:i,templateName:o})=>{let r=n.instance[i];return new Je(a=>{let s=r.subscribe(l=>a.next({name:o,value:l}));return()=>s.unsubscribe()})});this.eventEmitters.next(e)}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}},Gc=class extends HTMLElement{ngElementEventsSubscription=null};function _s(t,n){let e=RM(t,n.injector),i=n.strategyFactory||new qc(t,n.injector),o=FM(e);class r extends Gc{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let s=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l,transform:c})=>{if(!this.hasOwnProperty(l))return;let p=this[l];delete this[l],s.setInputValue(l,p,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(s){super(),this.injector=s}attributeChangedCallback(s,l,c,p){let[h,m]=o[s];this.ngElementStrategy.setInputValue(h,c,m)}connectedCallback(){let s=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),s=!0),this.ngElementStrategy.connect(this),s||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(s=>{let l=new CustomEvent(s.name,{detail:s.value});this.dispatchEvent(l)})}}return e.forEach(({propName:a,transform:s})=>{Object.defineProperty(r.prototype,a,{get(){return this.ngElementStrategy.getInputValue(a)},set(l){this.ngElementStrategy.setInputValue(a,l,s)},configurable:!0,enumerable:!0})}),r}function V0(t){return new Se(3e3,!1)}function LM(){return new Se(3100,!1)}function NM(){return new Se(3101,!1)}function zM(t){return new Se(3001,!1)}function jM(t){return new Se(3003,!1)}function HM(t){return new Se(3004,!1)}function A0(t,n){return new Se(3005,!1)}function L0(){return new Se(3006,!1)}function N0(){return new Se(3007,!1)}function z0(t,n){return new Se(3008,!1)}function j0(t){return new Se(3002,!1)}function H0(t,n,e,i,o){return new Se(3010,!1)}function Q0(){return new Se(3011,!1)}function q0(){return new Se(3012,!1)}function U0(){return new Se(3200,!1)}function G0(){return new Se(3202,!1)}function $0(){return new Se(3013,!1)}function W0(t){return new Se(3014,!1)}function K0(t){return new Se(3015,!1)}function Y0(t){return new Se(3016,!1)}function Z0(t,n){return new Se(3404,!1)}function QM(t){return new Se(3502,!1)}function J0(t){return new Se(3503,!1)}function X0(){return new Se(3300,!1)}function eb(t){return new Se(3504,!1)}function tb(t){return new Se(3301,!1)}function nb(t,n){return new Se(3302,!1)}function ib(t){return new Se(3303,!1)}function ob(t,n){return new Se(3400,!1)}function rb(t){return new Se(3401,!1)}function ab(t){return new Se(3402,!1)}function sb(t,n){return new Se(3505,!1)}function ri(t){switch(t.length){case 0:return new Ln;case 1:return t[0];default:return new eo(t)}}function Yc(t,n,e=new Map,i=new Map){let o=[],r=[],a=-1,s=null;if(n.forEach(l=>{let c=l.get("offset"),p=c==a,h=p&&s||new Map;l.forEach((m,g)=>{let b=g,y=m;if(g!=="offset")switch(b=t.normalizePropertyName(b,o),y){case No:y=e.get(g);break;case nn:y=i.get(g);break;default:y=t.normalizeStyleValue(g,b,y,o);break}h.set(b,y)}),p||r.push(h),s=h,a=c}),o.length)throw QM(o);return r}function ys(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&$c(e,"start",t)));break;case"done":t.onDone(()=>i(e&&$c(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&$c(e,"destroy",t)));break}}function $c(t,n,e){let i=e.totalTime,o=!!e.disabled,r=vs(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,i??t.totalTime,o),a=t._data;return a!=null&&(r._data=a),r}function vs(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function Ut(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function Zc(t){let n=t.indexOf(":"),e=t.substring(1,n),i=t.slice(n+1);return[e,i]}var qM=typeof document>"u"?null:document.documentElement;function ws(t){let n=t.parentNode||t.host||null;return n===qM?null:n}function UM(t){return t.substring(1,6)=="ebkit"}var to=null,B0=!1;function lb(t){to||(to=GM()||{},B0=to.style?"WebkitAppearance"in to.style:!1);let n=!0;return to.style&&!UM(t)&&(n=t in to.style,!n&&B0&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in to.style)),n}function GM(){return typeof document<"u"?document.body:null}function Jc(t,n){for(;n;){if(n===t)return!0;n=ws(n)}return!1}function Xc(t,n,e){if(e)return Array.from(t.querySelectorAll(n));let i=t.querySelector(n);return i?[i]:[]}var $M=1e3,ed="{{",WM="}}",td="ng-enter",Cs="ng-leave",zr="ng-trigger",jr=".ng-trigger",nd="ng-animating",xs=".ng-animating";function zn(t){if(typeof t=="number")return t;let n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Wc(parseFloat(n[1]),n[2])}function Wc(t,n){return n==="s"?t*$M:t}function Hr(t,n,e){return t.hasOwnProperty("duration")?t:YM(t,n,e)}var KM=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function YM(t,n,e){let i,o=0,r="";if(typeof t=="string"){let a=t.match(KM);if(a===null)return n.push(V0(t)),{duration:0,delay:0,easing:""};i=Wc(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(o=Wc(parseFloat(s),a[4]));let l=a[5];l&&(r=l)}else i=t;if(!e){let a=!1,s=n.length;i<0&&(n.push(LM()),a=!0),o<0&&(n.push(NM()),a=!0),a&&n.splice(s,0,V0(t))}return{duration:i,delay:o,easing:r}}function cb(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}function fn(t,n,e){n.forEach((i,o)=>{let r=ks(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function ki(t,n){n.forEach((e,i)=>{let o=ks(i);t.style[o]=""})}function jo(t){return Array.isArray(t)?t.length==1?t[0]:Eg(t):t}function db(t,n,e){let i=n.params||{},o=id(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(zM(r))})}var Kc=new RegExp(`${ed}\\s*(.+?)\\s*${WM}`,"g");function id(t){let n=[];if(typeof t=="string"){let e;for(;e=Kc.exec(t);)n.push(e[1]);Kc.lastIndex=0}return n}function Ho(t,n,e){let i=`${t}`,o=i.replace(Kc,(r,a)=>{let s=n[a];return s==null&&(e.push(jM(a)),s=""),s.toString()});return o==i?t:o}var ZM=/-+([a-z0-9])/g;function ks(t){return t.replace(ZM,(...n)=>n[1].toUpperCase())}function ub(t,n){return t===0||n===0}function pb(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,Ts(t,s)))}}return n}function Gt(t,n,e){switch(n.type){case me.Trigger:return t.visitTrigger(n,e);case me.State:return t.visitState(n,e);case me.Transition:return t.visitTransition(n,e);case me.Sequence:return t.visitSequence(n,e);case me.Group:return t.visitGroup(n,e);case me.Animate:return t.visitAnimate(n,e);case me.Keyframes:return t.visitKeyframes(n,e);case me.Style:return t.visitStyle(n,e);case me.Reference:return t.visitReference(n,e);case me.AnimateChild:return t.visitAnimateChild(n,e);case me.AnimateRef:return t.visitAnimateRef(n,e);case me.Query:return t.visitQuery(n,e);case me.Stagger:return t.visitStagger(n,e);default:throw HM(n.type)}}function Ts(t,n){return window.getComputedStyle(t)[n]}var vd=(()=>{class t{validateStyleProperty(e){return lb(e)}containsElement(e,i){return Jc(e,i)}getParentElement(e){return ws(e)}query(e,i,o){return Xc(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],l){return new Ln(o,r)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})(),io=class{static NOOP=new vd},oo=class{};var JM=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"]),Ds=class extends oo{normalizePropertyName(n,e){return ks(n)}normalizeStyleValue(n,e,i,o){let r="",a=i.toString().trim();if(JM.has(e)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else{let s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&o.push(A0(n,i))}return a+r}};var Os="*";function XM(t,n){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>e3(i,e,n)):e.push(t),e}function e3(t,n,e){if(t[0]==":"){let l=t3(t,e);if(typeof l=="function"){n.push(l);return}t=l}let i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(K0(t)),n;let o=i[1],r=i[2],a=i[3];n.push(fb(o,a));let s=o==Os&&a==Os;r[0]=="<"&&!s&&n.push(fb(a,o))}function t3(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}var Ss=new Set(["true","1"]),Is=new Set(["false","0"]);function fb(t,n){let e=Ss.has(t)||Is.has(t),i=Ss.has(n)||Is.has(n);return(o,r)=>{let a=t==Os||t==o,s=n==Os||n==r;return!a&&e&&typeof o=="boolean"&&(a=o?Ss.has(t):Is.has(t)),!s&&i&&typeof r=="boolean"&&(s=r?Ss.has(n):Is.has(n)),a&&s}}var xb=":self",n3=new RegExp(`s*${xb}s*,?`,"g");function kb(t,n,e,i){return new cd(t).build(n,e,i)}var hb="",cd=class{_driver;constructor(n){this._driver=n}build(n,e,i){let o=new dd(e);return this._resetContextStyleTimingState(o),Gt(this,jo(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector=hb,n.collectedStyles=new Map,n.collectedStyles.set(hb,new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0,r=[],a=[];return n.name.charAt(0)=="@"&&e.errors.push(L0()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==me.State){let l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(p=>{l.name=p,r.push(this.visitState(l,e))}),l.name=c}else if(s.type==me.Transition){let l=this.visitTransition(s,e);i+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(N0())}),{type:me.Trigger,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){let i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){let r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{id(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c)})})}),r.size&&e.errors.push(z0(n.name,[...r.values()]))}return{type:me.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let i=Gt(this,jo(n.animation),e),o=XM(n.expr,e.errors);return{type:me.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:no(n.options)}}visitSequence(n,e){return{type:me.Sequence,steps:n.steps.map(i=>Gt(this,i,e)),options:no(n.options)}}visitGroup(n,e){let i=e.currentTime,o=0,r=n.steps.map(a=>{e.currentTime=i;let s=Gt(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:me.Group,steps:r,options:no(n.options)}}visitAnimate(n,e){let i=a3(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:qt({});if(r.type==me.Keyframes)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;let c={};i.easing&&(c.easing=i.easing),a=qt(c)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:me.Animate,timings:i,style:o,options:null}}visitStyle(n,e){let i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){let i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)typeof s=="string"?s===nn?i.push(s):e.errors.push(j0(s)):i.push(new Map(Object.entries(s)));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r)){for(let l of s.values())if(l.toString().indexOf(ed)>=0){r=!0;break}}}),{type:me.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){let i=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),p=c.get(l),h=!0;p&&(r!=o&&r>=p.startTime&&o<=p.endTime&&(e.errors.push(H0(l,p.startTime,p.endTime,r,o)),h=!1),r=p.startTime),h&&c.set(l,{startTime:r,endTime:o}),e.options&&db(s,e.options,e.errors)})})}visitKeyframes(n,e){let i={type:me.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(Q0()),i;let o=1,r=0,a=[],s=!1,l=!1,c=0,p=n.steps.map(S=>{let E=this._makeStyleAst(S,e),R=E.offset!=null?E.offset:r3(E.styles),z=0;return R!=null&&(r++,z=E.offset=R),l=l||z<0||z>1,s=s||z0&&r{let R=m>0?E==g?1:m*E:a[E],z=R*v;e.currentTime=b+y.delay+z,y.duration=z,this._validateStyleAst(S,e),S.offset=R,i.styles.push(S)}),i}visitReference(n,e){return{type:me.Reference,animation:Gt(this,jo(n.animation),e),options:no(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:me.AnimateChild,options:no(n.options)}}visitAnimateRef(n,e){return{type:me.AnimateRef,animation:this.visitReference(n.animation,e),options:no(n.options)}}visitQuery(n,e){let i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;let[r,a]=i3(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,Ut(e.collectedStyles,e.currentQuerySelector,new Map);let s=Gt(this,jo(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:me.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:no(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push($0());let i=n.timings==="full"?{duration:0,delay:0,easing:"full"}:Hr(n.timings,e.errors,!0);return{type:me.Stagger,animation:Gt(this,jo(n.animation),e),timings:i,options:null}}};function i3(t){let n=!!t.split(/\s*,\s*/).find(e=>e==xb);return n&&(t=t.replace(n3,"")),t=t.replace(/@\*/g,jr).replace(/@\w+/g,e=>jr+"-"+e.slice(1)).replace(/:animating/g,xs),[t,n]}function o3(t){return t?T({},t):null}var dd=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(n){this.errors=n}};function r3(t){if(typeof t=="string")return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function a3(t,n){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=Hr(t,n).duration;return od(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=od(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=Hr(e,n);return od(o.duration,o.delay,o.easing)}function no(t){return t?(t=T({},t),t.params&&(t.params=o3(t.params))):t={},t}function od(t,n,e){return{duration:t,delay:n,easing:e}}function wd(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}var qr=class{_map=new Map;get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},s3=1,l3=":enter",c3=new RegExp(l3,"g"),d3=":leave",u3=new RegExp(d3,"g");function Tb(t,n,e,i,o,r=new Map,a=new Map,s,l,c=[]){return new ud().buildKeyframes(t,n,e,i,o,r,a,s,l,c)}var ud=class{buildKeyframes(n,e,i,o,r,a,s,l,c,p=[]){c=c||new qr;let h=new pd(n,e,c,o,r,p,[]);h.options=l;let m=l.delay?zn(l.delay):0;h.currentTimeline.delayNextStep(m),h.currentTimeline.setStyles([a],null,h.errors,l),Gt(this,i,h);let g=h.timelines.filter(b=>b.containsAnimation());if(g.length&&s.size){let b;for(let y=g.length-1;y>=0;y--){let v=g[y];if(v.element===e){b=v;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([s],null,h.errors,l)}return g.length?g.map(b=>b.buildKeyframes()):[wd(e,[],[],[],0,m,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let i=e.subInstructions.get(e.element);if(i){let o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){let i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(let o of n){let r=o?.delay;if(r){let a=typeof r=="number"?r:zn(Ho(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime,a=i.duration!=null?zn(i.duration):null,s=i.delay!=null?zn(i.delay):null;return a!==0&&n.forEach(l=>{let c=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),Gt(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let i=e.subContextCount,o=e,r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==me.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ps);let a=zn(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>Gt(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let i=[],o=e.currentTimeline.currentTime,r=n.options&&n.options.delay?zn(n.options.delay):0;n.steps.forEach(a=>{let s=e.createSubContext(n.options);r&&s.delayNextStep(r),Gt(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let i=n.strValue,o=e.params?Ho(i,e.params,e.errors):i;return Hr(o,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());let r=n.style;r.type==me.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{let c=l.offset||0;s.forwardTime(c*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){let i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?zn(o.delay):0;r&&(e.previousNode.type===me.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ps);let a=i,s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,p)=>{e.currentQueryIndex=p;let h=e.createSubContext(n.options,c);r&&h.delayNextStep(r),c===e.element&&(l=h.currentTimeline),Gt(this,n.animation,h),h.currentTimeline.applyStylesToKeyframe();let m=h.currentTimeline.currentTime;a=Math.max(a,m)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime;break}let p=e.currentTimeline;l&&p.delayNextStep(l);let h=p.currentTime;Gt(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-h+(o.startTime-i.currentTimeline.startTime)}},Ps={},pd=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ps;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,e,i,o,r,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=l||new Fs(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let i=n,o=this.options;i.duration!=null&&(o.duration=zn(i.duration)),i.delay!=null&&(o.delay=zn(i.delay));let r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Ho(r[s],a,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){let o=e||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Ps,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){let o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new fd(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=n.replace(c3,"."+this._enterClassName),n=n.replace(u3,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,n,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),s.push(...c)}return!r&&s.length==0&&a.push(W0(e)),s}},Fs=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=s3,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||nn),this._currentKeyframe.set(e,nn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=p3(n,this._globalTimelineStyles);for(let[s,l]of a){let c=Ho(l,r,i);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??nn),this._updateStyle(s,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{let o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((s,l)=>{let c=new Map([...this._backFill,...s]);c.forEach((p,h)=>{p===No?n.add(h):p===nn&&e.add(h)}),i||c.set("offset",l/this.duration),o.push(c)});let r=[...n.values()],a=[...e.values()];if(i){let s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return wd(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},fd=class extends Fs{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),r.push(l);let c=new Map(n[0]);c.set("offset",mb(s)),r.push(c);let p=n.length-1;for(let h=1;h<=p;h++){let m=new Map(n[h]),g=m.get("offset"),b=e+g*i;m.set("offset",mb(b/a)),r.push(m)}i=a,e=0,o="",n=r}return wd(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}};function mb(t,n=3){let e=Math.pow(10,n-1);return Math.round(t*e)/e}function p3(t,n){let e=new Map,i;return t.forEach(o=>{if(o==="*"){i??=n.keys();for(let r of i)e.set(r,nn)}else for(let[r,a]of o)e.set(r,a)}),e}function gb(t,n,e,i,o,r,a,s,l,c,p,h,m){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:p,totalTime:h,errors:m}}var rd={},Rs=class{_triggerName;ast;_stateStyles;constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return f3(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return n!==void 0&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,l,c,p){let h=[],m=this.ast.options&&this.ast.options.params||rd,g=s&&s.params||rd,b=this.buildStyles(i,g,h),y=l&&l.params||rd,v=this.buildStyles(o,y,h),S=new Set,E=new Map,R=new Map,z=o==="void",W={params:Sb(y,m),delay:this.ast.options?.delay},ge=p?[]:Tb(n,e,this.ast.animation,r,a,b,v,W,c,h),Le=0;return ge.forEach(Ne=>{Le=Math.max(Ne.duration+Ne.delay,Le)}),h.length?gb(e,this._triggerName,i,o,z,b,v,[],[],E,R,Le,h):(ge.forEach(Ne=>{let nt=Ne.element,Ft=Ut(E,nt,new Set);Ne.preStyleProps.forEach(mn=>Ft.add(mn));let $o=Ut(R,nt,new Set);Ne.postStyleProps.forEach(mn=>$o.add(mn)),nt!==e&&S.add(nt)}),gb(e,this._triggerName,i,o,z,b,v,ge,[...S.values()],E,R,Le))}};function f3(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}function Sb(t,n){let e=T({},n);return Object.entries(t).forEach(([i,o])=>{o!=null&&(e[i]=o)}),e}var hd=class{styles;defaultParams;normalizer;constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){let i=new Map,o=Sb(n,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=Ho(a,o,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a)})}),i}};function h3(t,n,e){return new md(t,n,e)}var md=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new hd(o.style,r,i))}),bb(this.states,"true","1"),bb(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Rs(n,o,this.states))}),this.fallbackTransition=m3(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}};function m3(t,n,e){let i=[(a,s)=>!0],o={type:me.Sequence,steps:[],options:null},r={type:me.Transition,animation:o,matchers:i,options:null,queryCount:0,depCount:0};return new Rs(t,r,n)}function bb(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}var g3=new qr,gd=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i}register(n,e){let i=[],o=[],r=kb(this._driver,e,i,o);if(i.length)throw J0(i);this._animations.set(n,r)}_buildPlayer(n,e,i){let o=n.element,r=Yc(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){let o=[],r=this._animations.get(n),a,s=new Map;if(r?(a=Tb(this._driver,e,r,td,Cs,new Map,new Map,i,g3,o),a.forEach(p=>{let h=Ut(s,p.element,new Map);p.postStyleProps.forEach(m=>h.set(m,null))})):(o.push(X0()),a=[]),o.length)throw eb(o);s.forEach((p,h)=>{p.forEach((m,g)=>{p.set(g,this._driver.computeStyle(h,g,nn))})});let l=a.map(p=>{let h=s.get(p.element);return this._buildPlayer(p,new Map,h)}),c=ri(l);return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw tb(n);return e}listen(n,e,i,o){let r=vs(e,"","","");return ys(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if(i=="register"){this.register(n,o[0]);return}if(i=="create"){let a=o[0]||{};this.create(n,e,a);return}let r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n);break}}},_b="ng-animate-queued",b3=".ng-animate-queued",ad="ng-animate-disabled",_3=".ng-animate-disabled",y3="ng-star-inserted",v3=".ng-star-inserted",w3=[],Ib={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},C3={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hn="__ng_removed",Ur=class{namespaceId;value;options;get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let i=n&&n.hasOwnProperty("value"),o=i?n.value:n;if(this.value=k3(o),i){let r=n,{value:a}=r,s=it(r,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let i=this.options.params;Object.keys(e).forEach(o=>{i[o]==null&&(i[o]=e[o])})}}},Qr="void",sd=new Ur(Qr),bd=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this._hostClassName="ng-tns-"+n,on(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw nb(i,e);if(i==null||i.length==0)throw ib(e);if(!T3(i))throw ob(i,e);let r=Ut(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);let s=Ut(this._engine.statesByElement,n,new Map);return s.has(e)||(on(n,zr),on(n,zr+"-"+e),s.set(e,sd)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw rb(n);return e}trigger(n,e,i,o=!0){let r=this._getTrigger(e),a=new Gr(this.id,e,n),s=this._engine.statesByElement.get(n);s||(on(n,zr),on(n,zr+"-"+e),this._engine.statesByElement.set(n,s=new Map));let l=s.get(e),c=new Ur(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=sd),!(c.value===Qr)&&l.value===c.value){if(!E3(l.params,c.params)){let y=[],v=r.matchStyles(l.value,l.params,y),S=r.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{ki(n,v),fn(n,S)})}return}let m=Ut(this._engine.playersByElement,n,[]);m.forEach(y=>{y.namespaceId==this.id&&y.triggerName==e&&y.queued&&y.destroy()});let g=r.matchTransition(l.value,c.value,n,c.params),b=!1;if(!g){if(!o)return;g=r.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:g,fromState:l,toState:c,player:a,isFallbackTransition:b}),b||(on(n,_b),a.onStart(()=>{Qo(n,_b)})),a.onDone(()=>{let y=this.players.indexOf(a);y>=0&&this.players.splice(y,1);let v=this._engine.playersByElement.get(n);if(v){let S=v.indexOf(a);S>=0&&v.splice(S,1)}}),this.players.push(a),m.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let i=this._engine.driver.query(n,jr,!0);i.forEach(o=>{if(o[hn])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){let r=this._engine.statesByElement.get(n),a=new Map;if(r){let s=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let p=this.trigger(n,c,Qr,o);p&&s.push(p)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&ri(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){let o=new Set;e.forEach(r=>{let a=r.name;if(o.has(a))return;o.add(a);let l=this._triggers.get(a).fallbackTransition,c=i.get(a)||sd,p=new Ur(Qr),h=new Gr(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:c,toState:p,player:h,isFallbackTransition:!0})})}}removeNode(n,e){let i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{let r=n[hn];(!r||r===Ib)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){on(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(i=>{let o=i.player;if(o.destroyed)return;let r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){let l=vs(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,ys(i.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{let r=i.transition.ast.depCount,a=o.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},_d=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,e)=>{};_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){let i=new bd(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){let i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=o.get(s);if(l){let c=i.indexOf(l);i.splice(c+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);let o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,i=this.statesByElement.get(n);if(i){for(let o of i.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(n,e,i,o){if(Es(e)){let r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!Es(e))return;let r=e[hn];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){let a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),on(n,ad)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Qo(n,ad))}removeNode(n,e,i){if(Es(e)){let o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);let r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[hn]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return Es(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,jr,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,xs,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return ri(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[hn];if(e&&e.setForRemoval){if(n[hn]=Ib,e.namespaceId){this.destroyInnerAnimations(n);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(ad)&&this.markElementAsDisabled(n,!1),this.driver.query(n,_3,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?ri(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw ab(n)}_flushAnimations(n,e){let i=new qr,o=[],r=new Map,a=[],s=new Map,l=new Map,c=new Map,p=new Set;this.disabledNodes.forEach($=>{p.add($);let q=this.driver.query($,b3,!0);for(let K=0;K{let K=td+y++;b.set(q,K),$.forEach(le=>on(le,K))});let v=[],S=new Set,E=new Set;for(let $=0;$S.add(le)):E.add(q))}let R=new Map,z=wb(m,Array.from(S));z.forEach(($,q)=>{let K=Cs+y++;R.set(q,K),$.forEach(le=>on(le,K))}),n.push(()=>{g.forEach(($,q)=>{let K=b.get(q);$.forEach(le=>Qo(le,K))}),z.forEach(($,q)=>{let K=R.get(q);$.forEach(le=>Qo(le,K))}),v.forEach($=>{this.processLeaveNode($)})});let W=[],ge=[];for(let $=this._namespaceList.length-1;$>=0;$--)this._namespaceList[$].drainQueuedTransitions(e).forEach(K=>{let le=K.player,Pe=K.element;if(W.push(le),this.collectedEnterElements.length){let De=Pe[hn];if(De&&De.setForMove){if(De.previousTriggersValues&&De.previousTriggersValues.has(K.triggerName)){let ai=De.previousTriggersValues.get(K.triggerName),Lt=this.statesByElement.get(K.element);if(Lt&&Lt.has(K.triggerName)){let Kr=Lt.get(K.triggerName);Kr.value=ai,Lt.set(K.triggerName,Kr)}}le.destroy();return}}let Ce=!h||!this.driver.containsElement(h,Pe),pt=R.get(Pe),At=b.get(Pe),Ke=this._buildInstruction(K,i,At,pt,Ce);if(Ke.errors&&Ke.errors.length){ge.push(Ke);return}if(Ce){le.onStart(()=>ki(Pe,Ke.fromStyles)),le.onDestroy(()=>fn(Pe,Ke.toStyles)),o.push(le);return}if(K.isFallbackTransition){le.onStart(()=>ki(Pe,Ke.fromStyles)),le.onDestroy(()=>fn(Pe,Ke.toStyles)),o.push(le);return}let jn=[];Ke.timelines.forEach(De=>{De.stretchStartingKeyframe=!0,this.disabledNodes.has(De.element)||jn.push(De)}),Ke.timelines=jn,i.append(Pe,Ke.timelines);let Ct={instruction:Ke,player:le,element:Pe};a.push(Ct),Ke.queriedElements.forEach(De=>Ut(s,De,[]).push(le)),Ke.preStyleProps.forEach((De,ai)=>{if(De.size){let Lt=l.get(ai);Lt||l.set(ai,Lt=new Set),De.forEach((Kr,js)=>Lt.add(js))}}),Ke.postStyleProps.forEach((De,ai)=>{let Lt=c.get(ai);Lt||c.set(ai,Lt=new Set),De.forEach((Kr,js)=>Lt.add(js))})});if(ge.length){let $=[];ge.forEach(q=>{$.push(sb(q.triggerName,q.errors))}),W.forEach(q=>q.destroy()),this.reportError($)}let Le=new Map,Ne=new Map;a.forEach($=>{let q=$.element;i.has(q)&&(Ne.set(q,q),this._beforeAnimationBuild($.player.namespaceId,$.instruction,Le))}),o.forEach($=>{let q=$.element;this._getPreviousPlayers(q,!1,$.namespaceId,$.triggerName,null).forEach(le=>{Ut(Le,q,[]).push(le),le.destroy()})});let nt=v.filter($=>Cb($,l,c)),Ft=new Map;vb(Ft,this.driver,E,c,nn).forEach($=>{Cb($,l,c)&&nt.push($)});let mn=new Map;g.forEach(($,q)=>{vb(mn,this.driver,new Set($),l,No)}),nt.forEach($=>{let q=Ft.get($),K=mn.get($);Ft.set($,new Map([...q?.entries()??[],...K?.entries()??[]]))});let ro=[],cp=[],Te={};a.forEach($=>{let{element:q,player:K,instruction:le}=$;if(i.has(q)){if(p.has(q)){K.onDestroy(()=>fn(q,le.toStyles)),K.disabled=!0,K.overrideTotalTime(le.totalTime),o.push(K);return}let Pe=Te;if(Ne.size>1){let pt=q,At=[];for(;pt=pt.parentNode;){let Ke=Ne.get(pt);if(Ke){Pe=Ke;break}At.push(pt)}At.forEach(Ke=>Ne.set(Ke,Pe))}let Ce=this._buildAnimation(K.namespaceId,le,Le,r,mn,Ft);if(K.setRealPlayer(Ce),Pe===Te)ro.push(K);else{let pt=this.playersByElement.get(Pe);pt&&pt.length&&(K.parentPlayer=ri(pt)),o.push(K)}}else ki(q,le.fromStyles),K.onDestroy(()=>fn(q,le.toStyles)),cp.push(K),p.has(q)&&o.push(K)}),cp.forEach($=>{let q=r.get($.element);if(q&&q.length){let K=ri(q);$.setRealPlayer(K)}}),o.forEach($=>{$.parentPlayer?$.syncPlayerEvents($.parentPlayer):$.destroy()});for(let $=0;$!Ce.destroyed);Pe.length?S3(this,q,Pe):this.processLeaveNode(q)}return v.length=0,ro.forEach($=>{this.players.push($),$.onDone(()=>{$.destroy();let q=this.players.indexOf($);this.players.splice(q,1)}),$.play()}),ro}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){let s=this.playersByQueriedElement.get(n);s&&(a=s)}else{let s=this.playersByElement.get(n);if(s){let l=!r||r==Qr;s.forEach(c=>{c.queued||!l&&c.triggerName!=o||a.push(c)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){let o=e.triggerName,r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let c=l.element,p=c!==r,h=Ut(i,c,[]);this._getPreviousPlayers(c,p,a,s,e.toState).forEach(g=>{let b=g.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),g.destroy(),h.push(g)})}ki(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){let s=e.triggerName,l=e.element,c=[],p=new Set,h=new Set,m=e.timelines.map(b=>{let y=b.element;p.add(y);let v=y[hn];if(v&&v.removedBeforeQueried)return new Ln(b.duration,b.delay);let S=y!==l,E=I3((i.get(y)||w3).map(Le=>Le.getRealPlayer())).filter(Le=>{let Ne=Le;return Ne.element?Ne.element===y:!1}),R=r.get(y),z=a.get(y),W=Yc(this._normalizer,b.keyframes,R,z),ge=this._buildPlayer(b,W,E);if(b.subTimeline&&o&&h.add(y),S){let Le=new Gr(n,s,y);Le.setRealPlayer(ge),c.push(Le)}return ge});c.forEach(b=>{Ut(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>x3(this.playersByQueriedElement,b.element,b))}),p.forEach(b=>on(b,nd));let g=ri(m);return g.onDestroy(()=>{p.forEach(b=>Qo(b,nd)),fn(l,e.toStyles)}),h.forEach(b=>{Ut(o,b,[]).push(g)}),g}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Ln(n.duration,n.delay)}},Gr=class{namespaceId;triggerName;element;_player=new Ln;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>ys(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){let e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Ut(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let e=this._player;e.triggerCallback&&e.triggerCallback(n)}};function x3(t,n,e){let i=t.get(n);if(i){if(i.length){let o=i.indexOf(e);i.splice(o,1)}i.length==0&&t.delete(n)}return i}function k3(t){return t??null}function Es(t){return t&&t.nodeType===1}function T3(t){return t=="start"||t=="done"}function yb(t,n){let e=t.style.display;return t.style.display=n??"none",e}function vb(t,n,e,i,o){let r=[];e.forEach(l=>r.push(yb(l)));let a=[];i.forEach((l,c)=>{let p=new Map;l.forEach(h=>{let m=n.computeStyle(c,h,o);p.set(h,m),(!m||m.length==0)&&(c[hn]=C3,a.push(c))}),t.set(c,p)});let s=0;return e.forEach(l=>yb(l,r[s++])),a}function wb(t,n){let e=new Map;if(t.forEach(s=>e.set(s,[])),n.length==0)return e;let i=1,o=new Set(n),r=new Map;function a(s){if(!s)return i;let l=r.get(s);if(l)return l;let c=s.parentNode;return e.has(c)?l=c:o.has(c)?l=i:l=a(c),r.set(s,l),l}return n.forEach(s=>{let l=a(s);l!==i&&e.get(l).push(s)}),e}function on(t,n){t.classList?.add(n)}function Qo(t,n){t.classList?.remove(n)}function S3(t,n,e){ri(e).onDone(()=>t.processLeaveNode(n))}function I3(t){let n=[];return Eb(t,n),n}function Eb(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}var qo=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(n,e)=>{};constructor(n,e,i){this._driver=e,this._normalizer=i,this._transitionEngine=new _d(n.body,e,i),this._timelineEngine=new gd(n.body,e,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(n,e,i,o,r){let a=n+"-"+o,s=this._triggerCache[a];if(!s){let l=[],c=[],p=kb(this._driver,r,l,c);if(l.length)throw Z0(o,l);s=h3(o,p,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if(i.charAt(0)=="@"){let[r,a]=Zc(i),s=o;this._timelineEngine.command(r,e,a,s)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if(i.charAt(0)=="@"){let[a,s]=Zc(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}};function M3(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=ld(n[0]),n.length>1&&(i=ld(n[n.length-1]))):n instanceof Map&&(e=ld(n)),e||i?new D3(t,e,i):null}var D3=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&fn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fn(this._element,this._initialStyles),this._endStyles&&(fn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ki(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ki(this._element,this._endStyles),this._endStyles=null),fn(this._element,this._initialStyles),this._state=3)}}return t})();function ld(t){let n=null;return t.forEach((e,i)=>{O3(i)&&(n=n||new Map,n.set(i,e))}),n}function O3(t){return t==="display"||t==="position"}var Vs=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let n=this.keyframes,e=this._triggerWebAnimation(this.element,n,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=n.length?n[n.length-1]:new Map;let i=()=>this._onFinish();return e.addEventListener("finish",i),this.onDestroy(()=>{e.removeEventListener("finish",i)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(n){let e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){let o=this._convertKeyframesToObject(e);try{return n.animate(o,i)}catch{return null}}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){let n=this._buildPlayer();n&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),n.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(n=>n()),this._onDestroyFns=[])}setPosition(n){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=n*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{o!=="offset"&&n.set(o,this._finished?i:Ts(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){let e=n==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Bs=class{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,e){return Jc(n,e)}getParentElement(n){return ws(n)}query(n,e,i){return Xc(n,e,i)}computeStyle(n,e,i){return Ts(n,e)}animate(n,e,i,o,r,a=[]){let s=o==0?"both":"forwards",l={duration:i,delay:o,fill:s};r&&(l.easing=r);let c=new Map,p=a.filter(g=>g instanceof Vs);ub(i,o)&&p.forEach(g=>{g.currentSnapshot.forEach((b,y)=>c.set(y,b))});let h=cb(e).map(g=>new Map(g));h=pb(n,h,c);let m=M3(n,h);return new Vs(n,h,l,m)}};var Ms="@",Mb="@.disabled",As=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i,o){if(o){this.delegate.removeChild(n,e,i,o);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){e.charAt(0)==Ms&&e==Mb?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i,o){return this.delegate.listen(n,e,i,o)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}},yd=class extends As{factory;constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){e.charAt(0)==Ms?e.charAt(1)=="."&&e==Mb?(i=i===void 0?!0:!!i,this.disableAnimations(n,i)):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i,o){if(e.charAt(0)==Ms){let r=P3(n),a=e.slice(1),s="";return a.charAt(0)!=Ms&&([a,s]=F3(a)),this.engine.listen(this.namespaceId,r,a,s,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,i,l)})}return this.delegate.listen(n,e,i,o)}};function P3(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function F3(t){let n=t.indexOf("."),e=t.substring(0,n),i=t.slice(n+1);return[e,i]}var Ls=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o)}}createRenderer(n,e){let o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){let c=this._rendererCache,p=c.get(o);if(!p){let h=()=>c.delete(o);p=new As("",o,this.engine,h),c.set(o,p)}return p}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);let s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(r,a,n,c.name,c)};return e.data.animation.forEach(s),new yd(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(n){this.engine.flush(),this.delegate.componentReplaced?.(n)}};var V3=(()=>{class t extends qo{constructor(e,i,o){super(e,i,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||t)(Wt(Tp),Wt(io),Wt(oo))};static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})();function B3(){return new Ds}function A3(t,n,e){return new Ls(t,n,e)}var Db=[{provide:oo,useFactory:B3},{provide:qo,useClass:V3},{provide:Op,useFactory:A3,deps:[Gp,qo,It]}],YZ=[{provide:io,useClass:vd},{provide:Qs,useValue:"NoopAnimations"},...Db],L3=[{provide:io,useFactory:()=>new Bs},{provide:Qs,useFactory:()=>"BrowserAnimations"},...Db];function Ob(){return Ep("NgEagerAnimations"),[...L3]}var N3={transitionDuration:"{transition.duration}"},z3={borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},j3={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},H3={borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"},Cd={root:N3,panel:z3,header:j3,content:H3};var Q3={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},q3={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},U3={padding:"{list.padding}",gap:"{list.gap}"},G3={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},$3={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},W3={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},K3={borderRadius:"{border.radius.sm}"},Y3={padding:"{list.option.padding}"},Z3={light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}},xd={root:Q3,overlay:q3,list:U3,option:G3,optionGroup:$3,dropdown:W3,chip:K3,emptyMessage:Y3,colorScheme:Z3};var J3={width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},X3={size:"1rem"},eD={borderColor:"{content.background}",offset:"-0.75rem"},tD={width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},nD={width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}},kd={root:J3,icon:X3,group:eD,lg:tD,xl:nD};var iD={borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},oD={size:"0.5rem"},rD={fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},aD={fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},sD={fontSize:"1rem",minWidth:"2rem",height:"2rem"},lD={light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},Td={root:iD,dot:oD,sm:rD,lg:aD,xl:sD,colorScheme:lD};var cD={borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},dD={transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}},Sd={primitive:cD,semantic:dD};var uD={borderRadius:"{content.border.radius}"},Id={root:uD};var pD={padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},fD={color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},hD={color:"{navigation.item.icon.color}"},Ed={root:pD,item:fD,separator:hD};var mD={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}",iconOnlyWidth:"2rem"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}",iconOnlyWidth:"3rem"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},gD={light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}},Md={root:mD,colorScheme:gD};var bD={background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},_D={padding:"1.25rem",gap:"0.5rem"},yD={gap:"0.5rem"},vD={fontSize:"1.25rem",fontWeight:"500"},wD={color:"{text.muted.color}"},Dd={root:bD,body:_D,caption:yD,title:vD,subtitle:wD};var CD={transitionDuration:"{transition.duration}"},xD={gap:"0.25rem"},kD={padding:"1rem",gap:"0.5rem"},TD={width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},SD={light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}},Od={root:CD,content:xD,indicatorList:kD,indicator:TD,colorScheme:SD};var ID={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},ED={width:"2.5rem",color:"{form.field.icon.color}"},MD={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},DD={padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},OD={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},PD={color:"{form.field.icon.color}"},Pd={root:ID,dropdown:ED,overlay:MD,list:DD,option:OD,clearIcon:PD};var FD={borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},RD={size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}},Fd={root:FD,icon:RD};var VD={borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},BD={width:"2rem",height:"2rem"},AD={size:"1rem"},LD={size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},ND={light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}},Rd={root:VD,image:BD,icon:AD,removeIcon:LD,colorScheme:ND};var zD={transitionDuration:"{transition.duration}"},jD={width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},HD={shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},QD={light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}},Vd={root:zD,preview:jD,panel:HD,colorScheme:QD};var qD={size:"2rem",color:"{overlay.modal.color}"},UD={gap:"1rem"},Bd={icon:qD,content:UD};var GD={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},$D={padding:"{overlay.popover.padding}",gap:"1rem"},WD={size:"1.5rem",color:"{overlay.popover.color}"},KD={gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"},Ad={root:GD,content:$D,icon:WD,footer:KD};var YD={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},ZD={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},JD={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},XD={mobileIndent:"1rem"},e5={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},t5={borderColor:"{content.border.color}"},Ld={root:YD,list:ZD,item:JD,submenu:XD,submenuIcon:e5,separator:t5};var n5={transitionDuration:"{transition.duration}"},i5={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},o5={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},r5={fontWeight:"600"},a5={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},s5={borderColor:"{datatable.border.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},l5={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},c5={fontWeight:"600"},d5={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},u5={color:"{primary.color}"},p5={width:"0.5rem"},f5={width:"1px",color:"{primary.color}"},h5={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},m5={size:"2rem"},g5={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},b5={inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},_5={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},y5={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},v5={light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},Nd={root:n5,header:i5,headerCell:o5,columnTitle:r5,row:a5,bodyCell:s5,footerCell:l5,columnFooter:c5,footer:d5,dropPoint:u5,columnResizer:p5,resizeIndicator:f5,sortIcon:h5,loadingIcon:m5,rowToggleButton:g5,filter:b5,paginatorTop:_5,paginatorBottom:y5,colorScheme:v5};var w5={borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},C5={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},x5={background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},k5={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},T5={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},S5={borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"},zd={root:w5,header:C5,content:x5,footer:k5,paginatorTop:T5,paginatorBottom:S5};var I5={transitionDuration:"{transition.duration}"},E5={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},M5={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},D5={gap:"0.5rem",fontWeight:"500"},O5={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},P5={color:"{form.field.icon.color}"},F5={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},R5={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},V5={borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},B5={margin:"0.5rem 0 0 0"},A5={padding:"0.25rem",fontWeight:"500",color:"{content.color}"},L5={hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},N5={margin:"0.5rem 0 0 0"},z5={padding:"0.375rem",borderRadius:"{content.border.radius}"},j5={margin:"0.5rem 0 0 0"},H5={padding:"0.375rem",borderRadius:"{content.border.radius}"},Q5={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},q5={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},U5={light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}},jd={root:I5,panel:E5,header:M5,title:D5,dropdown:O5,inputIcon:P5,selectMonth:F5,selectYear:R5,group:V5,dayView:B5,weekDay:A5,date:L5,monthView:N5,month:z5,yearView:j5,year:H5,buttonbar:Q5,timePicker:q5,colorScheme:U5};var G5={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},$5={padding:"{overlay.modal.padding}",gap:"0.5rem"},W5={fontSize:"1.25rem",fontWeight:"600"},K5={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},Y5={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"},Hd={root:G5,header:$5,title:W5,content:K5,footer:Y5};var Z5={borderColor:"{content.border.color}"},J5={background:"{content.background}",color:"{text.color}"},X5={margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},eO={margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}},Qd={root:Z5,content:J5,horizontal:X5,vertical:eO};var tO={background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},nO={borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},qd={root:tO,item:nO};var iO={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},oO={padding:"{overlay.modal.padding}"},rO={fontSize:"1.5rem",fontWeight:"600"},aO={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},sO={padding:"{overlay.modal.padding}"},Ud={root:iO,header:oO,title:rO,content:aO,footer:sO};var lO={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},cO={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},dO={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},uO={focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},pO={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},Gd={toolbar:lO,toolbarItem:cO,overlay:dO,overlayOption:uO,content:pO};var fO={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},hO={background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},mO={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},gO={padding:"0"},$d={root:fO,legend:hO,toggleIcon:mO,content:gO};var bO={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},_O={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},yO={highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},vO={padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},wO={gap:"0.5rem"},CO={height:"0.25rem"},xO={gap:"0.5rem"},Wd={root:bO,header:_O,content:yO,file:vO,fileList:wO,progressbar:CO,basic:xO};var kO={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},TO={active:{top:"-1.25rem"}},SO={input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},IO={borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}},Kd={root:kO,over:TO,in:SO,on:IO};var EO={borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},MO={background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},DO={size:"1.5rem"},OO={background:"{content.background}",padding:"1rem 0.25rem"},PO={size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},FO={size:"1rem"},RO={background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},VO={gap:"0.5rem",padding:"1rem"},BO={width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},AO={background:"rgba(0, 0, 0, 0.5)"},LO={background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},NO={size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},zO={size:"1.5rem"},jO={light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}},Yd={root:EO,navButton:MO,navIcon:DO,thumbnailsContent:OO,thumbnailNavButton:PO,thumbnailNavButtonIcon:FO,caption:RO,indicatorList:VO,indicatorButton:BO,insetIndicatorList:AO,insetIndicatorButton:LO,closeButton:NO,closeButtonIcon:zO,colorScheme:jO};var HO={color:"{form.field.icon.color}"},Zd={icon:HO};var QO={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},qO={paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},Jd={root:QO,input:qO};var UO={transitionDuration:"{transition.duration}"},GO={icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},$O={position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},WO={hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Xd={root:UO,preview:GO,toolbar:$O,action:WO};var KO={size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},eu={handle:KO};var YO={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},ZO={fontWeight:"500"},JO={size:"1rem"},XO={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}},tu={root:YO,text:ZO,icon:JO,colorScheme:XO};var e4={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},t4={hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"},nu={root:e4,display:t4};var n4={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},i4={borderRadius:"{border.radius.sm}"},o4={light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}},iu={root:n4,chip:i4,colorScheme:o4};var r4={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"},ou={addon:r4};var a4={transitionDuration:"{transition.duration}"},s4={width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},l4={light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}},ru={root:a4,button:s4,colorScheme:l4};var c4={gap:"0.5rem"},d4={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}},au={root:c4,input:d4};var u4={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},su={root:u4};var p4={transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},f4={background:"{primary.color}"},h4={background:"{content.border.color}"},m4={color:"{text.muted.color}"},lu={root:p4,value:f4,range:h4,text:m4};var g4={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},b4={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},_4={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},y4={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},v4={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},w4={padding:"{list.option.padding}"},C4={light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}},cu={root:g4,list:b4,option:_4,optionGroup:y4,checkmark:v4,emptyMessage:w4,colorScheme:C4};var x4={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},k4={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},T4={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},S4={padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},I4={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},E4={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},M4={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},D4={borderColor:"{content.border.color}"},O4={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},du={root:x4,baseItem:k4,item:T4,overlay:S4,submenu:I4,submenuLabel:E4,submenuIcon:M4,separator:D4,mobileButton:O4};var P4={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},F4={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},R4={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},V4={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},B4={borderColor:"{content.border.color}"},uu={root:P4,list:F4,item:R4,submenuLabel:V4,separator:B4};var A4={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},L4={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},N4={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},z4={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},j4={borderColor:"{content.border.color}"},H4={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},pu={root:A4,baseItem:L4,item:N4,submenu:z4,separator:j4,mobileButton:H4};var Q4={borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},q4={padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},U4={fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},G4={size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},$4={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},W4={size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},K4={root:{borderWidth:"1px"}},Y4={content:{padding:"0"}},Z4={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}},fu={root:Q4,content:q4,text:U4,icon:G4,closeButton:$4,closeIcon:W4,outlined:K4,simple:Y4,colorScheme:Z4};var J4={borderRadius:"{content.border.radius}",gap:"1rem"},X4={background:"{content.border.color}",size:"0.5rem"},eP={gap:"0.5rem"},tP={size:"0.5rem"},nP={size:"1rem"},iP={verticalGap:"0.5rem",horizontalGap:"1rem"},hu={root:J4,meters:X4,label:eP,labelMarker:tP,labelIcon:nP,labelList:iP};var oP={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},rP={width:"2.5rem",color:"{form.field.icon.color}"},aP={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},sP={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},lP={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},cP={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dP={color:"{form.field.icon.color}"},uP={borderRadius:"{border.radius.sm}"},pP={padding:"{list.option.padding}"},mu={root:oP,dropdown:rP,overlay:aP,list:sP,option:lP,optionGroup:cP,chip:uP,clearIcon:dP,emptyMessage:pP};var fP={gap:"1.125rem"},hP={gap:"0.5rem"},gu={root:fP,controls:hP};var mP={gutter:"0.75rem",transitionDuration:"{transition.duration}"},gP={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},bP={background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},_P={color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"},bu={root:mP,node:gP,nodeToggleButton:bP,connector:_P};var yP={outline:{width:"2px",color:"{content.background}"}},_u={root:yP};var vP={padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},wP={background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},CP={color:"{text.muted.color}"},xP={maxWidth:"2.5rem"},yu={root:vP,navButton:wP,currentPageReport:CP,jumpToPageInput:xP};var kP={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},TP={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},SP={padding:"0.375rem 1.125rem"},IP={fontWeight:"600"},EP={padding:"0 1.125rem 1.125rem 1.125rem"},MP={padding:"0 1.125rem 1.125rem 1.125rem"},vu={root:kP,header:TP,toggleableHeader:SP,title:IP,content:EP,footer:MP};var DP={gap:"0.5rem",transitionDuration:"{transition.duration}"},OP={background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},PP={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},FP={indent:"1rem"},RP={color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"},wu={root:DP,panel:OP,item:PP,submenu:FP,submenuIcon:RP};var VP={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},BP={color:"{form.field.icon.color}"},AP={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},LP={gap:"0.5rem"},NP={light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}},Cu={meter:VP,icon:BP,overlay:AP,content:LP,colorScheme:NP};var zP={gap:"1.125rem"},jP={gap:"0.5rem"},xu={root:zP,controls:jP};var HP={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},QP={padding:"{overlay.popover.padding}"},ku={root:HP,content:QP};var qP={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},UP={background:"{primary.color}"},GP={color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"},Tu={root:qP,value:UP,label:GP};var $P={light:{root:{colorOne:"{red.500}",colorTwo:"{blue.500}",colorThree:"{green.500}",colorFour:"{yellow.500}"}},dark:{root:{colorOne:"{red.400}",colorTwo:"{blue.400}",colorThree:"{green.400}",colorFour:"{yellow.400}"}}},Su={colorScheme:$P};var WP={width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},KP={size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}},Iu={root:WP,icon:KP};var YP={gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},ZP={size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"},Eu={root:YP,icon:ZP};var JP={light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}},Mu={colorScheme:JP};var XP={transitionDuration:"{transition.duration}"},eF={size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},tF={light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}},Du={root:XP,bar:eF,colorScheme:tF};var nF={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},iF={width:"2.5rem",color:"{form.field.icon.color}"},oF={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},rF={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},aF={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},sF={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},lF={color:"{form.field.icon.color}"},cF={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},dF={padding:"{list.option.padding}"},Ou={root:nF,dropdown:iF,overlay:oF,list:rF,option:aF,optionGroup:sF,clearIcon:lF,checkmark:cF,emptyMessage:dF};var uF={borderRadius:"{form.field.border.radius}"},pF={light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}},Pu={root:uF,colorScheme:pF};var fF={borderRadius:"{content.border.radius}"},hF={light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}},Fu={root:fF,colorScheme:hF};var mF={transitionDuration:"{transition.duration}"},gF={background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},bF={background:"{primary.color}"},_F={width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},yF={light:{handle:{content:{background:"{surface.0}"}}},dark:{handle:{content:{background:"{surface.950}"}}}},Ru={root:mF,track:gF,range:bF,handle:_F,colorScheme:yF};var vF={gap:"0.5rem",transitionDuration:"{transition.duration}"},Vu={root:vF};var wF={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"},Bu={root:wF};var CF={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},xF={background:"{content.border.color}"},kF={size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Au={root:CF,gutter:xF,handle:kF};var TF={transitionDuration:"{transition.duration}"},SF={background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},IF={padding:"0.5rem",gap:"1rem"},EF={padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},MF={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},DF={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},OF={padding:"0.875rem 0.5rem 1.125rem 0.5rem"},PF={background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"},Lu={root:TF,separator:SF,step:IF,stepHeader:EF,stepTitle:MF,stepNumber:DF,steppanels:OF,steppanel:PF};var FF={transitionDuration:"{transition.duration}"},RF={background:"{content.border.color}"},VF={borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},BF={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},AF={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},Nu={root:FF,separator:RF,itemLink:VF,itemLabel:BF,itemNumber:AF};var LF={transitionDuration:"{transition.duration}"},NF={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},zF={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},jF={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},HF={height:"1px",bottom:"-1px",background:"{primary.color}"},zu={root:LF,tablist:NF,item:zF,itemIcon:jF,activeBar:HF};var QF={transitionDuration:"{transition.duration}"},qF={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},UF={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},GF={background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},$F={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},WF={height:"1px",bottom:"-1px",background:"{primary.color}"},KF={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},ju={root:QF,tablist:qF,tab:UF,tabpanel:GF,navButton:$F,activeBar:WF,colorScheme:KF};var YF={transitionDuration:"{transition.duration}"},ZF={background:"{content.background}",borderColor:"{content.border.color}"},JF={borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},XF={background:"{content.background}",color:"{content.color}"},eR={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},tR={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},Hu={root:YF,tabList:ZF,tab:JF,tabPanel:XF,navButton:eR,colorScheme:tR};var nR={fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},iR={size:"0.75rem"},oR={light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},Qu={root:nR,icon:iR,colorScheme:oR};var rR={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},aR={gap:"0.25rem"},sR={margin:"2px 0"},qu={root:rR,prompt:aR,commandResponse:sR};var lR={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Uu={root:lR};var cR={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},dR={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},uR={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},pR={mobileIndent:"1rem"},fR={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},hR={borderColor:"{content.border.color}"},Gu={root:cR,list:dR,item:uR,submenu:pR,submenuIcon:fR,separator:hR};var mR={minHeight:"5rem"},gR={eventContent:{padding:"1rem 0"}},bR={eventContent:{padding:"0 1rem"}},_R={size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},yR={color:"{content.border.color}",size:"2px"},$u={event:mR,horizontal:gR,vertical:bR,eventMarker:_R,eventConnector:yR};var vR={width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},wR={size:"1.125rem"},CR={padding:"{overlay.popover.padding}",gap:"0.5rem"},xR={gap:"0.5rem"},kR={fontWeight:"500",fontSize:"1rem"},TR={fontWeight:"500",fontSize:"0.875rem"},SR={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},IR={size:"1rem"},ER={light:{root:{blur:"1.5px"},info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{root:{blur:"10px"},info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}},Wu={root:vR,icon:wR,content:CR,text:xR,summary:kR,detail:TR,closeButton:SR,closeIcon:IR,colorScheme:ER};var MR={padding:"0.25rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.25rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.25rem"}},DR={disabledColor:"{form.field.disabled.color}"},OR={padding:"0.25rem 0.75rem",borderRadius:"{content.border.radius}",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)",sm:{padding:"0.25rem 0.75rem"},lg:{padding:"0.25rem 0.75rem"}},PR={light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}},Ku={root:MR,icon:DR,content:OR,colorScheme:PR};var FR={width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},RR={borderRadius:"50%",size:"1rem"},VR={light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}},Yu={root:FR,handle:RR,colorScheme:VR};var BR={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"},Zu={root:BR};var AR={maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},LR={light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}},Ju={root:AR,colorScheme:LR};var NR={background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},zR={padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},jR={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},HR={borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},QR={size:"2rem"},qR={margin:"0 0 0.5rem 0"},Xu={root:NR,node:zR,nodeIcon:jR,nodeToggleButton:HR,loadingIcon:QR,filter:qR};var UR={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},GR={width:"2.5rem",color:"{form.field.icon.color}"},$R={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},WR={padding:"{list.padding}"},KR={padding:"{list.option.padding}"},YR={borderRadius:"{border.radius.sm}"},ZR={color:"{form.field.icon.color}"},ep={root:UR,dropdown:GR,overlay:$R,tree:WR,emptyMessage:KR,chip:YR,clearIcon:ZR};var JR={transitionDuration:"{transition.duration}"},XR={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},e7={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},t7={fontWeight:"600"},n7={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},i7={borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},o7={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},r7={fontWeight:"600"},a7={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},s7={width:"0.5rem"},l7={width:"1px",color:"{primary.color}"},c7={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},d7={size:"2rem"},u7={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},p7={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},f7={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},h7={light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},tp={root:JR,header:XR,headerCell:e7,columnTitle:t7,row:n7,bodyCell:i7,footerCell:o7,columnFooter:r7,footer:a7,columnResizer:s7,resizeIndicator:l7,sortIcon:c7,loadingIcon:d7,nodeToggleButton:u7,paginatorTop:p7,paginatorBottom:f7,colorScheme:h7};var m7={mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}},np={loader:m7};var Pb=N(T({},Sd),{components:{accordion:Cd,autocomplete:xd,avatar:kd,badge:Td,blockui:Id,breadcrumb:Ed,button:Md,datepicker:jd,card:Dd,carousel:Od,cascadeselect:Pd,checkbox:Fd,chip:Rd,colorpicker:Vd,confirmdialog:Bd,confirmpopup:Ad,contextmenu:Ld,dataview:zd,datatable:Nd,dialog:Hd,divider:Qd,dock:qd,drawer:Ud,editor:Gd,fieldset:$d,fileupload:Wd,iftalabel:Jd,floatlabel:Kd,galleria:Yd,iconfield:Zd,image:Xd,imagecompare:eu,inlinemessage:tu,inplace:nu,inputchips:iu,inputgroup:ou,inputnumber:ru,inputotp:au,inputtext:su,knob:lu,listbox:cu,megamenu:du,menu:uu,menubar:pu,message:fu,metergroup:hu,multiselect:mu,orderlist:gu,organizationchart:bu,overlaybadge:_u,popover:ku,paginator:yu,password:Cu,panel:vu,panelmenu:wu,picklist:xu,progressbar:Tu,progressspinner:Su,radiobutton:Iu,rating:Eu,ripple:Mu,scrollpanel:Du,select:Ou,selectbutton:Pu,skeleton:Fu,slider:Ru,speeddial:Vu,splitter:Au,splitbutton:Bu,stepper:Lu,steps:Nu,tabmenu:zu,tabs:ju,tabview:Hu,textarea:Uu,tieredmenu:Gu,tag:Qu,terminal:qu,timeline:$u,togglebutton:Ku,toggleswitch:Yu,tree:Xu,treeselect:ep,treetable:tp,toast:Wu,toolbar:Zu,tooltip:Ju,virtualscroller:np}});var g7=Object.defineProperty,Fb=Object.getOwnPropertySymbols,b7=Object.prototype.hasOwnProperty,_7=Object.prototype.propertyIsEnumerable,Ti=(t,n)=>g7(t,"name",{value:n,configurable:!0}),y7=(t,n)=>{var e={};for(var i in t)b7.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&Fb)for(var i of Fb(t))n.indexOf(i)<0&&_7.call(t,i)&&(e[i]=t[i]);return e};function v7(t,n,e){return ra(e).then(i=>{let o=_s(t,{injector:i.injector});customElements.define(n,o)}).catch(i=>{console.error(i)})}Ti(v7,"bootstrapPhoenixPluginCustomElement");function Rb(t){var n;let e=window.location.pathname.replace(/\/$/,"")||"/",i=(n=t?.stripTrailingSegments)!=null?n:[];for(let o of i){if(!o||o.includes("/"))continue;let r=`/${o}`;e.endsWith(r)&&(e=e.slice(0,-r.length)||"/")}return e!=="/"&&!e.endsWith("/")?`${e}/`:e}Ti(Rb,"pluginAppBaseHref");function Vb(t){return{provide:qp,useFactory:Ti(()=>Rb(t),"useFactory")}}Ti(Vb,"providePluginAppBaseHref");function Bb(){return Rp(()=>{let t=G(Tn),n=G(kp);qs(()=>{t.initialNavigation()},{injector:n})})}Ti(Bb,"providePhoenixPluginRouterInitialNavigation");function Ab(t){return[Vb(t),Bb()]}Ti(Ab,"providePhoenixPlugin");function ip(t,n){return wn(()=>{let e=n();e!==void 0&&t.setHostInjector(e)})}Ti(ip,"syncPhoenixHostInjector");var w7=bf(Pb,{semantic:{primary:{50:"{blue.50}",100:"{blue.100}",200:"{blue.200}",300:"{blue.300}",400:"{blue.400}",500:"{blue.500}",600:"{blue.600}",700:"{blue.700}",800:"{blue.800}",900:"{blue.900}",950:"{blue.950}"}}}),C7={ripple:!0,theme:{options:{prefix:"p",darkModeSelector:".dark"},preset:w7}};function op(t){let n=t??{},{primeNG:e}=n,i=y7(n,["primeNG"]);return[Ob(),_f(e??C7),...Ab(i)]}Ti(op,"providePhoenixPluginWithPrimeNG");var Ns=class extends Pt{constructor(n){super((e,i)=>{let o=it(e,[]);return Object.defineProperty(o,"client",{enumerable:!1,value:e.client}),new Je(r=>{let a=!1;return Promise.resolve(o).then(s=>n(e.getContext(),s)).then(e.setContext).then(()=>{a||i(e).subscribe(r)}).catch(r.error.bind(r)),()=>{a=!0}})})}};function x7(t){return We(t)&&"code"in t&&"reason"in t}function k7(t){return We(t)&&t.target?.readyState===WebSocket.CLOSED}var zs=class extends Pt{client;constructor(n){super(),this.client=n}request(n){return new Je(e=>{let{query:i,variables:o,operationName:r,extensions:a}=n;return this.client.subscribe({variables:o,operationName:r,extensions:a,query:On(i)},{next:e.next.bind(e),complete:e.complete.bind(e),error:s=>{if(s instanceof Error)return e.error(s);let l=x7(s);return l||k7(s)?e.error(new Error(`Socket closed${l?` with event ${s.code}`:""}${l?` ${s.reason}`:""}`)):e.error(new ti({errors:Array.isArray(s)?s:[s]}))}})})}};var T7=(t,n,e)=>{let i=["POST","PUT","PATCH"].indexOf(t.method.toUpperCase())!==-1,o=c=>["variables","extensions"].indexOf(c.toLowerCase())!==-1,r=t.body.length,a=t.options&&t.options.useMultipart,s;if(a){if(r)return new Je(c=>c.error(new Error("File upload is not available when combined with Batching")));if(!i)return new Je(c=>c.error(new Error("File upload is not available when GET is used")));if(!e)return new Je(c=>c.error(new Error(`To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink's options`)));s=e(t.body),a=!!s.files.size}let l={};if(r){if(!i)return new Je(c=>c.error(new Error("Batching is not available for GET requests")));l={body:t.body}}else{let c=a?s.clone:t.body;i?l={body:c}:l={params:Object.keys(t.body).reduce((h,m)=>{let g=t.body[m];return h[m]=o(m)?JSON.stringify(g):g,h},{})}}if(a&&i){let c=new FormData;c.append("operations",JSON.stringify(l.body));let p={},h=s.files,m=0;h.forEach(g=>{p[++m]=g}),c.append("map",JSON.stringify(p)),m=0,h.forEach((g,b)=>{c.append(++m+"",b,b.name)}),l.body=c}return n.request(t.method,t.url,T(T({observe:"response",responseType:"json",reportProgress:!1},l),t.options))},S7=t=>t instanceof el?t:new el(t);var I7=(t,n)=>t&&n?n.keys().reduce((e,i)=>e.set(i,n.getAll(i)),t):n||t,Lb=(t,n)=>t&&n?[...t.keys()].reduce((e,i)=>e.set(i,t.get(i)),n):n||t;function E7(...t){return t.find(n=>typeof n<"u")}function M7(t){let n=S7(t.headers);if(t.clientAwareness){let{name:e,version:i}=t.clientAwareness;e&&!n.has("apollographql-client-name")&&(n=n.set("apollographql-client-name",e)),i&&!n.has("apollographql-client-version")&&(n=n.set("apollographql-client-version",i))}return n}var D7={batchInterval:10,batchMax:10,uri:"graphql",method:"POST",withCredentials:!1,includeQuery:!0,includeExtensions:!1,useMultipart:!1};function Uo(t,n,e){return E7(t[e],n[e],D7[e])}function O7(t){let n={status:t.status,statusText:t.statusText,ok:t.ok,url:t.url||"",headers:new Headers,type:"error",redirected:!1};t.headers.keys().forEach(i=>{let o=t.headers.getAll(i);o&&o.forEach(r=>n.headers.append(i,r))});let e=typeof t.error=="string"?t.error:JSON.stringify(t.error||{});return t.status>=300?new Tr(`Response not successful: Received status code ${t.status}`,{response:n,bodyText:e}):new Error(t.message)}var rp=class extends Pt{httpClient;options;requester;print=yo;constructor(n,e){super(),this.httpClient=n,this.options=e,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=i=>new Je(o=>{let r=i.getContext(),a=Uo(r,this.options,"method"),s=Uo(r,this.options,"includeQuery"),l=Uo(r,this.options,"includeExtensions"),c=Uo(r,this.options,"uri"),p=Uo(r,this.options,"withCredentials"),h=Uo(r,this.options,"useMultipart"),m=this.options.useGETForQueries===!0,g=Lb(r.httpContext,Lb(this.options.httpContext,new $p)),b=i.query.definitions.some(E=>E.kind==="OperationDefinition"&&E.operation==="query");m&&b&&(a="GET");let y=I7(this.options.headers,M7(r)),v={method:a,url:typeof c=="function"?c(i):c,body:{operationName:i.operationName,variables:i.variables},options:{withCredentials:p,useMultipart:h,headers:y,context:g}};l&&(v.body.extensions=i.extensions),s&&(v.body.query=this.print(i.query));let S=T7(v,this.httpClient,this.options.extractFiles).subscribe({next:E=>{i.setContext({response:E}),o.next(E.body)},error:E=>{E instanceof Wp?o.error(O7(E)):o.error(E)},complete:()=>o.complete()});return()=>{S.closed||S.unsubscribe()}})}request(n){return this.requester(n)}},Nb=(()=>{class t{httpClient;constructor(e){this.httpClient=e}create(e){return new rp(this.httpClient,e)}static \u0275fac=function(i){return new(i||t)(Wt(Kp))};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $t(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function Si(t){return $t(t)==="object"}function P7(t){return Array.isArray(t)&&t.length>0&&t.every(n=>"message"in n)}function ap(t,n){return t.length<124?t:n}var zb="graphql-transport-ws";var Jt=(t=>(t[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t))(Jt||{}),Xt=(t=>(t.ConnectionInit="connection_init",t.ConnectionAck="connection_ack",t.Ping="ping",t.Pong="pong",t.Subscribe="subscribe",t.Next="next",t.Error="error",t.Complete="complete",t))(Xt||{});function jb(t){if(!Si(t))throw new Error(`Message is expected to be an object, but got ${$t(t)}`);if(!t.type)throw new Error("Message is missing the 'type' property");if(typeof t.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${$t(t.type)}`);switch(t.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(t.payload!=null&&!Si(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${t.payload}"`);break}case"subscribe":{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${$t(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!Si(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${$t(t.payload)}`);if(typeof t.payload.query!="string")throw new Error(`"${t.type}" message payload expects the 'query' property to be a string, but got ${$t(t.payload.query)}`);if(t.payload.variables!=null&&!Si(t.payload.variables))throw new Error(`"${t.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${$t(t.payload.variables)}`);if(t.payload.operationName!=null&&$t(t.payload.operationName)!=="string")throw new Error(`"${t.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${$t(t.payload.operationName)}`);if(t.payload.extensions!=null&&!Si(t.payload.extensions))throw new Error(`"${t.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${$t(t.payload.extensions)}`);break}case"next":{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${$t(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!Si(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${$t(t.payload)}`);break}case"error":{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${$t(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!P7(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(t.payload)}`);break}case"complete":{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${$t(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${t.type}"`)}return t}function Hb(t,n){return jb(typeof t=="string"?JSON.parse(t,n):t)}function Go(t,n){return jb(t),JSON.stringify(t,n)}function lp(t){let{url:n,connectionParams:e,lazy:i=!0,onNonLazyError:o=console.error,lazyCloseTimeout:r=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:l=0,retryAttempts:c=5,retryWait:p=function($){return Ze(this,null,function*(){let q=Math.pow(2,$);yield new Promise(K=>setTimeout(K,q*1e3+Math.floor(Math.random()*2700+300)))})},shouldRetry:h=sp,on:m,webSocketImpl:g,generateID:b=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,$=>{let q=Math.random()*16|0;return($=="x"?q:q&3|8).toString(16)})},jsonMessageReplacer:y,jsonMessageReviver:v}=t,S;if(g){if(!R7(g))throw new Error("Invalid WebSocket implementation provided");S=g}else typeof WebSocket<"u"?S=WebSocket:typeof global<"u"?S=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(S=window.WebSocket||window.MozWebSocket);if(!S)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let E=S,R=(()=>{let Te=(()=>{let q={};return{on(K,le){return q[K]=le,()=>{delete q[K]}},emit(K){"id"in K&&q[K.id]?.(K)}}})(),$={connecting:m?.connecting?[m.connecting]:[],opened:m?.opened?[m.opened]:[],connected:m?.connected?[m.connected]:[],ping:m?.ping?[m.ping]:[],pong:m?.pong?[m.pong]:[],message:m?.message?[Te.emit,m.message]:[Te.emit],closed:m?.closed?[m.closed]:[],error:m?.error?[m.error]:[]};return{onMessage:Te.on,on(q,K){let le=$[q];return le.push(K),()=>{le.splice(le.indexOf(K),1)}},emit(q,...K){for(let le of[...$[q]])le(...K)}}})();function z(Te){let $=[R.on("error",q=>{$.forEach(K=>K()),Te(q)}),R.on("closed",q=>{$.forEach(K=>K()),Te(q)})]}let W,ge=0,Le,Ne=!1,nt=0,Ft=!1;function $o(){return Ze(this,null,function*(){clearTimeout(Le);let[Te,$]=yield W??(W=new Promise((le,Pe)=>Ze(null,null,function*(){if(Ne){if(yield p(nt),!ge)return W=void 0,Pe({code:1e3,reason:"All Subscriptions Gone"});nt++}R.emit("connecting",Ne);let Ce=new E(typeof n=="function"?yield n():n,zb),pt,At;function Ke(){isFinite(a)&&a>0&&(clearTimeout(At),At=setTimeout(()=>{Ce.readyState===E.OPEN&&(Ce.send(Go({type:Xt.Ping})),R.emit("ping",!1,void 0))},a))}z(Ct=>{W=void 0,clearTimeout(pt),clearTimeout(At),Pe(Ct),Ct instanceof $r&&(Ce.close(4499,"Terminated"),Ce.onerror=null,Ce.onclose=null)}),Ce.onerror=Ct=>R.emit("error",Ct),Ce.onclose=Ct=>R.emit("closed",Ct),Ce.onopen=()=>Ze(null,null,function*(){try{R.emit("opened",Ce);let Ct=typeof e=="function"?yield e():e;if(Ce.readyState!==E.OPEN)return;Ce.send(Go(Ct?{type:Xt.ConnectionInit,payload:Ct}:{type:Xt.ConnectionInit},y)),isFinite(l)&&l>0&&(pt=setTimeout(()=>{Ce.close(Jt.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),Ke()}catch(Ct){R.emit("error",Ct),Ce.close(Jt.InternalClientError,ap(Ct instanceof Error?Ct.message:String(Ct),"Internal client error"))}});let jn=!1;Ce.onmessage=({data:Ct})=>{try{let De=Hb(Ct,v);if(R.emit("message",De),De.type==="ping"||De.type==="pong"){R.emit(De.type,!0,De.payload),De.type==="pong"?Ke():s||(Ce.send(Go(De.payload?{type:Xt.Pong,payload:De.payload}:{type:Xt.Pong})),R.emit("pong",!1,De.payload));return}if(jn)return;if(De.type!==Xt.ConnectionAck)throw new Error(`First message cannot be of type ${De.type}`);clearTimeout(pt),jn=!0,R.emit("connected",Ce,De.payload,Ne),Ne=!1,nt=0,le([Ce,new Promise((ai,Lt)=>z(Lt))])}catch(De){Ce.onmessage=null,R.emit("error",De),Ce.close(Jt.BadResponse,ap(De instanceof Error?De.message:String(De),"Bad response"))}}})));Te.readyState===E.CLOSING&&(yield $);let q=()=>{},K=new Promise(le=>q=le);return[Te,q,Promise.race([K.then(()=>{if(!ge){let le=()=>Te.close(1e3,"Normal Closure");isFinite(r)&&r>0?Le=setTimeout(()=>{Te.readyState===E.OPEN&&le()},r):le()}}),$])]})}function mn(Te){if(sp(Te)&&(F7(Te.code)||[Jt.InternalServerError,Jt.InternalClientError,Jt.BadRequest,Jt.BadResponse,Jt.Unauthorized,Jt.SubprotocolNotAcceptable,Jt.SubscriberAlreadyExists,Jt.TooManyInitialisationRequests].includes(Te.code)))throw Te;if(Ft)return!1;if(sp(Te)&&Te.code===1e3)return ge>0;if(!c||nt>=c||!h(Te))throw Te;return Ne=!0}i||Ze(null,null,function*(){for(ge++;;)try{let[,,Te]=yield $o();yield Te}catch(Te){try{if(!mn(Te))return}catch($){return o?.($)}}});function ro(Te,$){let q=b(Te),K=!1,le=!1,Pe=()=>{ge--,K=!0};return Ze(null,null,function*(){for(ge++;;)try{let[Ce,pt,At]=yield $o();if(K)return pt();let Ke=R.onMessage(q,jn=>{switch(jn.type){case Xt.Next:{$.next(jn.payload);return}case Xt.Error:{le=!0,K=!0,$.error(jn.payload),Pe();return}case Xt.Complete:{K=!0,Pe();return}}});Ce.send(Go({id:q,type:Xt.Subscribe,payload:Te},y)),Pe=()=>{!K&&Ce.readyState===E.OPEN&&Ce.send(Go({id:q,type:Xt.Complete},y)),ge--,K=!0,pt()},yield At.finally(Ke);return}catch(Ce){if(!mn(Ce))return}}).then(()=>{le||$.complete()}).catch(Ce=>{$.error(Ce)}),()=>{K||Pe()}}return{on:R.on,subscribe:ro,iterate(Te){let $=[],q={done:!1,error:null,resolve:()=>{}},K=ro(Te,{next(Pe){$.push(Pe),q.resolve()},error(Pe){q.done=!0,q.error=Pe,q.resolve()},complete(){q.done=!0,q.resolve()}}),le=(function(){return up(this,null,function*(){for(;;){for($.length||(yield new dp(new Promise(Ce=>q.resolve=Ce)));$.length;)yield $.shift();if(q.error)throw q.error;if(q.done)return}})})();return le.throw=Pe=>Ze(null,null,function*(){return q.done||(q.done=!0,q.error=Pe,q.resolve()),{done:!0,value:void 0}}),le.return=()=>Ze(null,null,function*(){return K(),{done:!0,value:void 0}}),le},dispose(){return Ze(this,null,function*(){if(Ft=!0,W){let[Te]=yield W;Te.close(1e3,"Normal Closure")}})},terminate(){W&&R.emit("closed",new $r)}}}var $r=class extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1};function sp(t){return Si(t)&&"code"in t&&"reason"in t}function F7(t){return[1e3,1001,1006,1005,1012,1013,1014].includes(t)?!1:t>=1e3&&t<=1999}function R7(t){return typeof t=="function"&&"constructor"in t&&"CLOSED"in t&&"CLOSING"in t&&"CONNECTING"in t&&"OPEN"in t}var V7="phoenix-auth-token";function B7(t){if(!tt.apiUrl||!tt.wsUrl){console.error("API URL or WS URL is not set");return}let n=t.create({uri:tt.apiUrl}),e=new Ns((s,l)=>Ze(null,null,function*(){let c=tt.apiKey??localStorage.getItem("api-key");return c?N(T({},s),{headers:N(T({},s.headers),{authorization:`Bearer ${c}`})}):s})),i=new zs(lp({url:tt.wsUrl,connectionParams:()=>{let s=tt.apiKey??localStorage.getItem("api-key");return{context:{authorization:s?`Bearer ${s}`:""}}}})),o=Ca(({query:s})=>{let l=hi(s);return l.kind==="OperationDefinition"&&l.operation==="subscription"},i,e.concat(n));return{link:new Pt((s,l)=>l(s).pipe(xt(c=>{let h=s.getContext().response?.headers.get(V7);return h?.length&&(tt.apiKey=h,localStorage.setItem("api-key",h)),c}))).concat(o),cache:new Ki,defaultOptions:{watchQuery:{fetchPolicy:"network-only"},query:{fetchPolicy:"network-only"},mutate:{fetchPolicy:"network-only"}}}}var Qb=()=>[{provide:"API_URI",useValue:tt.apiUrl},{provide:"WS_URI",useValue:tt.wsUrl},za,{provide:hc,useFactory:B7,deps:[Nb,"API_URI","WS_URI"]}];var qb={providers:[Sp(),Hp({eventCoalescing:!0}),...op({stripTrailingSegments:Hc.map(t=>t.path).filter(Boolean)}),Xp(Hc),Yp(),...tt.production?[]:[...Qb(),{provide:oi,useFactory:()=>new oi}]]};var Wr=class t{hostBridge=G(Zi);pluginServices=ue({});hostInjector=ue(void 0);_syncHostInjector=ip(this.hostBridge,this.hostInjector);_syncPluginServices=wn(()=>{this.hostBridge.setPluginServices(this.pluginServices())});static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["app-root"]],inputs:{pluginServices:[1,"pluginServices"],hostInjector:[1,"hostInjector"]},decls:1,vars:0,template:function(e,i){e&1&&Z(0,"router-outlet")},dependencies:[Jp],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};ra(qb).then(t=>{let n=_s(Wr,{injector:t.injector});return customElements.define("frontend-plugin-demo",n),t}).then(t=>tt.production?t:t.bootstrap(Wr)); +${hc} +`;var BY=()=>[10,25,50,75,100];function VY(t,n){t&1&&(E(0,"tr"),X(1,"th"),E(2,"th"),ce(3,"Name"),T(),E(4,"th"),ce(5,"Email"),T(),E(6,"th"),ce(7,"Address"),T(),X(8,"th"),T())}function jY(t,n){if(t&1&&(E(0,"div",4),X(1,"img",7),T()),t&2){let e=m().$implicit,r=m();g(),h("src",r.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.preview),Xs)("alt",e.featuredAsset==null?null:e.featuredAsset.displayName)}}function zY(t,n){if(t&1&&(X(0,"br"),E(1,"div",8),ce(2),T()),t&2){let e=m().$implicit;g(2),Ze(e.addition)}}function HY(t,n){if(t&1){let e=se();E(0,"tr")(1,"td"),rt(2,jY,2,2,"div",4),T(),E(3,"td")(4,"b"),ce(5),T(),rt(6,zY,3,1),T(),E(7,"td")(8,"a",5),ce(9),T()(),E(10,"td"),ce(11),X(12,"br"),ce(13),X(14,"br"),ce(15),T(),E(16,"td")(17,"p-button",6),q("click",function(){let i=S(e).$implicit,o=m();return I(o.openAddress(i))}),T()()()}if(t&2){let e=n.$implicit;g(2),it(e.featuredAsset!=null&&e.featuredAsset.preview?2:-1),g(3),Ze(e.name),g(),it(e.addition&&e.addition.length>0?6:-1),g(2),h("href","mailto:"+e.defaultEmail,Xs),g(),Ze(e.defaultEmail),g(2),Ut(" ",e.primaryPostalAddress==null?null:e.primaryPostalAddress.street),g(2),_l(" ",e.primaryPostalAddress==null?null:e.primaryPostalAddress.postalCode," ",e.primaryPostalAddress==null?null:e.primaryPostalAddress.city),g(2),Ut(" ",e.primaryPostalAddress==null?null:e.primaryPostalAddress.countryName," ")}}var og=class t{apollo=x(Ji);addresses=ge([]);rows=ge(localStorage.getItem("address-list-rows")?parseInt(localStorage.getItem("address-list-rows")):10);totalItems=ge(0);getPhxUrl=wc;constructor(){Lt(()=>{let n=this.rows();n>0&&n!==parseInt(localStorage.getItem("address-list-rows")??"0")&&localStorage.setItem("address-list-rows",n.toString())})}getAddresses=(...e)=>pt(this,[...e],function*(n={}){return(yield Cr(this.apollo.apollo().query({query:fP,variables:{input:n}})))?.data?.getAddresses});onLazyLoad(n){return pt(this,null,function*(){let e=yield this.getAddresses({take:n?.rows??this.rows(),skip:n?.first??0});this.addresses.set(e?.items??[]),this.totalItems.set(e?.totalItems??0)})}openAddress(n){window.open(wc("/crm/address/edit/"+n.id),"_blank")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=$({type:t,selectors:[["app-address-list"]],decls:4,vars:5,consts:[["title","Address List"],["lazy","","paginator","",3,"onLazyLoad","rowsChange","value","rows","totalRecords","rowsPerPageOptions"],["pTemplate","header"],["pTemplate","body"],[1,"flex","justify-center","items-center"],[1,"text-blue-500","hover:text-blue-700","hover:underline",3,"href"],["icon","fa fa-arrow-up-right-from-square","size","small","text","","rounded","","outlined","",3,"click"],[2,"object-fit","contain","max-width","100px","max-height","70px",3,"src","alt"],[1,"text-muted-color","italic","text-sm"]],template:function(e,r){e&1&&(E(0,"app-base",0)(1,"p-table",1),q("onLazyLoad",function(o){return r.onLazyLoad(o)}),Rr("rowsChange",function(o){return Xr(r.rows,o)||(r.rows=o),o}),C(2,VY,9,0,"ng-template",2)(3,HY,18,9,"ng-template",3),T()()),e&2&&(g(),h("value",r.addresses()),Or("rows",r.rows),h("totalRecords",r.totalItems())("rowsPerPageOptions",Pi(4,BY)))},dependencies:[cs,pP,Aw,xt,rr],encapsulation:2})};var Nw=[{path:"",canActivate:[Bt.production?()=>!0:No],component:Rm},{path:"product-view",canActivate:[Bt.production?()=>!0:No],component:ng},{path:"address-list",canActivate:[Bt.production?()=>!0:No],component:og},{path:"login",component:rg}];var $Y={schedule(t,n){let e=setTimeout(t,n);return()=>clearTimeout(e)}};function UY(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}function WY(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}var Fw;function GY(t,n){if(!Fw){let e=Element.prototype;Fw=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?Fw.call(t,n):!1}function qY(t){let n={};return t.forEach(({propName:e,templateName:r,transform:i})=>{n[UY(r)]=[e,i]}),n}function QY(t,n){return n.get(Jo).resolveComponentFactory(t).inputs}function KY(t,n){let e=t.childNodes,r=n.map(()=>[]),i=-1;n.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=e.length;oi!=="*"&&GY(t,i)?(r=o,!0):!1),r}var ZY=10,Lw=class{componentFactory;inputMap=new Map;constructor(n,e){this.componentFactory=e.get(Jo).resolveComponentFactory(n);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(n){return new Bw(this.componentFactory,n,this.inputMap)}},Bw=class{componentFactory;injector;inputMap;eventEmitters=new oo(1);events=this.eventEmitters.pipe(bn(n=>Xg(...n)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(n,e,r){this.componentFactory=n,this.injector=e,this.inputMap=r,this.ngZone=this.injector.get($e),this.appRef=this.injector.get(Ri),this.cdScheduler=e.get(ur),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=$Y.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},ZY))})}getInputValue(n){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){if(this.componentRef===null){this.initialInputValues.set(n,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(n)??n,e),yb(this.componentRef.hostView)&&(bb(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(n){let e=Vt.create({providers:[],parent:this.injector}),r=KY(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,r,n),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[n,e]of this.initialInputValues)this.setInputValue(n,e);this.initialInputValues.clear()}initializeOutputs(n){let e=this.componentFactory.outputs.map(({propName:r,templateName:i})=>{let o=n.instance[r];return new pe(s=>{let a=o.subscribe(l=>s.next({name:i,value:l}));return()=>a.unsubscribe()})});this.eventEmitters.next(e)}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}},Vw=class extends HTMLElement{ngElementEventsSubscription=null};function sg(t,n){let e=QY(t,n.injector),r=n.strategyFactory||new Lw(t,n.injector),i=qY(e);class o extends Vw{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||n.injector);e.forEach(({propName:l,transform:c})=>{if(!this.hasOwnProperty(l))return;let d=this[l];delete this[l],a.setInputValue(l,d,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,d){let[u,p]=i[a];this.ngElementStrategy.setInputValue(u,c,p)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return e.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),o}function hP(t){return new U(3e3,!1)}function JY(){return new U(3100,!1)}function XY(){return new U(3101,!1)}function eZ(t){return new U(3001,!1)}function tZ(t){return new U(3003,!1)}function nZ(t){return new U(3004,!1)}function gP(t,n){return new U(3005,!1)}function yP(){return new U(3006,!1)}function bP(){return new U(3007,!1)}function vP(t,n){return new U(3008,!1)}function _P(t){return new U(3002,!1)}function wP(t,n,e,r,i){return new U(3010,!1)}function CP(){return new U(3011,!1)}function xP(){return new U(3012,!1)}function TP(){return new U(3200,!1)}function EP(){return new U(3202,!1)}function SP(){return new U(3013,!1)}function IP(t){return new U(3014,!1)}function DP(t){return new U(3015,!1)}function kP(t){return new U(3016,!1)}function MP(t,n){return new U(3404,!1)}function rZ(t){return new U(3502,!1)}function OP(t){return new U(3503,!1)}function RP(){return new U(3300,!1)}function PP(t){return new U(3504,!1)}function AP(t){return new U(3301,!1)}function NP(t,n){return new U(3302,!1)}function FP(t){return new U(3303,!1)}function LP(t,n){return new U(3400,!1)}function BP(t){return new U(3401,!1)}function VP(t){return new U(3402,!1)}function jP(t,n){return new U(3505,!1)}function Fo(t){switch(t.length){case 0:return new no;case 1:return t[0];default:return new Ma(t)}}function $w(t,n,e=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(n.forEach(l=>{let c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((p,f)=>{let y=f,b=p;if(f!=="offset")switch(y=t.normalizePropertyName(y,i),b){case _c:b=e.get(f);break;case Br:b=r.get(f);break;default:b=t.normalizeStyleValue(f,y,b,i);break}u.set(y,b)}),d||o.push(u),a=u,s=c}),i.length)throw rZ(i);return o}function ag(t,n,e,r){switch(n){case"start":t.onStart(()=>r(e&&jw(e,"start",t)));break;case"done":t.onDone(()=>r(e&&jw(e,"done",t)));break;case"destroy":t.onDestroy(()=>r(e&&jw(e,"destroy",t)));break}}function jw(t,n,e){let r=e.totalTime,i=!!e.disabled,o=lg(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,r??t.totalTime,i),s=t._data;return s!=null&&(o._data=s),o}function lg(t,n,e,r,i="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function ar(t,n,e){let r=t.get(n);return r||t.set(n,r=e),r}function Uw(t){let n=t.indexOf(":"),e=t.substring(1,n),r=t.slice(n+1);return[e,r]}var iZ=typeof document>"u"?null:document.documentElement;function cg(t){let n=t.parentNode||t.host||null;return n===iZ?null:n}function oZ(t){return t.substring(1,6)=="ebkit"}var Oa=null,mP=!1;function zP(t){Oa||(Oa=sZ()||{},mP=Oa.style?"WebkitAppearance"in Oa.style:!1);let n=!0;return Oa.style&&!oZ(t)&&(n=t in Oa.style,!n&&mP&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Oa.style)),n}function sZ(){return typeof document<"u"?document.body:null}function Ww(t,n){for(;n;){if(n===t)return!0;n=cg(n)}return!1}function Gw(t,n,e){if(e)return Array.from(t.querySelectorAll(n));let r=t.querySelector(n);return r?[r]:[]}var aZ=1e3,qw="{{",lZ="}}",Qw="ng-enter",dg="ng-leave",zu="ng-trigger",Hu=".ng-trigger",Kw="ng-animating",ug=".ng-animating";function ro(t){if(typeof t=="number")return t;let n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:zw(parseFloat(n[1]),n[2])}function zw(t,n){return n==="s"?t*aZ:t}function $u(t,n,e){return t.hasOwnProperty("duration")?t:dZ(t,n,e)}var cZ=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function dZ(t,n,e){let r,i=0,o="";if(typeof t=="string"){let s=t.match(cZ);if(s===null)return n.push(hP(t)),{duration:0,delay:0,easing:""};r=zw(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(i=zw(parseFloat(a),s[4]));let l=s[5];l&&(o=l)}else r=t;if(!e){let s=!1,a=n.length;r<0&&(n.push(JY()),s=!0),i<0&&(n.push(XY()),s=!0),s&&n.splice(a,0,hP(t))}return{duration:r,delay:i,easing:o}}function HP(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}function hi(t,n,e){n.forEach((r,i)=>{let o=pg(i);e&&!e.has(i)&&e.set(i,t.style[o]),t.style[o]=r})}function Cs(t,n){n.forEach((e,r)=>{let i=pg(r);t.style[i]=""})}function Cc(t){return Array.isArray(t)?t.length==1?t[0]:aR(t):t}function $P(t,n,e){let r=n.params||{},i=Yw(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||e.push(eZ(o))})}var Hw=new RegExp(`${qw}\\s*(.+?)\\s*${lZ}`,"g");function Yw(t){let n=[];if(typeof t=="string"){let e;for(;e=Hw.exec(t);)n.push(e[1]);Hw.lastIndex=0}return n}function xc(t,n,e){let r=`${t}`,i=r.replace(Hw,(o,s)=>{let a=n[s];return a==null&&(e.push(tZ(s)),a=""),a.toString()});return i==r?t:i}var uZ=/-+([a-z0-9])/g;function pg(t){return t.replace(uZ,(...n)=>n[1].toUpperCase())}function UP(t,n){return t===0||n===0}function WP(t,n,e){if(e.size&&n.length){let r=n[0],i=[];if(e.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;os.set(a,fg(t,a)))}}return n}function lr(t,n,e){switch(n.type){case Ne.Trigger:return t.visitTrigger(n,e);case Ne.State:return t.visitState(n,e);case Ne.Transition:return t.visitTransition(n,e);case Ne.Sequence:return t.visitSequence(n,e);case Ne.Group:return t.visitGroup(n,e);case Ne.Animate:return t.visitAnimate(n,e);case Ne.Keyframes:return t.visitKeyframes(n,e);case Ne.Style:return t.visitStyle(n,e);case Ne.Reference:return t.visitReference(n,e);case Ne.AnimateChild:return t.visitAnimateChild(n,e);case Ne.AnimateRef:return t.visitAnimateRef(n,e);case Ne.Query:return t.visitQuery(n,e);case Ne.Stagger:return t.visitStagger(n,e);default:throw nZ(n.type)}}function fg(t,n){return window.getComputedStyle(t)[n]}var fC=(()=>{class t{validateStyleProperty(e){return zP(e)}containsElement(e,r){return Ww(e,r)}getParentElement(e){return cg(e)}query(e,r,i){return Gw(e,r,i)}computeStyle(e,r,i){return i||""}animate(e,r,i,o,s,a=[],l){return new no(i,o)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),Pa=class{static NOOP=new fC},Aa=class{};var pZ=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"]),bg=class extends Aa{normalizePropertyName(n,e){return pg(n)}normalizeStyleValue(n,e,r,i){let o="",s=r.toString().trim();if(pZ.has(e)&&r!==0&&r!=="0")if(typeof r=="number")o="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(gP(n,r))}return s+o}};var vg="*";function fZ(t,n){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>hZ(r,e,n)):e.push(t),e}function hZ(t,n,e){if(t[0]==":"){let l=mZ(t,e);if(typeof l=="function"){n.push(l);return}t=l}let r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return e.push(DP(t)),n;let i=r[1],o=r[2],s=r[3];n.push(GP(i,s));let a=i==vg&&s==vg;o[0]=="<"&&!a&&n.push(GP(s,i))}function mZ(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,r)=>parseFloat(r)>parseFloat(e);case":decrement":return(e,r)=>parseFloat(r) *"}}var hg=new Set(["true","1"]),mg=new Set(["false","0"]);function GP(t,n){let e=hg.has(t)||mg.has(t),r=hg.has(n)||mg.has(n);return(i,o)=>{let s=t==vg||t==i,a=n==vg||n==o;return!s&&e&&typeof i=="boolean"&&(s=i?hg.has(t):mg.has(t)),!a&&r&&typeof o=="boolean"&&(a=o?hg.has(n):mg.has(n)),s&&a}}var nA=":self",gZ=new RegExp(`s*${nA}s*,?`,"g");function rA(t,n,e,r){return new nC(t).build(n,e,r)}var qP="",nC=class{_driver;constructor(n){this._driver=n}build(n,e,r){let i=new rC(e);return this._resetContextStyleTimingState(i),lr(this,Cc(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector=qP,n.collectedStyles=new Map,n.collectedStyles.set(qP,new Map),n.currentTime=0}visitTrigger(n,e){let r=e.queryCount=0,i=e.depCount=0,o=[],s=[];return n.name.charAt(0)=="@"&&e.errors.push(yP()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==Ne.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,e))}),l.name=c}else if(a.type==Ne.Transition){let l=this.visitTransition(a,e);r+=l.queryCount,i+=l.depCount,s.push(l)}else e.errors.push(bP())}),{type:Ne.Trigger,name:n.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(n,e){let r=this.visitStyle(n.styles,e),i=n.options&&n.options.params||null;if(r.containsDynamicStyles){let o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Yw(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&e.errors.push(vP(n.name,[...o.values()]))}return{type:Ne.State,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let r=lr(this,Cc(n.animation),e),i=fZ(n.expr,e.errors);return{type:Ne.Transition,matchers:i,animation:r,queryCount:e.queryCount,depCount:e.depCount,options:Ra(n.options)}}visitSequence(n,e){return{type:Ne.Sequence,steps:n.steps.map(r=>lr(this,r,e)),options:Ra(n.options)}}visitGroup(n,e){let r=e.currentTime,i=0,o=n.steps.map(s=>{e.currentTime=r;let a=lr(this,s,e);return i=Math.max(i,e.currentTime),a});return e.currentTime=i,{type:Ne.Group,steps:o,options:Ra(n.options)}}visitAnimate(n,e){let r=_Z(n.timings,e.errors);e.currentAnimateTimings=r;let i,o=n.styles?n.styles:sr({});if(o.type==Ne.Keyframes)i=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;let c={};r.easing&&(c.easing=r.easing),s=sr(c)}e.currentTime+=r.duration+r.delay;let l=this.visitStyle(s,e);l.isEmptyStep=a,i=l}return e.currentAnimateTimings=null,{type:Ne.Animate,timings:r,style:i,options:null}}visitStyle(n,e){let r=this._makeStyleAst(n,e);return this._validateStyleAst(r,e),r}_makeStyleAst(n,e){let r=[],i=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of i)typeof a=="string"?a===Br?r.push(a):e.errors.push(_P(a)):r.push(new Map(Object.entries(a)));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(qw)>=0){o=!0;break}}}),{type:Ne.Style,styles:r,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){let r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),n.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l),u=!0;d&&(o!=i&&o>=d.startTime&&i<=d.endTime&&(e.errors.push(wP(l,d.startTime,d.endTime,o,i)),u=!1),o=d.startTime),u&&c.set(l,{startTime:o,endTime:i}),e.options&&$P(a,e.options,e.errors)})})}visitKeyframes(n,e){let r={type:Ne.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(CP()),r;let i=1,o=0,s=[],a=!1,l=!1,c=0,d=n.steps.map(w=>{let D=this._makeStyleAst(w,e),P=D.offset!=null?D.offset:vZ(D.styles),B=0;return P!=null&&(o++,B=D.offset=P),l=l||B<0||B>1,a=a||B0&&o{let P=p>0?D==f?1:p*D:s[D],B=P*v;e.currentTime=y+b.delay+B,b.duration=B,this._validateStyleAst(w,e),w.offset=P,r.styles.push(w)}),r}visitReference(n,e){return{type:Ne.Reference,animation:lr(this,Cc(n.animation),e),options:Ra(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Ne.AnimateChild,options:Ra(n.options)}}visitAnimateRef(n,e){return{type:Ne.AnimateRef,animation:this.visitReference(n.animation,e),options:Ra(n.options)}}visitQuery(n,e){let r=e.currentQuerySelector,i=n.options||{};e.queryCount++,e.currentQuery=n;let[o,s]=yZ(n.selector);e.currentQuerySelector=r.length?r+" "+o:o,ar(e.collectedStyles,e.currentQuerySelector,new Map);let a=lr(this,Cc(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:Ne.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Ra(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(SP());let r=n.timings==="full"?{duration:0,delay:0,easing:"full"}:$u(n.timings,e.errors,!0);return{type:Ne.Stagger,animation:lr(this,Cc(n.animation),e),timings:r,options:null}}};function yZ(t){let n=!!t.split(/\s*,\s*/).find(e=>e==nA);return n&&(t=t.replace(gZ,"")),t=t.replace(/@\*/g,Hu).replace(/@\w+/g,e=>Hu+"-"+e.slice(1)).replace(/:animating/g,ug),[t,n]}function bZ(t){return t?_({},t):null}var rC=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(n){this.errors=n}};function vZ(t){if(typeof t=="string")return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let r=e;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function _Z(t,n){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=$u(t,n).duration;return Zw(o,0,"")}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Zw(0,0,"");return o.dynamic=!0,o.strValue=e,o}let i=$u(e,n);return Zw(i.duration,i.delay,i.easing)}function Ra(t){return t?(t=_({},t),t.params&&(t.params=bZ(t.params))):t={},t}function Zw(t,n,e){return{duration:t,delay:n,easing:e}}function hC(t,n,e,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var Wu=class{_map=new Map;get(n){return this._map.get(n)||[]}append(n,e){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},wZ=1,CZ=":enter",xZ=new RegExp(CZ,"g"),TZ=":leave",EZ=new RegExp(TZ,"g");function iA(t,n,e,r,i,o=new Map,s=new Map,a,l,c=[]){return new iC().buildKeyframes(t,n,e,r,i,o,s,a,l,c)}var iC=class{buildKeyframes(n,e,r,i,o,s,a,l,c,d=[]){c=c||new Wu;let u=new oC(n,e,c,i,o,d,[]);u.options=l;let p=l.delay?ro(l.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([s],null,u.errors,l),lr(this,r,u);let f=u.timelines.filter(y=>y.containsAnimation());if(f.length&&a.size){let y;for(let b=f.length-1;b>=0;b--){let v=f[b];if(v.element===e){y=v;break}}y&&!y.allowOnlyTimelineStyles()&&y.setStyles([a],null,u.errors,l)}return f.length?f.map(y=>y.buildKeyframes()):[hC(e,[],[],[],0,p,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let r=e.subInstructions.get(e.element);if(r){let i=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){let r=e.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,r),this.visitReference(n.animation,r),e.transformIntoNewTimeline(r.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,r){for(let i of n){let o=i?.delay;if(o){let s=typeof o=="number"?o:ro(xc(o,i?.params??{},e.errors));r.delayNextStep(s)}}}_visitSubInstructions(n,e,r){let o=e.currentTimeline.currentTime,s=r.duration!=null?ro(r.duration):null,a=r.delay!=null?ro(r.delay):null;return s!==0&&n.forEach(l=>{let c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),lr(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let r=e.subContextCount,i=e,o=n.options;if(o&&(o.params||o.delay)&&(i=e.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==Ne.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=_g);let s=ro(o.delay);i.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>lr(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let r=[],i=e.currentTimeline.currentTime,o=n.options&&n.options.delay?ro(n.options.delay):0;n.steps.forEach(s=>{let a=e.createSubContext(n.options);o&&a.delayNextStep(o),lr(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(i),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let r=n.strValue,i=e.params?xc(r,e.params,e.errors):r;return $u(i,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let r=e.currentAnimateTimings=this._visitTiming(n.timings,e),i=e.currentTimeline;r.delay&&(e.incrementTime(r.delay),i.snapshotCurrentStyles());let o=n.style;o.type==Ne.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(r.duration),this.visitStyle(o,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let r=e.currentTimeline,i=e.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();let o=i&&i.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(o):r.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let r=e.currentAnimateTimings,i=e.currentTimeline.duration,o=r.duration,a=e.createSubContext().currentTimeline;a.easing=r.easing,n.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+o),e.previousNode=n}visitQuery(n,e){let r=e.currentTimeline.currentTime,i=n.options||{},o=i.delay?ro(i.delay):0;o&&(e.previousNode.type===Ne.Style||r==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=_g);let s=r,a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;let u=e.createSubContext(n.options,c);o&&u.delayNextStep(o),c===e.element&&(l=u.currentTimeline),lr(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe();let p=u.currentTimeline.currentTime;s=Math.max(s,p)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let r=e.parentContext,i=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1),l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime;break}let d=e.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;lr(this,n.animation,e),e.previousNode=n,r.currentStaggerTime=i.currentTime-u+(i.startTime-r.currentTimeline.startTime)}},_g={},oC=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=_g;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,e,r,i,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.currentTimeline=l||new wg(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let r=n,i=this.options;r.duration!=null&&(i.duration=ro(r.duration)),r.delay!=null&&(i.delay=ro(r.delay));let o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=xc(o[a],s,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let r=n.params={};Object.keys(e).forEach(i=>{r[i]=e[i]})}}return n}createSubContext(n=null,e,r){let i=e||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=_g,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,r){let i={duration:e??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},o=new sC(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,i,n.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,r,i,o,s){let a=[];if(i&&a.push(this.element),n.length>0){n=n.replace(xZ,"."+this._enterClassName),n=n.replace(EZ,"."+this._leaveClassName);let l=r!=1,c=this._driver.query(this.element,n,l);r!==0&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!o&&a.length==0&&s.push(IP(e)),a}},wg=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(n,e,r,i){this._driver=n,this.element=e,this.startTime=r,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=wZ,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,r]of this._globalTimelineStyles)this._backFill.set(e,r||Br),this._currentKeyframe.set(e,Br);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,r,i){e&&this._previousKeyframe.set("easing",e);let o=i&&i.params||{},s=SZ(n,this._globalTimelineStyles);for(let[a,l]of s){let c=xc(l,o,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Br),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,r)=>{let i=this._styleSummary.get(r);(!i||e.time>i.time)&&this._updateStyle(r,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,r=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===_c?n.add(u):d===Br&&e.add(u)}),r||c.set("offset",l/this.duration),i.push(c)});let o=[...n.values()],s=[...e.values()];if(r){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return hC(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},sC=class extends wg{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,e,r,i,o,s,a=!1){super(n,e,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],s=r+e,a=e/s,l=new Map(n[0]);l.set("offset",0),o.push(l);let c=new Map(n[0]);c.set("offset",QP(a)),o.push(c);let d=n.length-1;for(let u=1;u<=d;u++){let p=new Map(n[u]),f=p.get("offset"),y=e+f*r;p.set("offset",QP(y/s)),o.push(p)}r=s,e=0,i="",n=o}return hC(this.element,n,this.preStyleProps,this.postStyleProps,r,e,i,!0)}};function QP(t,n=3){let e=Math.pow(10,n-1);return Math.round(t*e)/e}function SZ(t,n){let e=new Map,r;return t.forEach(i=>{if(i==="*"){r??=n.keys();for(let o of r)e.set(o,Br)}else for(let[o,s]of i)e.set(o,s)}),e}function KP(t,n,e,r,i,o,s,a,l,c,d,u,p){return{type:0,element:t,triggerName:n,isRemovalTransition:i,fromState:e,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:p}}var Jw={},Cg=class{_triggerName;ast;_stateStyles;constructor(n,e,r){this._triggerName=n,this.ast=e,this._stateStyles=r}match(n,e,r,i){return IZ(this.ast.matchers,n,e,r,i)}buildStyles(n,e,r){let i=this._stateStyles.get("*");return n!==void 0&&(i=this._stateStyles.get(n?.toString())||i),i?i.buildStyles(e,r):new Map}build(n,e,r,i,o,s,a,l,c,d){let u=[],p=this.ast.options&&this.ast.options.params||Jw,f=a&&a.params||Jw,y=this.buildStyles(r,f,u),b=l&&l.params||Jw,v=this.buildStyles(i,b,u),w=new Set,D=new Map,P=new Map,B=i==="void",Y={params:oA(b,p),delay:this.ast.options?.delay},ye=d?[]:iA(n,e,this.ast.animation,o,s,y,v,Y,c,u),Xe=0;return ye.forEach(tt=>{Xe=Math.max(tt.duration+tt.delay,Xe)}),u.length?KP(e,this._triggerName,r,i,B,y,v,[],[],D,P,Xe,u):(ye.forEach(tt=>{let vt=tt.element,tn=ar(D,vt,new Set);tt.preStyleProps.forEach(zn=>tn.add(zn));let gi=ar(P,vt,new Set);tt.postStyleProps.forEach(zn=>gi.add(zn)),vt!==e&&w.add(vt)}),KP(e,this._triggerName,r,i,B,y,v,ye,[...w.values()],D,P,Xe))}};function IZ(t,n,e,r,i){return t.some(o=>o(n,e,r,i))}function oA(t,n){let e=_({},n);return Object.entries(t).forEach(([r,i])=>{i!=null&&(e[r]=i)}),e}var aC=class{styles;defaultParams;normalizer;constructor(n,e,r){this.styles=n,this.defaultParams=e,this.normalizer=r}buildStyles(n,e){let r=new Map,i=oA(n,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=xc(s,i,e));let l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),r.set(a,s)})}),r}};function DZ(t,n,e){return new lC(t,n,e)}var lC=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(n,e,r){this.name=n,this.ast=e,this._normalizer=r,e.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new aC(i.style,o,r))}),YP(this.states,"true","1"),YP(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new Cg(n,i,this.states))}),this.fallbackTransition=kZ(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,r,i){return this.transitionFactories.find(s=>s.match(n,e,r,i))||null}matchStyles(n,e,r){return this.fallbackTransition.buildStyles(n,e,r)}};function kZ(t,n,e){let r=[(s,a)=>!0],i={type:Ne.Sequence,steps:[],options:null},o={type:Ne.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new Cg(t,o,n)}function YP(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}var MZ=new Wu,cC=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(n,e,r){this.bodyNode=n,this._driver=e,this._normalizer=r}register(n,e){let r=[],i=[],o=rA(this._driver,e,r,i);if(r.length)throw OP(r);this._animations.set(n,o)}_buildPlayer(n,e,r){let i=n.element,o=$w(this._normalizer,n.keyframes,e,r);return this._driver.animate(i,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,r={}){let i=[],o=this._animations.get(n),s,a=new Map;if(o?(s=iA(this._driver,e,o,Qw,dg,new Map,new Map,r,MZ,i),s.forEach(d=>{let u=ar(a,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(i.push(RP()),s=[]),i.length)throw PP(i);a.forEach((d,u)=>{d.forEach((p,f)=>{d.set(f,this._driver.computeStyle(u,f,Br))})});let l=s.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=Fo(l);return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let r=this.players.indexOf(e);r>=0&&this.players.splice(r,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw AP(n);return e}listen(n,e,r,i){let o=lg(e,"","","");return ag(this._getPlayer(n),r,o,i),()=>{}}command(n,e,r,i){if(r=="register"){this.register(n,i[0]);return}if(r=="create"){let s=i[0]||{};this.create(n,e,s);return}let o=this._getPlayer(n);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(n);break}}},ZP="ng-animate-queued",OZ=".ng-animate-queued",Xw="ng-animate-disabled",RZ=".ng-animate-disabled",PZ="ng-star-inserted",AZ=".ng-star-inserted",NZ=[],sA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},FZ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},mi="__ng_removed",Gu=class{namespaceId;value;options;get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let r=n&&n.hasOwnProperty("value"),i=r?n.value:n;if(this.value=BZ(i),r){let o=n,{value:s}=o,a=Et(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let r=this.options.params;Object.keys(e).forEach(i=>{r[i]==null&&(r[i]=e[i])})}}},Uu="void",eC=new Gu(Uu),dC=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(n,e,r){this.id=n,this.hostElement=e,this._engine=r,this._hostClassName="ng-tns-"+n,Vr(e,this._hostClassName)}listen(n,e,r,i){if(!this._triggers.has(e))throw NP(r,e);if(r==null||r.length==0)throw FP(e);if(!VZ(r))throw LP(r,e);let o=ar(this._elementListeners,n,[]),s={name:e,phase:r,callback:i};o.push(s);let a=ar(this._engine.statesByElement,n,new Map);return a.has(e)||(Vr(n,zu),Vr(n,zu+"-"+e),a.set(e,eC)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw BP(n);return e}trigger(n,e,r,i=!0){let o=this._getTrigger(e),s=new qu(this.id,e,n),a=this._engine.statesByElement.get(n);a||(Vr(n,zu),Vr(n,zu+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e),c=new Gu(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=eC),!(c.value===Uu)&&l.value===c.value){if(!HZ(l.params,c.params)){let b=[],v=o.matchStyles(l.value,l.params,b),w=o.matchStyles(c.value,c.params,b);b.length?this._engine.reportError(b):this._engine.afterFlush(()=>{Cs(n,v),hi(n,w)})}return}let p=ar(this._engine.playersByElement,n,[]);p.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),y=!1;if(!f){if(!i)return;f=o.fallbackTransition,y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:y}),y||(Vr(n,ZP),s.onStart(()=>{Tc(n,ZP)})),s.onDone(()=>{let b=this.players.indexOf(s);b>=0&&this.players.splice(b,1);let v=this._engine.playersByElement.get(n);if(v){let w=v.indexOf(s);w>=0&&v.splice(w,1)}}),this.players.push(s),p.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,r)=>{this._elementListeners.set(r,e.filter(i=>i.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let r=this._engine.driver.query(n,Hu,!0);r.forEach(i=>{if(i[mi])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(n,e,r,i){let o=this._engine.statesByElement.get(n),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let d=this.trigger(n,c,Uu,i);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),r&&Fo(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(e&&r){let i=new Set;e.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let l=this._triggers.get(s).fallbackTransition,c=r.get(s)||eC,d=new Gu(Uu),u=new qu(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,e){let r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let i=!1;if(r.totalAnimations){let o=r.players.length?r.playersByQueriedElement.get(n):[];if(o&&o.length)i=!0;else{let s=n;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(n),i)r.markElementAsRemoved(this.id,n,!1,e);else{let o=n[mi];(!o||o===sA)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,e))}}insertNode(n,e){Vr(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(r=>{let i=r.player;if(i.destroyed)return;let o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){let l=lg(o,r.triggerName,r.fromState.value,r.toState.value);l._data=n,ag(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(r)}),this._queue=[],e.sort((r,i)=>{let o=r.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},uC=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,e)=>{};_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,r){this.bodyNode=n,this.driver=e,this._normalizer=r}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,e){let r=new dC(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(r,e):(this.newHostElements.set(e,r),this.collectEnterElement(e)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,e){let r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){let l=i.get(a);if(l){let c=r.indexOf(l);r.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(n)}else r.push(n);return i.set(e,n),n}register(n,e){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,e)),r}registerTrigger(n,e,r){let i=this._namespaceLookup[n];i&&i.register(e,r)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(n);this.namespacesByHostElement.delete(r.hostElement);let i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,r=this.statesByElement.get(n);if(r){for(let i of r.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&e.add(o)}}return e}trigger(n,e,r,i){if(gg(e)){let o=this._fetchNamespace(n);if(o)return o.trigger(e,r,i),!0}return!1}insertNode(n,e,r,i){if(!gg(e))return;let o=e[mi];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){let s=this._fetchNamespace(n);s&&s.insertNode(e,r)}i&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Vr(n,Xw)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Tc(n,Xw))}removeNode(n,e,r){if(gg(e)){let i=n?this._fetchNamespace(n):null;i?i.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r);let o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,r)}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,r,i,o){this.collectedLeaveElements.push(e),e[mi]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,r,i,o){return gg(e)?this._fetchNamespace(n).listen(e,r,i,o):()=>{}}_buildInstruction(n,e,r,i,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,i,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Hu,!0);e.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,ug,!0),e.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Fo(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[mi];if(e&&e.setForRemoval){if(n[mi]=sA,e.namespaceId){this.destroyInnerAnimations(n);let r=this._fetchNamespace(e.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Xw)&&this.markElementAsDisabled(n,!1),this.driver.query(n,RZ,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],e.length?Fo(e).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw VP(n)}_flushAnimations(n,e){let r=new Wu,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(Z=>{d.add(Z);let K=this.driver.query(Z,OZ,!0);for(let ee=0;ee{let ee=Qw+b++;y.set(K,ee),Z.forEach(he=>Vr(he,ee))});let v=[],w=new Set,D=new Set;for(let Z=0;Zw.add(he)):D.add(K))}let P=new Map,B=eA(p,Array.from(w));B.forEach((Z,K)=>{let ee=dg+b++;P.set(K,ee),Z.forEach(he=>Vr(he,ee))}),n.push(()=>{f.forEach((Z,K)=>{let ee=y.get(K);Z.forEach(he=>Tc(he,ee))}),B.forEach((Z,K)=>{let ee=P.get(K);Z.forEach(he=>Tc(he,ee))}),v.forEach(Z=>{this.processLeaveNode(Z)})});let Y=[],ye=[];for(let Z=this._namespaceList.length-1;Z>=0;Z--)this._namespaceList[Z].drainQueuedTransitions(e).forEach(ee=>{let he=ee.player,Ye=ee.element;if(Y.push(he),this.collectedEnterElements.length){let nt=Ye[mi];if(nt&&nt.setForMove){if(nt.previousTriggersValues&&nt.previousTriggersValues.has(ee.triggerName)){let yi=nt.previousTriggersValues.get(ee.triggerName),Fn=this.statesByElement.get(ee.element);if(Fn&&Fn.has(ee.triggerName)){let Na=Fn.get(ee.triggerName);Na.value=yi,Fn.set(ee.triggerName,Na)}}he.destroy();return}}let Fe=!u||!this.driver.containsElement(u,Ye),Rt=P.get(Ye),Sn=y.get(Ye),ht=this._buildInstruction(ee,r,Sn,Rt,Fe);if(ht.errors&&ht.errors.length){ye.push(ht);return}if(Fe){he.onStart(()=>Cs(Ye,ht.fromStyles)),he.onDestroy(()=>hi(Ye,ht.toStyles)),i.push(he);return}if(ee.isFallbackTransition){he.onStart(()=>Cs(Ye,ht.fromStyles)),he.onDestroy(()=>hi(Ye,ht.toStyles)),i.push(he);return}let wr=[];ht.timelines.forEach(nt=>{nt.stretchStartingKeyframe=!0,this.disabledNodes.has(nt.element)||wr.push(nt)}),ht.timelines=wr,r.append(Ye,ht.timelines);let Zt={instruction:ht,player:he,element:Ye};s.push(Zt),ht.queriedElements.forEach(nt=>ar(a,nt,[]).push(he)),ht.preStyleProps.forEach((nt,yi)=>{if(nt.size){let Fn=l.get(yi);Fn||l.set(yi,Fn=new Set),nt.forEach((Na,Dc)=>Fn.add(Dc))}}),ht.postStyleProps.forEach((nt,yi)=>{let Fn=c.get(yi);Fn||c.set(yi,Fn=new Set),nt.forEach((Na,Dc)=>Fn.add(Dc))})});if(ye.length){let Z=[];ye.forEach(K=>{Z.push(jP(K.triggerName,K.errors))}),Y.forEach(K=>K.destroy()),this.reportError(Z)}let Xe=new Map,tt=new Map;s.forEach(Z=>{let K=Z.element;r.has(K)&&(tt.set(K,K),this._beforeAnimationBuild(Z.player.namespaceId,Z.instruction,Xe))}),i.forEach(Z=>{let K=Z.element;this._getPreviousPlayers(K,!1,Z.namespaceId,Z.triggerName,null).forEach(he=>{ar(Xe,K,[]).push(he),he.destroy()})});let vt=v.filter(Z=>tA(Z,l,c)),tn=new Map;XP(tn,this.driver,D,c,Br).forEach(Z=>{tA(Z,l,c)&&vt.push(Z)});let zn=new Map;f.forEach((Z,K)=>{XP(zn,this.driver,new Set(Z),l,_c)}),vt.forEach(Z=>{let K=tn.get(Z),ee=zn.get(Z);tn.set(Z,new Map([...K?.entries()??[],...ee?.entries()??[]]))});let _r=[],Lo=[],je={};s.forEach(Z=>{let{element:K,player:ee,instruction:he}=Z;if(r.has(K)){if(d.has(K)){ee.onDestroy(()=>hi(K,he.toStyles)),ee.disabled=!0,ee.overrideTotalTime(he.totalTime),i.push(ee);return}let Ye=je;if(tt.size>1){let Rt=K,Sn=[];for(;Rt=Rt.parentNode;){let ht=tt.get(Rt);if(ht){Ye=ht;break}Sn.push(Rt)}Sn.forEach(ht=>tt.set(ht,Ye))}let Fe=this._buildAnimation(ee.namespaceId,he,Xe,o,zn,tn);if(ee.setRealPlayer(Fe),Ye===je)_r.push(ee);else{let Rt=this.playersByElement.get(Ye);Rt&&Rt.length&&(ee.parentPlayer=Fo(Rt)),i.push(ee)}}else Cs(K,he.fromStyles),ee.onDestroy(()=>hi(K,he.toStyles)),Lo.push(ee),d.has(K)&&i.push(ee)}),Lo.forEach(Z=>{let K=o.get(Z.element);if(K&&K.length){let ee=Fo(K);Z.setRealPlayer(ee)}}),i.forEach(Z=>{Z.parentPlayer?Z.syncPlayerEvents(Z.parentPlayer):Z.destroy()});for(let Z=0;Z!Fe.destroyed);Ye.length?jZ(this,K,Ye):this.processLeaveNode(K)}return v.length=0,_r.forEach(Z=>{this.players.push(Z),Z.onDone(()=>{Z.destroy();let K=this.players.indexOf(Z);this.players.splice(K,1)}),Z.play()}),_r}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,r,i,o){let s=[];if(e){let a=this.playersByQueriedElement.get(n);a&&(s=a)}else{let a=this.playersByElement.get(n);if(a){let l=!o||o==Uu;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||s.push(c)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(n,e,r){let i=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:i;for(let l of e.timelines){let c=l.element,d=c!==o,u=ar(r,c,[]);this._getPreviousPlayers(c,d,s,a,e.toState).forEach(f=>{let y=f.getRealPlayer();y.beforeDestroy&&y.beforeDestroy(),f.destroy(),u.push(f)})}Cs(o,e.fromStyles)}_buildAnimation(n,e,r,i,o,s){let a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,p=e.timelines.map(y=>{let b=y.element;d.add(b);let v=b[mi];if(v&&v.removedBeforeQueried)return new no(y.duration,y.delay);let w=b!==l,D=zZ((r.get(b)||NZ).map(Xe=>Xe.getRealPlayer())).filter(Xe=>{let tt=Xe;return tt.element?tt.element===b:!1}),P=o.get(b),B=s.get(b),Y=$w(this._normalizer,y.keyframes,P,B),ye=this._buildPlayer(y,Y,D);if(y.subTimeline&&i&&u.add(b),w){let Xe=new qu(n,a,b);Xe.setRealPlayer(ye),c.push(Xe)}return ye});c.forEach(y=>{ar(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>LZ(this.playersByQueriedElement,y.element,y))}),d.forEach(y=>Vr(y,Kw));let f=Fo(p);return f.onDestroy(()=>{d.forEach(y=>Tc(y,Kw)),hi(l,e.toStyles)}),u.forEach(y=>{ar(i,y,[]).push(f)}),f}_buildPlayer(n,e,r){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,r):new no(n.duration,n.delay)}},qu=class{namespaceId;triggerName;element;_player=new no;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(n,e,r){this.namespaceId=n,this.triggerName=e,this.element=r}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,r)=>{e.forEach(i=>ag(n,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){let e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){ar(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let e=this._player;e.triggerCallback&&e.triggerCallback(n)}};function LZ(t,n,e){let r=t.get(n);if(r){if(r.length){let i=r.indexOf(e);r.splice(i,1)}r.length==0&&t.delete(n)}return r}function BZ(t){return t??null}function gg(t){return t&&t.nodeType===1}function VZ(t){return t=="start"||t=="done"}function JP(t,n){let e=t.style.display;return t.style.display=n??"none",e}function XP(t,n,e,r,i){let o=[];e.forEach(l=>o.push(JP(l)));let s=[];r.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let p=n.computeStyle(c,u,i);d.set(u,p),(!p||p.length==0)&&(c[mi]=FZ,s.push(c))}),t.set(c,d)});let a=0;return e.forEach(l=>JP(l,o[a++])),s}function eA(t,n){let e=new Map;if(t.forEach(a=>e.set(a,[])),n.length==0)return e;let r=1,i=new Set(n),o=new Map;function s(a){if(!a)return r;let l=o.get(a);if(l)return l;let c=a.parentNode;return e.has(c)?l=c:i.has(c)?l=r:l=s(c),o.set(a,l),l}return n.forEach(a=>{let l=s(a);l!==r&&e.get(l).push(a)}),e}function Vr(t,n){t.classList?.add(n)}function Tc(t,n){t.classList?.remove(n)}function jZ(t,n,e){Fo(e).onDone(()=>t.processLeaveNode(n))}function zZ(t){let n=[];return aA(t,n),n}function aA(t,n){for(let e=0;ei.add(o)):n.set(t,r),e.delete(t),!0}var Ec=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(n,e)=>{};constructor(n,e,r){this._driver=e,this._normalizer=r,this._transitionEngine=new uC(n.body,e,r),this._timelineEngine=new cC(n.body,e,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(n,e,r,i,o){let s=n+"-"+i,a=this._triggerCache[s];if(!a){let l=[],c=[],d=rA(this._driver,o,l,c);if(l.length)throw MP(i,l);a=DZ(i,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,i,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,r,i){this._transitionEngine.insertNode(n,e,r,i)}onRemove(n,e,r){this._transitionEngine.removeNode(n,e,r)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,r,i){if(r.charAt(0)=="@"){let[o,s]=Uw(r),a=i;this._timelineEngine.command(o,e,s,a)}else this._transitionEngine.trigger(n,e,r,i)}listen(n,e,r,i,o){if(r.charAt(0)=="@"){let[s,a]=Uw(r);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,r,i,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}};function $Z(t,n){let e=null,r=null;return Array.isArray(n)&&n.length?(e=tC(n[0]),n.length>1&&(r=tC(n[n.length-1]))):n instanceof Map&&(e=tC(n)),e||r?new UZ(t,e,r):null}var UZ=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,r,i){this._element=e,this._startStyles=r,this._endStyles=i;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&hi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(hi(this._element,this._initialStyles),this._endStyles&&(hi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Cs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Cs(this._element,this._endStyles),this._endStyles=null),hi(this._element,this._initialStyles),this._state=3)}}return t})();function tC(t){let n=null;return t.forEach((e,r)=>{WZ(r)&&(n=n||new Map,n.set(r,e))}),n}function WZ(t){return t==="display"||t==="position"}var xg=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(n,e,r,i){this.element=n,this.keyframes=e,this.options=r,this._specialStyles=i,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let n=this.keyframes,e=this._triggerWebAnimation(this.element,n,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=n.length?n[n.length-1]:new Map;let r=()=>this._onFinish();return e.addEventListener("finish",r),this.onDestroy(()=>{e.removeEventListener("finish",r)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(n){let e=[];return n.forEach(r=>{e.push(Object.fromEntries(r))}),e}_triggerWebAnimation(n,e,r){let i=this._convertKeyframesToObject(e);try{return n.animate(i,r)}catch{return null}}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){let n=this._buildPlayer();n&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),n.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(n=>n()),this._onDestroyFns=[])}setPosition(n){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=n*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{i!=="offset"&&n.set(i,this._finished?r:fg(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){let e=n==="start"?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}},Tg=class{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,e){return Ww(n,e)}getParentElement(n){return cg(n)}query(n,e,r){return Gw(n,e,r)}computeStyle(n,e,r){return fg(n,e)}animate(n,e,r,i,o,s=[]){let a=i==0?"both":"forwards",l={duration:r,delay:i,fill:a};o&&(l.easing=o);let c=new Map,d=s.filter(f=>f instanceof xg);UP(r,i)&&d.forEach(f=>{f.currentSnapshot.forEach((y,b)=>c.set(b,y))});let u=HP(e).map(f=>new Map(f));u=WP(n,u,c);let p=$Z(n,u);return new xg(n,u,l,p)}};var yg="@",lA="@.disabled",Eg=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(n,e,r,i){this.namespaceId=n,this.delegate=e,this.engine=r,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,r,i=!0){this.delegate.insertBefore(n,e,r),this.engine.onInsert(this.namespaceId,e,n,i)}removeChild(n,e,r,i){if(i){this.delegate.removeChild(n,e,r,i);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,r,i){this.delegate.setAttribute(n,e,r,i)}removeAttribute(n,e,r){this.delegate.removeAttribute(n,e,r)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,r,i){this.delegate.setStyle(n,e,r,i)}removeStyle(n,e,r){this.delegate.removeStyle(n,e,r)}setProperty(n,e,r){e.charAt(0)==yg&&e==lA?this.disableAnimations(n,!!r):this.delegate.setProperty(n,e,r)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,r,i){return this.delegate.listen(n,e,r,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}},pC=class extends Eg{factory;constructor(n,e,r,i,o){super(e,r,i,o),this.factory=n,this.namespaceId=e}setProperty(n,e,r){e.charAt(0)==yg?e.charAt(1)=="."&&e==lA?(r=r===void 0?!0:!!r,this.disableAnimations(n,r)):this.engine.process(this.namespaceId,n,e.slice(1),r):this.delegate.setProperty(n,e,r)}listen(n,e,r,i){if(e.charAt(0)==yg){let o=GZ(n),s=e.slice(1),a="";return s.charAt(0)!=yg&&([s,a]=qZ(s)),this.engine.listen(this.namespaceId,o,s,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,r,l)})}return this.delegate.listen(n,e,r,i)}};function GZ(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function qZ(t){let n=t.indexOf("."),e=t.substring(0,n),r=t.slice(n+1);return[e,r]}var Sg=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(n,e,r){this.delegate=n,this.engine=e,this._zone=r,e.onRemovalComplete=(i,o)=>{o?.removeChild(null,i)}}createRenderer(n,e){let i=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){let c=this._rendererCache,d=c.get(i);if(!d){let u=()=>c.delete(i);d=new Eg("",i,this.engine,u),c.set(i,d)}return d}let o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,n,c.name,c)};return e.data.animation.forEach(a),new pC(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,r){if(n>=0&&ne(r));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([e,r])}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()}componentReplaced(n){this.engine.flush(),this.delegate.componentReplaced?.(n)}};var KZ=(()=>{class t extends Ec{constructor(e,r,i){super(e,r,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(r){return new(r||t)(me(bt),me(Pa),me(Aa))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function YZ(){return new bg}function ZZ(t,n,e){return new Sg(t,n,e)}var cA=[{provide:Aa,useFactory:YZ},{provide:Ec,useClass:KZ},{provide:mo,useFactory:ZZ,deps:[Ed,Ec,$e]}],O8e=[{provide:Pa,useClass:fC},{provide:Pf,useValue:"NoopAnimations"},...cA],JZ=[{provide:Pa,useFactory:()=>new Tg},{provide:Pf,useFactory:()=>"BrowserAnimations"},...cA];function dA(){return Zr("NgEagerAnimations"),[...JZ]}var XZ={transitionDuration:"{transition.duration}"},eJ={borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},tJ={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},nJ={borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"},mC={root:XZ,panel:eJ,header:tJ,content:nJ};var rJ={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},iJ={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},oJ={padding:"{list.padding}",gap:"{list.gap}"},sJ={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},aJ={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},lJ={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},cJ={borderRadius:"{border.radius.sm}"},dJ={padding:"{list.option.padding}"},uJ={light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}},gC={root:rJ,overlay:iJ,list:oJ,option:sJ,optionGroup:aJ,dropdown:lJ,chip:cJ,emptyMessage:dJ,colorScheme:uJ};var pJ={width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},fJ={size:"1rem"},hJ={borderColor:"{content.background}",offset:"-0.75rem"},mJ={width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},gJ={width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}},yC={root:pJ,icon:fJ,group:hJ,lg:mJ,xl:gJ};var yJ={borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},bJ={size:"0.5rem"},vJ={fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},_J={fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},wJ={fontSize:"1rem",minWidth:"2rem",height:"2rem"},CJ={light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},bC={root:yJ,dot:bJ,sm:vJ,lg:_J,xl:wJ,colorScheme:CJ};var xJ={borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},TJ={transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}},vC={primitive:xJ,semantic:TJ};var EJ={borderRadius:"{content.border.radius}"},_C={root:EJ};var SJ={padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},IJ={color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},DJ={color:"{navigation.item.icon.color}"},wC={root:SJ,item:IJ,separator:DJ};var kJ={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}",iconOnlyWidth:"2rem"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}",iconOnlyWidth:"3rem"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},MJ={light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}},CC={root:kJ,colorScheme:MJ};var OJ={background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},RJ={padding:"1.25rem",gap:"0.5rem"},PJ={gap:"0.5rem"},AJ={fontSize:"1.25rem",fontWeight:"500"},NJ={color:"{text.muted.color}"},xC={root:OJ,body:RJ,caption:PJ,title:AJ,subtitle:NJ};var FJ={transitionDuration:"{transition.duration}"},LJ={gap:"0.25rem"},BJ={padding:"1rem",gap:"0.5rem"},VJ={width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},jJ={light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}},TC={root:FJ,content:LJ,indicatorList:BJ,indicator:VJ,colorScheme:jJ};var zJ={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},HJ={width:"2.5rem",color:"{form.field.icon.color}"},$J={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},UJ={padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},WJ={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},GJ={color:"{form.field.icon.color}"},EC={root:zJ,dropdown:HJ,overlay:$J,list:UJ,option:WJ,clearIcon:GJ};var qJ={borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},QJ={size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}},SC={root:qJ,icon:QJ};var KJ={borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},YJ={width:"2rem",height:"2rem"},ZJ={size:"1rem"},JJ={size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},XJ={light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}},IC={root:KJ,image:YJ,icon:ZJ,removeIcon:JJ,colorScheme:XJ};var eX={transitionDuration:"{transition.duration}"},tX={width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},nX={shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},rX={light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}},DC={root:eX,preview:tX,panel:nX,colorScheme:rX};var iX={size:"2rem",color:"{overlay.modal.color}"},oX={gap:"1rem"},kC={icon:iX,content:oX};var sX={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},aX={padding:"{overlay.popover.padding}",gap:"1rem"},lX={size:"1.5rem",color:"{overlay.popover.color}"},cX={gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"},MC={root:sX,content:aX,icon:lX,footer:cX};var dX={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},uX={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},pX={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},fX={mobileIndent:"1rem"},hX={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},mX={borderColor:"{content.border.color}"},OC={root:dX,list:uX,item:pX,submenu:fX,submenuIcon:hX,separator:mX};var gX={transitionDuration:"{transition.duration}"},yX={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},bX={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},vX={fontWeight:"600"},_X={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},wX={borderColor:"{datatable.border.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},CX={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},xX={fontWeight:"600"},TX={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},EX={color:"{primary.color}"},SX={width:"0.5rem"},IX={width:"1px",color:"{primary.color}"},DX={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},kX={size:"2rem"},MX={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},OX={inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},RX={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},PX={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},AX={light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},RC={root:gX,header:yX,headerCell:bX,columnTitle:vX,row:_X,bodyCell:wX,footerCell:CX,columnFooter:xX,footer:TX,dropPoint:EX,columnResizer:SX,resizeIndicator:IX,sortIcon:DX,loadingIcon:kX,rowToggleButton:MX,filter:OX,paginatorTop:RX,paginatorBottom:PX,colorScheme:AX};var NX={borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},FX={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},LX={background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},BX={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},VX={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},jX={borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"},PC={root:NX,header:FX,content:LX,footer:BX,paginatorTop:VX,paginatorBottom:jX};var zX={transitionDuration:"{transition.duration}"},HX={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},$X={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},UX={gap:"0.5rem",fontWeight:"500"},WX={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},GX={color:"{form.field.icon.color}"},qX={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},QX={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},KX={borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},YX={margin:"0.5rem 0 0 0"},ZX={padding:"0.25rem",fontWeight:"500",color:"{content.color}"},JX={hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},XX={margin:"0.5rem 0 0 0"},eee={padding:"0.375rem",borderRadius:"{content.border.radius}"},tee={margin:"0.5rem 0 0 0"},nee={padding:"0.375rem",borderRadius:"{content.border.radius}"},ree={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},iee={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},oee={light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}},AC={root:zX,panel:HX,header:$X,title:UX,dropdown:WX,inputIcon:GX,selectMonth:qX,selectYear:QX,group:KX,dayView:YX,weekDay:ZX,date:JX,monthView:XX,month:eee,yearView:tee,year:nee,buttonbar:ree,timePicker:iee,colorScheme:oee};var see={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},aee={padding:"{overlay.modal.padding}",gap:"0.5rem"},lee={fontSize:"1.25rem",fontWeight:"600"},cee={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},dee={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"},NC={root:see,header:aee,title:lee,content:cee,footer:dee};var uee={borderColor:"{content.border.color}"},pee={background:"{content.background}",color:"{text.color}"},fee={margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},hee={margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}},FC={root:uee,content:pee,horizontal:fee,vertical:hee};var mee={background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},gee={borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},LC={root:mee,item:gee};var yee={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},bee={padding:"{overlay.modal.padding}"},vee={fontSize:"1.5rem",fontWeight:"600"},_ee={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},wee={padding:"{overlay.modal.padding}"},BC={root:yee,header:bee,title:vee,content:_ee,footer:wee};var Cee={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},xee={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},Tee={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},Eee={focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},See={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},VC={toolbar:Cee,toolbarItem:xee,overlay:Tee,overlayOption:Eee,content:See};var Iee={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},Dee={background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},kee={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},Mee={padding:"0"},jC={root:Iee,legend:Dee,toggleIcon:kee,content:Mee};var Oee={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},Ree={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},Pee={highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},Aee={padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},Nee={gap:"0.5rem"},Fee={height:"0.25rem"},Lee={gap:"0.5rem"},zC={root:Oee,header:Ree,content:Pee,file:Aee,fileList:Nee,progressbar:Fee,basic:Lee};var Bee={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},Vee={active:{top:"-1.25rem"}},jee={input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},zee={borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}},HC={root:Bee,over:Vee,in:jee,on:zee};var Hee={borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},$ee={background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Uee={size:"1.5rem"},Wee={background:"{content.background}",padding:"1rem 0.25rem"},Gee={size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},qee={size:"1rem"},Qee={background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},Kee={gap:"0.5rem",padding:"1rem"},Yee={width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Zee={background:"rgba(0, 0, 0, 0.5)"},Jee={background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},Xee={size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},ete={size:"1.5rem"},tte={light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}},$C={root:Hee,navButton:$ee,navIcon:Uee,thumbnailsContent:Wee,thumbnailNavButton:Gee,thumbnailNavButtonIcon:qee,caption:Qee,indicatorList:Kee,indicatorButton:Yee,insetIndicatorList:Zee,insetIndicatorButton:Jee,closeButton:Xee,closeButtonIcon:ete,colorScheme:tte};var nte={color:"{form.field.icon.color}"},UC={icon:nte};var rte={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},ite={paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},WC={root:rte,input:ite};var ote={transitionDuration:"{transition.duration}"},ste={icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},ate={position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},lte={hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},GC={root:ote,preview:ste,toolbar:ate,action:lte};var cte={size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},qC={handle:cte};var dte={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},ute={fontWeight:"500"},pte={size:"1rem"},fte={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}},QC={root:dte,text:ute,icon:pte,colorScheme:fte};var hte={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},mte={hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"},KC={root:hte,display:mte};var gte={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},yte={borderRadius:"{border.radius.sm}"},bte={light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}},YC={root:gte,chip:yte,colorScheme:bte};var vte={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"},ZC={addon:vte};var _te={transitionDuration:"{transition.duration}"},wte={width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},Cte={light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}},JC={root:_te,button:wte,colorScheme:Cte};var xte={gap:"0.5rem"},Tte={width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}},XC={root:xte,input:Tte};var Ete={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},e1={root:Ete};var Ste={transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Ite={background:"{primary.color}"},Dte={background:"{content.border.color}"},kte={color:"{text.muted.color}"},t1={root:Ste,value:Ite,range:Dte,text:kte};var Mte={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},Ote={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},Rte={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},Pte={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Ate={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},Nte={padding:"{list.option.padding}"},Fte={light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}},n1={root:Mte,list:Ote,option:Rte,optionGroup:Pte,checkmark:Ate,emptyMessage:Nte,colorScheme:Fte};var Lte={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},Bte={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},Vte={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},jte={padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},zte={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Hte={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},$te={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},Ute={borderColor:"{content.border.color}"},Wte={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},r1={root:Lte,baseItem:Bte,item:Vte,overlay:jte,submenu:zte,submenuLabel:Hte,submenuIcon:$te,separator:Ute,mobileButton:Wte};var Gte={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},qte={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Qte={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},Kte={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},Yte={borderColor:"{content.border.color}"},i1={root:Gte,list:qte,item:Qte,submenuLabel:Kte,separator:Yte};var Zte={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},Jte={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},Xte={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},ene={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},tne={borderColor:"{content.border.color}"},nne={borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},o1={root:Zte,baseItem:Jte,item:Xte,submenu:ene,separator:tne,mobileButton:nne};var rne={borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},ine={padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},one={fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},sne={size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},ane={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},lne={size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},cne={root:{borderWidth:"1px"}},dne={content:{padding:"0"}},une={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}},s1={root:rne,content:ine,text:one,icon:sne,closeButton:ane,closeIcon:lne,outlined:cne,simple:dne,colorScheme:une};var pne={borderRadius:"{content.border.radius}",gap:"1rem"},fne={background:"{content.border.color}",size:"0.5rem"},hne={gap:"0.5rem"},mne={size:"0.5rem"},gne={size:"1rem"},yne={verticalGap:"0.5rem",horizontalGap:"1rem"},a1={root:pne,meters:fne,label:hne,labelMarker:mne,labelIcon:gne,labelList:yne};var bne={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},vne={width:"2.5rem",color:"{form.field.icon.color}"},_ne={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},wne={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},Cne={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},xne={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Tne={color:"{form.field.icon.color}"},Ene={borderRadius:"{border.radius.sm}"},Sne={padding:"{list.option.padding}"},l1={root:bne,dropdown:vne,overlay:_ne,list:wne,option:Cne,optionGroup:xne,chip:Ene,clearIcon:Tne,emptyMessage:Sne};var Ine={gap:"1.125rem"},Dne={gap:"0.5rem"},c1={root:Ine,controls:Dne};var kne={gutter:"0.75rem",transitionDuration:"{transition.duration}"},Mne={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},One={background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Rne={color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"},d1={root:kne,node:Mne,nodeToggleButton:One,connector:Rne};var Pne={outline:{width:"2px",color:"{content.background}"}},u1={root:Pne};var Ane={padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},Nne={background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Fne={color:"{text.muted.color}"},Lne={maxWidth:"2.5rem"},p1={root:Ane,navButton:Nne,currentPageReport:Fne,jumpToPageInput:Lne};var Bne={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},Vne={background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},jne={padding:"0.375rem 1.125rem"},zne={fontWeight:"600"},Hne={padding:"0 1.125rem 1.125rem 1.125rem"},$ne={padding:"0 1.125rem 1.125rem 1.125rem"},f1={root:Bne,header:Vne,toggleableHeader:jne,title:zne,content:Hne,footer:$ne};var Une={gap:"0.5rem",transitionDuration:"{transition.duration}"},Wne={background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},Gne={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},qne={indent:"1rem"},Qne={color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"},h1={root:Une,panel:Wne,item:Gne,submenu:qne,submenuIcon:Qne};var Kne={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},Yne={color:"{form.field.icon.color}"},Zne={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},Jne={gap:"0.5rem"},Xne={light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}},m1={meter:Kne,icon:Yne,overlay:Zne,content:Jne,colorScheme:Xne};var ere={gap:"1.125rem"},tre={gap:"0.5rem"},g1={root:ere,controls:tre};var nre={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},rre={padding:"{overlay.popover.padding}"},y1={root:nre,content:rre};var ire={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},ore={background:"{primary.color}"},sre={color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"},b1={root:ire,value:ore,label:sre};var are={light:{root:{colorOne:"{red.500}",colorTwo:"{blue.500}",colorThree:"{green.500}",colorFour:"{yellow.500}"}},dark:{root:{colorOne:"{red.400}",colorTwo:"{blue.400}",colorThree:"{green.400}",colorFour:"{yellow.400}"}}},v1={colorScheme:are};var lre={width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},cre={size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}},_1={root:lre,icon:cre};var dre={gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},ure={size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"},w1={root:dre,icon:ure};var pre={light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}},C1={colorScheme:pre};var fre={transitionDuration:"{transition.duration}"},hre={size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},mre={light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}},x1={root:fre,bar:hre,colorScheme:mre};var gre={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},yre={width:"2.5rem",color:"{form.field.icon.color}"},bre={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},vre={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},_re={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},wre={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Cre={color:"{form.field.icon.color}"},xre={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},Tre={padding:"{list.option.padding}"},T1={root:gre,dropdown:yre,overlay:bre,list:vre,option:_re,optionGroup:wre,clearIcon:Cre,checkmark:xre,emptyMessage:Tre};var Ere={borderRadius:"{form.field.border.radius}"},Sre={light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}},E1={root:Ere,colorScheme:Sre};var Ire={borderRadius:"{content.border.radius}"},Dre={light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}},S1={root:Ire,colorScheme:Dre};var kre={transitionDuration:"{transition.duration}"},Mre={background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},Ore={background:"{primary.color}"},Rre={width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Pre={light:{handle:{content:{background:"{surface.0}"}}},dark:{handle:{content:{background:"{surface.950}"}}}},I1={root:kre,track:Mre,range:Ore,handle:Rre,colorScheme:Pre};var Are={gap:"0.5rem",transitionDuration:"{transition.duration}"},D1={root:Are};var Nre={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"},k1={root:Nre};var Fre={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},Lre={background:"{content.border.color}"},Bre={size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},M1={root:Fre,gutter:Lre,handle:Bre};var Vre={transitionDuration:"{transition.duration}"},jre={background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},zre={padding:"0.5rem",gap:"1rem"},Hre={padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},$re={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},Ure={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},Wre={padding:"0.875rem 0.5rem 1.125rem 0.5rem"},Gre={background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"},O1={root:Vre,separator:jre,step:zre,stepHeader:Hre,stepTitle:$re,stepNumber:Ure,steppanels:Wre,steppanel:Gre};var qre={transitionDuration:"{transition.duration}"},Qre={background:"{content.border.color}"},Kre={borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},Yre={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},Zre={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},R1={root:qre,separator:Qre,itemLink:Kre,itemLabel:Yre,itemNumber:Zre};var Jre={transitionDuration:"{transition.duration}"},Xre={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},eie={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},tie={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},nie={height:"1px",bottom:"-1px",background:"{primary.color}"},P1={root:Jre,tablist:Xre,item:eie,itemIcon:tie,activeBar:nie};var rie={transitionDuration:"{transition.duration}"},iie={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},oie={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},sie={background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},aie={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},lie={height:"1px",bottom:"-1px",background:"{primary.color}"},cie={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},A1={root:rie,tablist:iie,tab:oie,tabpanel:sie,navButton:aie,activeBar:lie,colorScheme:cie};var die={transitionDuration:"{transition.duration}"},uie={background:"{content.background}",borderColor:"{content.border.color}"},pie={borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},fie={background:"{content.background}",color:"{content.color}"},hie={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},mie={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}},N1={root:die,tabList:uie,tab:pie,tabPanel:fie,navButton:hie,colorScheme:mie};var gie={fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},yie={size:"0.75rem"},bie={light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}},F1={root:gie,icon:yie,colorScheme:bie};var vie={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},_ie={gap:"0.25rem"},wie={margin:"2px 0"},L1={root:vie,prompt:_ie,commandResponse:wie};var Cie={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},B1={root:Cie};var xie={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},Tie={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},Eie={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},Sie={mobileIndent:"1rem"},Iie={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},Die={borderColor:"{content.border.color}"},V1={root:xie,list:Tie,item:Eie,submenu:Sie,submenuIcon:Iie,separator:Die};var kie={minHeight:"5rem"},Mie={eventContent:{padding:"1rem 0"}},Oie={eventContent:{padding:"0 1rem"}},Rie={size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},Pie={color:"{content.border.color}",size:"2px"},j1={event:kie,horizontal:Mie,vertical:Oie,eventMarker:Rie,eventConnector:Pie};var Aie={width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},Nie={size:"1.125rem"},Fie={padding:"{overlay.popover.padding}",gap:"0.5rem"},Lie={gap:"0.5rem"},Bie={fontWeight:"500",fontSize:"1rem"},Vie={fontWeight:"500",fontSize:"0.875rem"},jie={width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},zie={size:"1rem"},Hie={light:{root:{blur:"1.5px"},info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{root:{blur:"10px"},info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}},z1={root:Aie,icon:Nie,content:Fie,text:Lie,summary:Bie,detail:Vie,closeButton:jie,closeIcon:zie,colorScheme:Hie};var $ie={padding:"0.25rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.25rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.25rem"}},Uie={disabledColor:"{form.field.disabled.color}"},Wie={padding:"0.25rem 0.75rem",borderRadius:"{content.border.radius}",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)",sm:{padding:"0.25rem 0.75rem"},lg:{padding:"0.25rem 0.75rem"}},Gie={light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}},H1={root:$ie,icon:Uie,content:Wie,colorScheme:Gie};var qie={width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},Qie={borderRadius:"50%",size:"1rem"},Kie={light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}},$1={root:qie,handle:Qie,colorScheme:Kie};var Yie={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"},U1={root:Yie};var Zie={maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},Jie={light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}},W1={root:Zie,colorScheme:Jie};var Xie={background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},eoe={padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},toe={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},noe={borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},roe={size:"2rem"},ioe={margin:"0 0 0.5rem 0"},G1={root:Xie,node:eoe,nodeIcon:toe,nodeToggleButton:noe,loadingIcon:roe,filter:ioe};var ooe={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},soe={width:"2.5rem",color:"{form.field.icon.color}"},aoe={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},loe={padding:"{list.padding}"},coe={padding:"{list.option.padding}"},doe={borderRadius:"{border.radius.sm}"},uoe={color:"{form.field.icon.color}"},q1={root:ooe,dropdown:soe,overlay:aoe,tree:loe,emptyMessage:coe,chip:doe,clearIcon:uoe};var poe={transitionDuration:"{transition.duration}"},foe={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},hoe={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},moe={fontWeight:"600"},goe={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},yoe={borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},boe={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},voe={fontWeight:"600"},_oe={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},woe={width:"0.5rem"},Coe={width:"1px",color:"{primary.color}"},xoe={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},Toe={size:"2rem"},Eoe={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Soe={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},Ioe={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},Doe={light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},Q1={root:poe,header:foe,headerCell:hoe,columnTitle:moe,row:goe,bodyCell:yoe,footerCell:boe,columnFooter:voe,footer:_oe,columnResizer:woe,resizeIndicator:Coe,sortIcon:xoe,loadingIcon:Toe,nodeToggleButton:Eoe,paginatorTop:Soe,paginatorBottom:Ioe,colorScheme:Doe};var koe={mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}},K1={loader:koe};var uA=A(_({},vC),{components:{accordion:mC,autocomplete:gC,avatar:yC,badge:bC,blockui:_C,breadcrumb:wC,button:CC,datepicker:AC,card:xC,carousel:TC,cascadeselect:EC,checkbox:SC,chip:IC,colorpicker:DC,confirmdialog:kC,confirmpopup:MC,contextmenu:OC,dataview:PC,datatable:RC,dialog:NC,divider:FC,dock:LC,drawer:BC,editor:VC,fieldset:jC,fileupload:zC,iftalabel:WC,floatlabel:HC,galleria:$C,iconfield:UC,image:GC,imagecompare:qC,inlinemessage:QC,inplace:KC,inputchips:YC,inputgroup:ZC,inputnumber:JC,inputotp:XC,inputtext:e1,knob:t1,listbox:n1,megamenu:r1,menu:i1,menubar:o1,message:s1,metergroup:a1,multiselect:l1,orderlist:c1,organizationchart:d1,overlaybadge:u1,popover:y1,paginator:p1,password:m1,panel:f1,panelmenu:h1,picklist:g1,progressbar:b1,progressspinner:v1,radiobutton:_1,rating:w1,ripple:C1,scrollpanel:x1,select:T1,selectbutton:E1,skeleton:S1,slider:I1,speeddial:D1,splitter:M1,splitbutton:k1,stepper:O1,steps:R1,tabmenu:P1,tabs:A1,tabview:N1,textarea:B1,tieredmenu:V1,tag:F1,terminal:L1,timeline:j1,togglebutton:H1,toggleswitch:$1,tree:G1,treeselect:q1,treetable:Q1,toast:z1,toolbar:U1,tooltip:W1,virtualscroller:K1}});var Moe=Object.defineProperty,pA=Object.getOwnPropertySymbols,Ooe=Object.prototype.hasOwnProperty,Roe=Object.prototype.propertyIsEnumerable,xs=(t,n)=>Moe(t,"name",{value:n,configurable:!0}),Poe=(t,n)=>{var e={};for(var r in t)Ooe.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&pA)for(var r of pA(t))n.indexOf(r)<0&&Roe.call(t,r)&&(e[r]=t[r]);return e};function Aoe(t,n,e){return Id(e).then(r=>{let i=sg(t,{injector:r.injector});customElements.define(n,i)}).catch(r=>{console.error(r)})}xs(Aoe,"bootstrapPhoenixPluginCustomElement");function fA(t){var n;let e=window.location.pathname.replace(/\/$/,"")||"/",r=(n=t?.stripTrailingSegments)!=null?n:[];for(let i of r){if(!i||i.includes("/"))continue;let o=`/${i}`;e.endsWith(o)&&(e=e.slice(0,-o.length)||"/")}return e!=="/"&&!e.endsWith("/")?`${e}/`:e}xs(fA,"pluginAppBaseHref");function hA(t){return{provide:ih,useFactory:xs(()=>fA(t),"useFactory")}}xs(hA,"providePluginAppBaseHref");function mA(){return vl(()=>{let t=x(Vn),n=x(Jt);pd(()=>{t.initialNavigation()},{injector:n})})}xs(mA,"providePhoenixPluginRouterInitialNavigation");function gA(t){return[hA(t),mA()]}xs(gA,"providePhoenixPlugin");function Y1(t,n){return Lt(()=>{let e=n();e!==void 0&&t.setHostInjector(e)})}xs(Y1,"syncPhoenixHostInjector");var Noe=Dk(uA,{semantic:{primary:{50:"{blue.50}",100:"{blue.100}",200:"{blue.200}",300:"{blue.300}",400:"{blue.400}",500:"{blue.500}",600:"{blue.600}",700:"{blue.700}",800:"{blue.800}",900:"{blue.900}",950:"{blue.950}"}}}),Foe={ripple:!0,theme:{options:{prefix:"p",darkModeSelector:".dark"},preset:Noe}};function Z1(t){let n=t??{},{primeNG:e}=n,r=Poe(n,["primeNG"]);return[dA(),Fk(e??Foe),...gA(r)]}xs(Z1,"providePhoenixPluginWithPrimeNG");var Ig=class extends jn{constructor(n){super((e,r)=>{let i=Et(e,[]);return Object.defineProperty(i,"client",{enumerable:!1,value:e.client}),new pe(o=>{let s=!1;return Promise.resolve(i).then(a=>n(e.getContext(),a)).then(e.setContext).then(()=>{s||r(e).subscribe(o)}).catch(o.error.bind(o)),()=>{s=!0}})})}};function Loe(t){return Ct(t)&&"code"in t&&"reason"in t}function Boe(t){return Ct(t)&&t.target?.readyState===WebSocket.CLOSED}var Dg=class extends jn{client;constructor(n){super(),this.client=n}request(n){return new pe(e=>{let{query:r,variables:i,operationName:o,extensions:s}=n;return this.client.subscribe({variables:i,operationName:o,extensions:s,query:Ki(r)},{next:e.next.bind(e),complete:e.complete.bind(e),error:a=>{if(a instanceof Error)return e.error(a);let l=Loe(a);return l||Boe(a)?e.error(new Error(`Socket closed${l?` with event ${a.code}`:""}${l?` ${a.reason}`:""}`)):e.error(new Ro({errors:Array.isArray(a)?a:[a]}))}})})}};var Voe=(t,n,e)=>{let r=["POST","PUT","PATCH"].indexOf(t.method.toUpperCase())!==-1,i=c=>["variables","extensions"].indexOf(c.toLowerCase())!==-1,o=t.body.length,s=t.options&&t.options.useMultipart,a;if(s){if(o)return new pe(c=>c.error(new Error("File upload is not available when combined with Batching")));if(!r)return new pe(c=>c.error(new Error("File upload is not available when GET is used")));if(!e)return new pe(c=>c.error(new Error(`To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink's options`)));a=e(t.body),s=!!a.files.size}let l={};if(o){if(!r)return new pe(c=>c.error(new Error("Batching is not available for GET requests")));l={body:t.body}}else{let c=s?a.clone:t.body;r?l={body:c}:l={params:Object.keys(t.body).reduce((u,p)=>{let f=t.body[p];return u[p]=i(p)?JSON.stringify(f):f,u},{})}}if(s&&r){let c=new FormData;c.append("operations",JSON.stringify(l.body));let d={},u=a.files,p=0;u.forEach(f=>{d[++p]=f}),c.append("map",JSON.stringify(d)),p=0,u.forEach((f,y)=>{c.append(++p+"",y,y.name)}),l.body=c}return n.request(t.method,t.url,_(_({observe:"response",responseType:"json",reportProgress:!1},l),t.options))},joe=t=>t instanceof ti?t:new ti(t);var zoe=(t,n)=>t&&n?n.keys().reduce((e,r)=>e.set(r,n.getAll(r)),t):n||t,yA=(t,n)=>t&&n?[...t.keys()].reduce((e,r)=>e.set(r,t.get(r)),n):n||t;function Hoe(...t){return t.find(n=>typeof n<"u")}function $oe(t){let n=joe(t.headers);if(t.clientAwareness){let{name:e,version:r}=t.clientAwareness;e&&!n.has("apollographql-client-name")&&(n=n.set("apollographql-client-name",e)),r&&!n.has("apollographql-client-version")&&(n=n.set("apollographql-client-version",r))}return n}var Uoe={batchInterval:10,batchMax:10,uri:"graphql",method:"POST",withCredentials:!1,includeQuery:!0,includeExtensions:!1,useMultipart:!1};function Sc(t,n,e){return Hoe(t[e],n[e],Uoe[e])}function Woe(t){let n={status:t.status,statusText:t.statusText,ok:t.ok,url:t.url||"",headers:new Headers,type:"error",redirected:!1};t.headers.keys().forEach(r=>{let i=t.headers.getAll(r);i&&i.forEach(o=>n.headers.append(r,o))});let e=typeof t.error=="string"?t.error:JSON.stringify(t.error||{});return t.status>=300?new Iu(`Response not successful: Received status code ${t.status}`,{response:n,bodyText:e}):new Error(t.message)}var J1=class extends jn{httpClient;options;requester;print=tc;constructor(n,e){super(),this.httpClient=n,this.options=e,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=r=>new pe(i=>{let o=r.getContext(),s=Sc(o,this.options,"method"),a=Sc(o,this.options,"includeQuery"),l=Sc(o,this.options,"includeExtensions"),c=Sc(o,this.options,"uri"),d=Sc(o,this.options,"withCredentials"),u=Sc(o,this.options,"useMultipart"),p=this.options.useGETForQueries===!0,f=yA(o.httpContext,yA(this.options.httpContext,new Sl)),y=r.query.definitions.some(D=>D.kind==="OperationDefinition"&&D.operation==="query");p&&y&&(s="GET");let b=zoe(this.options.headers,$oe(o)),v={method:s,url:typeof c=="function"?c(r):c,body:{operationName:r.operationName,variables:r.variables},options:{withCredentials:d,useMultipart:u,headers:b,context:f}};l&&(v.body.extensions=r.extensions),a&&(v.body.query=this.print(r.query));let w=Voe(v,this.httpClient,this.options.extractFiles).subscribe({next:D=>{r.setContext({response:D}),i.next(D.body)},error:D=>{D instanceof os?i.error(Woe(D)):i.error(D)},complete:()=>i.complete()});return()=>{w.closed||w.unsubscribe()}})}request(n){return this.requester(n)}},bA=(()=>{class t{httpClient;constructor(e){this.httpClient=e}create(e){return new J1(this.httpClient,e)}static \u0275fac=function(r){return new(r||t)(me(mh))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cr(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function Ts(t){return cr(t)==="object"}function Goe(t){return Array.isArray(t)&&t.length>0&&t.every(n=>"message"in n)}function X1(t,n){return t.length<124?t:n}var vA="graphql-transport-ws";var br=(t=>(t[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t))(br||{}),vr=(t=>(t.ConnectionInit="connection_init",t.ConnectionAck="connection_ack",t.Ping="ping",t.Pong="pong",t.Subscribe="subscribe",t.Next="next",t.Error="error",t.Complete="complete",t))(vr||{});function _A(t){if(!Ts(t))throw new Error(`Message is expected to be an object, but got ${cr(t)}`);if(!t.type)throw new Error("Message is missing the 'type' property");if(typeof t.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${cr(t.type)}`);switch(t.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(t.payload!=null&&!Ts(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${t.payload}"`);break}case"subscribe":{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!Ts(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${cr(t.payload)}`);if(typeof t.payload.query!="string")throw new Error(`"${t.type}" message payload expects the 'query' property to be a string, but got ${cr(t.payload.query)}`);if(t.payload.variables!=null&&!Ts(t.payload.variables))throw new Error(`"${t.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${cr(t.payload.variables)}`);if(t.payload.operationName!=null&&cr(t.payload.operationName)!=="string")throw new Error(`"${t.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${cr(t.payload.operationName)}`);if(t.payload.extensions!=null&&!Ts(t.payload.extensions))throw new Error(`"${t.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${cr(t.payload.extensions)}`);break}case"next":{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!Ts(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${cr(t.payload)}`);break}case"error":{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!Goe(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(t.payload)}`);break}case"complete":{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${t.type}"`)}return t}function wA(t,n){return _A(typeof t=="string"?JSON.parse(t,n):t)}function Ic(t,n){return _A(t),JSON.stringify(t,n)}function tx(t){let{url:n,connectionParams:e,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:s=0,disablePong:a,connectionAckWaitTimeout:l=0,retryAttempts:c=5,retryWait:d=function(Z){return pt(this,null,function*(){let K=Math.pow(2,Z);yield new Promise(ee=>setTimeout(ee,K*1e3+Math.floor(Math.random()*2700+300)))})},shouldRetry:u=ex,on:p,webSocketImpl:f,generateID:y=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,Z=>{let K=Math.random()*16|0;return(Z=="x"?K:K&3|8).toString(16)})},jsonMessageReplacer:b,jsonMessageReviver:v}=t,w;if(f){if(!Qoe(f))throw new Error("Invalid WebSocket implementation provided");w=f}else typeof WebSocket<"u"?w=WebSocket:typeof global<"u"?w=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(w=window.WebSocket||window.MozWebSocket);if(!w)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let D=w,P=(()=>{let je=(()=>{let K={};return{on(ee,he){return K[ee]=he,()=>{delete K[ee]}},emit(ee){"id"in ee&&K[ee.id]?.(ee)}}})(),Z={connecting:p?.connecting?[p.connecting]:[],opened:p?.opened?[p.opened]:[],connected:p?.connected?[p.connected]:[],ping:p?.ping?[p.ping]:[],pong:p?.pong?[p.pong]:[],message:p?.message?[je.emit,p.message]:[je.emit],closed:p?.closed?[p.closed]:[],error:p?.error?[p.error]:[]};return{onMessage:je.on,on(K,ee){let he=Z[K];return he.push(ee),()=>{he.splice(he.indexOf(ee),1)}},emit(K,...ee){for(let he of[...Z[K]])he(...ee)}}})();function B(je){let Z=[P.on("error",K=>{Z.forEach(ee=>ee()),je(K)}),P.on("closed",K=>{Z.forEach(ee=>ee()),je(K)})]}let Y,ye=0,Xe,tt=!1,vt=0,tn=!1;function gi(){return pt(this,null,function*(){clearTimeout(Xe);let[je,Z]=yield Y??(Y=new Promise((he,Ye)=>pt(null,null,function*(){if(tt){if(yield d(vt),!ye)return Y=void 0,Ye({code:1e3,reason:"All Subscriptions Gone"});vt++}P.emit("connecting",tt);let Fe=new D(typeof n=="function"?yield n():n,vA),Rt,Sn;function ht(){isFinite(s)&&s>0&&(clearTimeout(Sn),Sn=setTimeout(()=>{Fe.readyState===D.OPEN&&(Fe.send(Ic({type:vr.Ping})),P.emit("ping",!1,void 0))},s))}B(Zt=>{Y=void 0,clearTimeout(Rt),clearTimeout(Sn),Ye(Zt),Zt instanceof Qu&&(Fe.close(4499,"Terminated"),Fe.onerror=null,Fe.onclose=null)}),Fe.onerror=Zt=>P.emit("error",Zt),Fe.onclose=Zt=>P.emit("closed",Zt),Fe.onopen=()=>pt(null,null,function*(){try{P.emit("opened",Fe);let Zt=typeof e=="function"?yield e():e;if(Fe.readyState!==D.OPEN)return;Fe.send(Ic(Zt?{type:vr.ConnectionInit,payload:Zt}:{type:vr.ConnectionInit},b)),isFinite(l)&&l>0&&(Rt=setTimeout(()=>{Fe.close(br.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),ht()}catch(Zt){P.emit("error",Zt),Fe.close(br.InternalClientError,X1(Zt instanceof Error?Zt.message:String(Zt),"Internal client error"))}});let wr=!1;Fe.onmessage=({data:Zt})=>{try{let nt=wA(Zt,v);if(P.emit("message",nt),nt.type==="ping"||nt.type==="pong"){P.emit(nt.type,!0,nt.payload),nt.type==="pong"?ht():a||(Fe.send(Ic(nt.payload?{type:vr.Pong,payload:nt.payload}:{type:vr.Pong})),P.emit("pong",!1,nt.payload));return}if(wr)return;if(nt.type!==vr.ConnectionAck)throw new Error(`First message cannot be of type ${nt.type}`);clearTimeout(Rt),wr=!0,P.emit("connected",Fe,nt.payload,tt),tt=!1,vt=0,he([Fe,new Promise((yi,Fn)=>B(Fn))])}catch(nt){Fe.onmessage=null,P.emit("error",nt),Fe.close(br.BadResponse,X1(nt instanceof Error?nt.message:String(nt),"Bad response"))}}})));je.readyState===D.CLOSING&&(yield Z);let K=()=>{},ee=new Promise(he=>K=he);return[je,K,Promise.race([ee.then(()=>{if(!ye){let he=()=>je.close(1e3,"Normal Closure");isFinite(o)&&o>0?Xe=setTimeout(()=>{je.readyState===D.OPEN&&he()},o):he()}}),Z])]})}function zn(je){if(ex(je)&&(qoe(je.code)||[br.InternalServerError,br.InternalClientError,br.BadRequest,br.BadResponse,br.Unauthorized,br.SubprotocolNotAcceptable,br.SubscriberAlreadyExists,br.TooManyInitialisationRequests].includes(je.code)))throw je;if(tn)return!1;if(ex(je)&&je.code===1e3)return ye>0;if(!c||vt>=c||!u(je))throw je;return tt=!0}r||pt(null,null,function*(){for(ye++;;)try{let[,,je]=yield gi();yield je}catch(je){try{if(!zn(je))return}catch(Z){return i?.(Z)}}});function _r(je,Z){let K=y(je),ee=!1,he=!1,Ye=()=>{ye--,ee=!0};return pt(null,null,function*(){for(ye++;;)try{let[Fe,Rt,Sn]=yield gi();if(ee)return Rt();let ht=P.onMessage(K,wr=>{switch(wr.type){case vr.Next:{Z.next(wr.payload);return}case vr.Error:{he=!0,ee=!0,Z.error(wr.payload),Ye();return}case vr.Complete:{ee=!0,Ye();return}}});Fe.send(Ic({id:K,type:vr.Subscribe,payload:je},b)),Ye=()=>{!ee&&Fe.readyState===D.OPEN&&Fe.send(Ic({id:K,type:vr.Complete},b)),ye--,ee=!0,Rt()},yield Sn.finally(ht);return}catch(Fe){if(!zn(Fe))return}}).then(()=>{he||Z.complete()}).catch(Fe=>{Z.error(Fe)}),()=>{ee||Ye()}}return{on:P.on,subscribe:_r,iterate(je){let Z=[],K={done:!1,error:null,resolve:()=>{}},ee=_r(je,{next(Ye){Z.push(Ye),K.resolve()},error(Ye){K.done=!0,K.error=Ye,K.resolve()},complete(){K.done=!0,K.resolve()}}),he=(function(){return ox(this,null,function*(){for(;;){for(Z.length||(yield new kg(new Promise(Fe=>K.resolve=Fe)));Z.length;)yield Z.shift();if(K.error)throw K.error;if(K.done)return}})})();return he.throw=Ye=>pt(null,null,function*(){return K.done||(K.done=!0,K.error=Ye,K.resolve()),{done:!0,value:void 0}}),he.return=()=>pt(null,null,function*(){return ee(),{done:!0,value:void 0}}),he},dispose(){return pt(this,null,function*(){if(tn=!0,Y){let[je]=yield Y;je.close(1e3,"Normal Closure")}})},terminate(){Y&&P.emit("closed",new Qu)}}}var Qu=class extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1};function ex(t){return Ts(t)&&"code"in t&&"reason"in t}function qoe(t){return[1e3,1001,1006,1005,1012,1013,1014].includes(t)?!1:t>=1e3&&t<=1999}function Qoe(t){return typeof t=="function"&&"constructor"in t&&"CLOSED"in t&&"CLOSING"in t&&"CONNECTING"in t&&"OPEN"in t}var Koe="phoenix-auth-token";function Yoe(t){if(!Bt.apiUrl||!Bt.wsUrl){console.error("API URL or WS URL is not set");return}let n=t.create({uri:Bt.apiUrl}),e=new Ig((a,l)=>pt(null,null,function*(){let c=Bt.apiKey??localStorage.getItem("api-key");return c?A(_({},a),{headers:A(_({},a.headers),{authorization:`Bearer ${c}`})}):a})),r=new Dg(tx({url:Bt.wsUrl,connectionParams:()=>{let a=Bt.apiKey??localStorage.getItem("api-key");return{context:{authorization:a?`Bearer ${a}`:""}}}})),i=fm(({query:a})=>{let l=ps(a);return l.kind==="OperationDefinition"&&l.operation==="subscription"},r,e.concat(n));return{link:new jn((a,l)=>l(a).pipe(be(c=>{let u=a.getContext().response?.headers.get(Koe);return u?.length&&(Bt.apiKey=u,localStorage.setItem("api-key",u)),c}))).concat(i),cache:new Ea,defaultOptions:{watchQuery:{fetchPolicy:"network-only"},query:{fetchPolicy:"network-only"},mutate:{fetchPolicy:"network-only"}}}}var CA=()=>[{provide:"API_URI",useValue:Bt.apiUrl},{provide:"WS_URI",useValue:Bt.wsUrl},Om,{provide:cw,useFactory:Yoe,deps:[bA,"API_URI","WS_URI"]}];var xA={providers:[ty(),Lb({eventCoalescing:!0}),...Z1({stripTrailingSegments:Nw.map(t=>t.path).filter(Boolean)}),Nv(Nw),uv(),...Bt.production?[]:[...CA(),{provide:No,useFactory:()=>new No}]]};var Ku=class t{hostBridge=x(Ia);pluginServices=ae({});hostInjector=ae(void 0);_syncHostInjector=Y1(this.hostBridge,this.hostInjector);_syncPluginServices=Lt(()=>{this.hostBridge.setPluginServices(this.pluginServices())});static \u0275fac=function(e){return new(e||t)};static \u0275cmp=$({type:t,selectors:[["app-root"]],inputs:{pluginServices:[1,"pluginServices"],hostInjector:[1,"hostInjector"]},decls:1,vars:0,template:function(e,r){e&1&&X(0,"router-outlet")},dependencies:[qd],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};Id(xA).then(t=>{let n=sg(Ku,{injector:t.injector});return customElements.define("frontend-plugin-demo",n),t}).then(t=>Bt.production?t:t.bootstrap(Ku)); diff --git a/src/app/components/hello-world/hello-world.html b/src/app/components/hello-world/hello-world.html index 6aa53df..9e429b3 100644 --- a/src/app/components/hello-world/hello-world.html +++ b/src/app/components/hello-world/hello-world.html @@ -1,4 +1,4 @@ -@defer (when userName()) { +@if (userName()) {
This is a demo of a PHX Frontend Plugin.