diff --git a/snapshot/hal-explorer/index.html b/snapshot/hal-explorer/index.html index 35b4230..075e545 100644 --- a/snapshot/hal-explorer/index.html +++ b/snapshot/hal-explorer/index.html @@ -11,5 +11,5 @@ - + diff --git a/snapshot/hal-explorer/main.c915a43981f7ba9b.js b/snapshot/hal-explorer/main.233e0ae04be2a171.js similarity index 99% rename from snapshot/hal-explorer/main.c915a43981f7ba9b.js rename to snapshot/hal-explorer/main.233e0ae04be2a171.js index 61d5b25..4659ed4 100644 --- a/snapshot/hal-explorer/main.c915a43981f7ba9b.js +++ b/snapshot/hal-explorer/main.233e0ae04be2a171.js @@ -1 +1 @@ -(self.webpackChunkhal_explorer=self.webpackChunkhal_explorer||[]).push([[792],{678:(ji,ma,Lr)=>{"use strict";function Vr(e,t){return Object.is(e,t)}let Pe=null,dr=!1,fr=1;const Yt=Symbol("SIGNAL");function q(e){const t=Pe;return Pe=e,t}const Ie={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ue(e){if(dr)throw new Error("");if(null===Pe)return;Pe.consumerOnSignalRead(e);const t=Pe.nextProducerIndex++;ke(Pe),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Fe(e){ke(e);for(let t=0;t0}function ke(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function un(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function dn(e){return void 0!==e.producerNode}const Kt=Symbol("UNSET"),B=Symbol("COMPUTING"),G=Symbol("ERRORED"),Ye={...Ie,value:Kt,dirty:!0,error:null,equal:Vr,producerMustRecompute:e=>e.value===Kt||e.value===B,producerRecomputeValue(e){if(e.value===B)throw new Error("Detected cycle in computations.");const t=e.value;e.value=B;const n=Mn(e);let r;try{r=e.computation()}catch(o){r=G,e.error=o}finally{Yn(e,n)}t!==Kt&&t!==G&&r!==G&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}};let K=function Dt(){throw new Error};function L(){K()}let ee=null;function Kn(e,t){it()||L(),e.equal(e.value,t)||(e.value=t,function hr(e){e.version++,function Ne(){fr++}(),$e(e),ee?.()}(e))}const So={...Ie,equal:Vr,value:void 0};function Le(e){return"function"==typeof e}function sg(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const lu=sg(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function uu(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Jt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(Le(r))try{r()}catch(i){t=i instanceof lu?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{lg(i)}catch(s){t=t??[],s instanceof lu?t=[...t,...s.errors]:t.push(s)}}if(t)throw new lu(t)}}add(t){var n;if(t&&t!==this)if(this.closed)lg(t);else{if(t instanceof Jt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&uu(n,t)}remove(t){const{_finalizers:n}=this;n&&uu(n,t),t instanceof Jt&&t._removeParent(this)}}Jt.EMPTY=(()=>{const e=new Jt;return e.closed=!0,e})();const ag=Jt.EMPTY;function cg(e){return e instanceof Jt||e&&"closed"in e&&Le(e.remove)&&Le(e.add)&&Le(e.unsubscribe)}function lg(e){Le(e)?e():e.unsubscribe()}const jr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ya={setTimeout(e,t,...n){const{delegate:r}=ya;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=ya;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ug(e){ya.setTimeout(()=>{const{onUnhandledError:t}=jr;if(!t)throw e;t(e)})}function dg(){}const _T=du("C",void 0,void 0);function du(e,t,n){return{kind:e,value:t,error:n}}let Br=null;function va(e){if(jr.useDeprecatedSynchronousErrorHandling){const t=!Br;if(t&&(Br={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Br;if(Br=null,n)throw r}}else e()}class fu extends Jt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,cg(t)&&t.add(this)):this.destination=TT}static create(t,n,r){return new pu(t,n,r)}next(t){this.isStopped?gu(function ET(e){return du("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?gu(function DT(e){return du("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?gu(_T,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const wT=Function.prototype.bind;function hu(e,t){return wT.call(e,t)}class bT{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){_a(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){_a(r)}else _a(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){_a(n)}}}class pu extends fu{constructor(t,n,r){let o;if(super(),Le(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&jr.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&hu(t.next,i),error:t.error&&hu(t.error,i),complete:t.complete&&hu(t.complete,i)}):o=t}this.destination=new bT(o)}}function _a(e){jr.useDeprecatedSynchronousErrorHandling?function CT(e){jr.useDeprecatedSynchronousErrorHandling&&Br&&(Br.errorThrown=!0,Br.error=e)}(e):ug(e)}function gu(e,t){const{onStoppedNotification:n}=jr;n&&ya.setTimeout(()=>n(e,t))}const TT={closed:!0,next:dg,error:function IT(e){throw e},complete:dg},mu="function"==typeof Symbol&&Symbol.observable||"@@observable";function MT(e){return e}let xt=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function AT(e){return e&&e instanceof fu||function ST(e){return e&&Le(e.next)&&Le(e.error)&&Le(e.complete)}(e)&&cg(e)}(n)?n:new pu(n,r,o);return va(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=hg(r))((o,i)=>{const s=new pu({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[mu](){return this}pipe(...n){return function fg(e){return 0===e.length?MT:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=hg(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function hg(e){var t;return null!==(t=e??jr.Promise)&&void 0!==t?t:Promise}const NT=sg(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Et=(()=>{class e extends xt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new pg(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new NT}next(n){va(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){va(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){va(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?ag:(this.currentObservers=null,i.push(n),new Jt(()=>{this.currentObservers=null,uu(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new xt;return n.source=this,n}}return e.create=(t,n)=>new pg(t,n),e})();class pg extends Et{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:ag}}class RT extends Et{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Ur(e){return t=>{if(function OT(e){return Le(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function pr(e,t,n,r,o){return new xT(e,t,n,r,o)}class xT extends fu{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function gr(e,t){return Ur((n,r)=>{let o=0;n.subscribe(pr(r,i=>{r.next(e.call(t,i,o++))}))})}typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const xg="https://g.co/ng/security#xss";class w extends Error{constructor(t,n){super(function Ao(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Qn(e){return{toString:e}.toString()}const Ro="__parameters__";function xo(e,t,n){return Qn(()=>{const r=function bu(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(c,l,u){const d=c.hasOwnProperty(Ro)?c[Ro]:Object.defineProperty(c,Ro,{value:[]})[Ro];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const Te=globalThis;function ge(e){for(let t in e)if(e[t]===ge)return t;throw Error("Could not find renamed property on target object.")}function PM(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Qe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Qe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Iu(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const FM=ge({__forward_ref__:ge});function De(e){return e.__forward_ref__=De,e.toString=function(){return Qe(this())},e}function V(e){return ba(e)?e():e}function ba(e){return"function"==typeof e&&e.hasOwnProperty(FM)&&e.__forward_ref__===De}function U(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function qr(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ia(e){return Lg(e,Ma)||Lg(e,Vg)}function Lg(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ta(e){return e&&(e.hasOwnProperty(Tu)||e.hasOwnProperty(jM))?e[Tu]:null}const Ma=ge({\u0275prov:ge}),Tu=ge({\u0275inj:ge}),Vg=ge({ngInjectableDef:ge}),jM=ge({ngInjectorDef:ge});class R{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=U({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ru(e){return e&&!!e.\u0275providers}const $i=ge({\u0275cmp:ge}),Ou=ge({\u0275dir:ge}),xu=ge({\u0275pipe:ge}),Jn=ge({\u0275fac:ge}),qi=ge({__NG_ELEMENT_ID__:ge}),Bg=ge({__NG_ENV_ID__:ge});function z(e){return"string"==typeof e?e:null==e?"":String(e)}function Pu(e,t){throw new w(-201,!1)}var te=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(te||{});let Fu;function Ug(){return Fu}function Pt(e){const t=Fu;return Fu=e,t}function $g(e,t,n){const r=Ia(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&te.Optional?null:void 0!==t?t:void Pu()}const Gi={},ku="__NG_DI_FLAG__",Sa="ngTempTokenPath",zM=/\n/gm,qg="__source";let Po;function vr(e){const t=Po;return Po=e,t}function YM(e,t=te.Default){if(void 0===Po)throw new w(-203,!1);return null===Po?$g(e,void 0,t):Po.get(e,t&te.Optional?null:void 0,t)}function $(e,t=te.Default){return(Ug()||YM)(V(e),t)}function N(e,t=te.Default){return $(e,Aa(t))}function Aa(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Lu(e){const t=[];for(let n=0;nArray.isArray(n)?Fo(n,t):t(n))}function zg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Na(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function $t(e,t,n){let r=ko(e,t);return r>=0?e[1|r]=n:(r=~r,function Wg(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Bu(e,t){const n=ko(e,t);if(n>=0)return e[1|n]}function ko(e,t){return function Zg(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?"":o[u+1].toLowerCase(),2&r&&l!==d){if(pn(r))return!1;s=!0}}}}else{if(!s&&!pn(r)&&!pn(c))return!1;if(s&&pn(c))continue;s=!1,r=c|1&r}}return pn(r)||s}function pn(e){return!(1&e)}function aS(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!pn(s)&&(t+=tm(i,o),o=""),r=s,i=i||!pn(r);n++}return""!==o&&(t+=tm(i,o)),t}function Lo(e){return Qn(()=>{const t=rm(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===xa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||hn.Emulated,styles:e.styles||oe,_:null,schemas:e.schemas||null,tView:null,id:""};om(n);const r=e.dependencies;return n.directiveDefs=Pa(r,!1),n.pipeDefs=Pa(r,!0),n.id=function vS(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function gS(e){return J(e)||Je(e)}function mS(e){return null!==e}function Vo(e){return Qn(()=>({type:e.type,bootstrap:e.bootstrap||oe,declarations:e.declarations||oe,imports:e.imports||oe,exports:e.exports||oe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function nm(e,t){if(null==e)return An;const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let i,s,a=_r.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==_r.None?[r,a]:r,t[i]=s):n[i]=r}return n}function W(e){return Qn(()=>{const t=rm(e);return om(t),t})}function kt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function J(e){return e[$i]||null}function Je(e){return e[Ou]||null}function ct(e){return e[xu]||null}function rm(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||An,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||oe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:nm(e.inputs,t),outputs:nm(e.outputs),debugInfo:null}}function om(e){e.features?.forEach(t=>t(e))}function Pa(e,t){if(!e)return null;const n=t?ct:gS;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(mS)}function im(...e){return{\u0275providers:Gu(0,e),\u0275fromNgModule:!0}}function Gu(e,...t){const n=[],r=new Set;let o;const i=s=>{n.push(s)};return Fo(t,s=>{const a=s;Fa(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&sm(o,i),n}function sm(e,t){for(let n=0;n{t(i,r)})}}function Fa(e,t,n,r){if(!(e=V(e)))return!1;let o=null,i=Ta(e);const s=!i&&J(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const c=e.ngModule;if(i=Ta(c),!i)return!1;o=c}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)Fa(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Fo(i.imports,u=>{Fa(u,t,n,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&sm(l,t)}if(!a){const l=Gr(o)||(()=>new o);t({provide:o,useFactory:l,deps:oe},o),t({provide:Uu,useValue:o,multi:!0},o),t({provide:Nn,useValue:()=>$(o),multi:!0},o)}const c=i.providers;if(null!=c&&!a){const l=e;zu(c,u=>{t(u,l)})}}}return o!==e&&void 0!==e.providers}function zu(e,t){for(let n of e)Ru(n)&&(n=n.\u0275providers),Array.isArray(n)?zu(n,t):t(n)}const _S=ge({provide:String,useValue:ge});function Wu(e){return null!==e&&"object"==typeof e&&_S in e}function Wr(e){return"function"==typeof e}const Zu=new R(""),ka={},ES={};let Yu;function La(){return void 0===Yu&&(Yu=new Oa),Yu}class Xt{}class Ho extends Xt{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qu(t,s=>this.processProvider(s)),this.records.set(Yg,jo(void 0,this)),o.has("environment")&&this.records.set(Xt,jo(void 0,this));const i=this.records.get(Zu);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Uu,oe,te.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=q(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),q(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=vr(this),r=Pt(void 0);try{return t()}finally{vr(n),Pt(r)}}get(t,n=Gi,r=te.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Bg))return t[Bg](this);r=Aa(r);const i=vr(this),s=Pt(void 0);try{if(!(r&te.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function TS(e){return"function"==typeof e||"object"==typeof e&&e instanceof R}(t)&&Ia(t);c=l&&this.injectableDefInScope(l)?jo(Ku(t),ka):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(r&te.Self?La():this.parent).get(t,n=r&te.Optional&&n===Gi?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[Sa]=a[Sa]||[]).unshift(Qe(t)),i)throw a;return function QM(e,t,n,r){const o=e[Sa];throw t[qg]&&o.unshift(t[qg]),e.message=function JM(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Qe(t);if(Array.isArray(t))o=t.map(Qe).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Qe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(zM,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Sa]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{Pt(s),vr(i)}}resolveInjectorInitializers(){const t=q(null),n=vr(this),r=Pt(void 0);try{const i=this.get(Nn,oe,te.Self);for(const s of i)s()}finally{vr(n),Pt(r),q(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Qe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){let n=Wr(t=V(t))?t:V(t&&t.provide);const r=function wS(e){return Wu(e)?jo(void 0,e.useValue):jo(lm(e),ka)}(t);if(!Wr(t)&&!0===t.multi){let o=this.records.get(n);o||(o=jo(void 0,ka,!0),o.factory=()=>Lu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=q(null);try{return n.value===ka&&(n.value=ES,n.value=n.factory()),"object"==typeof n.value&&n.value&&function IS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{q(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=V(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Ku(e){const t=Ia(e),n=null!==t?t.factory:Gr(e);if(null!==n)return n;if(e instanceof R)throw new w(204,!1);if(e instanceof Function)return function CS(e){if(e.length>0)throw new w(204,!1);const n=function HM(e){return e&&(e[Ma]||e[Vg])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new w(204,!1)}function lm(e,t,n){let r;if(Wr(e)){const o=V(e);return Gr(o)||Ku(o)}if(Wu(e))r=()=>V(e.useValue);else if(function cm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Lu(e.deps||[]));else if(function am(e){return!(!e||!e.useExisting)}(e))r=()=>$(V(e.useExisting));else{const o=V(e&&(e.useClass||e.provide));if(!function bS(e){return!!e.deps}(e))return Gr(o)||Ku(o);r=()=>new o(...Lu(e.deps))}return r}function jo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Qu(e,t){for(const n of e)Array.isArray(n)?Qu(n,t):n&&Ru(n)?Qu(n.\u0275providers,t):t(n)}const Oe=0,T=1,x=2,Ge=3,gn=4,lt=5,Ct=6,Uo=7,Ee=8,ze=9,Rn=10,H=11,Ki=12,hm=13,$o=14,xe=15,Zr=16,qo=17,Xn=18,Go=19,pm=20,Dr=21,ja=22,en=23,O=25,Xu=1,On=7,zo=9,Ve=10;var Ua=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ua||{});function st(e){return Array.isArray(e)&&"object"==typeof e[Xu]}function pt(e){return Array.isArray(e)&&!0===e[Xu]}function ed(e){return!!(4&e.flags)}function Yr(e){return e.componentOffset>-1}function $a(e){return!(1&~e.flags)}function mn(e){return!!e.template}function Ji(e){return!!(512&e[x])}class HS{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function vm(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function er(){return _m}function _m(e){return e.type.prototype.ngOnChanges&&(e.setInput=BS),jS}function jS(){const e=Em(this),t=e?.current;if(t){const n=e.previous;if(n===An)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function BS(e,t,n,r,o){const i=this.declaredInputs[r],s=Em(e)||function US(e,t){return e[Dm]=t}(e,{previous:An,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new HS(l&&l.currentValue,n,c===An),vm(e,t,o,n)}er.ngInherit=!0;const Dm="__ngSimpleChanges__";function Em(e){return e[Dm]||null}const xn=function(e,t,n){};function ie(e){for(;Array.isArray(e);)e=e[Oe];return e}function Xi(e,t){return ie(t[e])}function wt(e,t){return ie(t[e.index])}function es(e,t){return e.data[t]}function Kr(e,t){return e[t]}function qt(e,t){const n=t[e];return st(n)?n:n[Oe]}function id(e){return!(128&~e[x])}function tn(e,t){return null==t?null:e[t]}function bm(e){e[qo]=0}function Im(e){1024&e[x]||(e[x]|=1024,id(e)&&qa(e))}function ts(e){return!!(9216&e[x]||e[en]?.dirty)}function sd(e){e[Rn].changeDetectionScheduler?.notify(7),64&e[x]&&(e[x]|=1024),ts(e)&&qa(e)}function qa(e){e[Rn].changeDetectionScheduler?.notify(0);let t=tr(e);for(;null!==t&&!(8192&t[x])&&(t[x]|=8192,id(t));)t=tr(t)}function Ga(e,t){if(!(256&~e[x]))throw new w(911,!1);null===e[Dr]&&(e[Dr]=[]),e[Dr].push(t)}function tr(e){const t=e[Ge];return pt(t)?t[Ge]:t}const j={lFrame:Vm(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Mm=!1;function Sm(){return j.bindingsEnabled}function D(){return j.lFrame.lView}function Q(){return j.lFrame.tView}function se(e){return j.lFrame.contextLView=e,e[Ee]}function ae(e){return j.lFrame.contextLView=null,e}function me(){let e=Am();for(;null!==e&&64===e.type;)e=e.parent;return e}function Am(){return j.lFrame.currentTNode}function yn(e,t){const n=j.lFrame;n.currentTNode=e,n.isParent=t}function ld(){return j.lFrame.isParent}function Om(){return Mm}function xm(e){Mm=e}function bt(){const e=j.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function vn(){return j.lFrame.bindingIndex++}function rr(e){const t=j.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function n0(e,t){const n=j.lFrame;n.bindingIndex=n.bindingRootIndex=e,dd(t)}function dd(e){j.lFrame.currentDirectiveIndex=e}function Wa(e){j.lFrame.currentQueryIndex=e}function o0(e){const t=e[T];return 2===t.type?t.declTNode:1===t.type?e[lt]:null}function km(e,t,n){if(n&te.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&te.Host||(o=o0(i),null===o||(i=i[$o],10&o.type))););if(null===o)return!1;t=o,e=i}const r=j.lFrame=Lm();return r.currentTNode=t,r.lView=e,!0}function pd(e){const t=Lm(),n=e[T];j.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Lm(){const e=j.lFrame,t=null===e?null:e.child;return null===t?Vm(e):t}function Vm(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Hm(){const e=j.lFrame;return j.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const jm=Hm;function gd(){const e=Hm();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 ut(){return j.lFrame.selectedIndex}function Jr(e){j.lFrame.selectedIndex=e}function Ce(){const e=j.lFrame;return es(e.tView,e.selectedIndex)}let Um=!0;function rs(){return Um}function Pn(e){Um=e}function Za(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[qo]+=65536),(a>14>16&&(3&e[x])===t&&(e[x]+=16384,qm(a,i)):qm(a,i)}const Wo=-1;class os{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}const vd={};class Xr{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Aa(r);const o=this.injector.get(t,vd,r);return o!==vd||n===vd?o:this.parentInjector.get(t,n,r)}}function _d(e){return e!==Wo}function is(e){return 32767&e}function ss(e,t){let n=function m0(e){return e>>16}(e),r=t;for(;n>0;)r=r[$o],n--;return r}let Dd=!0;function Qa(e){const t=Dd;return Dd=e,t}const zm=255,Wm=5;let v0=0;const Fn={};function Ja(e,t){const n=Zm(e,t);if(-1!==n)return n;const r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,Ed(r.data,e),Ed(t,null),Ed(r.blueprint,null));const o=Xa(e,t),i=e.injectorIndex;if(_d(o)){const s=is(o),a=ss(o,t),c=a[T].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Ed(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Zm(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Xa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=ty(o),null===r)return Wo;if(n++,o=o[$o],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Wo}function Cd(e,t,n){!function _0(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(qi)&&(r=n[qi]),null==r&&(r=n[qi]=v0++);const o=r&zm;t.data[e+(o>>Wm)]|=1<=0?t&zm:w0:t}(n);if("function"==typeof i){if(!km(t,e,r))return r&te.Host?Ym(o,0,r):Km(t,n,r,o);try{let s;if(s=i(r),null!=s||r&te.Optional)return s;Pu()}finally{jm()}}else if("number"==typeof i){let s=null,a=Zm(e,t),c=Wo,l=r&te.Host?t[xe][lt]:null;for((-1===a||r&te.SkipSelf)&&(c=-1===a?Xa(e,t):t[a+8],c!==Wo&&ey(r,!1)?(s=t[T],a=is(c),t=ss(c,t)):a=-1);-1!==a;){const u=t[T];if(Xm(i,a,u.data)){const d=E0(a,t,n,s,r,l);if(d!==Fn)return d}c=t[a+8],c!==Wo&&ey(r,t[T].data[a+8]===l)&&Xm(i,a,t)?(s=u,a=is(c),t=ss(c,t)):a=-1}}return o}function E0(e,t,n,r,o,i){const s=t[T],a=s.data[e+8],u=function ec(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,c=e.directiveStart,u=i>>20,h=o?a+u:e.directiveEnd;for(let f=r?a:a+u;f=c&&p.type===n)return f}if(o){const f=s[c];if(f&&mn(f)&&f.type===n)return c}return null}(a,s,n,null==r?Yr(a)&&Dd:r!=s&&!!(3&a.type),o&te.Host&&i===a);return null!==u?eo(t,s,u,a):Fn}function eo(e,t,n,r){let o=e[n];const i=t.data;if(function h0(e){return e instanceof os}(o)){const s=o;s.resolving&&function $M(e,t){throw t&&t.join(" > "),new w(-200,e)}(function le(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():z(e)}(i[n]));const a=Qa(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Pt(s.injectImpl):null;km(e,r,te.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function d0(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=_m(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&Pt(l),Qa(a),s.resolving=!1,jm()}}return o}function Xm(e,t,n){return!!(n[t+(e>>Wm)]&1<{const t=e.prototype.constructor,n=t[Jn]||wd(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[Jn]||wd(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function wd(e){return ba(e)?()=>{const t=wd(V(e));return t&&t()}:Gr(e)}function ty(e){const t=e[T],n=t.type;return 2===n?t.declTNode:1===n?e[lt]:null}function sy(e,t=null,n=null,r){const o=function ay(e,t=null,n=null,r,o=new Set){const i=[n||oe,im(e)];return r=r||("object"==typeof e?void 0:Qe(e)),new Ho(i,t||La(),r||null,o)}(e,t,n,r);return o.resolveInjectorInitializers(),o}class tt{static#e=this.THROW_IF_NOT_FOUND=Gi;static#t=this.NULL=new Oa;static create(t,n){if(Array.isArray(t))return sy({name:""},n,t,"");{const r=t.name??"";return sy({name:r},t.parent,t.providers,r)}}static#n=this.\u0275prov=U({token:tt,providedIn:"any",factory:()=>$(Yg)});static#r=this.__NG_ELEMENT_ID__=-1}new R("").__NG_ELEMENT_ID__=e=>{const t=me();if(null===t)throw new w(204,!1);if(2&t.type)return t.value;if(e&te.Optional)return null;throw new w(204,!1)};function Id(e){return e.ngOriginalError}let as=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=P0;static#t=this.__NG_ENV_ID__=n=>n}return e})();class x0 extends as{constructor(t){super(),this._lView=t}onDestroy(t){return Ga(this._lView,t),()=>function ad(e,t){if(null===e[Dr])return;const n=e[Dr].indexOf(t);-1!==n&&e[Dr].splice(n,1)}(this._lView,t)}}function P0(){return new x0(D())}let Er=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new RT(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=U({token:e,providedIn:"root",factory:()=>new e})}return e})();const mt=class F0 extends Et{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,function dm(){return void 0!==Ug()||null!=function ZM(){return Po}()}()&&(this.destroyRef=N(as,{optional:!0})??void 0,this.pendingTasks=N(Er,{optional:!0})??void 0)}emit(t){const n=q(null);try{super.next(t)}finally{q(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof Jt&&t.add(a),a}wrapInTimeout(t){return n=>{const r=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==r&&this.pendingTasks?.remove(r)})}}};function rc(...e){}function ly(e){let t,n;function r(){e=rc;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function uy(e){return queueMicrotask(()=>e()),()=>{e=rc}}class pe{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new mt(!1),this.onMicrotaskEmpty=new mt(!1),this.onStable=new mt(!1),this.onError=new mt(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.callbackScheduled=!1,function V0(e){const t=()=>{!function L0(e){e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,Zone.root.run(()=>{ly(()=>{e.callbackScheduled=!1,Md(e),e.isCheckStableRunning=!0,Td(e),e.isCheckStableRunning=!1})}),Md(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(function H0(e){return hy(e,"__ignore_ng_zone__")}(a))return n.invokeTask(o,i,s,a);try{return dy(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),fy(e)}},onInvoke:(n,r,o,i,s,a,c)=>{try{return dy(e),n.invoke(o,i,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function j0(e){return hy(e,"__scheduler_tick__")}(a)&&t(),fy(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Md(e),Td(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!pe.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(pe.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,k0,rc,rc);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const k0={};function Td(e){if(0==e._nesting&&!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 Md(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function dy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function fy(e){e._nesting--,Td(e)}class Sd{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new mt,this.onMicrotaskEmpty=new mt,this.onStable=new mt,this.onError=new mt}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}function hy(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class _n{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Id(t);for(;n&&Id(n);)n=Id(n);return n||null}}const U0=new R("",{providedIn:"root",factory:()=>{const e=N(pe),t=N(_n);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function $0(){return Ko(me(),D())}function Ko(e,t){return new Dn(wt(e,t))}let Dn=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=$0}return e})();function oc(e){return!(128&~e.flags)}Symbol;const Nd=new Map;let z0=0;const sc="__ngContext__";function yt(e,t){st(t)?(e[sc]=t[Go],function Z0(e){Nd.set(e[Go],e)}(t)):e[sc]=t}function Iy(e){return My(e[Ki])}function Ty(e){return My(e[gn])}function My(e){for(;null!==e&&!pt(e);)e=e[gn];return e}let Od;function Cr(){if(void 0!==Od)return Od;if(typeof document<"u")return document;throw new w(210,!1)}const Jo=new R("",{providedIn:"root",factory:()=>fA}),fA="ng",Fy=new R(""),to=new R("",{providedIn:"platform",factory:()=>"unknown"}),ky=new R("",{providedIn:"root",factory:()=>Cr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ly=()=>null;function Hd(e,t,n=!1){return Ly(e,t,n)}const Gy=new R("",{providedIn:"root",factory:()=>!1});let gc,mc;function ti(e){return function qd(){if(void 0===gc&&(gc=null,Te.trustedTypes))try{gc=Te.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return gc}()?.createHTML(e)||e}function Gd(){if(void 0===mc&&(mc=null,Te.trustedTypes))try{mc=Te.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return mc}function Zy(e){return Gd()?.createHTML(e)||e}function Ky(e){return Gd()?.createScriptURL(e)||e}class no{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xg})`}}class TA extends no{getTypeName(){return"HTML"}}class MA extends no{getTypeName(){return"Style"}}class SA extends no{getTypeName(){return"Script"}}class AA extends no{getTypeName(){return"URL"}}class NA extends no{getTypeName(){return"ResourceURL"}}function Gt(e){return e instanceof no?e.changingThisBreaksApplicationSecurity:e}function kn(e,t){const n=function RA(e){return e instanceof no&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${xg})`)}return n===t}class LA{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(ti(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class VA{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=ti(t),n}}const jA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function yc(e){return(e=String(e)).match(jA)?e:"unsafe:"+e}function or(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function gs(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Jy=or("area,br,col,hr,img,wbr"),Xy=or("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ev=or("rp,rt"),zd=gs(Jy,gs(Xy,or("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),gs(ev,or("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),gs(ev,Xy)),Wd=or("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),tv=gs(Wd,or("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),or("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),BA=or("script,style,template");class UA{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)o.push(n),n=GA(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=qA(n);if(i){n=i;break}n=o.pop()}return this.buf.join("")}startElement(t){const n=nv(t).toLowerCase();if(!zd.hasOwnProperty(n))return this.sanitizedSomething=!0,!BA.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o"),!0}endElement(t){const n=nv(t).toLowerCase();zd.hasOwnProperty(n)&&!Jy.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(ov(t))}}function qA(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw rv(t);return t}function GA(e){const t=e.firstChild;if(t&&function $A(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw rv(t);return t}function nv(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function rv(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const zA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,WA=/([^\#-~ |!])/g;function ov(e){return e.replace(/&/g,"&").replace(zA,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(WA,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let vc;function iv(e,t){let n=null;try{vc=vc||function Qy(e){const t=new VA(e);return function HA(){try{return!!(new window.DOMParser).parseFromString(ti(""),"text/html")}catch{return!1}}()?new LA(t):t}(e);let r=t?String(t):"";n=vc.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=vc.getInertBodyElement(r)}while(r!==i);return ti((new UA).sanitizeChildren(Zd(n)||n))}finally{if(n){const r=Zd(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Zd(e){return"content"in e&&function ZA(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var nn=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}(nn||{});function _c(e){const t=ms();return t?Zy(t.sanitize(nn.HTML,e)||""):kn(e,"HTML")?Zy(Gt(e)):iv(Cr(),z(e))}function Dc(e){const t=ms();return t?t.sanitize(nn.URL,e)||"":kn(e,"URL")?Gt(e):yc(z(e))}function Ec(e){const t=ms();if(t)return Ky(t.sanitize(nn.RESOURCE_URL,e)||"");if(kn(e,"ResourceURL"))return Ky(Gt(e));throw new w(904,!1)}function ms(){const e=D();return e&&e[Rn].sanitizer}var wr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(wr||{});let Qd;function Jd(e,t){return Qd(e,t)}function ri(e,t,n,r,o){if(null!=r){let i,s=!1;pt(r)?i=r:st(r)&&(s=!0,r=r[Oe]);const a=ie(r);0===e&&null!==n?null==o?vv(t,n,a):ro(t,n,a,o||null,!0):1===e&&null!==n?ro(t,n,a,o||null,!0):2===e?function vs(e,t,n){e.removeChild(null,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function wN(e,t,n,r,o){const i=n[On];i!==ie(n)&&ri(t,e,r,i,o);for(let a=Ve;a0&&(e[n-1][gn]=r[gn]);const i=Na(e,Ve+t);!function gN(e,t){gv(e,t),t[Oe]=null,t[lt]=null}(r[T],r);const s=i[Xn];null!==s&&s.detachView(i[T]),r[Ge]=null,r[gn]=null,r[x]&=-129}return r}function Ic(e,t){if(!(256&t[x])){const n=t[H];n.destroyNode&&Mc(e,t,n,3,null,null),function yN(e){let t=e[Ki];if(!t)return nf(e[T],e);for(;t;){let n=null;if(st(t))n=t[Ki];else{const r=t[Ve];r&&(n=r)}if(!n){for(;t&&!t[gn]&&t!==e;)st(t)&&nf(t[T],t),t=t[Ge];null===t&&(t=e),st(t)&&nf(t[T],t),n=t&&t[gn]}t=n}}(t)}}function nf(e,t){if(256&t[x])return;const n=q(null);try{t[x]&=-129,t[x]|=256,t[en]&&ln(t[en]),function DN(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Uo]=null);const o=t[Dr];if(null!==o){t[Dr]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===hn.None||i===hn.Emulated)return null}return wt(r,n)}}(e,t.parent,n)}function ro(e,t,n,r,o){e.insertBefore(t,n,r,o)}function vv(e,t,n){e.appendChild(t,n)}function _v(e,t,n,r,o){null!==r?ro(e,t,n,r,o):vv(e,t,n)}function sf(e,t){return e.parentNode(t)}let af,Cv=function Ev(e,t,n){return 40&e.type?wt(e,n):null};function Tc(e,t,n,r){const o=rf(e,r,t),i=t[H],a=function Dv(e,t,n){return Cv(e,t,n)}(r.parent||t[lt],r,t);if(null!=o)if(Array.isArray(n))for(let c=0;cO&&Av(e,t,O,!1),xn(s?2:0,o),n(r,o)}finally{Jr(i),xn(s?3:1,o)}}function df(e,t,n){if(ed(t)){const r=q(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function Pv(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;const s=t[i];if(void 0===s)continue;r??={};let a,c=_r.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=i;if(null!==o){if(!o.hasOwnProperty(i))continue;l=o[i]}0===e?Fv(r,n,l,a,c):Fv(r,n,l,a)}return r}function Fv(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],void 0!==o&&i.push(o)}function Ht(e,t,n,r,o,i,s,a){const c=wt(t,n);let u,l=t.inputs;!a&&null!=l&&(u=l[r])?(_f(e,n,u,r,o),Yr(t)&&function LN(e,t){const n=qt(t,e);16&n[x]||(n[x]|=64)}(n,t.index)):3&t.type&&(r=function kN(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(c,r,o))}function gf(e,t,n,r){if(Sm()){const o=null===r?null:{"":-1},i=function $N(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,_s(e,n,o.hostVars,Z),o)}function Ln(e,t,n,r,o,i){const s=wt(e,t);!function yf(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?z(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[H],s,i,e.value,n,r,o)}function YN(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{qa(e.lView)},consumerOnSignalRead(){this.lView[en]=this}},iR={...Ie,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=tr(e.lView);for(;t&&!zv(t[T]);)t=tr(t);t&&Im(t)},consumerOnSignalRead(){this.lView[en]=this}};function zv(e){return 2!==e.type}const sR=100;function Rc(e,t=!0,n=0){const r=e[Rn],o=r.rendererFactory;o.begin?.();try{!function aR(e,t){const n=Om();try{xm(!0),Cf(e,t);let r=0;for(;ts(e);){if(r===sR)throw new w(103,!1);r++,Cf(e,1)}}finally{xm(n)}}(e,n)}catch(s){throw t&&Nc(e,s),s}finally{o.end?.(),r.inlineEffectRunner?.flush()}}function cR(e,t,n,r){const o=t[x];if(!(256&~o))return;t[Rn].inlineEffectRunner?.flush(),pd(t);let a=!0,c=null,l=null;zv(e)?(l=function eR(e){return e[en]??function tR(e){const t=Gv.pop()??Object.create(rR);return t.lView=e,t}(e)}(t),c=Mn(l)):null===function Wn(){return Pe}()?(a=!1,l=function oR(e){const t=e[en]??Object.create(iR);return t.lView=e,t}(t),c=Mn(l)):t[en]&&(ln(t[en]),t[en]=null);try{bm(t),function Pm(e){return j.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Rv(e,t,n,2,r);const u=!(3&~o);if(u){const f=e.preOrderCheckHooks;null!==f&&Ya(t,f,null)}else{const f=e.preOrderHooks;null!==f&&Ka(t,f,0,null),md(t,0)}if(function lR(e){for(let t=Iy(e);null!==t;t=Ty(t)){if(!(t[x]&Ua.HasTransplantedViews))continue;const n=t[zo];for(let r=0;r-1&&(ys(t,r),Na(n,r))}this._attachedToViewContainer=!1}Ic(this._lView[T],this._lView)}onDestroy(t){Ga(this._lView,t)}markForCheck(){Es(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[x]&=-129}reattach(){sd(this._lView),this._lView[x]|=128}detectChanges(){this._lView[x]|=1024,Rc(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Ji(this._lView),n=this._lView[Zr];null!==n&&!t&&tf(n,this._lView),gv(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t;const n=Ji(this._lView),r=this._lView[Zr];null!==r&&!n&&mv(r,this._lView),sd(this._lView)}}let sr=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=hR}return e})();const dR=sr,fR=class extends dR{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const o=function oi(e,t,n,r){const o=q(null);try{const i=t.tView,c=Sc(e,i,n,4096&e[x]?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[Zr]=e[t.index];const u=e[Xn];return null!==u&&(c[Xn]=u.createEmbeddedView(i)),Df(i,c,n),c}finally{q(o)}}(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Cs(o)}};function hR(){return function Oc(e,t){return 4&e.type?new fR(t,e,Ko(e,t)):null}(me(),D())}class ai{}const Ns=new R("",{providedIn:"root",factory:()=>!1}),v_=new R("");class iO{}class __{}class aO{resolveComponentFactory(t){throw function sO(e){const t=Error(`No component factory found for ${Qe(e)}.`);return t.ngComponent=e,t}(t)}}class Vc{static#e=this.NULL=new aO}class xf{}let lo=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function cO(){const e=D(),n=qt(me().index,e);return(st(n)?n:e)[H]}()}return e})(),lO=(()=>{class e{static#e=this.\u0275prov=U({token:e,providedIn:"root",factory:()=>null})}return e})();const E_=new Set;function It(e){E_.has(e)||(E_.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}let Hc=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=U({token:e,providedIn:"root",factory:()=>new e})}return e})();function Bc(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&Mv(e,n,i.join(" "))}}(f,fe,g,r),void 0!==n&&function bO(e,t,n){const r=e.projection=[];for(let o=0;o{class e{static#e=this.__NG_ELEMENT_ID__=TO}return e})();function TO(){return function N_(e,t){let n;const r=t[e.index];return pt(r)?n=r:(n=Vv(r,t,null,e),t[e.index]=n,Ac(t,n)),R_(n,t,e,r),new S_(n,e,t)}(me(),D())}const MO=Vn,S_=class extends MO{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ko(this._hostTNode,this._hostLView)}get injector(){return new et(this._hostTNode,this._hostLView)}get parentInjector(){const t=Xa(this._hostTNode,this._hostLView);if(_d(t)){const n=ss(t,this._hostLView),r=is(t);return new et(n[T].data[r+8],n)}return new et(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=A_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ve}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,so(this._hostTNode,null)),a}createComponent(t,n,r,o,i){const s=t&&!function Yi(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}const c=s?t:new xs(J(t)),l=r||this.parentInjector;if(!i&&null==c.ngModule){const g=(s?l:this.parentInjector).get(Xt,null);g&&(i=g)}J(c.componentType??{});const f=c.create(l,o,null,i);return this.insertImpl(f.hostView,a,so(this._hostTNode,null)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const o=t._lView;if(function zS(e){return pt(e[Ge])}(o)){const a=this.indexOf(t);if(-1!==a)this.detach(a);else{const c=o[Ge],l=new S_(c,c[lt],c[Ge]);l.detach(l.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;return function ii(e,t,n,r=!0){const o=t[T];if(function vN(e,t,n,r){const o=Ve+r,i=n.length;r>0&&(n[o-1][gn]=t),r!1;function ci(e,t){It("NgSignals");const n=function he(e){const t=Object.create(So);t.value=e;const n=()=>(Ue(t),t.value);return n[Yt]=t,n}(e),r=n[Yt];return t?.equal&&(r.equal=t.equal),n.set=o=>Kn(r,o),n.update=o=>function Ot(e,t){it()||L(),Kn(e,t(e.value))}(r,o),n.asReadonly=U_.bind(n),n}function U_(){const e=this[Yt];if(void 0===e.readonlyFn){const t=()=>this();t[Yt]=e,e.readonlyFn=t}return e.readonlyFn}function $_(e){return function B_(e){return"function"==typeof e&&void 0!==e[Yt]}(e)&&"function"==typeof e.set}function ye(e){let t=function eD(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(mn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new w(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=$c(e.inputs),s.inputTransforms=$c(e.inputTransforms),s.declaredInputs=$c(e.declaredInputs),s.outputs=$c(e.outputs);const a=o.hostBindings;a&&QO(e,a);const c=o.viewQuery,l=o.contentQueries;if(c&&YO(e,c),l&&KO(e,l),WO(e,o),PM(e.outputs,o.outputs),mn(o)&&o.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Wi(o.hostAttrs,n=Wi(n,o.hostAttrs))}}(r)}function WO(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const o=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=t.inputTransforms[o]}}}function $c(e){return e===An?{}:e===oe?[]:e}function YO(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function KO(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function QO(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}class fo{}class oD extends fo{constructor(t){super(),this.componentFactoryResolver=new T_(this),this.instance=null;const n=new Ho([...t.providers,{provide:fo,useValue:this},{provide:Vc,useValue:this.componentFactoryResolver}],t.parent||La(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function qc(e){return!!Yf(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Yf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Hn(e,t,n){return e[t]=n}function He(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ks(e,t,n,r,o,i,s,a,c,l){const u=n+O,d=t.firstCreatePass?function d1(e,t,n,r,o,i,s,a,c){const l=t.consts,u=io(t,e,4,s||null,a||null);gf(t,n,u,tn(l,c)),Za(t,u);const d=u.tView=pf(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,t,e,r,o,i,s,a,c):t.data[u];yn(d,!1);const h=sD(t,e,d,n);rs()&&Tc(t,e,h,d),yt(h,e);const f=Vv(h,e,h,d);return e[u]=f,Ac(e,f),function O_(e,t,n){return Vf(e,t,n)}(f,d,e),$a(d)&&ff(t,e,d),null!=c&&hf(e,d,l),d}function Y(e,t,n,r,o,i,s,a){const c=D(),l=Q();return ks(c,l,e,t,n,r,o,tn(l.consts,i),s,a),Y}let sD=function aD(e,t,n,r){return Pn(!0),t[H].createComment("")};function vt(e,t,n,r){const o=D();return He(o,vn(),t)&&(Q(),Ln(Ce(),o,e,t,n,r)),vt}function vi(e,t,n,r){return He(e,vn(),n)?t+z(n)+r:Z}function _i(e,t,n,r,o,i){const a=function ho(e,t,n,r){const o=He(e,t,n);return He(e,t+1,r)||o}(e,function nr(){return j.lFrame.bindingIndex}(),n,o);return rr(2),a?t+z(n)+r+z(o)+i:Z}function Qc(e,t){return e<<17|t<<2}function Tr(e){return e>>17&32767}function sh(e){return 2|e}function go(e){return(131068&e)>>2}function ah(e,t){return-131069&e|t<<2}function ch(e){return 1|e}function VD(e,t,n,r){const o=e[n+1],i=null===t;let s=r?Tr(o):go(o),a=!1;for(;0!==s&&(!1===a||i);){const l=e[s+1];K1(e[s],t)&&(a=!0,e[s+1]=r?ch(l):sh(l)),s=r?Tr(l):go(l)}a&&(e[n+1]=r?sh(o):ch(o))}function K1(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ko(e,t)>=0}const nt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function HD(e){return e.substring(nt.key,nt.keyEnd)}function Q1(e){return e.substring(nt.value,nt.valueEnd)}function jD(e,t){const n=nt.textEnd;return n===t?-1:(t=nt.keyEnd=function ex(e,t,n){for(;t32;)t++;return t}(e,nt.key=t,n),Ti(e,t,n))}function BD(e,t){const n=nt.textEnd;let r=nt.key=Ti(e,t,n);return n===r?-1:(r=nt.keyEnd=function tx(e,t,n){let r;for(;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=$D(e,r,n),r=nt.value=Ti(e,r,n),r=nt.valueEnd=function nx(e,t,n){let r=-1,o=-1,i=-1,s=t,a=s;for(;s32&&(a=s),i=o,o=r,r=-33&c}return a}(e,r,n),$D(e,r,n))}function UD(e){nt.key=0,nt.keyEnd=0,nt.value=0,nt.valueEnd=0,nt.textEnd=e.length}function Ti(e,t,n){for(;t=0;n=BD(t,n))ZD(e,HD(t),Q1(t))}function mo(e){Cn(lx,jn,e,!0)}function jn(e,t){for(let n=function J1(e){return UD(e),jD(e,Ti(e,0,nt.textEnd))}(t);n>=0;n=jD(t,n))$t(e,HD(t),!0)}function Cn(e,t,n,r){const o=Q(),i=rr(2);o.firstUpdatePass&&WD(o,null,i,r);const s=D();if(n!==Z&&He(s,i,n)){const a=o.data[ut()];if(QD(a,r)&&!zD(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(n=Iu(c,n||"")),lh(o,a,s,n,r)}else!function ux(e,t,n,r,o,i,s,a){o===Z&&(o=oe);let c=0,l=0,u=0=e.expandoStartIndex}function WD(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[ut()],s=zD(e,n);QD(i,r)&&null===t&&!s&&(t=!1),t=function ox(e,t,n,r){const o=function fd(e){const t=j.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=js(n=uh(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=uh(o,e,t,n,r),null===i){let c=function ix(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==go(r))return e[Tr(r)]}(e,t,r);void 0!==c&&Array.isArray(c)&&(c=uh(null,e,t,c[1],r),c=js(c,t.attrs,r),function sx(e,t,n,r){e[Tr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,c))}else i=function ax(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(l=!0)):u=n,o)if(0!==c){const h=Tr(e[a+1]);e[r+1]=Qc(h,a),0!==h&&(e[h+1]=ah(e[h+1],r)),e[a+1]=function z1(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Qc(a,0),0!==a&&(e[a+1]=ah(e[a+1],r)),a=r;else e[r+1]=Qc(c,0),0===a?a=r:e[c+1]=ah(e[c+1],r),c=r;l&&(e[r+1]=sh(e[r+1])),VD(e,u,r,!0),VD(e,u,r,!1),function Y1(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&ko(i,t)>=0&&(n[r+1]=ch(n[r+1]))}(t,u,e,r,i),s=Qc(a,c),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}function uh(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let h=n[o+1];h===Z&&(h=d?oe:void 0);let f=d?Bu(h,r):u===r?h:void 0;if(l&&!Xc(f)&&(f=Bu(c,r)),Xc(f)&&(a=f,s))return a;const p=e[o+1];o=s?Tr(p):go(p)}if(null!==t){let c=i?t.residualClasses:t.residualStyles;null!=c&&(a=Bu(c,r))}return a}function Xc(e){return void 0!==e}function QD(e,t){return!!(e.flags&(t?8:16))}function y(e,t,n,r){const o=D(),i=Q(),s=O+e,a=o[H],c=i.firstCreatePass?function Px(e,t,n,r,o,i){const s=t.consts,c=io(t,e,2,r,tn(s,o));return gf(t,n,c,tn(s,i)),null!==c.attrs&&Bc(c,c.attrs,!1),null!==c.mergedAttrs&&Bc(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,i,o,t,n,r):i.data[s],l=tE(i,o,c,a,t,e);o[s]=l;const u=$a(c);return yn(c,!0),Sv(a,l,c),!function ui(e){return!(32&~e.flags)}(c)&&rs()&&Tc(i,o,l,c),0===function WS(){return j.lFrame.elementDepthCount}()&&yt(l,o),function ZS(){j.lFrame.elementDepthCount++}(),u&&(ff(i,o,c),df(i,c,o)),null!==r&&hf(o,c),y}function m(){let e=me();ld()?function ud(){j.lFrame.isParent=!1}():(e=e.parent,yn(e,!1));const t=e;(function KS(e){return j.skipHydrationRootTNode===e})(t)&&function e0(){j.skipHydrationRootTNode=null}(),function YS(){j.lFrame.elementDepthCount--}();const n=Q();return n.firstCreatePass&&(Za(n,e),ed(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function p0(e){return!!(8&e.flags)}(t)&&lh(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function g0(e){return!!(16&e.flags)}(t)&&lh(n,t,D(),t.stylesWithoutHost,!1),m}function re(e,t,n,r){return y(e,t,n,r),m(),re}let tE=(e,t,n,r,o,i)=>(Pn(!0),bc(r,o,function Bm(){return j.lFrame.currentNamespace}()));function Mt(){return D()}const Si="en-US";let cE=Si;let ME=(e,t,n)=>{};function ce(e,t,n,r){const o=D(),i=Q(),s=me();return vh(i,o,o[H],s,e,t,r),ce}function vh(e,t,n,r,o,i,s){const a=$a(r),l=e.firstCreatePass&&function Bv(e){return e.cleanup??=[]}(e),u=t[Ee],d=function jv(e){return e[Uo]??=[]}(t);let h=!0;if(3&r.type||s){const g=wt(r,t),v=s?s(g):g,E=d.length,_=s?F=>s(ie(F[r.index])):r.index;let S=null;if(!s&&a&&(S=function AP(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;ic?a[c]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,h=!1;else{i=RE(r,t,u,i),ME(g,o,i);const F=n.listen(v,o,i);d.push(i,F),l&&l.push(o,_,E,E+1)}}else i=RE(r,t,u,i);const f=r.outputs;let p;if(h&&null!==f&&(p=f[o])){const g=p.length;if(g)for(let v=0;v-1?qt(e.index,t):t,5);let a=NE(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=NE(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function A(e=1){return function s0(e){return(j.lFrame.contextLView=function Tm(e,t){for(;e>0;)t=t[$o],e--;return t}(e,j.lFrame.contextLView))[Ee]}(e)}function Bn(e,t,n){return vo(e,"",t,"",n),Bn}function vo(e,t,n,r,o){const i=D(),s=vi(i,t,n,r);return s!==Z&&Ht(Q(),Ce(),i,e,s,i[H],o,!1),vo}function ol(e){return Kr(function Nm(){return j.lFrame.contextLView}(),O+e)}function b(e,t=""){const n=D(),r=Q(),o=e+O,i=r.firstCreatePass?io(r,o,1,t,null):r.data[o],s=YE(r,n,i,t,e);n[o]=s,rs()&&Tc(r,n,s,i),yn(i,!1)}let YE=(e,t,n,r,o)=>(Pn(!0),function Xd(e,t){return e.createText(t)}(t[H],r));function Me(e){return sn("",e,""),Me}function sn(e,t,n){const r=D(),o=vi(r,e,t,n);return o!==Z&&ir(r,ut(),o),sn}function zs(e,t,n,r,o){const i=D(),s=_i(i,e,t,n,r,o);return s!==Z&&ir(i,ut(),s),zs}function wn(e,t,n){$_(t)&&(t=t());const r=D();return He(r,vn(),t)&&Ht(Q(),Ce(),r,e,t,r[H],n,!1),wn}function Un(e,t){const n=$_(e);return n&&e.set(t),n}function bn(e,t){const n=D(),r=Q(),o=me();return vh(r,n,n[H],o,e,t),bn}function Dh(e,t,n,r,o){if(e=V(e),Array.isArray(e))for(let i=0;i>20;if(Wr(e)||!e.multi){const f=new os(l,o,I),p=Ch(c,t,o?u:u+h,d);-1===p?(Cd(Ja(a,s),i,c),Eh(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{const f=Ch(c,t,u+h,d),p=Ch(c,t,u,u+h),v=p>=0&&n[p];if(o&&!v||!o&&!(f>=0&&n[f])){Cd(Ja(a,s),i,c);const E=function rF(e,t,n,r,o){const i=new os(e,n,I);return i.multi=[],i.index=t,i.componentProviders=0,iC(i,o,r&&!n),i}(o?nF:tF,n.length,o,r,l);!o&&v&&(n[p].providerFactory=E),Eh(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(E),s.push(E)}else Eh(i,e,f>-1?f:p,iC(n[o?p:f],l,!o&&r));!o&&r&&v&&n[p].componentProviders++}}}function Eh(e,t,n,r){const o=Wr(t),i=function DS(e){return!!e.useClass}(t);if(o||i){const c=(i?V(t.useClass):t).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const u=l.indexOf(n);-1===u?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function iC(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ch(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function eF(e,t,n){const r=Q();if(r.firstCreatePass){const o=mn(e);Dh(n,r.data,r.blueprint,o,!0),Dh(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}let oF=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Gu(0,n.type),o=r.length>0?function iD(e,t,n=null){return new oD({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=U({token:e,providedIn:"environment",factory:()=>new e($(Xt))})}return e})();function Ai(e){It("NgStandalone"),e.getStandaloneInjector=t=>t.get(oF).getOrCreateStandaloneInjector(e)}function al(e,t,n){const r=bt()+e,o=D();return o[r]===Z?Hn(o,r,n?t.call(n):t()):function Fs(e,t){return e[t]}(o,r)}function cC(e,t,n,r,o,i){const s=t+n;return He(e,s,o)?Hn(e,s+1,i?r.call(i,o):r(o)):function Ws(e,t){const n=e[t];return n===Z?void 0:n}(e,s+1)}function bh(e,t){const n=Q();let r;const o=e+O;n.firstCreatePass?(r=function yF(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Gr(r.type)),a=Pt(I);try{const c=Qa(!1),l=i();return Qa(c),function _h(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,D(),o,l),l}finally{Pt(a)}}function Ih(e,t,n){const r=e+O,o=D(),i=Kr(o,r);return function Zs(e,t){return e[T].data[t].pure}(o,r)?cC(o,bt(),t,i.transform,n,i):i.transform(n)}const OC=new R(""),dl=new R("");let xh,Rh=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,xh||(function mk(e){xh=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{pe.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static#e=this.\u0275fac=function(r){return new(r||e)($(pe),$(Oh),$(dl))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})(),Oh=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return xh?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function fl(e){return!!e&&"function"==typeof e.then}function xC(e){return!!e&&"function"==typeof e.subscribe}const yk=new R("");let Ph=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=N(yk,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(fl(i))n.push(i);else if(xC(i)){const s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Fh=new R("");let $n=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=N(U0),this.afterRenderEffectManager=N(Hc),this.zonelessEnabled=N(Ns),this.externalTestViews=new Set,this.beforeRender=new Et,this.afterTick=new Et,this.componentTypes=[],this.components=[],this.isStable=N(Er).hasPendingTasks.pipe(gr(n=>!n)),this._injector=N(Xt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof __;if(!this._injector.get(Ph).done)throw!o&&function zr(e){const t=J(e)||Je(e)||ct(e);return null!==t&&t.standalone}(n),new w(405,!1);let s;s=o?n:this._injector.get(Vc).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function vk(e){return e.isBoundToModule}(s)?void 0:this._injector.get(fo),l=s.create(tt.NULL,[],r||s.selector,a),u=l.location.nativeElement,d=l.injector.get(OC,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),hl(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new w(101,!1);const r=q(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,q(r),this.afterTick.next()}}detectChangesInAttachedViews(n){let r=null;this._injector.destroyed||(r=this._injector.get(xf,null,{optional:!0}));let o=0;const i=this.afterRenderEffectManager;for(;o<10;){const s=0===o;if(n||!s){this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:c}of this._views)Dk(a,c,s,this.zonelessEnabled)}else r?.begin?.(),r?.end?.();if(o++,i.executeInternalCallbacks(),!this.allViews.some(({_lView:a})=>ts(a))&&(i.execute(),!this.allViews.some(({_lView:a})=>ts(a))))break}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;hl(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Fh,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>hl(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Dk(e,t,n,r){(n||ts(e))&&Rc(e,t,n&&!r?0:1)}let bk=(()=>{class e{constructor(){this.zone=N(pe),this.changeDetectionScheduler=N(ai),this.applicationRef=N($n)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function kh({ngZoneFactory:e,ignoreChangesOutsideZone:t}){return e??=()=>new pe(function Lh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}()),[{provide:pe,useFactory:e},{provide:Nn,multi:!0,useFactory:()=>{const n=N(bk,{optional:!0});return()=>n.initialize()}},{provide:Nn,multi:!0,useFactory:()=>{const n=N(Tk);return()=>{n.initialize()}}},!0===t?{provide:v_,useValue:!0}:[]]}let Tk=(()=>{class e{constructor(){this.subscription=new Jt,this.initialized=!1,this.zone=N(pe),this.pendingTasks=N(Er)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{pe.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{pe.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Qs=(()=>{class e{constructor(){this.appRef=N($n),this.taskService=N(Er),this.ngZone=N(pe),this.zonelessEnabled=N(Ns),this.disableScheduling=N(v_,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Jt,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Sd||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&5===n)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:this.shouldRefreshViews=!0}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?uy:ly;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&pe.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;const r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(r),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,uy(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ar=new R("",{providedIn:"root",factory:()=>N(ar,te.Optional|te.SkipSelf)||function Mk(){return typeof $localize<"u"&&$localize.locale||Si}()}),Hh=new R("");let Mr=null;let Bh=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=xk}return e})();function xk(e){return function Pk(e,t,n){if(Yr(e)&&!n){const r=qt(e.index,t);return new Cs(r,r)}return 175&e.type?new Cs(t[xe],t):null}(me(),D(),!(16&~e))}class YC{constructor(){}supports(t){return qc(t)}create(t){return new Hk(t)}}const Vk=(e,t)=>t;class Hk{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Vk}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new jk(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new KC),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new KC),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class jk{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Bk{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class KC{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new Bk,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function QC(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new $k(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class $k{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function XC(){return new zh([new YC])}let zh=(()=>{class e{static#e=this.\u0275prov=U({token:e,providedIn:"root",factory:XC});constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||XC()),deps:[[e,new Hu,new Vu]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new w(901,!1)}}return e})();function ew(){return new yl([new JC])}let yl=(()=>{class e{static#e=this.\u0275prov=U({token:e,providedIn:"root",factory:ew});constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||ew()),deps:[[e,new Hu,new Vu]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new w(901,!1)}}return e})(),zk=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)($($n))};static#t=this.\u0275mod=Vo({type:e});static#n=this.\u0275inj=qr({})}return e})();function aL(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e,o=function Ok(e=[]){if(Mr)return Mr;const t=function $C(e=[],t){return tt.create({name:t,providers:[{provide:Zu,useValue:"platform"},{provide:Hh,useValue:new Set([()=>Mr=null])},...e]})}(e);return Mr=t,function PC(){!function Qt(e){K=e}(()=>{throw new w(600,!1)})}(),function qC(e){e.get(Fy,null)?.forEach(n=>n())}(t),t}(r),i=[kh({}),{provide:ai,useExisting:Qs},...n||[]],a=new oD({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(pe);return c.run(()=>{a.resolveInjectorInitializers();const l=a.get(_n,null);let u;c.runOutsideAngular(()=>{u=c.onError.subscribe({next:f=>{l.handleError(f)}})});const d=()=>a.destroy(),h=o.get(Hh);return h.add(d),a.onDestroy(()=>{u.unsubscribe(),h.delete(d)}),function FC(e,t,n){try{const r=n();return fl(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(l,c,()=>{const f=a.get(Ph);return f.runInitializers(),f.donePromise.then(()=>{!function lE(e){"string"==typeof e&&(cE=e.toLowerCase().replace(/_/g,"-"))}(a.get(ar,Si)||Si);const g=a.get($n);return void 0!==t&&g.bootstrap(t),g})})})}catch(t){return Promise.reject(t)}}const yw=new R("");function ta(e,t){It("NgSignals");const n=function Sn(e){const t=Object.create(Ye);t.computation=e;const n=()=>{if(ot(t),Ue(t),t.value===G)throw t.error;return t.value};return n[Yt]=t,n}(e);return t?.equal&&(n[Yt].equal=t.equal),n}function qn(e){const t=q(null);try{return e()}finally{q(t)}}let Mw=null;function na(){return Mw}class kL{}const Gn=new R("");function kw(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}class b2{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let oa=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new b2(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),Hw(a,o)}});for(let o=0,i=r.length;o{Hw(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(I(Vn),I(sr),I(zh))};static#t=this.\u0275dir=W({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function Hw(e,t){e.context.$implicit=t.item}let xi=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new I2,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){jw("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){jw("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(I(Vn),I(sr))};static#t=this.\u0275dir=W({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class I2{constructor(){this.$implicit=null,this.ngIf=null}}function jw(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Qe(t)}'.`)}let lp=(()=>{class e{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=Uw}transform(n,r=Uw){if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ??=this.differs.find(n).create();const o=this.differ.diff(n),i=r!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(s=>{this.keyValues.push(function G2(e,t){return{key:e,value:t}}(s.key,s.currentValue))})),(o||i)&&(this.keyValues.sort(r),this.compareFn=r),this.keyValues}static#e=this.\u0275fac=function(r){return new(r||e)(I(yl,16))};static#t=this.\u0275pipe=kt({name:"keyvalue",type:e,pure:!1,standalone:!0})}return e})();function Uw(e,t){const n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Vo({type:e});static#n=this.\u0275inj=qr({})}return e})();function qw(e){return"server"===e}class Gw{}function tb(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(l){return void n(l)}a.done?t(c):Promise.resolve(c).then(r,o)}function gp(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(c){tb(i,r,o,s,a,"next",c)}function a(c){tb(i,r,o,s,a,"throw",c)}s(void 0)})}}function mp(e){return e[e.length-1]}function Sr(e){return this instanceof Sr?(this.v=e,this):new Sr(e)}function ib(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Dp(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){!function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}(a,c,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const sb=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function ab(e){return Le(e?.then)}function cb(e){return Le(e[mu])}function lb(e){return Symbol.asyncIterator&&Le(e?.[Symbol.asyncIterator])}function ub(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const db=function YV(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function fb(e){return Le(e?.[db])}function hb(e){return function ob(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},a("next"),a("throw"),a("return",function s(f){return function(p){return Promise.resolve(p).then(f,d)}}),o[Symbol.asyncIterator]=function(){return this},o;function a(f,p){r[f]&&(o[f]=function(g){return new Promise(function(v,E){i.push([f,g,v,E])>1||c(f,g)})},p&&(o[f]=p(o[f])))}function c(f,p){try{!function l(f){f.value instanceof Sr?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}(r[f](p))}catch(g){h(i[0][3],g)}}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,p){f(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield Sr(n.read());if(o)return yield Sr(void 0);yield yield Sr(r)}}finally{n.releaseLock()}})}function pb(e){return Le(e?.getReader)}function Do(e){if(e instanceof xt)return e;if(null!=e){if(cb(e))return function KV(e){return new xt(t=>{const n=e[mu]();if(Le(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(sb(e))return function QV(e){return new xt(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ug)})}(e);if(lb(e))return gb(e);if(fb(e))return function XV(e){return new xt(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(pb(e))return function eH(e){return gb(hb(e))}(e)}throw ub(e)}function gb(e){return new xt(t=>{(function tH(e,t){var n,r,o,i;return function nb(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=ib(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Ar(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function mb(e,t=0){return Ur((n,r)=>{n.subscribe(pr(r,o=>Ar(r,e,()=>r.next(o),t),()=>Ar(r,e,()=>r.complete(),t),o=>Ar(r,e,()=>r.error(o),t)))})}function yb(e,t=0){return Ur((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function vb(e,t){if(!e)throw new Error("Iterable cannot be null");return new xt(n=>{Ar(n,t,()=>{const r=e[Symbol.asyncIterator]();Ar(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ep(e,t){return t?function aH(e,t){if(null!=e){if(cb(e))return function nH(e,t){return Do(e).pipe(yb(t),mb(t))}(e,t);if(sb(e))return function oH(e,t){return new xt(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(ab(e))return function rH(e,t){return Do(e).pipe(yb(t),mb(t))}(e,t);if(lb(e))return vb(e,t);if(fb(e))return function iH(e,t){return new xt(n=>{let r;return Ar(n,t,()=>{r=e[db](),Ar(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>Le(r?.return)&&r.return()})}(e,t);if(pb(e))return function sH(e,t){return vb(hb(e),t)}(e,t)}throw ub(e)}(e,t):Do(e)}function _b(...e){return Ep(e,function MV(e){return function IV(e){return e&&Le(e.schedule)}(mp(e))?e.pop():void 0}(e))}function Cp(e,t,n=1/0){return Le(t)?Cp((r,o)=>gr((i,s)=>t(r,i,o,s))(Do(e(r,o))),n):("number"==typeof t&&(n=t),Ur((r,o)=>function cH(e,t,n,r,o,i,s,a){const c=[];let l=0,u=0,d=!1;const h=()=>{d&&!c.length&&!l&&t.complete()},f=g=>l{i&&t.next(g),l++;let v=!1;Do(n(g,u++)).subscribe(pr(t,E=>{o?.(E),i?f(E):t.next(E)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&lp(E)):p(E)}h()}catch(E){t.error(E)}}))};return e.subscribe(pr(t,f,()=>{d=!0,h()})),()=>{a?.()}}(r,o,e,n)))}function Db(e){return Ur((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}class Vl{}class Hl{}class dt{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?"string"==typeof t?this.lazyInit=()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof dt?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(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new dt;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof dt?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}setHeaderEntries(t,n){const r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class fH{encodeKey(t){return Eb(t)}encodeValue(t){return Eb(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const pH=/%(\d[a-f0-9])/gi,gH={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Eb(e){return encodeURIComponent(e).replace(pH,(t,n)=>gH[n]??t)}function jl(e){return`${e}`}class Nr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new fH,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function hH(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(jl):[jl(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new Nr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(jl(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(jl(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class mH{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),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 Cb(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function wb(e){return typeof Blob<"u"&&e instanceof Blob}function bb(e){return typeof FormData<"u"&&e instanceof FormData}class aa{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function yH(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new dt,this.context??=new mH,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ah.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),u)),new aa(n,r,s,{params:u,headers:l,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}}var Rr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Rr||{});class wp{constructor(t,n=200,r="OK"){this.headers=t.headers||new dt,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Bl extends wp{constructor(t={}){super(t),this.type=Rr.ResponseHeader}clone(t={}){return new Bl({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Eo extends wp{constructor(t={}){super(t),this.type=Rr.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Eo({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Fi extends wp{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function bp(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Tb=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof aa)i=n;else{let c,l;c=o.headers instanceof dt?o.headers:new dt(o.headers),o.params&&(l=o.params instanceof Nr?o.params:new Nr({fromObject:o.params})),i=new aa(n,r,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const s=_b(i).pipe(function lH(e,t){return Le(t)?Cp(e,t,1):Cp(e,1)}(c=>this.handler.handle(c)));if(n instanceof aa||"events"===o.observe)return s;const a=s.pipe(function uH(e,t){return Ur((n,r)=>{let o=0;n.subscribe(pr(r,i=>e.call(t,i,o++)&&r.next(i)))})}(c=>c instanceof Eo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(gr(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(gr(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(gr(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(gr(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new Nr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,bp(o,r))}post(n,r,o={}){return this.request("POST",n,bp(o,r))}put(n,r,o={}){return this.request("PUT",n,bp(o,r))}static#e=this.\u0275fac=function(r){return new(r||e)($(Vl))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();const EH=/^\)\]\}',?\n/;function Mb(e){if(e.url)return e.url;const t="X-Request-URL".toLocaleLowerCase();return e.headers.get(t)}let Ip=(()=>{class e{constructor(){this.fetchImpl=N(wH,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=N(pe)}handle(n){return new xt(r=>{const o=new AbortController;return this.doRequest(n,o.signal,r).then(Tp,i=>r.error(new Fi({error:i}))),()=>o.abort()})}doRequest(n,r,o){var i=this;return gp(function*(){const s=i.createRequestInit(n);let a;try{const p=i.ngZone.runOutsideAngular(()=>i.fetchImpl(n.urlWithParams,{signal:r,...s}));(function bH(e){e.then(Tp,Tp)})(p),o.next({type:Rr.Sent}),a=yield p}catch(p){return void o.error(new Fi({error:p,status:p.status??0,statusText:p.statusText,url:n.urlWithParams,headers:p.headers}))}const c=new dt(a.headers),l=a.statusText,u=Mb(a)??n.urlWithParams;let d=a.status,h=null;if(n.reportProgress&&o.next(new Bl({headers:c,status:d,statusText:l,url:u})),a.body){const p=a.headers.get("content-length"),g=[],v=a.body.getReader();let _,S,E=0;const F=typeof Zone<"u"&&Zone.current;yield i.ngZone.runOutsideAngular(gp(function*(){for(;;){const{done:fe,value:at}=yield v.read();if(fe)break;if(g.push(at),E+=at.length,n.reportProgress){S="text"===n.responseType?(S??"")+(_??=new TextDecoder).decode(at,{stream:!0}):void 0;const ur=()=>o.next({type:Rr.DownloadProgress,total:p?+p:void 0,loaded:E,partialText:S});F?F.run(ur):ur()}}}));const X=i.concatChunks(g,E);try{const fe=a.headers.get("Content-Type")??"";h=i.parseBody(n,X,fe)}catch(fe){return void o.error(new Fi({error:fe,headers:new dt(a.headers),status:a.status,statusText:a.statusText,url:Mb(a)??n.urlWithParams}))}}0===d&&(d=h?200:0),d>=200&&d<300?(o.next(new Eo({body:h,headers:c,status:d,statusText:l,url:u})),o.complete()):o.error(new Fi({error:h,headers:c,status:d,statusText:l,url:u}))})()}parseBody(n,r,o){switch(n.responseType){case"json":const i=(new TextDecoder).decode(r).replace(EH,"");return""===i?null:JSON.parse(i);case"text":return(new TextDecoder).decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){const r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){const i=n.detectContentTypeHeader();null!==i&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){const o=new Uint8Array(r);let i=0;for(const s of n)o.set(s,i),i+=s.length;return o}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();class wH{}function Tp(){}function Sb(e,t){return t(e)}function IH(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const MH=new R(""),ca=new R(""),Ab=new R(""),Nb=new R("",{providedIn:"root",factory:()=>!0});function SH(){let e=null;return(t,n)=>{null===e&&(e=(N(MH,{optional:!0})??[]).reduceRight(IH,Sb));const r=N(Er);if(N(Nb)){const i=r.add();return e(t,n).pipe(Db(()=>r.remove(i)))}return e(t,n)}}let Rb=(()=>{class e extends Vl{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=N(Er),this.contributeToStability=N(Nb)}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(ca),...this.injector.get(Ab,[])]));this.chain=r.reduceRight((o,i)=>function TH(e,t,n){return(r,o)=>function um(e,t){e instanceof Ho&&e.assertNotDestroyed();const r=vr(e),o=Pt(void 0);try{return t()}finally{vr(r),Pt(o)}}(n,()=>t(r,i=>e(i,o)))}(o,i,this.injector),Sb)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Db(()=>this.pendingTasks.remove(r)))}return this.chain(n,r=>this.backend.handle(r))}static#e=this.\u0275fac=function(r){return new(r||e)($(Hl),$(Xt))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();const xH=/^\)\]\}',?\n/;let xb=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new w(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Ep(r.\u0275loadImpl()):_b(null)).pipe(function dH(e,t){return Ur((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(pr(r,c=>{o?.unsubscribe();let l=0;const u=i++;Do(e(c,u)).subscribe(o=pr(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}(()=>new xt(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,v)=>s.setRequestHeader(g,v.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=n.serializeBody();let c=null;const l=()=>{if(null!==c)return c;const g=s.statusText||"OK",v=new dt(s.getAllResponseHeaders()),E=function PH(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return c=new Bl({headers:v,status:s.status,statusText:g,url:E}),c},u=()=>{let{headers:g,status:v,statusText:E,url:_}=l(),S=null;204!==v&&(S=typeof s.response>"u"?s.responseText:s.response),0===v&&(v=S?200:0);let F=v>=200&&v<300;if("json"===n.responseType&&"string"==typeof S){const X=S;S=S.replace(xH,"");try{S=""!==S?JSON.parse(S):null}catch(fe){S=X,F&&(F=!1,S={error:fe,text:S})}}F?(i.next(new Eo({body:S,headers:g,status:v,statusText:E,url:_||void 0})),i.complete()):i.error(new Fi({error:S,headers:g,status:v,statusText:E,url:_||void 0}))},d=g=>{const{url:v}=l(),E=new Fi({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});i.error(E)};let h=!1;const f=g=>{h||(i.next(l()),h=!0);let v={type:Rr.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),"text"===n.responseType&&s.responseText&&(v.partialText=s.responseText),i.next(v)},p=g=>{let v={type:Rr.UploadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),i.next(v)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),null!==a&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),i.next({type:Rr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)($(Gw))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();const Mp=new R(""),Pb=new R("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Fb=new R("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class kb{}let LH=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=kw(n,this.cookieName),this.lastCookieString=n),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)($(Gn),$(to),$(Pb))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();function VH(e,t){const n=e.url.toLowerCase();if(!N(Mp)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=N(kb).getToken(),o=N(Fb);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Or=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Or||{});const Lb=new R("");var xr=Lr(784);class ki{constructor(t,n){this.key=t,this.value=n}}let $l=(()=>{class e{constructor(){this.uriSubject=new Et,this._uriObservable=this.uriSubject.asObservable(),this.themeSubject=new Et,this._themeObservable=this.themeSubject.asObservable(),this.layoutSubject=new Et,this._layoutObservable=this.layoutSubject.asObservable(),this.httpOptionsSubject=new Et,this._httpOptionsObservable=this.httpOptionsSubject.asObservable(),this.allHttpMethodsForLinksSubject=new Et,this._allHttpMethodsForLinksObservable=this.allHttpMethodsForLinksSubject.asObservable(),this.requestHeadersSubject=new Et,this._requestHeadersObservable=this.requestHeadersSubject.asObservable(),this.reactOnLocationHashChange=!0,this.handleLocationHash(),window.addEventListener("hashchange",()=>this.handleLocationHash(),!1)}get uriObservable(){return this._uriObservable}get themeObservable(){return this._themeObservable}get layoutObservable(){return this._layoutObservable}get httpOptionsObservable(){return this._httpOptionsObservable}get allHttpMethodsForLinksObservable(){return this._allHttpMethodsForLinksObservable}get requestHeadersObservable(){return this._requestHeadersObservable}getUri(){return this.uriParam}setUri(n,r=!0){this.reactOnLocationHashChange=r,this.uriParamBackup=this.uriParam,this.uriParam=n,this.setLocationHash()}getTheme(){return this.themeParam}setTheme(n){this.themeParamBackup=this.themeParam,this.themeParam=n,this.setLocationHash()}getLayout(){return this.layoutParam}setLayout(n){"2"===n||"3"===n?(this.layoutParamBackup=this.layoutParam,this.layoutParam=n,this.setLocationHash()):console.error("Cannot set unknown layout: "+n)}getHttpOptions(){return this.httpOptionsParam}setHttpOptions(n){this.httpOptionsParamBackup=this.httpOptionsParam,this.httpOptionsParam=n,this.setLocationHash()}getAllHttpMethodsForLinks(){return this.allHttpMethodsForLinksParam}setAllHttpMethodsForLinks(n){this.allHttpMethodsForLinksParamBackup=this.allHttpMethodsForLinksParam,this.allHttpMethodsForLinksParam=n,this.setLocationHash()}getCustomRequestHeaders(){return this.customRequestHeaders}setCustomRequestHeaders(n){this.customRequestHeaders=n,this.setLocationHash()}handleLocationHash(){if(!this.reactOnLocationHashChange)return void(this.reactOnLocationHashChange=!0);this.uriParam||(this.uriParam=""),this.themeParam||(this.themeParam="Default"),this.layoutParam||(this.layoutParam="2"),this.httpOptionsParam||(this.httpOptionsParam=!1),this.allHttpMethodsForLinksParam||(this.allHttpMethodsForLinksParam=!1);const n=new Array(5),r=location.hash.substring(1),o=/([^&=]+)=([^&]*)/g;let i=o.exec(r);for(;i;){const a=decodeURIComponent(i[1]);if("theme"===a)this.themeParam=decodeURIComponent(i[2]),i=o.exec(r);else if("layout"===a)this.layoutParam=decodeURIComponent(i[2]),i=o.exec(r);else if("httpOptions"===a){const c=decodeURIComponent(i[2]);this.httpOptionsParam="true"===c,i=o.exec(r)}else if("allHttpMethodsForLinks"===a){const c=decodeURIComponent(i[2]);this.allHttpMethodsForLinksParam="true"===c,i=o.exec(r)}else if(a.startsWith("hkey")){const c=decodeURIComponent(i[2]),l=Number(a.substring(4)),u=n[l];u?u.key=c:n[l]=new ki(c,void 0),i=o.exec(r)}else if(a.startsWith("hval")){const c=decodeURIComponent(i[2]),l=Number(a.substring(4)),u=n[l];u?u.value=c:n[l]=new ki(void 0,c),i=o.exec(r)}else"url"===a?(this.uriParam=r.substring(r.indexOf("url=")+4),i=null):"uri"===a?(this.uriParam=r.substring(r.indexOf("uri=")+4),i=null):i=o.exec(r)}this.uriParamBackup!==this.uriParam&&this.uriSubject.next(this.uriParam),this.themeParamBackup!==this.themeParam&&this.themeSubject.next(this.themeParam),this.layoutParamBackup!==this.layoutParam&&this.layoutSubject.next(this.layoutParam),this.httpOptionsParamBackup!==this.httpOptionsParam&&(this.httpOptionsSubject.next(this.httpOptionsParam),this.uriSubject.next(this.uriParam)),this.allHttpMethodsForLinksParamBackup!==this.allHttpMethodsForLinksParam&&this.allHttpMethodsForLinksSubject.next(this.allHttpMethodsForLinksParam),this.customRequestHeaders=[];let s=!1;for(let a=0;a<5;a++)n[a]&&n[a].key&&n[a].value&&(this.customRequestHeaders.push(n[a]),s=!0);s&&this.requestHeadersSubject.next(this.customRequestHeaders)}setLocationHash(){let n="",r="";"default"!==this.themeParam.toLowerCase()&&(n+=r+"theme="+this.themeParam,r="&"),"2"!==this.layoutParam&&(n+=r+"layout="+this.layoutParam,r="&"),0!=this.httpOptionsParam&&(n+=r+"httpOptions="+this.httpOptionsParam,r="&"),0!=this.allHttpMethodsForLinksParam&&(n+=r+"allHttpMethodsForLinks="+this.allHttpMethodsForLinksParam,r="&");for(let o=0;o{class e{constructor(n,r){this.appService=n,this.http=r,this.responseSubject=new Et,this.responseObservable=this.responseSubject.asObservable(),this.needInfoSubject=new Et,this.needInfoObservable=this.needInfoSubject.asObservable(),this.documentationSubject=new Et,this.documentationObservable=this.documentationSubject.asObservable(),this.requestHeaders=new dt({Accept:"application/prs.hal-forms+json, application/hal+json, application/json, */*"})}getResponseObservable(){return this.responseObservable}getNeedInfoObservable(){return this.needInfoObservable}getDocumentationObservable(){return this.documentationObservable}getUri(n){!n||0===n.trim().length||this.processCommand(Ae.Get,n)}requestUri(n,r,o,i){let s=this.requestHeaders;i||"post"===r.toLowerCase()||"put"===r.toLowerCase()||"patch"===r.toLowerCase()?s=s.set("Content-Type",i||"application/json; charset=utf-8"):this.appService.setUri(n,!1),this.http.request(r,n,{headers:s,observe:"response",body:o}).subscribe({next:a=>{this.responseSubject.next(new zb(a,null))},error:a=>{this.responseSubject.next(new zb(null,a))}})}processCommand(n,r,o){if(n!==Ae.Get||this.isUriTemplated(r)||o){if(n===Ae.Get||n===Ae.Post||n===Ae.Put||n===Ae.Patch){const i=new Gb(ql.FillHttpRequest,n,r);return void(o||n===Ae.Get?(i.halFormsTemplate=o,this.needInfoSubject.next(i)):this.getJsonSchema(i))}n===Ae.Delete?(this.isUriTemplated(r)&&(r=xr(r).fill({})),this.requestUri(r,"DELETE")):n===Ae.Document&&this.documentationSubject.next(r)}else this.requestUri(r,"GET")}getJsonSchema(n){let r=n.uri;this.isUriTemplated(r)&&(r=xr(r).fill({})),this.http.request("HEAD",r,{headers:this.requestHeaders,observe:"response"}).subscribe({next:o=>{let i=!1;const s=o.headers.get("link");if(s){let c;if(s.split(",").forEach(l=>{const u=l.split(";"),h=u[0].slice(1,u[0].length-1),p=u[1].split("=")[1];"profile"===p.slice(1,p.length-1).toLowerCase()&&(c=h)}),c){i=!0;let l=new dt({Accept:"application/schema+json"});if(this.customRequestHeaders)for(const u of this.customRequestHeaders)l=l.append(u.key,u.value);this.http.get(c,{headers:l,observe:"response"}).subscribe({next:u=>{const d=u.body;Object.keys(d.properties).forEach(h=>{d.properties[h].hasOwnProperty("readOnly")&&!0===d.properties[h].readOnly&&delete d.properties[h]}),n.jsonSchema=d,this.needInfoSubject.next(n)},error:()=>{console.warn("Cannot get JSON schema for: ",c),this.needInfoSubject.next(n)}})}}i||this.needInfoSubject.next(n)},error:()=>{console.warn("Cannot get JSON schema information for: ",r),this.needInfoSubject.next(n)}})}setCustomHeaders(n){this.customRequestHeaders=n,this.requestHeaders=new dt;let r=!0;for(const o of n)"accept"===o.key.toLowerCase()&&(r=!1),this.requestHeaders=this.requestHeaders.append(o.key,o.value);!0===r&&(this.requestHeaders=this.requestHeaders.append("Accept","application/prs.hal-forms+json, application/hal+json, application/json, */*"))}getInputType(n,r){switch(n.toLowerCase()){case"integer":return"number";case"string":return r&&"uri"===r.toLowerCase()?"url":"text";default:return"text"}}isUriTemplated(n){return xr(n).varNames.length>0}computeHalFormsOptionsFromLink(n){if(!(n.options&&n.options.link&&n.options.link.href))return;let r=(new dt).set("Accept","application/json");if(n.options.link.type&&(r=r.set("Accept",n.options.link.type)),this.isUriTemplated(n.options.link.href)){const o=xr(n.options.link.href);n.options.link.href=o.fill({})}this.http.get(n.options.link.href,{headers:r,observe:"response"}).subscribe(o=>{n.options.inline=o.body;const i=o.headers.get("content-type");i&&(i.startsWith("application/prs.hal-forms+json")||i.startsWith("application/hal+json"))&&o.body._embedded&&(n.options.inline=o.body._embedded[Object.keys(o.body._embedded)[0]])})}getHttpOptions(n){let r=n.href;this.isUriTemplated(r)&&(r=xr(r).fill({}));let o=(new dt).set("Accept","*/*");this.http.options(r,{headers:o,observe:"response"}).subscribe({next:i=>{n.options=i.headers.get("allow")},error:()=>{console.warn("Cannot get OPTIONS for: ",n),n.options="http-options-error"}})}static#e=this.\u0275fac=function(r){return new(r||e)($($l),$(Tb))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class KH extends kL{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Sp extends KH{static makeCurrent(){!function FL(e){Mw??=e}(new Sp)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function QH(){return ua=ua||document.querySelector("base"),ua?ua.getAttribute("href"):null}();return null==n?null:function JH(e){return new URL(e,document.baseURI).pathname}(n)}resetBaseElement(){ua=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return kw(document.cookie,t)}}let ua=null,ej=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();const Gl=new R("");let Wb=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new w(5101,!1);return this._eventNameToPlugin.set(n,r),r}static#e=this.\u0275fac=function(r){return new(r||e)($(Gl),$(pe))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();class Ap{constructor(t){this._doc=t}}const Np="ng-app-id";let Zb=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=qw(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Np}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(Np),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Np,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)($(Gn),$(Jo),$(ky,8),$(to))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();const Rp={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"},Op=/%COMP%/g,oj=new R("",{providedIn:"root",factory:()=>!0});function Kb(e,t){return t.map(n=>n.replace(Op,e))}let Qb=(()=>{class e{constructor(n,r,o,i,s,a,c,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=qw(a),this.defaultRenderer=new xp(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===hn.ShadowDom&&(r={...r,encapsulation:hn.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof Xb?o.applyToHost(n):o instanceof Pp&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case hn.Emulated:i=new Xb(c,l,r,this.appId,u,s,a,d);break;case hn.ShadowDom:return new cj(c,l,n,r,s,a,this.nonce,d);default:i=new Pp(c,l,r,u,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)($(Wb),$(Zb),$(Jo),$(oj),$(Gn),$(to),$(pe),$(ky))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();class xp{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Rp[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Jb(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Jb(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new w(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=Rp[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Rp[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(wr.DashCase|wr.Important)?t.style.setProperty(n,r,o&wr.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&wr.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){null!=t&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=na().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function Jb(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class cj extends xp{constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=Kb(o.id,o.styles);for(const u of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Pp extends xp{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?Kb(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Xb extends Pp{constructor(t,n,r,o,i,s,a,c){const l=o+"-"+r.id;super(t,n,r,i,s,a,c,l),this.contentAttr=function ij(e){return"_ngcontent-%COMP%".replace(Op,e)}(l),this.hostAttr=function sj(e){return"_nghost-%COMP%".replace(Op,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let lj=(()=>{class e extends Ap{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static#e=this.\u0275fac=function(r){return new(r||e)($(Gn))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})(),uj=(()=>{class e extends Ap{constructor(n){super(n),this.delegate=N(yw,{optional:!0})}supports(n){return!!this.delegate&&this.delegate.supports(n)}addEventListener(n,r,o){return this.delegate.addEventListener(n,r,o)}removeEventListener(n,r,o){return this.delegate.removeEventListener(n,r,o)}static#e=this.\u0275fac=function(r){return new(r||e)($(Gn))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();const eI=["alt","control","meta","shift"],dj={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},fj={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let hj=(()=>{class e extends Ap{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>na().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),eI.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=dj[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),eI.forEach(s=>{s!==o&&(0,fj[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}static#e=this.\u0275fac=function(r){return new(r||e)($(Gn))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();function tI(e){return{appProviders:[...rI,...e?.providers??[]],platformProviders:vj}}const vj=[{provide:to,useValue:"browser"},{provide:Fy,useValue:function gj(){Sp.makeCurrent()},multi:!0},{provide:Gn,useFactory:function yj(){return function dA(e){Od=e}(document),document},deps:[]}],_j=new R(""),nI=[{provide:dl,useClass:class XH{addToWindow(t){Te.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new w(5103,!1);return i},Te.getAllAngularTestabilities=()=>t.getAllTestabilities(),Te.getAllAngularRootElements=()=>t.getAllRootElements(),Te.frameworkStabilizers||(Te.frameworkStabilizers=[]),Te.frameworkStabilizers.push(r=>{const o=Te.getAllAngularTestabilities();let i=o.length;const s=function(){i--,0==i&&r()};o.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?na().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:OC,useClass:Rh,deps:[pe,Oh,dl]},{provide:Rh,useClass:Rh,deps:[pe,Oh,dl]}],rI=[{provide:Zu,useValue:"root"},{provide:_n,useFactory:function mj(){return new _n},deps:[]},{provide:Gl,useClass:lj,multi:!0,deps:[Gn,pe,to]},{provide:Gl,useClass:hj,multi:!0,deps:[Gn]},{provide:Gl,useClass:uj,multi:!0},Qb,Zb,Wb,{provide:xf,useExisting:Qb},{provide:Gw,useClass:ej,deps:[]},[]];let Dj=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Jo,useValue:n.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)($(_j,12))};static#t=this.\u0275mod=Vo({type:e});static#n=this.\u0275inj=qr({providers:[...rI,...nI],imports:[Y2,zk]})}return e})(),Fp=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:function(r){let o=null;return o=r?new(r||e):$(bj),o},providedIn:"root"})}return e})(),bj=(()=>{class e extends Fp{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case nn.NONE:return r;case nn.HTML:return kn(r,"HTML")?Gt(r):iv(this._doc,String(r)).toString();case nn.STYLE:return kn(r,"Style")?Gt(r):r;case nn.SCRIPT:if(kn(r,"Script"))return Gt(r);throw new w(5200,!1);case nn.URL:return kn(r,"URL")?Gt(r):yc(String(r));case nn.RESOURCE_URL:if(kn(r,"ResourceURL"))return Gt(r);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(n){return function OA(e){return new TA(e)}(n)}bypassSecurityTrustStyle(n){return function xA(e){return new MA(e)}(n)}bypassSecurityTrustScript(n){return function PA(e){return new SA(e)}(n)}bypassSecurityTrustUrl(n){return function FA(e){return new AA(e)}(n)}bypassSecurityTrustResourceUrl(n){return function kA(e){return new NA(e)}(n)}static#e=this.\u0275fac=function(r){return new(r||e)($(Gn))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ij(e,t){if(1&e&&(y(0,"div",1),re(1,"br"),y(2,"div",2)(3,"div",3)(4,"div",4)(5,"h5"),b(6,"Documentation"),m()(),y(7,"div")(8,"iframe",5),b(9,"..."),m()()()()()),2&e){const n=A();C(8),M("src",n.docUri,Ec)}}let Tj=(()=>{class e{constructor(n,r){this.requestService=n,this.sanitizer=r}ngOnInit(){this.requestService.getDocumentationObservable().subscribe({next:n=>{this.docUri=this.sanitizer.bypassSecurityTrustResourceUrl(n)},error:n=>console.error("DocumentationComponent: "+n)}),this.requestService.getResponseObservable().subscribe(()=>{this.docUri=void 0})}static#e=this.\u0275fac=function(r){return new(r||e)(I(la),I(Fp))};static#t=this.\u0275cmp=Lo({type:e,selectors:[["app-documentation"]],standalone:!0,features:[Ai],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"page-header","first-row"],["id","doc-iframe","onload","setIframeHeight('doc-iframe')",3,"src"]],template:function(r,o){1&r&&Y(0,Ij,10,1,"div",0),2&r&&M("ngIf",o.docUri)},dependencies:[xi],styles:["iframe{width:100%}\n"],encapsulation:2})}return e})();function sI(e){const t=(e=e||document).body,n=e.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}window.setIframeHeight=e=>{const t=document.getElementById(e);t.style.visibility="hidden",t.style.height="10px",t.style.visibility="visible";try{t.style.height=sI(t.contentDocument?t.contentDocument:t.contentWindow.document)+4+"px"}catch{t.style.height=sI(document)-130+"px"}};var Mj={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",103:"Early Hints",426:"Upgrade Required",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"};function aI(e){var t=Mj[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}let cI=(()=>{class e{syntaxHighlight(n){if(n)try{return JSON.parse(n),(n=n.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,r=>{let o="number";return/^"/.test(r)?/:$/.test(r)?(o="key",(/_embedded/.test(r)||/_links/.test(r)||/_templates/.test(r)||/curies/.test(r))&&(o="hal")):o="string":/true|false/.test(r)?o="boolean":/null/.test(r)&&(o="null"),''+r+""})}catch{return n}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Sj(e,t){if(1&e&&(y(0,"tr")(1,"td",9),b(2),m(),y(3,"td",10),b(4),m()()),2&e){const n=t.$implicit,r=A(2);C(2),Me(n),C(2),Me(r.httpResponse.headers.get(n))}}function Aj(e,t){1&e&&(y(0,"pre",14),b(1,">"),m()),2&e&&M("innerHTML",A(3).responseBody,_c)}function Nj(e,t){if(1&e&&(y(0,"pre"),b(1),m()),2&e){const n=A(3);C(),Me(n.responseBody)}}function Rj(e,t){if(1&e&&(y(0,"div")(1,"div",4)(2,"h5"),b(3,"Response Body"),m()(),y(4,"div",11)(5,"div",12),Y(6,Aj,2,1,"pre",13)(7,Nj,2,1,"pre",8),m()()()),2&e){const n=A(2);C(6),M("ngIf",!n.isString),C(),M("ngIf",n.isString)}}function Oj(e,t){if(1&e&&(y(0,"div",1)(1,"div",2)(2,"div",3),re(3,"br"),y(4,"div",4)(5,"h5"),b(6,"Response Status"),m()(),y(7,"div",5)(8,"table",6)(9,"tbody")(10,"tr")(11,"td"),b(12),m()()()()(),y(13,"div",4)(14,"h5"),b(15,"Response Headers"),m()(),y(16,"div",5)(17,"table",6)(18,"tbody"),Y(19,Sj,5,2,"tr",7),m()()(),Y(20,Rj,8,2,"div",8),m()()()),2&e){const n=A();C(12),zs("",n.httpResponse.status," (",n.httpResponseReasonPhrase,")"),C(7),M("ngForOf",n.httpResponse.headers.keys()),C(),M("ngIf",n.responseBody)}}function xj(e,t){if(1&e&&(y(0,"tr")(1,"td",9),b(2),m(),y(3,"td",10),b(4),m()()),2&e){const n=t.$implicit,r=A(3);C(2),Me(n),C(2),Me(r.httpErrorResponse.headers.get(n))}}function Pj(e,t){if(1&e&&(y(0,"div")(1,"div",4)(2,"h5"),b(3,"Error Response Headers"),m()(),y(4,"div",5)(5,"table",6)(6,"tbody"),Y(7,xj,5,2,"tr",7),m()()()()),2&e){const n=A(2);C(7),M("ngForOf",n.httpErrorResponse.headers.keys())}}function Fj(e,t){1&e&&(y(0,"pre",14),b(1,">"),m()),2&e&&M("innerHTML",A(2).error,_c)}function kj(e,t){if(1&e&&(y(0,"pre"),b(1),m()),2&e){const n=A(2);C(),Me(n.error)}}function Lj(e,t){if(1&e&&(y(0,"div",1)(1,"div",2)(2,"div",3),re(3,"br"),y(4,"div",4)(5,"h5"),b(6,"Error Response Status"),m()(),y(7,"div",5)(8,"table",6)(9,"tbody")(10,"tr")(11,"td"),b(12),m()()()()(),Y(13,Pj,8,1,"div",8),y(14,"div")(15,"div",4)(16,"h5"),b(17,"Error Message"),m()(),y(18,"div",11)(19,"div",12)(20,"pre"),b(21),m()()()(),re(22,"br"),y(23,"div")(24,"div",4)(25,"h5"),b(26,"Additional Error Information"),m()(),y(27,"div",11)(28,"div",12),Y(29,Fj,2,1,"pre",13)(30,kj,2,1,"pre",8),m()()()()()()),2&e){const n=A();C(12),zs("",n.httpErrorResponse.status," (",n.httpErrorResponse.statusText,")"),C(),M("ngIf",n.httpErrorResponse.headers.keys().length>0),C(8),Me(n.httpErrorResponse.message),C(8),M("ngIf",!n.isString),C(),M("ngIf",n.isString)}}let Vj=(()=>{class e{constructor(n,r){this.requestService=n,this.jsonHighlighterService=r}ngOnInit(){this.requestService.getResponseObservable().subscribe({next:n=>{this.httpResponse=n.httpResponse,this.httpErrorResponse=n.httpErrorResponse,this.httpResponseReasonPhrase="Unknown",this.httpResponse?(this.httpResponse.status>199?this.httpResponseReasonPhrase=aI(this.httpResponse.status):this.httpResponse.statusText&&(this.httpResponseReasonPhrase=this.httpResponse.statusText),this.responseBody=void 0,this.httpResponse.body&&("string"==typeof this.httpResponse.body||this.httpResponse.body instanceof String?(this.isString=!0,this.responseBody=this.httpResponse.body):(this.isString=!1,this.responseBody=this.jsonHighlighterService.syntaxHighlight(JSON.stringify(this.httpResponse.body,void 0,2))))):this.httpErrorResponse&&(this.error=void 0,this.httpErrorResponse.status>199?this.httpResponseReasonPhrase=aI(this.httpErrorResponse.status):this.httpErrorResponse.statusText&&(this.httpResponseReasonPhrase=this.httpErrorResponse.statusText),this.httpErrorResponse.error&&("string"==typeof this.httpErrorResponse.error||this.httpErrorResponse.error instanceof String?(this.isString=!0,this.error=this.httpErrorResponse.error):(this.isString=!1,this.error=this.jsonHighlighterService.syntaxHighlight(JSON.stringify(this.httpErrorResponse.error,void 0,2)))))},error:n=>console.error("Error during HTTP request: "+JSON.stringify(n))})}static#e=this.\u0275fac=function(r){return new(r||e)(I(la),I(cI))};static#t=this.\u0275cmp=Lo({type:e,selectors:[["app-response-details"]],standalone:!0,features:[Ai],decls:2,vars:2,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"legend"],[1,"bs-component"],[1,"table","table-striped","table-sm"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"w-25"],[1,"w-75"],[1,"card","info"],[1,"card-text"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(r,o){1&r&&Y(0,Oj,21,4,"div",0)(1,Lj,31,6,"div",0),2&r&&(M("ngIf",o.httpResponse&&!o.httpErrorResponse),C(),M("ngIf",o.httpErrorResponse))},dependencies:[xi,oa],encapsulation:2})}return e})();function Hj(e,t){if(1&e&&(y(0,"div")(1,"div",5)(2,"h5"),b(3,"JSON Properties"),m()(),y(4,"div",6)(5,"div",7),re(6,"pre",8),m()(),re(7,"br"),m()),2&e){const n=A(2);C(6),M("innerHTML",n.properties,_c)}}function jj(e,t){if(1&e){const n=Mt();y(0,"button",21),ce("click",function(){se(n);const o=A().$implicit,i=A(3);return ae(i.processCommand(i.command.Document,o.docUri))}),m()}}function Bj(e,t){if(1&e){const n=Mt();y(0,"tr")(1,"td"),b(2),m(),y(3,"td"),b(4),m(),y(5,"td"),b(6),m(),y(7,"td")(8,"button",15),ce("click",function(){const o=se(n).$implicit,i=A(3);return ae(i.processCommand(i.command.Get,i.getRelTargetUrl(o.href,i.command.Get)))}),m(),y(9,"button",16),ce("click",function(){const o=se(n).$implicit,i=A(3);return ae(i.processCommand(i.command.Post,i.getRelTargetUrl(o.href,i.command.Post)))}),m(),y(10,"button",17),ce("click",function(){const o=se(n).$implicit,i=A(3);return ae(i.processCommand(i.command.Put,i.getRelTargetUrl(o.href,i.command.Put)))}),m(),y(11,"button",18),ce("click",function(){const o=se(n).$implicit,i=A(3);return ae(i.processCommand(i.command.Patch,i.getRelTargetUrl(o.href,i.command.Patch)))}),m(),y(12,"button",19),ce("click",function(){const o=se(n).$implicit,i=A(3);return ae(i.processCommand(i.command.Delete,i.getRelTargetUrl(o.href,i.command.Delete)))}),m()(),y(13,"td")(14,"span",13),Y(15,jj,1,0,"button",20),m()()()}if(2&e){const n=t.$implicit,r=A(3);C(2),Me(n.rel),C(2),Me(n.name),C(2),Me(n.title),C(2),mo(r.getRequestButtonClass(r.command.Get)+" "+r.getLinkButtonClass(r.command.Get,n)),M("disabled",r.isButtonDisabled(r.command.Get,n)),C(),mo(r.getRequestButtonClass(r.command.Post)+" "+r.getLinkButtonClass(r.command.Post,n)),M("disabled",r.isButtonDisabled(r.command.Post,n)),C(),mo(r.getRequestButtonClass(r.command.Put)+" "+r.getLinkButtonClass(r.command.Put,n)),M("disabled",r.isButtonDisabled(r.command.Put,n)),C(),mo(r.getRequestButtonClass(r.command.Patch)+" "+r.getLinkButtonClass(r.command.Patch,n)),M("disabled",r.isButtonDisabled(r.command.Patch,n)),C(),mo(r.getRequestButtonClass(r.command.Delete)+" "+r.getLinkButtonClass(r.command.Delete,n)),M("disabled",r.isButtonDisabled(r.command.Delete,n)),C(3),M("ngIf",n.docUri)}}function Uj(e,t){if(1&e&&(y(0,"div")(1,"div",5)(2,"h5"),b(3,"Links"),m()(),y(4,"div",9)(5,"div",10)(6,"table",11)(7,"thead")(8,"tr")(9,"th",12),b(10,"Relation"),m(),y(11,"th",12),b(12,"Name"),m(),y(13,"th",12),b(14,"Title"),m(),y(15,"th",12),b(16,"HTTP Request"),m(),y(17,"th",12)(18,"span",13),b(19,"Doc \xa0"),m()()()(),y(20,"tbody"),Y(21,Bj,16,19,"tr",14),m()()()(),re(22,"br"),m()),2&e){const n=A(2);C(21),M("ngForOf",n.links)}}function $j(e,t){if(1&e){const n=Mt();y(0,"tr")(1,"td"),b(2),m(),y(3,"td"),b(4),m(),y(5,"td")(6,"button",22),ce("click",function(){const o=se(n).$implicit,i=A(3);return ae(i.processCommand(i.getCommandForTemplateMethod(o.value.method),i.getUrlForTemplateTarget(o.value.target),o))}),m()()()}if(2&e){const n=t.$implicit,r=A(3);C(2),Me(n.key),C(2),Me(n.value.title),C(2),mo(r.getRequestButtonClass(r.getCommandForTemplateMethod(n.value.method))),vo("title","",n.value.method.toUpperCase()," Request"),M("disabled",!1)}}function qj(e,t){if(1&e&&(y(0,"div")(1,"div",5)(2,"h5"),b(3,"HAL-FORMS Template Elements"),m()(),y(4,"div",9)(5,"div",10)(6,"table",11)(7,"thead")(8,"tr")(9,"th",12),b(10,"Name"),m(),y(11,"th",12),b(12,"Title"),m(),y(13,"th",12),b(14,"HTTP Request"),m()()(),y(15,"tbody"),Y(16,$j,7,7,"tr",14),bh(17,"keyvalue"),m()()()(),re(18,"br"),m()),2&e){const n=A(2);C(16),M("ngForOf",Ih(17,1,n.templates))}}function Gj(e,t){if(1&e){const n=Mt();y(0,"button",37),ce("click",function(){se(n);const o=A(3).$implicit,i=A(3);return ae(i.processCommand(i.command.Document,o.docUri))}),m()}}function zj(e,t){if(1&e&&(y(0,"div",32)(1,"div",25)(2,"a",26),b(3),m(),Y(4,Gj,1,0,"button",33),m(),y(5,"div",34)(6,"div",35),re(7,"app-response-explorer",36),m()()()),2&e){const n=t.$implicit,r=t.index,o=A(2),i=o.$implicit,s=o.index,a=A(3);vt("id",a.prefix+"item_"+s+"_"+r),C(2),vt("data-parent","#"+a.prefix+"item_"+s+"_"+r)("href","#"+a.prefix+"embedded_object_"+r,Dc),C(),zs("",i.name," [",r,"]"),C(),M("ngIf",i.docUri),C(),vt("id",a.prefix+"embedded_object_"+r),C(2),M("jsonRoot",n)("prefix",a.prefix+"x_")("curieLinks",a.curieLinks)("isHalFormsMediaType",a.isHalFormsMediaType)}}function Wj(e,t){if(1&e&&(y(0,"div",30),Y(1,zj,8,11,"div",31),m()),2&e){const n=A(),r=n.$implicit,o=n.index;vt("id",A(3).prefix+"embedded_"+o),C(),M("ngForOf",r.content)}}function Zj(e,t){if(1&e&&(y(0,"div",34)(1,"div",35),re(2,"app-response-explorer",36),m()()),2&e){const n=A(),r=n.$implicit,o=n.index,i=A(3);vt("id",i.prefix+"embedded_"+o),C(2),M("jsonRoot",r.content)("prefix",i.prefix+"x_")("curieLinks",i.curieLinks)("isHalFormsMediaType",i.isHalFormsMediaType)}}function Yj(e,t){if(1&e&&(y(0,"div",24)(1,"div",25)(2,"a",26)(3,"h5"),b(4),m()()(),y(5,"div",27),Y(6,Wj,2,2,"div",28),m(),Y(7,Zj,3,5,"div",29),m()),2&e){const n=t.$implicit,r=t.index,o=A(3);vt("id",o.prefix+"item_"+r),C(2),vt("data-parent","#"+o.prefix+"item_"+r)("href","#"+o.prefix+"embedded_"+r,Dc),C(2),Me(n.name),C(2),M("ngIf",n.isArray),C(),M("ngIf",!n.isArray)}}function Kj(e,t){if(1&e&&(y(0,"div")(1,"div",5)(2,"h5"),b(3,"Embedded Resources"),m()(),y(4,"div"),Y(5,Yj,8,6,"div",23),m()()),2&e){const n=A(2);C(5),M("ngForOf",n.embedded)}}function Qj(e,t){if(1&e&&(y(0,"div",1)(1,"div",2)(2,"div",3),Y(3,Hj,8,1,"div",4)(4,Uj,23,1,"div",4)(5,qj,19,3,"div",4)(6,Kj,6,1,"div",4),m()()()),2&e){const n=A();C(3),M("ngIf",n.showProperties),C(),M("ngIf",n.showLinks),C(),M("ngIf",n.hasHalFormsTemplates),C(),M("ngIf",n.showEmbedded)}}class lI{constructor(t,n,r,o,i,s){this.rel=t,this.href=n,this.title=r,this.name=o,this.docUri=i,this.options=s}}class Jj{constructor(t,n,r,o){this.name=t,this.content=n,this.isArray=r,this.docUri=o}}let Xj=(()=>{class e{constructor(n,r,o){this.requestService=n,this.jsonHighlighterService=r,this.appService=o,this.command=Ae}ngOnInit(){this.jsonRoot?this.processJsonObject(this.jsonRoot):this.requestService.getResponseObservable().subscribe({next:n=>{const r=n.httpResponse;if(this.httpErrorResponse=n.httpErrorResponse,r){this.responseUrl=r.url,this.isHalFormsMediaType=!1;const o=r.headers.get("content-type");(o&&o.startsWith("application/prs.hal-forms+json")||this.responseUrl&&this.responseUrl.endsWith(".hal-forms.json"))&&(this.isHalFormsMediaType=!0),this.processJsonObject("string"==typeof r.body||r.body instanceof String?{}:r.body)}},error:n=>console.error("Error during HTTP request: "+JSON.stringify(n))})}processJsonObject(n){this.prefix||(this.prefix=""),this.showProperties=!1,this.showLinks=!1,this.showEmbedded=!1,this.hasHalFormsTemplates=!1,this.properties=null,this.links=null,this.embedded=null;const r=Object.assign({},n);delete r._links,delete r._embedded,delete r._templates,Object.keys(r).length>0&&(this.showProperties=!0,this.properties=this.jsonHighlighterService.syntaxHighlight(JSON.stringify(r,void 0,2)));const o=n._links;this.links=[],this.selfLink=void 0,this.curieLinks||(this.curieLinks=[]),o&&(this.showLinks=!0,Object.getOwnPropertyNames(o).forEach(s=>{if(o[s]instanceof Array)o[s].forEach((a,c)=>{"curies"===s&&this.curieLinks.push(a),this.links.push(new lI(s+" ["+c+"]",a.href,a.title,a.name))});else{const a=new lI(s,o[s].href,o[s].title,o[s].name);this.links.push(a),"self"===s&&(this.selfLink=a)}}),this.appService.getHttpOptions()&&this.links.forEach(s=>{this.requestService.getHttpOptions(s)}),this.curieLinks.forEach(s=>{this.links.forEach(a=>{const c=s.name+":";"curies"!==a.rel&&a.rel.startsWith(c)&&(a.docUri=s.href.replace("{rel}",a.rel.replace(c,"")))})}));const i=n._embedded;if(this.embedded=new Array(0),i){let s;this.showEmbedded=!0,this.curieLinks.forEach(a=>{const c=a.name+":";Object.keys(i)[0].startsWith(c)&&(s=a.href.replace("{rel}",Object.keys(i)[0].replace(c,"")))}),Object.getOwnPropertyNames(i).forEach(a=>{this.embedded.push(new Jj(a,i[a],i[a]instanceof Array,s))})}this.isHalFormsMediaType&&n._templates&&(this.hasHalFormsTemplates=!0,this.templates=n._templates)}processCommand(n,r,o){this.requestService.processCommand(n,r,o)}getLinkButtonClass(n,r){if(r&&r.options){if("http-options-error"===r.options)return"btn-outline-dark";const o=Ae[n].toLowerCase();return r.options.toLowerCase().includes(o)?"":"btn-outline-light"}return!this.isHalFormsMediaType||"get"===Ae[n].toLowerCase()||this.appService.getAllHttpMethodsForLinks()?"":"btn-outline-light"}isButtonDisabled(n,r){return r&&r.options?"http-options-error"!==r.options&&!r.options.toLowerCase().includes(Ae[n].toLowerCase()):"get"!==Ae[n].toLowerCase()&&!this.appService.getAllHttpMethodsForLinks()&&this.isHalFormsMediaType}getRelTargetUrl(n,r){let o=n;if(this.isHalFormsMediaType&&this.templates&&Object.getOwnPropertyNames(this.templates).forEach(i=>{this.templates[i].method===Ae[r].toLowerCase()&&this.templates[i].target&&(o=this.templates[i].target)}),this.responseUrl){const i=new URL(o,this.responseUrl).href;o=decodeURI(i)}return o}getRequestButtonClass(n){const r="ms-1 btn btn-sm nav-button ";return n===Ae.Post?r+"btn-outline-info icon-plus":n===Ae.Put||n===Ae.Patch?r+"btn-outline-warning icon-right-open":n===Ae.Delete?r+"btn-outline-danger icon-cancel":r+"btn-outline-success icon-left-open"}getCommandForTemplateMethod(n){return Ae[n[0].toUpperCase()+n.substring(1).toLowerCase()]||Ae.Get}getUrlForTemplateTarget(n){return n||(this.selfLink?this.selfLink.href:this.responseUrl?this.responseUrl:void 0)}static#e=this.\u0275fac=function(r){return new(r||e)(I(la),I(cI),I($l))};static#t=this.\u0275cmp=Lo({type:e,selectors:[["app-response-explorer"]],inputs:{jsonRoot:"jsonRoot",prefix:"prefix",curieLinks:"curieLinks",isHalFormsMediaType:"isHalFormsMediaType"},standalone:!0,features:[Ai],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-lg-12"],[4,"ngIf"],[1,"legend"],[1,"card","info"],[1,"card-text"],[3,"innerHTML"],[1,"bs-component"],[1,"table-responsive-sm"],[1,"table","table-striped","table-sm"],["scope","col"],[2,"float","right"],[4,"ngFor","ngForOf"],["title","GET Request",3,"click","disabled"],["title","POST Request",3,"click","disabled"],["title","PUT Request",3,"click","disabled"],["title","PATCH Request",3,"click","disabled"],["title","DELETE Request",3,"click","disabled"],["class","icon-book ml-auto btn btn-outline-info btn-sm nav-button","title","Show Documentation",3,"click",4,"ngIf"],["title","Show Documentation",1,"icon-book","ml-auto","btn","btn-outline-info","btn-sm","nav-button",3,"click"],[3,"click","disabled","title"],["class","card",4,"ngFor","ngForOf"],[1,"card"],[1,"card-header","d-flex"],["data-bs-toggle","collapse",1,"text-decoration-none"],[1,"card-body","p-1"],["class","collapse show",4,"ngIf"],["class","collapse",4,"ngIf"],[1,"collapse","show"],["class","card m-1",4,"ngFor","ngForOf"],[1,"card","m-1"],["class","icon-book ms-auto btn btn-outline-info btn-sm nav-button","title","Show Documentation",3,"click",4,"ngIf"],[1,"collapse"],[1,"card-body"],[3,"jsonRoot","prefix","curieLinks","isHalFormsMediaType"],["title","Show Documentation",1,"icon-book","ms-auto","btn","btn-outline-info","btn-sm","nav-button",3,"click"]],template:function(r,o){1&r&&Y(0,Qj,7,4,"div",0),2&r&&M("ngIf",!o.httpErrorResponse)},dependencies:()=>[e,xi,oa,lp],styles:[".card-header.d-flex{padding:.2rem .5rem}.nav-button-x{padding-top:0!important;padding-bottom:0!important;margin-right:.25rem!important;font-size:75%!important}.nav-button{display:inline-block!important;padding:.25em .7em!important;font-size:75%!important;font-weight:700!important;line-height:1!important;text-align:center!important;white-space:nowrap!important}\n"],encapsulation:2})}return e})();const{isArray:eB}=Array,{getPrototypeOf:tB,prototype:nB,keys:rB}=Object;const{isArray:sB}=Array;function lB(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function uB(...e){const t=function TV(e){return Le(mp(e))?e.pop():void 0}(e),{args:n,keys:r}=function oB(e){if(1===e.length){const t=e[0];if(eB(t))return{args:t,keys:null};if(function iB(e){return e&&"object"==typeof e&&tB(e)===nB}(t)){const n=rB(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e),o=new xt(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?lB(r,a):a),i.complete())}))}});return t?o.pipe(function cB(e){return gr(t=>function aB(e,t){return sB(t)?e(...t):e(t)}(e,t))}(t)):o}let uI=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static#e=this.\u0275fac=function(r){return new(r||e)(I(lo),I(Dn))};static#t=this.\u0275dir=W({type:e})}return e})(),bo=(()=>{class e extends uI{static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=gt(e)))(o||e)}})();static#t=this.\u0275dir=W({type:e,features:[ye]})}return e})();const zn=new R(""),fB={provide:zn,useExisting:De(()=>Wl),multi:!0},pB=new R("");let Wl=(()=>{class e extends uI{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function hB(){const e=na()?na().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static#e=this.\u0275fac=function(r){return new(r||e)(I(lo),I(Dn),I(pB,8))};static#t=this.\u0275dir=W({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){1&r&&ce("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[Se([fB]),ye]})}return e})();function Pr(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function fI(e){return null!=e&&"number"==typeof e.length}const ft=new R(""),Fr=new R(""),gB=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Io{static min(t){return function hI(e){return t=>{if(Pr(t.value)||Pr(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(Pr(t.value)||Pr(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(t)}static required(t){return function gI(e){return Pr(e.value)?{required:!0}:null}(t)}static requiredTrue(t){return function mI(e){return!0===e.value?null:{required:!0}}(t)}static email(t){return function yI(e){return Pr(e.value)||gB.test(e.value)?null:{email:!0}}(t)}static minLength(t){return function vI(e){return t=>Pr(t.value)||!fI(t.value)?null:t.value.lengthfI(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}(t)}static pattern(t){return function DI(e){if(!e)return Zl;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Pr(r.value))return null;const o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}(t)}static nullValidator(t){return null}static compose(t){return TI(t)}static composeAsync(t){return MI(t)}}function Zl(e){return null}function EI(e){return null!=e}function CI(e){return fl(e)?Ep(e):e}function wI(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function bI(e,t){return t.map(n=>n(e))}function II(e){return e.map(t=>function mB(e){return!e.validate}(t)?t:n=>t.validate(n))}function TI(e){if(!e)return null;const t=e.filter(EI);return 0==t.length?null:function(n){return wI(bI(n,t))}}function kp(e){return null!=e?TI(II(e)):null}function MI(e){if(!e)return null;const t=e.filter(EI);return 0==t.length?null:function(n){return uB(bI(n,t).map(CI)).pipe(gr(wI))}}function Lp(e){return null!=e?MI(II(e)):null}function SI(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Vp(e){return e?Array.isArray(e)?e:[e]:[]}function Yl(e,t){return Array.isArray(e)?e.includes(t):e===t}function RI(e,t){const n=Vp(t);return Vp(e).forEach(o=>{Yl(n,o)||n.push(o)}),n}function OI(e,t){return Vp(t).filter(n=>!Yl(e,n))}class xI{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=kp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Lp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class Rt extends xI{get formDirective(){return null}get path(){return null}}class kr extends xI{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class PI{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let FI=(()=>{class e extends PI{constructor(n){super(n)}static#e=this.\u0275fac=function(r){return new(r||e)(I(kr,2))};static#t=this.\u0275dir=W({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&Jc("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ye]})}return e})(),kI=(()=>{class e extends PI{constructor(n){super(n)}static#e=this.\u0275fac=function(r){return new(r||e)(I(Rt,10))};static#t=this.\u0275dir=W({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&Jc("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ye]})}return e})();const da="VALID",Ql="INVALID",Li="PENDING",fa="DISABLED";class Vi{}class VI extends Vi{constructor(t,n){super(),this.value=t,this.source=n}}class Bp extends Vi{constructor(t,n){super(),this.pristine=t,this.source=n}}class Up extends Vi{constructor(t,n){super(),this.touched=t,this.source=n}}class Jl extends Vi{constructor(t,n){super(),this.status=t,this.source=n}}function $p(e){return(Xl(e)?e.validators:e)||null}function qp(e,t){return(Xl(t)?t.asyncValidators:e)||null}function Xl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Gp{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=ta(()=>this.statusReactive()),this.statusReactive=ci(void 0),this._pristine=ta(()=>this.pristineReactive()),this.pristineReactive=ci(!0),this._touched=ta(()=>this.touchedReactive()),this.touchedReactive=ci(!1),this._events=new Et,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return qn(this.statusReactive)}set status(t){qn(()=>this.statusReactive.set(t))}get valid(){return this.status===da}get invalid(){return this.status===Ql}get pending(){return this.status==Li}get disabled(){return this.status===fa}get enabled(){return this.status!==fa}get pristine(){return qn(this.pristineReactive)}set pristine(t){qn(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return qn(this.touchedReactive)}set touched(t){qn(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(RI(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(RI(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(OI(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(OI(t,this._rawAsyncValidators))}hasValidator(t){return Yl(this._rawValidators,t)}hasAsyncValidator(t){return Yl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){const n=!1===this.touched;this.touched=!0;const r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched({...t,sourceControl:r}),n&&!1!==t.emitEvent&&this._events.next(new Up(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){const n=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&!1!==t.emitEvent&&this._events.next(new Up(!1,r))}markAsDirty(t={}){const n=!0===this.pristine;this.pristine=!1;const r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty({...t,sourceControl:r}),n&&!1!==t.emitEvent&&this._events.next(new Bp(!1,r))}markAsPristine(t={}){const n=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&!1!==t.emitEvent&&this._events.next(new Bp(!0,r))}markAsPending(t={}){this.status=Li;const n=t.sourceControl??this;!1!==t.emitEvent&&(this._events.next(new Jl(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending({...t,sourceControl:n})}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=fa,this.errors=null,this._forEachChild(o=>{o.disable({...t,onlySelf:!0})}),this._updateValue();const r=t.sourceControl??this;!1!==t.emitEvent&&(this._events.next(new VI(this.value,r)),this._events.next(new Jl(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n},this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=da,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===da||this.status===Li)&&this._runAsyncValidator(r,t.emitEvent)}const n=t.sourceControl??this;!1!==t.emitEvent&&(this._events.next(new VI(this.value,n)),this._events.next(new Jl(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity({...t,sourceControl:n})}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fa:da}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Li,this._hasOwnPendingAsyncValidator={emitEvent:!1!==n};const r=CI(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent,this,n.shouldHaveEmitted)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Jl(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new mt,this.statusChanges=new mt}_calculateStatus(){return this._allControlsDisabled()?fa:this.errors?Ql:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Li)?Li:this._anyControlsHaveStatus(Ql)?Ql:da}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){const r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new Bp(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Up(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Xl(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function wB(e){return Array.isArray(e)?kp(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function bB(e){return Array.isArray(e)?Lp(e):e||null}(this._rawAsyncValidators)}}class zp extends Gp{constructor(t,n,r){super($p(n),qp(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function jI(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new w(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function HI(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new w(1e3,"");if(!r[n])throw new w(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Hi=new R("CallSetDisabledState",{providedIn:"root",factory:()=>eu}),eu="always";function ha(e,t,n=eu){Wp(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function MB(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&BI(e,t)})}(e,t),function AB(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function SB(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&BI(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function TB(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function ru(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Wp(e,t){const n=function AI(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(SI(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function NI(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(SI(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();ru(t._rawValidators,o),ru(t._rawAsyncValidators,o)}function BI(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const PB={provide:Rt,useExisting:De(()=>iu)},pa=Promise.resolve();let iu=(()=>{class e extends Rt{get submitted(){return qn(this.submittedReactive)}constructor(n,r,o){super(),this.callSetDisabledState=o,this._submitted=ta(()=>this.submittedReactive()),this.submittedReactive=ci(!1),this._directives=new Set,this.ngSubmit=new mt,this.form=new zp({},kp(n),Lp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){pa.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),ha(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){pa.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){pa.then(()=>{const r=this._findContainer(n.path),o=new zp({});(function UI(e,t){Wp(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){pa.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){pa.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),function $I(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}static#e=this.\u0275fac=function(r){return new(r||e)(I(ft,10),I(Fr,10),I(Hi,8))};static#t=this.\u0275dir=W({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){1&r&&ce("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Se([PB]),ye]})}return e})();function qI(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function GI(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const Qp=class extends Gp{constructor(t=null,n,r){super($p(n),qp(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xl(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=GI(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){qI(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){qI(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){GI(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},ga=Qp,LB={provide:kr,useExisting:De(()=>Jp)},ZI=Promise.resolve();let Jp=(()=>{class e extends kr{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Qp,this._registered=!1,this.name="",this.update=new mt,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Kp(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Wl?n=i:function OB(e){return Object.getPrototypeOf(e.constructor)===bo}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Yp(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,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(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ha(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){ZI.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&function Kh(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);ZI.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function tu(e,t){return[...t.path,e]}(n,this._parent):[n]}static#e=this.\u0275fac=function(r){return new(r||e)(I(Rt,9),I(ft,10),I(Fr,10),I(zn,10),I(Bh,8),I(Hi,8))};static#t=this.\u0275dir=W({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Se([LB]),ye,er]})}return e})(),YI=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=W({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const WB={provide:zn,useExisting:De(()=>su),multi:!0};function rT(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let su=(()=>{class e extends bo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const o=rT(this._getOptionId(n),n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function ZB(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=gt(e)))(o||e)}})();static#t=this.\u0275dir=W({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){1&r&&ce("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Se([WB]),ye]})}return e})(),oT=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(rT(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(r){return new(r||e)(I(Dn),I(lo),I(su,9))};static#t=this.\u0275dir=W({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();const YB={provide:zn,useExisting:De(()=>au),multi:!0};function iT(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let au=(()=>{class e extends bo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{let n;return function(o){return(n||(n=gt(e)))(o||e)}})();static#t=this.\u0275dir=W({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){1&r&&ce("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Se([YB]),ye]})}return e})(),sT=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(iT(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(iT(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(r){return new(r||e)(I(Dn),I(lo),I(au,9))};static#t=this.\u0275dir=W({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})(),iU=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Vo({type:e});static#n=this.\u0275inj=qr({})}return e})(),mT=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Hi,useValue:n.callSetDisabledState??eu}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Vo({type:e});static#n=this.\u0275inj=qr({imports:[iU]})}return e})(),aU=(()=>{class e{validate(n){if(!this.halFormsProperty)return null;let r={};if(this.halFormsProperty.required&&(r=Object.assign(r,Io.required(n))),this.halFormsProperty.regex){const o=Io.pattern(this.halFormsProperty.regex);r=Object.assign(r,o(n))}if(this.halFormsProperty.maxLength){const o=new ga(n.value,Io.maxLength(this.halFormsProperty.maxLength));r=Object.assign(r,o.errors)}if(this.halFormsProperty.minLength){const o=new ga(n.value,Io.minLength(this.halFormsProperty.minLength));r=Object.assign(r,o.errors)}if(this.halFormsProperty.max){const o=new ga(n.value,Io.max(this.halFormsProperty.max));r=Object.assign(r,o.errors)}if(this.halFormsProperty.min){const o=new ga(n.value,Io.min(this.halFormsProperty.min));r=Object.assign(r,o.errors)}if("email"===this.halFormsProperty.type){const o=new ga(n.value,Io.email);r=Object.assign(r,o.errors)}if(this.halFormsProperty.options){let o=1;n.value instanceof Array&&(o=n.value.length),this.halFormsProperty.options.maxItems&&o>this.halFormsProperty.options.maxItems&&(r=Object.assign(r,{maxItems:{maxItems:this.halFormsProperty.options.maxItems,actual:n.value.length}})),this.halFormsProperty.options.minItems&&o({standalone:!0});function cU(e,t){if(1&e&&(y(0,"tr")(1,"td",47),b(2),m(),y(3,"td",48),b(4),m()()),2&e){const n=t.$implicit;C(2),Me(n.key),C(2),Me(n.value)}}function lU(e,t){if(1&e&&(y(0,"div"),re(1,"br"),y(2,"div",44)(3,"h5"),b(4,"Custom Request Headers"),m()(),y(5,"div",5)(6,"table",45)(7,"tbody"),Y(8,cU,5,2,"tr",46),m()()()()),2&e){const n=A();C(8),M("ngForOf",n.requestHeaders)}}function uU(e,t){1&e&&(y(0,"span"),b(1,"Template"),m())}function dU(e,t){if(1&e){const n=Mt();y(0,"div",50)(1,"label",25),b(2),m(),y(3,"div",22)(4,"input",51),bn("ngModelChange",function(o){const i=se(n).$implicit;return Un(i.value,o)||(i.value=o),ae(o)}),ce("keyup",function(){return se(n),ae(A(2).computeUriFromTemplate())}),m()()()}if(2&e){const n=t.$implicit;C(2),Me(n.key),C(2),Bn("name",n.key),wn("ngModel",n.value)}}function fU(e,t){if(1&e&&(y(0,"div",20)(1,"label",52),b(2,"Expanded URI"),m(),y(3,"div",22)(4,"div",53),b(5),m()()()),2&e){const n=A(2);C(4),Bn("title",n.newRequestUri),C(),Me(n.newRequestUri)}}function hU(e,t){if(1&e&&(y(0,"div",35)(1,"label"),b(2,"Parameters"),m(),Y(3,dU,5,3,"div",49)(4,fU,6,2,"div",27),m()),2&e){const n=A();C(3),M("ngForOf",n.uriTemplateParameters),C(),M("ngIf",n.httpRequestEvent.command!==n.commandPlaceholder.Get&&n.httpRequestEvent.command!==n.commandPlaceholder.Delete)}}function pU(e,t){if(1&e&&(y(0,"div",20)(1,"label",25),b(2,"HAL-FORMS Content Type"),m(),y(3,"div",22)(4,"div",26),b(5),m()()()),2&e){const n=A();C(5),sn(" ",n.halFormsContentType," ")}}function gU(e,t){if(1&e){const n=Mt();y(0,"div",20)(1,"label",56),b(2),m(),y(3,"div",22)(4,"input",57),bn("ngModelChange",function(o){const i=se(n).$implicit,s=A(2);return Un(s.jsonSchema[i.key].value,o)||(s.jsonSchema[i.key].value=o),ae(o)}),ce("keyup",function(){return se(n),ae(A(2).propertyChanged())}),m()()()}if(2&e){const n=t.$implicit,r=A(2);C(),M("title",r.getTooltip(n.key)),C(),sn("",r.jsonSchema[n.key].title," "),C(2),M("type",r.getInputType(n.key)),wn("ngModel",r.jsonSchema[n.key].value),M("ngModelOptions",al(5,rg))}}function mU(e,t){if(1&e&&(y(0,"div"),re(1,"hr"),y(2,"label",54),b(3,"Spring Profile (JSON Schema)"),m(),Y(4,gU,5,6,"div",55),bh(5,"keyvalue"),re(6,"hr"),m()),2&e){const n=A();C(4),M("ngForOf",Ih(5,1,n.jsonSchema))}}function yU(e,t){if(1&e&&(y(0,"span"),b(1),m()),2&e){const n=A(2);C(),sn(" [",n.halFormsPropertyKey,"]")}}function vU(e,t){1&e&&(y(0,"span"),b(1,"*"),m())}function _U(e,t){if(1&e&&(y(0,"label",56),b(1),Y(2,vU,2,0,"span",11),m()),2&e){const n=A().$implicit;M("title",n.name),C(),sn(" ",n.prompt," "),C(),M("ngIf",n.required)}}function DU(e,t){1&e&&(y(0,"span"),b(1,"*"),m())}function EU(e,t){if(1&e&&(y(0,"label",60),b(1),Y(2,DU,2,0,"span",11),m()),2&e){const n=A().$implicit;C(),sn(" ",n.name," "),C(),M("ngIf",n.required)}}function CU(e,t){if(1&e){const n=Mt();y(0,"div")(1,"input",61,1),bn("ngModelChange",function(o){se(n);const i=A().$implicit;return Un(i.value,o)||(i.value=o),ae(o)}),ce("change",function(){return se(n),ae(A(3).propertyChanged())})("keyup",function(){return se(n),ae(A(3).propertyChanged())}),m(),y(3,"div",62),b(4),m()()}if(2&e){const n=ol(2),r=A().$implicit,o=A(2);C(),Bn("name",r.name),vo("id","request-input-",r.name,""),Bn("type",r.type),Bn("placeholder",r.placeholder),wn("ngModel",r.value),M("appHalFormsProperty",r),C(3),Me(o.getValidationErrors(n))}}function wU(e,t){if(1&e&&(y(0,"option",67),b(1),m()),2&e){const n=t.$implicit,r=A(3).$implicit,o=A(2);M("value",n.value)("selected",o.isHalFormsOptionSelected(r,n.value)),C(),sn(" ",n.prompt," ")}}function bU(e,t){if(1&e){const n=Mt();y(0,"select",65),bn("ngModelChange",function(o){se(n);const i=A(2).$implicit;return Un(i.value,o)||(i.value=o),ae(o)}),ce("change",function(){return se(n),ae(A(4).propertyChanged())}),Y(1,wU,2,3,"option",66),m()}if(2&e){const n=A(2).$implicit;Bn("name",n.name),vo("id","request-option-",n.name,""),wn("ngModel",n.value),M("appHalFormsProperty",n),C(),M("ngForOf",n.options.computedOptions)}}function IU(e,t){if(1&e&&(y(0,"option",67),b(1),m()),2&e){const n=t.$implicit,r=A(3).$implicit,o=A(2);M("value",n.value)("selected",o.isHalFormsOptionSelected(r,n.value)),C(),sn(" ",n.prompt," ")}}function TU(e,t){if(1&e){const n=Mt();y(0,"select",68),bn("ngModelChange",function(o){se(n);const i=A(2).$implicit;return Un(i.value,o)||(i.value=o),ae(o)}),ce("change",function(){return se(n),ae(A(4).propertyChanged())}),Y(1,IU,2,3,"option",66),m()}if(2&e){const n=A(2).$implicit;Bn("name",n.name),vo("id","request-option-multiple-",n.name,""),wn("ngModel",n.value),M("appHalFormsProperty",n),C(),M("ngForOf",n.options.computedOptions)}}function MU(e,t){if(1&e&&(y(0,"div"),Y(1,bU,2,6,"select",63)(2,TU,2,6,"select",64),y(3,"div",62),b(4),m()()),2&e){const n=A().$implicit,r=A(2);C(),M("ngIf","select"===r.getUiElementForHalFormsTemplateProperty(n)&&1===(null==n.options?null:n.options.maxItems)),C(),M("ngIf","select"===r.getUiElementForHalFormsTemplateProperty(n)&&1!==(null==n.options?null:n.options.maxItems)),C(2),Me(r.getValidationErrors(n))}}function SU(e,t){if(1&e&&(y(0,"div",20),Y(1,_U,3,3,"label",58)(2,EU,3,2,"label",59),y(3,"div",22),Y(4,CU,5,8,"div",11)(5,MU,5,3,"div",11),m()()),2&e){const n=t.$implicit,r=A(2);C(),M("ngIf",n.prompt),C(),M("ngIf",!n.prompt),C(2),M("ngIf","input"===r.getUiElementForHalFormsTemplateProperty(n)),C(),M("ngIf","select"===r.getUiElementForHalFormsTemplateProperty(n))}}function AU(e,t){if(1&e&&(y(0,"div"),re(1,"hr"),y(2,"label",54),b(3,"HAL-FORMS Properties "),Y(4,yU,2,1,"span",11),m(),Y(5,SU,6,4,"div",55),re(6,"hr"),m()),2&e){const n=A();C(4),M("ngIf",n.halFormsPropertyKey),C(),M("ngForOf",n.halFormsProperties)}}function NU(e,t){if(1&e){const n=Mt();y(0,"textarea",72),bn("ngModelChange",function(o){se(n);const i=A(2);return Un(i.requestBody,o)||(i.requestBody=o),ae(o)}),b(1," "),m()}2&e&&wn("ngModel",A(2).requestBody)}function RU(e,t){1&e&&(y(0,"textarea",73),b(1," "),m())}function OU(e,t){if(1&e&&(y(0,"div",20)(1,"label",69),b(2,"Body"),m(),y(3,"div",22),Y(4,NU,2,1,"textarea",70)(5,RU,2,0,"textarea",71),m()()),2&e){A();const n=ol(23);C(4),M("ngIf",n.valid),C(),M("ngIf",n.invalid)}}function xU(e,t){if(1&e&&(y(0,"div",20)(1,"label",69),b(2,"Expanded URI"),m(),y(3,"div",22)(4,"div",74),b(5),m()()()),2&e){const n=A();C(5),sn(" ",n.newRequestUri," ")}}function PU(e,t){if(1&e){const n=Mt();y(0,"div",75)(1,"div",37)(2,"input",76),bn("ngModelChange",function(o){const i=se(n).$implicit;return Un(i.key,o)||(i.key=o),ae(o)}),m()(),y(3,"div",38)(4,"input",76),bn("ngModelChange",function(o){const i=se(n).$implicit;return Un(i.value,o)||(i.value=o),ae(o)}),m()()()}if(2&e){const n=t.$implicit;C(2),wn("ngModel",n.key),M("ngModelOptions",al(4,rg)),C(2),wn("ngModel",n.value),M("ngModelOptions",al(5,rg))}}class og{constructor(t,n){this.prompt=t,this.value=n}}let FU=(()=>{class e{constructor(n,r){this.appService=n,this.requestService=r,this.httpRequestEvent=new Gb(ql.FillHttpRequest,Ae.Post,""),this.commandPlaceholder=Ae,this.noValueSelected=""}ngOnInit(){var n=this;this.jsonSchema=void 0,this.halFormsProperties=void 0,this.halFormsContentType=void 0,this.uri=this.appService.getUri(),this.tempRequestHeaders=this.appService.getCustomRequestHeaders(),this.requestService.getNeedInfoObservable().subscribe(function(){var r=gp(function*(o){if(o.type===ql.FillHttpRequest){n.jsonSchema=void 0,n.halFormsProperties=void 0,n.halFormsPropertyKey=void 0,n.halFormsTemplate=void 0;const i=o;if(n.httpRequestEvent=i,i.jsonSchema&&(n.jsonSchema=i.jsonSchema.properties),i.halFormsTemplate){if(n.halFormsTemplate=i.halFormsTemplate,n.halFormsProperties=n.halFormsTemplate.value.properties,n.halFormsTemplate.value.contentType&&(n.halFormsContentType=n.halFormsTemplate.value.contentType),Array.isArray(n.halFormsProperties))for(const a of n.halFormsProperties)if(a.options){const c=a.options;if(!c.inline&&c.link){n.requestService.computeHalFormsOptionsFromLink(a);for(let l=0;l<10&&!c.inline;l++)try{yield new Promise(u=>setTimeout(u,50))}catch{}}c.inline?(a.options.computedOptions=n.getHalFormsOptions(a),c.selectedValues?a.value=1===c?.maxItems?c.selectedValues[0]:c.selectedValues:a.required||c.selectedValues||c?.minItems>=1?a.required&&!c.selectedValues&&c.computedOptions&&(a.value=1===c?.maxItems?a.options.computedOptions[0].value:[a.options.computedOptions[0].value]):a.value=n.noValueSelected):(console.warn('Cannot compute HAL-FORMS options for property "'+a.name+'".'),console.warn('Will ignore HAL-FORMS options for property "'+a.name+'".'),a.options=void 0)}n.halFormsPropertyKey=n.halFormsTemplate.value.title}if(n.requestBody="",n.selectedHttpMethod=i.command,n.templatedUri=void 0,n.isUriTemplate=e.isUriTemplated(i.uri),n.originalRequestUri=i.uri,n.isUriTemplate){const a=xr(i.uri);n.uriTemplateParameters=[];for(const c of a.varNames)n.uriTemplateParameters.push(new YH(c,""));n.templatedUri=i.uri,n.computeUriFromTemplate()}else n.newRequestUri=i.uri;const s=document.getElementById("HttpRequestTrigger");s&&s.click(),n.propertyChanged()}});return function(o){return r.apply(this,arguments)}}()),this.appService.uriObservable.subscribe(r=>this.goFromHashChange(r)),this.appService.requestHeadersObservable.subscribe(r=>{this.tempRequestHeaders=r,this.updateRequestHeaders()}),this.updateRequestHeaders(),this.getUri()}getUri(){this.requestService.getUri(this.uri)}getExpandedUri(){this.requestService.getUri(this.newRequestUri)}makeHttpRequest(){this.requestService.requestUri(this.newRequestUri,Ae[this.selectedHttpMethod],this.requestBody,this.halFormsContentType)}goFromHashChange(n){this.uri=n,this.requestService.getUri(this.uri)}computeUriFromTemplate(n=!0){const r=xr(this.templatedUri),o={};for(const i of this.uriTemplateParameters)i.value.length>0&&(o[i.key]=i.value);this.newRequestUri=r.fill(o),this.halFormsProperties&&n&&this.propertyChanged()}static isUriTemplated(n){return xr(n).varNames.length>0}propertyChanged(){this.requestBody="{\n",this.templatedUri?this.computeUriFromTemplate(!1):this.originalRequestUri&&(this.newRequestUri=this.originalRequestUri);let n=!1;if(this.jsonSchema)for(const r of Object.keys(this.jsonSchema))this.jsonSchema[r].value&&this.jsonSchema[r].value.length>0&&(n&&(this.requestBody+=",\n"),this.requestBody+=' "'+r+'": '+("integer"!==this.jsonSchema[r].type?'"':"")+this.jsonSchema[r].value+("integer"!==this.jsonSchema[r].type?'"':""),n=!0);else if(this.halFormsProperties){this.templatedUri&&(n=this.newRequestUri.includes("?"));for(const r of this.halFormsProperties){let o="get";this.halFormsTemplate.value.method&&(o=this.halFormsTemplate.value.method.toLowerCase()),"get"!==o&&"post"!==o&&"put"!==o&&"patch"!==o&&"delete"!==o&&(o="get");const i="post"===o||"put"===o||"patch"===o,s=1!==r?.options?.maxItems;r.name&&r.value&&""!==r.value&&(n?i?this.requestBody+=",\n":this.newRequestUri+="&":i||(this.newRequestUri+="?"),i?this.requestBody+=s?' "'+r.name+'": '+JSON.stringify(r.value):' "'+r.name+'": "'+r.value+'"':this.newRequestUri+=r.name+"="+r.value,n=!0)}}this.requestBody+="\n}"}showEditHeadersDialog(){this.tempRequestHeaders=[];for(let n=0;n<5;n++)this.tempRequestHeaders.push(this.requestHeaders.length>n?new ki(this.requestHeaders[n].key,this.requestHeaders[n].value):new ki("",""));document.getElementById("requestHeadersModalTrigger").click()}updateRequestHeaders(){this.requestHeaders=[];for(const n of this.tempRequestHeaders){const r=n.key.trim(),o=n.value.trim();r.length>0&&o.length>0&&this.requestHeaders.push(new ki(r,o))}this.processRequestHeaders()}clearRequestHeaders(){this.tempRequestHeaders=[];for(let n=0;n<5;n++)this.tempRequestHeaders.push(new ki("",""));this.processRequestHeaders()}processRequestHeaders(){this.requestService.setCustomHeaders(this.requestHeaders),this.hasCustomRequestHeaders=this.requestHeaders.length>0,this.appService.setCustomRequestHeaders(this.requestHeaders)}setAcceptRequestHeader(n){let r=!1;for(let o=0;o<5;o++)if("accept"===this.tempRequestHeaders[o].key.toLowerCase()){this.tempRequestHeaders[o].value=n,r=!0;break}if(!r)for(let o=0;o<5;o++)if(""===this.tempRequestHeaders[o].key){this.tempRequestHeaders[o].key="Accept",this.tempRequestHeaders[o].value=n;break}}getTooltip(n){if(!this.jsonSchema)return"";let r=this.jsonSchema[n].type;return this.jsonSchema[n].format&&(r+=" in "+this.jsonSchema[n].format+" format"),r}getInputType(n){return this.requestService.getInputType(this.jsonSchema[n].type,this.jsonSchema[n].format)}getValidationErrors(n){if(!n.errors)return"";let r="";return n.errors.required&&(r="Value is required\n"),n.errors.pattern&&(r+="Value does not match pattern: "+n.errors.pattern.requiredPattern+"\n"),n.errors.maxlength&&(r+="Value does not have required max length: "+n.errors.maxlength.requiredLength+"\n"),n.errors.minlength&&(r+="Value does not have required min length: "+n.errors.minlength.requiredLength+"\n"),n.errors.max&&(r+="Value is bigger than max: "+n.errors.max.max+"\n"),n.errors.min&&(r+="Value is smaller than min: "+n.errors.min.min+"\n"),n.errors.email&&(r+="Value is not a valid email\n"),n.errors.maxItems&&(r+="Selection exceeds the maximum number of items: "+n.errors.maxItems.maxItems+"\n"),n.errors.minItems&&(r+="Selection falls below the minimum number of items: "+n.errors.minItems.minItems+"\n"),r}getUiElementForHalFormsTemplateProperty(n){return n.options?"select":"input"}getHalFormsOptions(n){if(!n.options)return[];const r=n.options,o=[];!n.required&&1===r.maxItems&&!(r.minItems>=1)&&o.push(new og(this.noValueSelected,this.noValueSelected));const i=r?.promptField||"prompt",s=r?.valueField||"value";if(r.inline){if(!(r.inline instanceof Array))return console.warn('HAL-FORMS: Selectable options for property "'+n.name+'" must be an array'),console.warn('=> Property "'+n.name+'" input will be rendered as HTML "input"'),n.options=void 0,o;for(const a of r.inline)if("string"==typeof a||a instanceof String)o.push(new og(a,a));else{if(!a[i]||!a[s])return console.warn('HAL-FORMS: Selectable options for property "'+n.name+'" are not parsable'),console.warn('=> Property "'+n.name+'" input will be rendered as HTML "input"'),n.options=void 0,o;o.push(new og(a[i],a[s]))}}return o}isHalFormsOptionSelected(n,r){return!!n.value&&n.value.includes(r)}static#e=this.\u0275fac=function(r){return new(r||e)(I($l),I(la))};static#t=this.\u0275cmp=Lo({type:e,selectors:[["app-uri-input"]],standalone:!0,features:[Ai],decls:73,vars:14,consts:[["myForm","ngForm"],["ngModel","ngModel"],[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"bs-component"],[3,"ngSubmit"],[1,"input-group"],["type","button",1,"btn","btn-secondary",3,"click"],["type","url","id","InputApiUri","placeholder","Enter API URI","name","uri",1,"form-control",3,"ngModelChange","ngModel"],["type","submit","id","go",1,"btn","btn-primary"],[4,"ngIf"],["id","HttpRequestTrigger","data-bs-toggle","modal","data-bs-target","#httpRequestModal"],["id","httpRequestModal","role","dialog","aria-hidden","false",1,"modal","fade"],["role","document",1,"modal-dialog","modal-xl"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close"],[1,"modal-body","me-2"],[1,"form-group","row"],["for","uri",1,"col-sm-3","col-form-label"],[1,"p-1","col-sm-9"],["readonly","true","id","uri",1,"form-control","text-truncate",3,"title"],["class","form-group",4,"ngIf"],[1,"col-sm-3","col-form-label"],["readonly","true",1,"form-control","text-truncate"],["class","form-group row",4,"ngIf"],[1,"modal-footer"],["id","requestDialogGoButton","type","button","data-bs-dismiss","modal",1,"btn","btn-secondary",3,"click","disabled"],["id","requestHeadersModalTrigger","data-bs-toggle","modal","data-bs-target","#requestHeadersModal"],["id","requestHeadersModal","role","dialog","aria-labelledby","requestHeadersModalLabel","aria-hidden","false",1,"modal","fade"],["role","document",1,"modal-dialog","modal-lg"],["id","requestHeadersModalLabel",1,"modal-title"],[1,"modal-body"],[1,"form-group"],["id","titles",1,"form-group","row"],[1,"p-2","col-sm-3"],[1,"p-2","col-sm-9"],["id","headers","class","form-group row",4,"ngFor","ngForOf"],[1,"me-auto"],["type","button",1,"btn","btn-outline-primary","me-2",3,"click"],["type","button",1,"btn","btn-outline-primary",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-secondary",3,"click"],[1,"legend"],[1,"table","table-striped","table-sm"],[4,"ngFor","ngForOf"],[1,"w-25"],[1,"w-75"],["id","uri-parameters","class","form-group row",4,"ngFor","ngForOf"],["id","uri-parameters",1,"form-group","row"],[1,"form-control",3,"ngModelChange","keyup","ngModel","name"],["for","expandedURI",1,"col-sm-3","col-form-label"],["id","expandedURI",1,"form-control","text-truncate",3,"title"],[1,"mb-2"],["class","form-group row",4,"ngFor","ngForOf"],[1,"text-info","col-sm-3","col-form-label",3,"title"],[1,"form-control",3,"ngModelChange","keyup","type","ngModel","ngModelOptions"],["class","text-info col-sm-3 col-form-label",3,"title",4,"ngIf"],["class","text-info col-sm-3 col-form-label",4,"ngIf"],[1,"text-info","col-sm-3","col-form-label"],[1,"form-control",3,"ngModelChange","change","keyup","ngModel","name","id","type","placeholder","appHalFormsProperty"],[1,"error-text"],["class","form-select",3,"ngModel","name","id","appHalFormsProperty","ngModelChange","change",4,"ngIf"],["class","form-control","multiple","",3,"ngModel","name","id","appHalFormsProperty","ngModelChange","change",4,"ngIf"],[1,"form-select",3,"ngModelChange","change","ngModel","name","id","appHalFormsProperty"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"],["multiple","",1,"form-control",3,"ngModelChange","change","ngModel","name","id","appHalFormsProperty"],["for","body",1,"col-sm-3","col-form-label"],["class","form-control","id","body","rows","5","name","bodyArea",3,"ngModel","ngModelChange",4,"ngIf"],["class","form-control","id","invalidBody","rows","5","name","invalidBodyArea",4,"ngIf"],["id","body","rows","5","name","bodyArea",1,"form-control",3,"ngModelChange","ngModel"],["id","invalidBody","rows","5","name","invalidBodyArea",1,"form-control"],["id","request-input-expanded-uri","readonly","true",1,"form-control","text-truncate"],["id","headers",1,"form-group","row"],[1,"form-control",3,"ngModelChange","ngModel","ngModelOptions"]],template:function(r,o){if(1&r){const i=Mt();re(0,"br"),y(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"form",6),ce("ngSubmit",function(){return se(i),ae(o.getUri())}),y(6,"div",7)(7,"button",8),ce("click",function(){return se(i),ae(o.showEditHeadersDialog())}),b(8,"Edit Headers "),m(),y(9,"input",9),bn("ngModelChange",function(a){return se(i),Un(o.uri,a)||(o.uri=a),ae(a)}),m(),y(10,"button",10),b(11,"Go!"),m()()()(),Y(12,lU,9,1,"div",11),m()()(),re(13,"div",12),y(14,"div",13)(15,"div",14)(16,"div",15)(17,"div",16)(18,"h5",17),b(19,"HTTP Request Input"),m(),re(20,"button",18),m(),y(21,"div",19)(22,"form",null,0)(24,"div",20)(25,"label",21),b(26,"URI "),Y(27,uU,2,0,"span",11),m(),y(28,"div",22)(29,"div",23),b(30),m()()(),Y(31,hU,5,2,"div",24),y(32,"div",20)(33,"label",25),b(34,"HTTP Method"),m(),y(35,"div",22)(36,"div",26),b(37),m()()(),Y(38,pU,6,1,"div",27)(39,mU,7,3,"div",11)(40,AU,7,2,"div",11)(41,OU,6,2,"div",27)(42,xU,6,1,"div",27),m()(),y(43,"div",28)(44,"button",29),ce("click",function(){return se(i),ae(o.makeHttpRequest())}),b(45,"Go! "),m()()()()(),re(46,"div",30),y(47,"div",31)(48,"div",32)(49,"div",15)(50,"div",16)(51,"h5",33),b(52,"Custom Request Headers"),m(),re(53,"button",18),m(),y(54,"div",34)(55,"form")(56,"div",35)(57,"div",36)(58,"div",37),b(59," Key "),m(),y(60,"div",38),b(61," Value "),m()(),Y(62,PU,5,6,"div",39),m()()(),y(63,"div",28)(64,"div",40)(65,"button",41),ce("click",function(){return se(i),ae(o.clearRequestHeaders())}),b(66,"Clear"),m(),y(67,"button",41),ce("click",function(){return se(i),ae(o.setAcceptRequestHeader("application/hal+json"))}),b(68,"Accept HAL "),m(),y(69,"button",42),ce("click",function(){return se(i),ae(o.setAcceptRequestHeader("application/prs.hal-forms+json"))}),b(70,"Accept HAL-FORMS "),m()(),y(71,"button",43),ce("click",function(){return se(i),ae(o.updateRequestHeaders())}),b(72,"OK "),m()()()()()}if(2&r){const i=ol(23);C(9),wn("ngModel",o.uri),C(3),M("ngIf",o.hasCustomRequestHeaders),C(15),M("ngIf",o.isUriTemplate),C(2),Bn("title",o.httpRequestEvent.uri),C(),Me(o.httpRequestEvent.uri),C(),M("ngIf",o.isUriTemplate),C(6),sn(" ",o.commandPlaceholder[o.httpRequestEvent.command]," "),C(),M("ngIf",o.halFormsContentType),C(),M("ngIf",o.jsonSchema),C(),M("ngIf",o.halFormsProperties),C(),M("ngIf",o.httpRequestEvent.command===o.commandPlaceholder.Post||o.httpRequestEvent.command===o.commandPlaceholder.Put||o.httpRequestEvent.command===o.commandPlaceholder.Patch),C(),M("ngIf",o.httpRequestEvent.command===o.commandPlaceholder.Get||o.httpRequestEvent.command===o.commandPlaceholder.Delete),C(2),M("disabled",i.invalid),C(18),M("ngForOf",o.tempRequestHeaders)}},dependencies:[mT,YI,oT,sT,Wl,su,au,FI,kI,Jp,iu,xi,oa,aU,lp],styles:["pre[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.15);border-radius:4px}.table[_ngcontent-%COMP%]{table-layout:fixed}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]})}return e})();function kU(e,t){if(1&e&&(y(0,"div"),re(1,"link",29),m()),2&e){const n=A();C(),M("href",n.selectedThemeUrl,Ec)}}function LU(e,t){if(1&e){const n=Mt();y(0,"a",30),ce("click",function(){const o=se(n).$implicit;return ae(A().changeTheme(o))}),re(1,"i",31),b(2),m()}if(2&e){const n=t.$implicit,r=A();C(),on(r.getThemeIconCheckStyle(n)),C(),Me(n)}}function VU(e,t){1&e&&re(0,"hr",34)}function HU(e,t){if(1&e){const n=Mt();y(0,"a",30),ce("click",function(){se(n);const o=A().$implicit;return ae(A().selectSetting(o))}),re(1,"i",31),b(2),m()}if(2&e){const n=A().$implicit,r=A();C(),on(r.getSettingsIconCheckStyle(n)),C(),Me(n)}}function jU(e,t){if(1&e&&(y(0,"div"),Y(1,VU,1,0,"hr",32)(2,HU,3,3,"a",33),m()),2&e){const n=t.$implicit;C(),M("ngIf","---"===n),C(),M("ngIf","---"!==n)}}function BU(e,t){1&e&&(y(0,"td")(1,"a",35),b(2,"Snapshot Reference Documentation"),m()())}function UU(e,t){1&e&&(y(0,"td")(1,"a",36),b(2,"Release Reference Documentation"),m()())}function $U(e,t){1&e&&(y(0,"div",2)(1,"div",37)(2,"div",38),re(3,"app-uri-input")(4,"br")(5,"app-response-explorer"),m(),y(6,"div",38),re(7,"app-response-details"),m(),y(8,"div",38),re(9,"app-documentation"),m()()())}function qU(e,t){if(1&e&&(y(0,"div",2)(1,"div",37)(2,"div",38),re(3,"app-uri-input")(4,"br")(5,"app-response-explorer"),m(),y(6,"div",38),re(7,"app-response-details",39)(8,"app-documentation"),m()()()),2&e){const n=A();C(7),M("hidden",n.showDocumentation)}}(function pj(e,t){return aL({rootComponent:e,...tI(t)})})((()=>{class e{constructor(n,r,o){this.appService=n,this.requestService=r,this.sanitizer=o,this.themes=["Default","Cerulean","Cosmo","Cyborg","Darkly","Flatly","Journal","Litera","Lumen","Lux","Materia","Minty","Morph","Pulse","Quartz","Sandstone","Simplex","Sketchy","Slate","Solar","Spacelab","Superhero","United","Vapor","Yeti","Zephyr"],this.layouts=["2 Columns","3 Columns"],this.settings=["2 Column Layout","3 Column Layout","---","Use HTTP OPTIONS","---","Enable all HTTP Methods for HAL-FORMS Links"],this.isCustomTheme=!1,this.showDocumentation=!1,this.isTwoColumnLayout=!0,this.useHttpOptions=!1,this.enableAllHttpMethodsForLinks=!1,this.version="1.2.2",this.isSnapshotVersion=this.version.endsWith("SNAPSHOT")}ngOnInit(){this.requestService.getResponseObservable().subscribe(()=>{this.showDocumentation=!1}),this.requestService.getDocumentationObservable().subscribe(()=>{this.showDocumentation=!0}),this.appService.themeObservable.subscribe(n=>this.changeTheme(n)),this.changeTheme(this.appService.getTheme()),this.appService.layoutObservable.subscribe(n=>this.changeLayout(n)),this.changeLayout(this.appService.getLayout()),this.appService.httpOptionsObservable.subscribe(n=>this.changeHttpOptions(n)),this.changeHttpOptions(this.appService.getHttpOptions()),this.appService.allHttpMethodsForLinksObservable.subscribe(n=>this.changeAllHttpMethodsForLinks(n)),this.changeAllHttpMethodsForLinks(this.appService.getAllHttpMethodsForLinks())}changeTheme(n){this.isCustomTheme=n!==this.themes[0],this.isCustomTheme&&(this.selectedThemeUrl=this.sanitizer.bypassSecurityTrustResourceUrl("https://bootswatch.com/5/"+n.toLowerCase()+"/bootstrap.min.css")),this.appService.setTheme(n)}changeLayout(n){this.appService.setLayout(n.substring(0,1)),this.isTwoColumnLayout="2"===this.appService.getLayout()}changeHttpOptions(n){this.appService.setHttpOptions(n),this.useHttpOptions=n}changeAllHttpMethodsForLinks(n){this.appService.setAllHttpMethodsForLinks(n),this.enableAllHttpMethodsForLinks=n}selectSetting(n){n.includes("OPTIONS")?(this.useHttpOptions=!this.useHttpOptions,this.appService.setHttpOptions(this.useHttpOptions)):n.includes("Links")?(this.enableAllHttpMethodsForLinks=!this.enableAllHttpMethodsForLinks,this.appService.setAllHttpMethodsForLinks(this.enableAllHttpMethodsForLinks)):this.changeLayout(n)}getThemeIconCheckStyle(n){return n===this.appService.getTheme()?"":"visibility: hidden"}getSettingsIconCheckStyle(n){return n.includes("OPTIONS")&&this.useHttpOptions||n.includes(this.appService.getLayout())||n.includes("Links")&&this.enableAllHttpMethodsForLinks?"":"visibility: hidden"}static#e=this.\u0275fac=function(r){return new(r||e)(I($l),I(la),I(Fp))};static#t=this.\u0275cmp=Lo({type:e,selectors:[["app-root"]],standalone:!0,features:[Ai],decls:59,vars:8,consts:[[4,"ngIf"],[1,"navbar","navbar-expand-lg","navbar-toggleable-md","navbar-dark","bg-dark"],[1,"container-fluid"],[1,"navbar-brand"],["src","favicon.ico","width","30","height","30","alt","",1,"d-inline-block","align-top"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbar1","aria-controls","navbar1","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbar1",1,"collapse","navbar-collapse"],[1,"navbar-nav"],[1,"nav-item","dropdown"],["href","#","id","navbarDropdownTheme","role","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"nav-link","dropdown-toggle"],["aria-labelledby","navbarDropdownTheme",1,"dropdown-menu"],["class","dropdown-item","href","#",3,"click",4,"ngFor","ngForOf"],["href","#","id","navbarDropdownLayout","role","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"nav-link","dropdown-toggle"],["aria-labelledby","navbarDropdownLayout",1,"dropdown-menu"],[4,"ngFor","ngForOf"],["href","#","data-bs-toggle","modal","data-bs-target","#aboutModal",1,"nav-link"],["id","aboutModal","tabindex","-1","role","dialog","aria-labelledby","aboutModalLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","aboutModalLabel",1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close"],[1,"modal-body"],[1,"table","table-striped","table-sm"],["href","https://github.com/toedter/hal-explorer",1,"p-0","text-decoration-none"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-secondary"],["class","container-fluid",4,"ngIf"],["rel","stylesheet",3,"href"],["href","#",1,"dropdown-item",3,"click"],[1,"icon-ok"],["class","dropdown-divider",4,"ngIf"],["class","dropdown-item","href","#",3,"click",4,"ngIf"],[1,"dropdown-divider"],["href","https://toedter.github.io/hal-explorer/snapshot/reference-doc/",1,"p-0","text-decoration-none"],["href","https://toedter.github.io/hal-explorer/release/reference-doc/",1,"p-0","text-decoration-none"],[1,"row","gx-2"],[1,"form-group","col-xl"],[3,"hidden"]],template:function(r,o){1&r&&(Y(0,kU,2,1,"div",0),y(1,"nav",1)(2,"div",2)(3,"div",3),re(4,"img",4),b(5," HAL Explorer "),m(),y(6,"button",5),re(7,"span",6),m(),y(8,"div",7)(9,"ul",8)(10,"li",9)(11,"a",10),b(12," Theme "),m(),y(13,"div",11),Y(14,LU,3,3,"a",12),m()(),y(15,"li",9)(16,"a",13),b(17," Settings "),m(),y(18,"div",14),Y(19,jU,3,2,"div",15),m()(),y(20,"a",16),b(21,"About"),m()()()()(),y(22,"div",17)(23,"div",18)(24,"div",19)(25,"div",20)(26,"h5",21),b(27,"About HAL Explorer"),m(),re(28,"button",22),m(),y(29,"div",23)(30,"div",2)(31,"table",24)(32,"tbody")(33,"tr")(34,"td"),b(35,"Author:"),m(),y(36,"td"),b(37,"Kai T\xf6dter"),m()(),y(38,"tr")(39,"td"),b(40,"Version:"),m(),y(41,"td"),b(42),m()(),y(43,"tr")(44,"td"),b(45,"GitHub:"),m(),y(46,"td")(47,"a",25),b(48,"https://github.com/toedter/hal-explorer"),m()()(),y(49,"tr")(50,"td"),b(51,"Docs:"),m(),Y(52,BU,3,0,"td",0)(53,UU,3,0,"td",0),m()()()()(),y(54,"div",26)(55,"button",27),b(56,"Close"),m()()()()(),Y(57,$U,10,0,"div",28)(58,qU,9,1,"div",28)),2&r&&(M("ngIf",o.isCustomTheme),C(14),M("ngForOf",o.themes),C(5),M("ngForOf",o.settings),C(23),Me(o.version),C(10),M("ngIf",o.isSnapshotVersion),C(),M("ngIf",!o.isSnapshotVersion),C(4),M("ngIf",!o.isTwoColumnLayout),C(),M("ngIf",o.isTwoColumnLayout))},dependencies:[xi,oa,FU,Xj,Vj,Tj],styles:[".form-group.col-md-6[_ngcontent-%COMP%]{padding-right:5px;padding-left:5px}"]})}return e})(),{providers:[im(Dj,mT),function HH(...e){const t=[Tb,xb,Rb,{provide:Vl,useExisting:Rb},{provide:Hl,useFactory:()=>N(Ip,{optional:!0})??N(xb)},{provide:ca,useValue:VH,multi:!0},{provide:Mp,useValue:!0},{provide:kb,useClass:LH}];for(const n of e)t.push(...n.\u0275providers);return function Zi(e){return{\u0275providers:e}}(t)}(function jH(){return function Co(e,t){return{\u0275kind:e,\u0275providers:t}}(Or.LegacyInterceptors,[{provide:Lb,useFactory:SH},{provide:ca,useExisting:Lb,multi:!0}])}())]}).catch(e=>console.log(e))},784:function(ji,ma){var Lr,Pe;void 0!==(Pe="function"==typeof(Lr=function(){var dr={"+":!0,"#":!0,".":!0,"/":!0,";":!0,"?":!0,"&":!0},fr={"*":!0};function q(Ie){return encodeURI(Ie).replace(/%25[0-9][0-9]/g,function(Ue){return"%"+Ue.substring(3)})}function Wn(Ie){return Ie=Ie.replace(/%../g,""),encodeURIComponent(Ie)===Ie}function cu(Ie){var Ue="";dr[Ie.charAt(0)]&&(Ue=Ie.charAt(0),Ie=Ie.substring(1));var Ne="",ot="",$e=!0,it=!1,Zn=!1;"+"==Ue?$e=!1:"."==Ue?(ot=".",Ne="."):"/"==Ue?(ot="/",Ne="/"):"#"==Ue?(ot="#",$e=!1):";"==Ue?(ot=";",Ne=";",it=!0,Zn=!0):"?"==Ue?(ot="?",Ne="&",it=!0):"&"==Ue&&(ot="&",Ne="&",it=!0);for(var Mn=[],Yn=Ie.split(","),Fe=[],ln={},ne=0;ne0&&(G+=K.suffices["*"]&&Ne||",",K.suffices["*"]&&it&&(G+=K.name+"=")),G+=$e?encodeURIComponent(L[Qt]).replace(/!/g,"%21"):q(L[Qt])}else if("object"==typeof L){it&&!K.suffices["*"]&&(G+=K.name+"=");var ee=!0;for(var he in L)ee||(G+=K.suffices["*"]&&Ne||","),ee=!1,G+=$e?encodeURIComponent(he).replace(/!/g,"%21"):q(he),G+=K.suffices["*"]?"=":",",G+=$e?encodeURIComponent(L[he]).replace(/!/g,"%21"):q(L[he])}else it&&(G+=K.name,(!Zn||""!=L)&&(G+="=")),null!=K.truncate&&(L=L.substring(0,K.truncate)),G+=$e?encodeURIComponent(L).replace(/!/g,"%21"):q(L)}return G},unSubstitution:function(B,G,Ye){if(ot&&(B=B.substring(ot.length)),1==Fe.length&&Fe[0].suffices["*"]){for(var K=(Dt=Fe[0]).name,L=Dt.suffices["*"]?B.split(Ne||","):[B],Qt=$e&&-1!=B.indexOf("="),ee=1;ee0&&Fe.length-Hr0;){var Mn=Ue.shift(),Yn=Mn.split("}")[0],Fe=Mn.substring(Yn.length+1),ln=cu(Yn);$e.push(ln.substitution),it.push(ln.unSubstitution),ot.push(ln.prefix),Ne.push(Fe),Zn=Zn.concat(ln.varNames)}this.fill=function(ne){if(ne&&"function"!=typeof ne){var Re=ne;ne=function(dn){return Re[dn]}}for(var _t=Ne[0],ke=0;ke<$e.length;ke++)_t+=(0,$e[ke])(ne),_t+=Ne[ke+1];return _t},this.fromUri=function(ne,Re){Re=Re||{};for(var _t={},ke=0;ke=Ne.length-1){if(""==ne)break;return}var dn=ot[ke];if(!dn||ne.substring(0,dn.length)===dn){for(var Sn=Ne[ke+1],Kt=ke;;){if(Kt==Ne.length-2){var B=ne.substring(ne.length-Sn.length);if(B!==Sn)return;var G=ne.substring(0,ne.length-Sn.length);ne=B}else if(Sn){var Ye=ne.indexOf(Sn);G=ne.substring(0,Ye),ne=ne.substring(Ye)}else if(ot[Kt+1])-1===(Ye=ne.indexOf(ot[Kt+1]))&&(Ye=ne.length),G=ne.substring(0,Ye),ne=ne.substring(Ye);else{if(Ne.length>Kt+2){Kt++,Sn=Ne[Kt+1];continue}G=ne,ne=""}break}if(!it[ke](G,_t,Re.strict))return}}return _t},this.varNames=Zn,this.template=Ie}return Bi.prototype={toString:function(){return this.template},fillFromObject:function(Ie){return this.fill(Ie)},test:function(Ie,Ue){return!!this.fromUri(Ie,Ue)}},Bi})?Lr.apply(ma,[]):Lr)&&(ji.exports=Pe)}},ji=>{ji(ji.s=678)}]); \ No newline at end of file +(self.webpackChunkhal_explorer=self.webpackChunkhal_explorer||[]).push([[792],{464:(ji,ma,Lr)=>{"use strict";function Vr(e,t){return Object.is(e,t)}let Pe=null,dr=!1,fr=1;const Yt=Symbol("SIGNAL");function q(e){const t=Pe;return Pe=e,t}const Ie={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ue(e){if(dr)throw new Error("");if(null===Pe)return;Pe.consumerOnSignalRead(e);const t=Pe.nextProducerIndex++;ke(Pe),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Fe(e){ke(e);for(let t=0;t0}function ke(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function un(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function dn(e){return void 0!==e.producerNode}const Kt=Symbol("UNSET"),B=Symbol("COMPUTING"),G=Symbol("ERRORED"),Ye={...Ie,value:Kt,dirty:!0,error:null,equal:Vr,producerMustRecompute:e=>e.value===Kt||e.value===B,producerRecomputeValue(e){if(e.value===B)throw new Error("Detected cycle in computations.");const t=e.value;e.value=B;const n=Mn(e);let r;try{r=e.computation()}catch(o){r=G,e.error=o}finally{Yn(e,n)}t!==Kt&&t!==G&&r!==G&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}};let K=function Dt(){throw new Error};function L(){K()}let ee=null;function Kn(e,t){it()||L(),e.equal(e.value,t)||(e.value=t,function hr(e){e.version++,function Ne(){fr++}(),$e(e),ee?.()}(e))}const So={...Ie,equal:Vr,value:void 0};function Le(e){return"function"==typeof e}function sg(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const lu=sg(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function uu(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Jt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(Le(r))try{r()}catch(i){t=i instanceof lu?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{lg(i)}catch(s){t=t??[],s instanceof lu?t=[...t,...s.errors]:t.push(s)}}if(t)throw new lu(t)}}add(t){var n;if(t&&t!==this)if(this.closed)lg(t);else{if(t instanceof Jt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&uu(n,t)}remove(t){const{_finalizers:n}=this;n&&uu(n,t),t instanceof Jt&&t._removeParent(this)}}Jt.EMPTY=(()=>{const e=new Jt;return e.closed=!0,e})();const ag=Jt.EMPTY;function cg(e){return e instanceof Jt||e&&"closed"in e&&Le(e.remove)&&Le(e.add)&&Le(e.unsubscribe)}function lg(e){Le(e)?e():e.unsubscribe()}const jr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ya={setTimeout(e,t,...n){const{delegate:r}=ya;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=ya;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ug(e){ya.setTimeout(()=>{const{onUnhandledError:t}=jr;if(!t)throw e;t(e)})}function dg(){}const _T=du("C",void 0,void 0);function du(e,t,n){return{kind:e,value:t,error:n}}let Br=null;function va(e){if(jr.useDeprecatedSynchronousErrorHandling){const t=!Br;if(t&&(Br={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Br;if(Br=null,n)throw r}}else e()}class fu extends Jt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,cg(t)&&t.add(this)):this.destination=TT}static create(t,n,r){return new pu(t,n,r)}next(t){this.isStopped?gu(function ET(e){return du("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?gu(function DT(e){return du("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?gu(_T,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const wT=Function.prototype.bind;function hu(e,t){return wT.call(e,t)}class bT{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){_a(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){_a(r)}else _a(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){_a(n)}}}class pu extends fu{constructor(t,n,r){let o;if(super(),Le(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&jr.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&hu(t.next,i),error:t.error&&hu(t.error,i),complete:t.complete&&hu(t.complete,i)}):o=t}this.destination=new bT(o)}}function _a(e){jr.useDeprecatedSynchronousErrorHandling?function CT(e){jr.useDeprecatedSynchronousErrorHandling&&Br&&(Br.errorThrown=!0,Br.error=e)}(e):ug(e)}function gu(e,t){const{onStoppedNotification:n}=jr;n&&ya.setTimeout(()=>n(e,t))}const TT={closed:!0,next:dg,error:function IT(e){throw e},complete:dg},mu="function"==typeof Symbol&&Symbol.observable||"@@observable";function MT(e){return e}let xt=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function AT(e){return e&&e instanceof fu||function ST(e){return e&&Le(e.next)&&Le(e.error)&&Le(e.complete)}(e)&&cg(e)}(n)?n:new pu(n,r,o);return va(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=hg(r))((o,i)=>{const s=new pu({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[mu](){return this}pipe(...n){return function fg(e){return 0===e.length?MT:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=hg(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function hg(e){var t;return null!==(t=e??jr.Promise)&&void 0!==t?t:Promise}const NT=sg(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Et=(()=>{class e extends xt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new pg(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new NT}next(n){va(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){va(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){va(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?ag:(this.currentObservers=null,i.push(n),new Jt(()=>{this.currentObservers=null,uu(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new xt;return n.source=this,n}}return e.create=(t,n)=>new pg(t,n),e})();class pg extends Et{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:ag}}class RT extends Et{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Ur(e){return t=>{if(function OT(e){return Le(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function pr(e,t,n,r,o){return new xT(e,t,n,r,o)}class xT extends fu{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function gr(e,t){return Ur((n,r)=>{let o=0;n.subscribe(pr(r,i=>{r.next(e.call(t,i,o++))}))})}typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const xg="https://g.co/ng/security#xss";class w extends Error{constructor(t,n){super(function Ao(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Qn(e){return{toString:e}.toString()}const Ro="__parameters__";function xo(e,t,n){return Qn(()=>{const r=function bu(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(c,l,u){const d=c.hasOwnProperty(Ro)?c[Ro]:Object.defineProperty(c,Ro,{value:[]})[Ro];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const Te=globalThis;function ge(e){for(let t in e)if(e[t]===ge)return t;throw Error("Could not find renamed property on target object.")}function PM(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Qe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Qe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Iu(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const FM=ge({__forward_ref__:ge});function De(e){return e.__forward_ref__=De,e.toString=function(){return Qe(this())},e}function V(e){return ba(e)?e():e}function ba(e){return"function"==typeof e&&e.hasOwnProperty(FM)&&e.__forward_ref__===De}function U(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function qr(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ia(e){return Lg(e,Ma)||Lg(e,Vg)}function Lg(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ta(e){return e&&(e.hasOwnProperty(Tu)||e.hasOwnProperty(jM))?e[Tu]:null}const Ma=ge({\u0275prov:ge}),Tu=ge({\u0275inj:ge}),Vg=ge({ngInjectableDef:ge}),jM=ge({ngInjectorDef:ge});class R{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=U({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ru(e){return e&&!!e.\u0275providers}const $i=ge({\u0275cmp:ge}),Ou=ge({\u0275dir:ge}),xu=ge({\u0275pipe:ge}),Jn=ge({\u0275fac:ge}),qi=ge({__NG_ELEMENT_ID__:ge}),Bg=ge({__NG_ENV_ID__:ge});function z(e){return"string"==typeof e?e:null==e?"":String(e)}function Pu(e,t){throw new w(-201,!1)}var te=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(te||{});let Fu;function Ug(){return Fu}function Pt(e){const t=Fu;return Fu=e,t}function $g(e,t,n){const r=Ia(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&te.Optional?null:void 0!==t?t:void Pu()}const Gi={},ku="__NG_DI_FLAG__",Sa="ngTempTokenPath",zM=/\n/gm,qg="__source";let Po;function vr(e){const t=Po;return Po=e,t}function YM(e,t=te.Default){if(void 0===Po)throw new w(-203,!1);return null===Po?$g(e,void 0,t):Po.get(e,t&te.Optional?null:void 0,t)}function $(e,t=te.Default){return(Ug()||YM)(V(e),t)}function N(e,t=te.Default){return $(e,Aa(t))}function Aa(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Lu(e){const t=[];for(let n=0;nArray.isArray(n)?Fo(n,t):t(n))}function zg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Na(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function $t(e,t,n){let r=ko(e,t);return r>=0?e[1|r]=n:(r=~r,function Wg(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Bu(e,t){const n=ko(e,t);if(n>=0)return e[1|n]}function ko(e,t){return function Zg(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?"":o[u+1].toLowerCase(),2&r&&l!==d){if(pn(r))return!1;s=!0}}}}else{if(!s&&!pn(r)&&!pn(c))return!1;if(s&&pn(c))continue;s=!1,r=c|1&r}}return pn(r)||s}function pn(e){return!(1&e)}function aS(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!pn(s)&&(t+=tm(i,o),o=""),r=s,i=i||!pn(r);n++}return""!==o&&(t+=tm(i,o)),t}function Lo(e){return Qn(()=>{const t=rm(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===xa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||hn.Emulated,styles:e.styles||oe,_:null,schemas:e.schemas||null,tView:null,id:""};om(n);const r=e.dependencies;return n.directiveDefs=Pa(r,!1),n.pipeDefs=Pa(r,!0),n.id=function vS(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function gS(e){return J(e)||Je(e)}function mS(e){return null!==e}function Vo(e){return Qn(()=>({type:e.type,bootstrap:e.bootstrap||oe,declarations:e.declarations||oe,imports:e.imports||oe,exports:e.exports||oe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function nm(e,t){if(null==e)return An;const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let i,s,a=_r.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==_r.None?[r,a]:r,t[i]=s):n[i]=r}return n}function W(e){return Qn(()=>{const t=rm(e);return om(t),t})}function kt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function J(e){return e[$i]||null}function Je(e){return e[Ou]||null}function ct(e){return e[xu]||null}function rm(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||An,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||oe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:nm(e.inputs,t),outputs:nm(e.outputs),debugInfo:null}}function om(e){e.features?.forEach(t=>t(e))}function Pa(e,t){if(!e)return null;const n=t?ct:gS;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(mS)}function im(...e){return{\u0275providers:Gu(0,e),\u0275fromNgModule:!0}}function Gu(e,...t){const n=[],r=new Set;let o;const i=s=>{n.push(s)};return Fo(t,s=>{const a=s;Fa(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&sm(o,i),n}function sm(e,t){for(let n=0;n{t(i,r)})}}function Fa(e,t,n,r){if(!(e=V(e)))return!1;let o=null,i=Ta(e);const s=!i&&J(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const c=e.ngModule;if(i=Ta(c),!i)return!1;o=c}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)Fa(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Fo(i.imports,u=>{Fa(u,t,n,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&sm(l,t)}if(!a){const l=Gr(o)||(()=>new o);t({provide:o,useFactory:l,deps:oe},o),t({provide:Uu,useValue:o,multi:!0},o),t({provide:Nn,useValue:()=>$(o),multi:!0},o)}const c=i.providers;if(null!=c&&!a){const l=e;zu(c,u=>{t(u,l)})}}}return o!==e&&void 0!==e.providers}function zu(e,t){for(let n of e)Ru(n)&&(n=n.\u0275providers),Array.isArray(n)?zu(n,t):t(n)}const _S=ge({provide:String,useValue:ge});function Wu(e){return null!==e&&"object"==typeof e&&_S in e}function Wr(e){return"function"==typeof e}const Zu=new R(""),ka={},ES={};let Yu;function La(){return void 0===Yu&&(Yu=new Oa),Yu}class Xt{}class Ho extends Xt{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qu(t,s=>this.processProvider(s)),this.records.set(Yg,jo(void 0,this)),o.has("environment")&&this.records.set(Xt,jo(void 0,this));const i=this.records.get(Zu);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Uu,oe,te.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=q(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),q(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=vr(this),r=Pt(void 0);try{return t()}finally{vr(n),Pt(r)}}get(t,n=Gi,r=te.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Bg))return t[Bg](this);r=Aa(r);const i=vr(this),s=Pt(void 0);try{if(!(r&te.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function TS(e){return"function"==typeof e||"object"==typeof e&&e instanceof R}(t)&&Ia(t);c=l&&this.injectableDefInScope(l)?jo(Ku(t),ka):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(r&te.Self?La():this.parent).get(t,n=r&te.Optional&&n===Gi?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[Sa]=a[Sa]||[]).unshift(Qe(t)),i)throw a;return function QM(e,t,n,r){const o=e[Sa];throw t[qg]&&o.unshift(t[qg]),e.message=function JM(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Qe(t);if(Array.isArray(t))o=t.map(Qe).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Qe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(zM,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Sa]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{Pt(s),vr(i)}}resolveInjectorInitializers(){const t=q(null),n=vr(this),r=Pt(void 0);try{const i=this.get(Nn,oe,te.Self);for(const s of i)s()}finally{vr(n),Pt(r),q(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Qe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){let n=Wr(t=V(t))?t:V(t&&t.provide);const r=function wS(e){return Wu(e)?jo(void 0,e.useValue):jo(lm(e),ka)}(t);if(!Wr(t)&&!0===t.multi){let o=this.records.get(n);o||(o=jo(void 0,ka,!0),o.factory=()=>Lu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=q(null);try{return n.value===ka&&(n.value=ES,n.value=n.factory()),"object"==typeof n.value&&n.value&&function IS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{q(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=V(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Ku(e){const t=Ia(e),n=null!==t?t.factory:Gr(e);if(null!==n)return n;if(e instanceof R)throw new w(204,!1);if(e instanceof Function)return function CS(e){if(e.length>0)throw new w(204,!1);const n=function HM(e){return e&&(e[Ma]||e[Vg])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new w(204,!1)}function lm(e,t,n){let r;if(Wr(e)){const o=V(e);return Gr(o)||Ku(o)}if(Wu(e))r=()=>V(e.useValue);else if(function cm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Lu(e.deps||[]));else if(function am(e){return!(!e||!e.useExisting)}(e))r=()=>$(V(e.useExisting));else{const o=V(e&&(e.useClass||e.provide));if(!function bS(e){return!!e.deps}(e))return Gr(o)||Ku(o);r=()=>new o(...Lu(e.deps))}return r}function jo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Qu(e,t){for(const n of e)Array.isArray(n)?Qu(n,t):n&&Ru(n)?Qu(n.\u0275providers,t):t(n)}const Oe=0,T=1,x=2,Ge=3,gn=4,lt=5,Ct=6,Uo=7,Ee=8,ze=9,Rn=10,H=11,Ki=12,hm=13,$o=14,xe=15,Zr=16,qo=17,Xn=18,Go=19,pm=20,Dr=21,ja=22,en=23,O=25,Xu=1,On=7,zo=9,Ve=10;var Ua=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ua||{});function st(e){return Array.isArray(e)&&"object"==typeof e[Xu]}function pt(e){return Array.isArray(e)&&!0===e[Xu]}function ed(e){return!!(4&e.flags)}function Yr(e){return e.componentOffset>-1}function $a(e){return!(1&~e.flags)}function mn(e){return!!e.template}function Ji(e){return!!(512&e[x])}class HS{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function vm(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function er(){return _m}function _m(e){return e.type.prototype.ngOnChanges&&(e.setInput=BS),jS}function jS(){const e=Em(this),t=e?.current;if(t){const n=e.previous;if(n===An)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function BS(e,t,n,r,o){const i=this.declaredInputs[r],s=Em(e)||function US(e,t){return e[Dm]=t}(e,{previous:An,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new HS(l&&l.currentValue,n,c===An),vm(e,t,o,n)}er.ngInherit=!0;const Dm="__ngSimpleChanges__";function Em(e){return e[Dm]||null}const xn=function(e,t,n){};function ie(e){for(;Array.isArray(e);)e=e[Oe];return e}function Xi(e,t){return ie(t[e])}function wt(e,t){return ie(t[e.index])}function es(e,t){return e.data[t]}function Kr(e,t){return e[t]}function qt(e,t){const n=t[e];return st(n)?n:n[Oe]}function id(e){return!(128&~e[x])}function tn(e,t){return null==t?null:e[t]}function bm(e){e[qo]=0}function Im(e){1024&e[x]||(e[x]|=1024,id(e)&&qa(e))}function ts(e){return!!(9216&e[x]||e[en]?.dirty)}function sd(e){e[Rn].changeDetectionScheduler?.notify(7),64&e[x]&&(e[x]|=1024),ts(e)&&qa(e)}function qa(e){e[Rn].changeDetectionScheduler?.notify(0);let t=tr(e);for(;null!==t&&!(8192&t[x])&&(t[x]|=8192,id(t));)t=tr(t)}function Ga(e,t){if(!(256&~e[x]))throw new w(911,!1);null===e[Dr]&&(e[Dr]=[]),e[Dr].push(t)}function tr(e){const t=e[Ge];return pt(t)?t[Ge]:t}const j={lFrame:Vm(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Mm=!1;function Sm(){return j.bindingsEnabled}function D(){return j.lFrame.lView}function Q(){return j.lFrame.tView}function se(e){return j.lFrame.contextLView=e,e[Ee]}function ae(e){return j.lFrame.contextLView=null,e}function me(){let e=Am();for(;null!==e&&64===e.type;)e=e.parent;return e}function Am(){return j.lFrame.currentTNode}function yn(e,t){const n=j.lFrame;n.currentTNode=e,n.isParent=t}function ld(){return j.lFrame.isParent}function Om(){return Mm}function xm(e){Mm=e}function bt(){const e=j.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function vn(){return j.lFrame.bindingIndex++}function rr(e){const t=j.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function n0(e,t){const n=j.lFrame;n.bindingIndex=n.bindingRootIndex=e,dd(t)}function dd(e){j.lFrame.currentDirectiveIndex=e}function Wa(e){j.lFrame.currentQueryIndex=e}function o0(e){const t=e[T];return 2===t.type?t.declTNode:1===t.type?e[lt]:null}function km(e,t,n){if(n&te.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&te.Host||(o=o0(i),null===o||(i=i[$o],10&o.type))););if(null===o)return!1;t=o,e=i}const r=j.lFrame=Lm();return r.currentTNode=t,r.lView=e,!0}function pd(e){const t=Lm(),n=e[T];j.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Lm(){const e=j.lFrame,t=null===e?null:e.child;return null===t?Vm(e):t}function Vm(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Hm(){const e=j.lFrame;return j.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const jm=Hm;function gd(){const e=Hm();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 ut(){return j.lFrame.selectedIndex}function Jr(e){j.lFrame.selectedIndex=e}function Ce(){const e=j.lFrame;return es(e.tView,e.selectedIndex)}let Um=!0;function rs(){return Um}function Pn(e){Um=e}function Za(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[qo]+=65536),(a>14>16&&(3&e[x])===t&&(e[x]+=16384,qm(a,i)):qm(a,i)}const Wo=-1;class os{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}const vd={};class Xr{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Aa(r);const o=this.injector.get(t,vd,r);return o!==vd||n===vd?o:this.parentInjector.get(t,n,r)}}function _d(e){return e!==Wo}function is(e){return 32767&e}function ss(e,t){let n=function m0(e){return e>>16}(e),r=t;for(;n>0;)r=r[$o],n--;return r}let Dd=!0;function Qa(e){const t=Dd;return Dd=e,t}const zm=255,Wm=5;let v0=0;const Fn={};function Ja(e,t){const n=Zm(e,t);if(-1!==n)return n;const r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,Ed(r.data,e),Ed(t,null),Ed(r.blueprint,null));const o=Xa(e,t),i=e.injectorIndex;if(_d(o)){const s=is(o),a=ss(o,t),c=a[T].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Ed(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Zm(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Xa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=ty(o),null===r)return Wo;if(n++,o=o[$o],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Wo}function Cd(e,t,n){!function _0(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(qi)&&(r=n[qi]),null==r&&(r=n[qi]=v0++);const o=r&zm;t.data[e+(o>>Wm)]|=1<=0?t&zm:w0:t}(n);if("function"==typeof i){if(!km(t,e,r))return r&te.Host?Ym(o,0,r):Km(t,n,r,o);try{let s;if(s=i(r),null!=s||r&te.Optional)return s;Pu()}finally{jm()}}else if("number"==typeof i){let s=null,a=Zm(e,t),c=Wo,l=r&te.Host?t[xe][lt]:null;for((-1===a||r&te.SkipSelf)&&(c=-1===a?Xa(e,t):t[a+8],c!==Wo&&ey(r,!1)?(s=t[T],a=is(c),t=ss(c,t)):a=-1);-1!==a;){const u=t[T];if(Xm(i,a,u.data)){const d=E0(a,t,n,s,r,l);if(d!==Fn)return d}c=t[a+8],c!==Wo&&ey(r,t[T].data[a+8]===l)&&Xm(i,a,t)?(s=u,a=is(c),t=ss(c,t)):a=-1}}return o}function E0(e,t,n,r,o,i){const s=t[T],a=s.data[e+8],u=function ec(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,c=e.directiveStart,u=i>>20,h=o?a+u:e.directiveEnd;for(let f=r?a:a+u;f=c&&p.type===n)return f}if(o){const f=s[c];if(f&&mn(f)&&f.type===n)return c}return null}(a,s,n,null==r?Yr(a)&&Dd:r!=s&&!!(3&a.type),o&te.Host&&i===a);return null!==u?eo(t,s,u,a):Fn}function eo(e,t,n,r){let o=e[n];const i=t.data;if(function h0(e){return e instanceof os}(o)){const s=o;s.resolving&&function $M(e,t){throw t&&t.join(" > "),new w(-200,e)}(function le(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():z(e)}(i[n]));const a=Qa(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Pt(s.injectImpl):null;km(e,r,te.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function d0(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=_m(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&Pt(l),Qa(a),s.resolving=!1,jm()}}return o}function Xm(e,t,n){return!!(n[t+(e>>Wm)]&1<{const t=e.prototype.constructor,n=t[Jn]||wd(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[Jn]||wd(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function wd(e){return ba(e)?()=>{const t=wd(V(e));return t&&t()}:Gr(e)}function ty(e){const t=e[T],n=t.type;return 2===n?t.declTNode:1===n?e[lt]:null}function sy(e,t=null,n=null,r){const o=function ay(e,t=null,n=null,r,o=new Set){const i=[n||oe,im(e)];return r=r||("object"==typeof e?void 0:Qe(e)),new Ho(i,t||La(),r||null,o)}(e,t,n,r);return o.resolveInjectorInitializers(),o}class tt{static#e=this.THROW_IF_NOT_FOUND=Gi;static#t=this.NULL=new Oa;static create(t,n){if(Array.isArray(t))return sy({name:""},n,t,"");{const r=t.name??"";return sy({name:r},t.parent,t.providers,r)}}static#n=this.\u0275prov=U({token:tt,providedIn:"any",factory:()=>$(Yg)});static#r=this.__NG_ELEMENT_ID__=-1}new R("").__NG_ELEMENT_ID__=e=>{const t=me();if(null===t)throw new w(204,!1);if(2&t.type)return t.value;if(e&te.Optional)return null;throw new w(204,!1)};function Id(e){return e.ngOriginalError}let as=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=P0;static#t=this.__NG_ENV_ID__=n=>n}return e})();class x0 extends as{constructor(t){super(),this._lView=t}onDestroy(t){return Ga(this._lView,t),()=>function ad(e,t){if(null===e[Dr])return;const n=e[Dr].indexOf(t);-1!==n&&e[Dr].splice(n,1)}(this._lView,t)}}function P0(){return new x0(D())}let Er=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new RT(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=U({token:e,providedIn:"root",factory:()=>new e})}return e})();const mt=class F0 extends Et{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,function dm(){return void 0!==Ug()||null!=function ZM(){return Po}()}()&&(this.destroyRef=N(as,{optional:!0})??void 0,this.pendingTasks=N(Er,{optional:!0})??void 0)}emit(t){const n=q(null);try{super.next(t)}finally{q(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof Jt&&t.add(a),a}wrapInTimeout(t){return n=>{const r=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==r&&this.pendingTasks?.remove(r)})}}};function rc(...e){}function ly(e){let t,n;function r(){e=rc;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function uy(e){return queueMicrotask(()=>e()),()=>{e=rc}}class pe{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new mt(!1),this.onMicrotaskEmpty=new mt(!1),this.onStable=new mt(!1),this.onError=new mt(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.callbackScheduled=!1,function V0(e){const t=()=>{!function L0(e){e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,Zone.root.run(()=>{ly(()=>{e.callbackScheduled=!1,Md(e),e.isCheckStableRunning=!0,Td(e),e.isCheckStableRunning=!1})}),Md(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(function H0(e){return hy(e,"__ignore_ng_zone__")}(a))return n.invokeTask(o,i,s,a);try{return dy(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),fy(e)}},onInvoke:(n,r,o,i,s,a,c)=>{try{return dy(e),n.invoke(o,i,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function j0(e){return hy(e,"__scheduler_tick__")}(a)&&t(),fy(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Md(e),Td(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!pe.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(pe.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,k0,rc,rc);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const k0={};function Td(e){if(0==e._nesting&&!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 Md(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function dy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function fy(e){e._nesting--,Td(e)}class Sd{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new mt,this.onMicrotaskEmpty=new mt,this.onStable=new mt,this.onError=new mt}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}function hy(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class _n{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Id(t);for(;n&&Id(n);)n=Id(n);return n||null}}const U0=new R("",{providedIn:"root",factory:()=>{const e=N(pe),t=N(_n);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function $0(){return Ko(me(),D())}function Ko(e,t){return new Dn(wt(e,t))}let Dn=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=$0}return e})();function oc(e){return!(128&~e.flags)}Symbol;const Nd=new Map;let z0=0;const sc="__ngContext__";function yt(e,t){st(t)?(e[sc]=t[Go],function Z0(e){Nd.set(e[Go],e)}(t)):e[sc]=t}function Iy(e){return My(e[Ki])}function Ty(e){return My(e[gn])}function My(e){for(;null!==e&&!pt(e);)e=e[gn];return e}let Od;function Cr(){if(void 0!==Od)return Od;if(typeof document<"u")return document;throw new w(210,!1)}const Jo=new R("",{providedIn:"root",factory:()=>fA}),fA="ng",Fy=new R(""),to=new R("",{providedIn:"platform",factory:()=>"unknown"}),ky=new R("",{providedIn:"root",factory:()=>Cr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ly=()=>null;function Hd(e,t,n=!1){return Ly(e,t,n)}const Gy=new R("",{providedIn:"root",factory:()=>!1});let gc,mc;function ti(e){return function qd(){if(void 0===gc&&(gc=null,Te.trustedTypes))try{gc=Te.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return gc}()?.createHTML(e)||e}function Gd(){if(void 0===mc&&(mc=null,Te.trustedTypes))try{mc=Te.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return mc}function Zy(e){return Gd()?.createHTML(e)||e}function Ky(e){return Gd()?.createScriptURL(e)||e}class no{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xg})`}}class TA extends no{getTypeName(){return"HTML"}}class MA extends no{getTypeName(){return"Style"}}class SA extends no{getTypeName(){return"Script"}}class AA extends no{getTypeName(){return"URL"}}class NA extends no{getTypeName(){return"ResourceURL"}}function Gt(e){return e instanceof no?e.changingThisBreaksApplicationSecurity:e}function kn(e,t){const n=function RA(e){return e instanceof no&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${xg})`)}return n===t}class LA{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(ti(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class VA{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=ti(t),n}}const jA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function yc(e){return(e=String(e)).match(jA)?e:"unsafe:"+e}function or(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function gs(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Jy=or("area,br,col,hr,img,wbr"),Xy=or("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ev=or("rp,rt"),zd=gs(Jy,gs(Xy,or("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),gs(ev,or("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),gs(ev,Xy)),Wd=or("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),tv=gs(Wd,or("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),or("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),BA=or("script,style,template");class UA{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)o.push(n),n=GA(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=qA(n);if(i){n=i;break}n=o.pop()}return this.buf.join("")}startElement(t){const n=nv(t).toLowerCase();if(!zd.hasOwnProperty(n))return this.sanitizedSomething=!0,!BA.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o"),!0}endElement(t){const n=nv(t).toLowerCase();zd.hasOwnProperty(n)&&!Jy.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(ov(t))}}function qA(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw rv(t);return t}function GA(e){const t=e.firstChild;if(t&&function $A(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw rv(t);return t}function nv(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function rv(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const zA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,WA=/([^\#-~ |!])/g;function ov(e){return e.replace(/&/g,"&").replace(zA,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(WA,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let vc;function iv(e,t){let n=null;try{vc=vc||function Qy(e){const t=new VA(e);return function HA(){try{return!!(new window.DOMParser).parseFromString(ti(""),"text/html")}catch{return!1}}()?new LA(t):t}(e);let r=t?String(t):"";n=vc.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=vc.getInertBodyElement(r)}while(r!==i);return ti((new UA).sanitizeChildren(Zd(n)||n))}finally{if(n){const r=Zd(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Zd(e){return"content"in e&&function ZA(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var nn=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}(nn||{});function _c(e){const t=ms();return t?Zy(t.sanitize(nn.HTML,e)||""):kn(e,"HTML")?Zy(Gt(e)):iv(Cr(),z(e))}function Dc(e){const t=ms();return t?t.sanitize(nn.URL,e)||"":kn(e,"URL")?Gt(e):yc(z(e))}function Ec(e){const t=ms();if(t)return Ky(t.sanitize(nn.RESOURCE_URL,e)||"");if(kn(e,"ResourceURL"))return Ky(Gt(e));throw new w(904,!1)}function ms(){const e=D();return e&&e[Rn].sanitizer}var wr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(wr||{});let Qd;function Jd(e,t){return Qd(e,t)}function ri(e,t,n,r,o){if(null!=r){let i,s=!1;pt(r)?i=r:st(r)&&(s=!0,r=r[Oe]);const a=ie(r);0===e&&null!==n?null==o?vv(t,n,a):ro(t,n,a,o||null,!0):1===e&&null!==n?ro(t,n,a,o||null,!0):2===e?function vs(e,t,n){e.removeChild(null,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function wN(e,t,n,r,o){const i=n[On];i!==ie(n)&&ri(t,e,r,i,o);for(let a=Ve;a0&&(e[n-1][gn]=r[gn]);const i=Na(e,Ve+t);!function gN(e,t){gv(e,t),t[Oe]=null,t[lt]=null}(r[T],r);const s=i[Xn];null!==s&&s.detachView(i[T]),r[Ge]=null,r[gn]=null,r[x]&=-129}return r}function Ic(e,t){if(!(256&t[x])){const n=t[H];n.destroyNode&&Mc(e,t,n,3,null,null),function yN(e){let t=e[Ki];if(!t)return nf(e[T],e);for(;t;){let n=null;if(st(t))n=t[Ki];else{const r=t[Ve];r&&(n=r)}if(!n){for(;t&&!t[gn]&&t!==e;)st(t)&&nf(t[T],t),t=t[Ge];null===t&&(t=e),st(t)&&nf(t[T],t),n=t&&t[gn]}t=n}}(t)}}function nf(e,t){if(256&t[x])return;const n=q(null);try{t[x]&=-129,t[x]|=256,t[en]&&ln(t[en]),function DN(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Uo]=null);const o=t[Dr];if(null!==o){t[Dr]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===hn.None||i===hn.Emulated)return null}return wt(r,n)}}(e,t.parent,n)}function ro(e,t,n,r,o){e.insertBefore(t,n,r,o)}function vv(e,t,n){e.appendChild(t,n)}function _v(e,t,n,r,o){null!==r?ro(e,t,n,r,o):vv(e,t,n)}function sf(e,t){return e.parentNode(t)}let af,Cv=function Ev(e,t,n){return 40&e.type?wt(e,n):null};function Tc(e,t,n,r){const o=rf(e,r,t),i=t[H],a=function Dv(e,t,n){return Cv(e,t,n)}(r.parent||t[lt],r,t);if(null!=o)if(Array.isArray(n))for(let c=0;cO&&Av(e,t,O,!1),xn(s?2:0,o),n(r,o)}finally{Jr(i),xn(s?3:1,o)}}function df(e,t,n){if(ed(t)){const r=q(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function Pv(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;const s=t[i];if(void 0===s)continue;r??={};let a,c=_r.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=i;if(null!==o){if(!o.hasOwnProperty(i))continue;l=o[i]}0===e?Fv(r,n,l,a,c):Fv(r,n,l,a)}return r}function Fv(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],void 0!==o&&i.push(o)}function Ht(e,t,n,r,o,i,s,a){const c=wt(t,n);let u,l=t.inputs;!a&&null!=l&&(u=l[r])?(_f(e,n,u,r,o),Yr(t)&&function LN(e,t){const n=qt(t,e);16&n[x]||(n[x]|=64)}(n,t.index)):3&t.type&&(r=function kN(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(c,r,o))}function gf(e,t,n,r){if(Sm()){const o=null===r?null:{"":-1},i=function $N(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,_s(e,n,o.hostVars,Z),o)}function Ln(e,t,n,r,o,i){const s=wt(e,t);!function yf(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?z(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[H],s,i,e.value,n,r,o)}function YN(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{qa(e.lView)},consumerOnSignalRead(){this.lView[en]=this}},iR={...Ie,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=tr(e.lView);for(;t&&!zv(t[T]);)t=tr(t);t&&Im(t)},consumerOnSignalRead(){this.lView[en]=this}};function zv(e){return 2!==e.type}const sR=100;function Rc(e,t=!0,n=0){const r=e[Rn],o=r.rendererFactory;o.begin?.();try{!function aR(e,t){const n=Om();try{xm(!0),Cf(e,t);let r=0;for(;ts(e);){if(r===sR)throw new w(103,!1);r++,Cf(e,1)}}finally{xm(n)}}(e,n)}catch(s){throw t&&Nc(e,s),s}finally{o.end?.(),r.inlineEffectRunner?.flush()}}function cR(e,t,n,r){const o=t[x];if(!(256&~o))return;t[Rn].inlineEffectRunner?.flush(),pd(t);let a=!0,c=null,l=null;zv(e)?(l=function eR(e){return e[en]??function tR(e){const t=Gv.pop()??Object.create(rR);return t.lView=e,t}(e)}(t),c=Mn(l)):null===function Wn(){return Pe}()?(a=!1,l=function oR(e){const t=e[en]??Object.create(iR);return t.lView=e,t}(t),c=Mn(l)):t[en]&&(ln(t[en]),t[en]=null);try{bm(t),function Pm(e){return j.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Rv(e,t,n,2,r);const u=!(3&~o);if(u){const f=e.preOrderCheckHooks;null!==f&&Ya(t,f,null)}else{const f=e.preOrderHooks;null!==f&&Ka(t,f,0,null),md(t,0)}if(function lR(e){for(let t=Iy(e);null!==t;t=Ty(t)){if(!(t[x]&Ua.HasTransplantedViews))continue;const n=t[zo];for(let r=0;r-1&&(ys(t,r),Na(n,r))}this._attachedToViewContainer=!1}Ic(this._lView[T],this._lView)}onDestroy(t){Ga(this._lView,t)}markForCheck(){Es(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[x]&=-129}reattach(){sd(this._lView),this._lView[x]|=128}detectChanges(){this._lView[x]|=1024,Rc(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Ji(this._lView),n=this._lView[Zr];null!==n&&!t&&tf(n,this._lView),gv(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t;const n=Ji(this._lView),r=this._lView[Zr];null!==r&&!n&&mv(r,this._lView),sd(this._lView)}}let sr=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=hR}return e})();const dR=sr,fR=class extends dR{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const o=function oi(e,t,n,r){const o=q(null);try{const i=t.tView,c=Sc(e,i,n,4096&e[x]?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[Zr]=e[t.index];const u=e[Xn];return null!==u&&(c[Xn]=u.createEmbeddedView(i)),Df(i,c,n),c}finally{q(o)}}(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Cs(o)}};function hR(){return function Oc(e,t){return 4&e.type?new fR(t,e,Ko(e,t)):null}(me(),D())}class ai{}const Ns=new R("",{providedIn:"root",factory:()=>!1}),v_=new R("");class iO{}class __{}class aO{resolveComponentFactory(t){throw function sO(e){const t=Error(`No component factory found for ${Qe(e)}.`);return t.ngComponent=e,t}(t)}}class Vc{static#e=this.NULL=new aO}class xf{}let lo=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function cO(){const e=D(),n=qt(me().index,e);return(st(n)?n:e)[H]}()}return e})(),lO=(()=>{class e{static#e=this.\u0275prov=U({token:e,providedIn:"root",factory:()=>null})}return e})();const E_=new Set;function It(e){E_.has(e)||(E_.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}let Hc=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=U({token:e,providedIn:"root",factory:()=>new e})}return e})();function Bc(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&Mv(e,n,i.join(" "))}}(f,fe,g,r),void 0!==n&&function bO(e,t,n){const r=e.projection=[];for(let o=0;o{class e{static#e=this.__NG_ELEMENT_ID__=TO}return e})();function TO(){return function N_(e,t){let n;const r=t[e.index];return pt(r)?n=r:(n=Vv(r,t,null,e),t[e.index]=n,Ac(t,n)),R_(n,t,e,r),new S_(n,e,t)}(me(),D())}const MO=Vn,S_=class extends MO{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ko(this._hostTNode,this._hostLView)}get injector(){return new et(this._hostTNode,this._hostLView)}get parentInjector(){const t=Xa(this._hostTNode,this._hostLView);if(_d(t)){const n=ss(t,this._hostLView),r=is(t);return new et(n[T].data[r+8],n)}return new et(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=A_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ve}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,so(this._hostTNode,null)),a}createComponent(t,n,r,o,i){const s=t&&!function Yi(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}const c=s?t:new xs(J(t)),l=r||this.parentInjector;if(!i&&null==c.ngModule){const g=(s?l:this.parentInjector).get(Xt,null);g&&(i=g)}J(c.componentType??{});const f=c.create(l,o,null,i);return this.insertImpl(f.hostView,a,so(this._hostTNode,null)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const o=t._lView;if(function zS(e){return pt(e[Ge])}(o)){const a=this.indexOf(t);if(-1!==a)this.detach(a);else{const c=o[Ge],l=new S_(c,c[lt],c[Ge]);l.detach(l.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;return function ii(e,t,n,r=!0){const o=t[T];if(function vN(e,t,n,r){const o=Ve+r,i=n.length;r>0&&(n[o-1][gn]=t),r!1;function ci(e,t){It("NgSignals");const n=function he(e){const t=Object.create(So);t.value=e;const n=()=>(Ue(t),t.value);return n[Yt]=t,n}(e),r=n[Yt];return t?.equal&&(r.equal=t.equal),n.set=o=>Kn(r,o),n.update=o=>function Ot(e,t){it()||L(),Kn(e,t(e.value))}(r,o),n.asReadonly=U_.bind(n),n}function U_(){const e=this[Yt];if(void 0===e.readonlyFn){const t=()=>this();t[Yt]=e,e.readonlyFn=t}return e.readonlyFn}function $_(e){return function B_(e){return"function"==typeof e&&void 0!==e[Yt]}(e)&&"function"==typeof e.set}function ye(e){let t=function eD(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(mn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new w(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=$c(e.inputs),s.inputTransforms=$c(e.inputTransforms),s.declaredInputs=$c(e.declaredInputs),s.outputs=$c(e.outputs);const a=o.hostBindings;a&&QO(e,a);const c=o.viewQuery,l=o.contentQueries;if(c&&YO(e,c),l&&KO(e,l),WO(e,o),PM(e.outputs,o.outputs),mn(o)&&o.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Wi(o.hostAttrs,n=Wi(n,o.hostAttrs))}}(r)}function WO(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const o=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=t.inputTransforms[o]}}}function $c(e){return e===An?{}:e===oe?[]:e}function YO(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function KO(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function QO(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}class fo{}class oD extends fo{constructor(t){super(),this.componentFactoryResolver=new T_(this),this.instance=null;const n=new Ho([...t.providers,{provide:fo,useValue:this},{provide:Vc,useValue:this.componentFactoryResolver}],t.parent||La(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function qc(e){return!!Yf(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Yf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Hn(e,t,n){return e[t]=n}function He(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ks(e,t,n,r,o,i,s,a,c,l){const u=n+O,d=t.firstCreatePass?function d1(e,t,n,r,o,i,s,a,c){const l=t.consts,u=io(t,e,4,s||null,a||null);gf(t,n,u,tn(l,c)),Za(t,u);const d=u.tView=pf(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,t,e,r,o,i,s,a,c):t.data[u];yn(d,!1);const h=sD(t,e,d,n);rs()&&Tc(t,e,h,d),yt(h,e);const f=Vv(h,e,h,d);return e[u]=f,Ac(e,f),function O_(e,t,n){return Vf(e,t,n)}(f,d,e),$a(d)&&ff(t,e,d),null!=c&&hf(e,d,l),d}function Y(e,t,n,r,o,i,s,a){const c=D(),l=Q();return ks(c,l,e,t,n,r,o,tn(l.consts,i),s,a),Y}let sD=function aD(e,t,n,r){return Pn(!0),t[H].createComment("")};function vt(e,t,n,r){const o=D();return He(o,vn(),t)&&(Q(),Ln(Ce(),o,e,t,n,r)),vt}function vi(e,t,n,r){return He(e,vn(),n)?t+z(n)+r:Z}function _i(e,t,n,r,o,i){const a=function ho(e,t,n,r){const o=He(e,t,n);return He(e,t+1,r)||o}(e,function nr(){return j.lFrame.bindingIndex}(),n,o);return rr(2),a?t+z(n)+r+z(o)+i:Z}function Qc(e,t){return e<<17|t<<2}function Tr(e){return e>>17&32767}function sh(e){return 2|e}function go(e){return(131068&e)>>2}function ah(e,t){return-131069&e|t<<2}function ch(e){return 1|e}function VD(e,t,n,r){const o=e[n+1],i=null===t;let s=r?Tr(o):go(o),a=!1;for(;0!==s&&(!1===a||i);){const l=e[s+1];K1(e[s],t)&&(a=!0,e[s+1]=r?ch(l):sh(l)),s=r?Tr(l):go(l)}a&&(e[n+1]=r?sh(o):ch(o))}function K1(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ko(e,t)>=0}const nt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function HD(e){return e.substring(nt.key,nt.keyEnd)}function Q1(e){return e.substring(nt.value,nt.valueEnd)}function jD(e,t){const n=nt.textEnd;return n===t?-1:(t=nt.keyEnd=function ex(e,t,n){for(;t32;)t++;return t}(e,nt.key=t,n),Ti(e,t,n))}function BD(e,t){const n=nt.textEnd;let r=nt.key=Ti(e,t,n);return n===r?-1:(r=nt.keyEnd=function tx(e,t,n){let r;for(;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=$D(e,r,n),r=nt.value=Ti(e,r,n),r=nt.valueEnd=function nx(e,t,n){let r=-1,o=-1,i=-1,s=t,a=s;for(;s32&&(a=s),i=o,o=r,r=-33&c}return a}(e,r,n),$D(e,r,n))}function UD(e){nt.key=0,nt.keyEnd=0,nt.value=0,nt.valueEnd=0,nt.textEnd=e.length}function Ti(e,t,n){for(;t=0;n=BD(t,n))ZD(e,HD(t),Q1(t))}function mo(e){Cn(lx,jn,e,!0)}function jn(e,t){for(let n=function J1(e){return UD(e),jD(e,Ti(e,0,nt.textEnd))}(t);n>=0;n=jD(t,n))$t(e,HD(t),!0)}function Cn(e,t,n,r){const o=Q(),i=rr(2);o.firstUpdatePass&&WD(o,null,i,r);const s=D();if(n!==Z&&He(s,i,n)){const a=o.data[ut()];if(QD(a,r)&&!zD(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(n=Iu(c,n||"")),lh(o,a,s,n,r)}else!function ux(e,t,n,r,o,i,s,a){o===Z&&(o=oe);let c=0,l=0,u=0=e.expandoStartIndex}function WD(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[ut()],s=zD(e,n);QD(i,r)&&null===t&&!s&&(t=!1),t=function ox(e,t,n,r){const o=function fd(e){const t=j.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=js(n=uh(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=uh(o,e,t,n,r),null===i){let c=function ix(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==go(r))return e[Tr(r)]}(e,t,r);void 0!==c&&Array.isArray(c)&&(c=uh(null,e,t,c[1],r),c=js(c,t.attrs,r),function sx(e,t,n,r){e[Tr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,c))}else i=function ax(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(l=!0)):u=n,o)if(0!==c){const h=Tr(e[a+1]);e[r+1]=Qc(h,a),0!==h&&(e[h+1]=ah(e[h+1],r)),e[a+1]=function z1(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Qc(a,0),0!==a&&(e[a+1]=ah(e[a+1],r)),a=r;else e[r+1]=Qc(c,0),0===a?a=r:e[c+1]=ah(e[c+1],r),c=r;l&&(e[r+1]=sh(e[r+1])),VD(e,u,r,!0),VD(e,u,r,!1),function Y1(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&ko(i,t)>=0&&(n[r+1]=ch(n[r+1]))}(t,u,e,r,i),s=Qc(a,c),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}function uh(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let h=n[o+1];h===Z&&(h=d?oe:void 0);let f=d?Bu(h,r):u===r?h:void 0;if(l&&!Xc(f)&&(f=Bu(c,r)),Xc(f)&&(a=f,s))return a;const p=e[o+1];o=s?Tr(p):go(p)}if(null!==t){let c=i?t.residualClasses:t.residualStyles;null!=c&&(a=Bu(c,r))}return a}function Xc(e){return void 0!==e}function QD(e,t){return!!(e.flags&(t?8:16))}function y(e,t,n,r){const o=D(),i=Q(),s=O+e,a=o[H],c=i.firstCreatePass?function Px(e,t,n,r,o,i){const s=t.consts,c=io(t,e,2,r,tn(s,o));return gf(t,n,c,tn(s,i)),null!==c.attrs&&Bc(c,c.attrs,!1),null!==c.mergedAttrs&&Bc(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,i,o,t,n,r):i.data[s],l=tE(i,o,c,a,t,e);o[s]=l;const u=$a(c);return yn(c,!0),Sv(a,l,c),!function ui(e){return!(32&~e.flags)}(c)&&rs()&&Tc(i,o,l,c),0===function WS(){return j.lFrame.elementDepthCount}()&&yt(l,o),function ZS(){j.lFrame.elementDepthCount++}(),u&&(ff(i,o,c),df(i,c,o)),null!==r&&hf(o,c),y}function m(){let e=me();ld()?function ud(){j.lFrame.isParent=!1}():(e=e.parent,yn(e,!1));const t=e;(function KS(e){return j.skipHydrationRootTNode===e})(t)&&function e0(){j.skipHydrationRootTNode=null}(),function YS(){j.lFrame.elementDepthCount--}();const n=Q();return n.firstCreatePass&&(Za(n,e),ed(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function p0(e){return!!(8&e.flags)}(t)&&lh(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function g0(e){return!!(16&e.flags)}(t)&&lh(n,t,D(),t.stylesWithoutHost,!1),m}function re(e,t,n,r){return y(e,t,n,r),m(),re}let tE=(e,t,n,r,o,i)=>(Pn(!0),bc(r,o,function Bm(){return j.lFrame.currentNamespace}()));function Mt(){return D()}const Si="en-US";let cE=Si;let ME=(e,t,n)=>{};function ce(e,t,n,r){const o=D(),i=Q(),s=me();return vh(i,o,o[H],s,e,t,r),ce}function vh(e,t,n,r,o,i,s){const a=$a(r),l=e.firstCreatePass&&function Bv(e){return e.cleanup??=[]}(e),u=t[Ee],d=function jv(e){return e[Uo]??=[]}(t);let h=!0;if(3&r.type||s){const g=wt(r,t),v=s?s(g):g,E=d.length,_=s?F=>s(ie(F[r.index])):r.index;let S=null;if(!s&&a&&(S=function AP(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;ic?a[c]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,h=!1;else{i=RE(r,t,u,i),ME(g,o,i);const F=n.listen(v,o,i);d.push(i,F),l&&l.push(o,_,E,E+1)}}else i=RE(r,t,u,i);const f=r.outputs;let p;if(h&&null!==f&&(p=f[o])){const g=p.length;if(g)for(let v=0;v-1?qt(e.index,t):t,5);let a=NE(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=NE(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function A(e=1){return function s0(e){return(j.lFrame.contextLView=function Tm(e,t){for(;e>0;)t=t[$o],e--;return t}(e,j.lFrame.contextLView))[Ee]}(e)}function Bn(e,t,n){return vo(e,"",t,"",n),Bn}function vo(e,t,n,r,o){const i=D(),s=vi(i,t,n,r);return s!==Z&&Ht(Q(),Ce(),i,e,s,i[H],o,!1),vo}function ol(e){return Kr(function Nm(){return j.lFrame.contextLView}(),O+e)}function b(e,t=""){const n=D(),r=Q(),o=e+O,i=r.firstCreatePass?io(r,o,1,t,null):r.data[o],s=YE(r,n,i,t,e);n[o]=s,rs()&&Tc(r,n,s,i),yn(i,!1)}let YE=(e,t,n,r,o)=>(Pn(!0),function Xd(e,t){return e.createText(t)}(t[H],r));function Me(e){return sn("",e,""),Me}function sn(e,t,n){const r=D(),o=vi(r,e,t,n);return o!==Z&&ir(r,ut(),o),sn}function zs(e,t,n,r,o){const i=D(),s=_i(i,e,t,n,r,o);return s!==Z&&ir(i,ut(),s),zs}function wn(e,t,n){$_(t)&&(t=t());const r=D();return He(r,vn(),t)&&Ht(Q(),Ce(),r,e,t,r[H],n,!1),wn}function Un(e,t){const n=$_(e);return n&&e.set(t),n}function bn(e,t){const n=D(),r=Q(),o=me();return vh(r,n,n[H],o,e,t),bn}function Dh(e,t,n,r,o){if(e=V(e),Array.isArray(e))for(let i=0;i>20;if(Wr(e)||!e.multi){const f=new os(l,o,I),p=Ch(c,t,o?u:u+h,d);-1===p?(Cd(Ja(a,s),i,c),Eh(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{const f=Ch(c,t,u+h,d),p=Ch(c,t,u,u+h),v=p>=0&&n[p];if(o&&!v||!o&&!(f>=0&&n[f])){Cd(Ja(a,s),i,c);const E=function rF(e,t,n,r,o){const i=new os(e,n,I);return i.multi=[],i.index=t,i.componentProviders=0,iC(i,o,r&&!n),i}(o?nF:tF,n.length,o,r,l);!o&&v&&(n[p].providerFactory=E),Eh(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(E),s.push(E)}else Eh(i,e,f>-1?f:p,iC(n[o?p:f],l,!o&&r));!o&&r&&v&&n[p].componentProviders++}}}function Eh(e,t,n,r){const o=Wr(t),i=function DS(e){return!!e.useClass}(t);if(o||i){const c=(i?V(t.useClass):t).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const u=l.indexOf(n);-1===u?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function iC(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ch(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function eF(e,t,n){const r=Q();if(r.firstCreatePass){const o=mn(e);Dh(n,r.data,r.blueprint,o,!0),Dh(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}let oF=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Gu(0,n.type),o=r.length>0?function iD(e,t,n=null){return new oD({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=U({token:e,providedIn:"environment",factory:()=>new e($(Xt))})}return e})();function Ai(e){It("NgStandalone"),e.getStandaloneInjector=t=>t.get(oF).getOrCreateStandaloneInjector(e)}function al(e,t,n){const r=bt()+e,o=D();return o[r]===Z?Hn(o,r,n?t.call(n):t()):function Fs(e,t){return e[t]}(o,r)}function cC(e,t,n,r,o,i){const s=t+n;return He(e,s,o)?Hn(e,s+1,i?r.call(i,o):r(o)):function Ws(e,t){const n=e[t];return n===Z?void 0:n}(e,s+1)}function bh(e,t){const n=Q();let r;const o=e+O;n.firstCreatePass?(r=function yF(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Gr(r.type)),a=Pt(I);try{const c=Qa(!1),l=i();return Qa(c),function _h(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,D(),o,l),l}finally{Pt(a)}}function Ih(e,t,n){const r=e+O,o=D(),i=Kr(o,r);return function Zs(e,t){return e[T].data[t].pure}(o,r)?cC(o,bt(),t,i.transform,n,i):i.transform(n)}const OC=new R(""),dl=new R("");let xh,Rh=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,xh||(function mk(e){xh=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{pe.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static#e=this.\u0275fac=function(r){return new(r||e)($(pe),$(Oh),$(dl))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})(),Oh=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return xh?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function fl(e){return!!e&&"function"==typeof e.then}function xC(e){return!!e&&"function"==typeof e.subscribe}const yk=new R("");let Ph=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=N(yk,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(fl(i))n.push(i);else if(xC(i)){const s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Fh=new R("");let $n=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=N(U0),this.afterRenderEffectManager=N(Hc),this.zonelessEnabled=N(Ns),this.externalTestViews=new Set,this.beforeRender=new Et,this.afterTick=new Et,this.componentTypes=[],this.components=[],this.isStable=N(Er).hasPendingTasks.pipe(gr(n=>!n)),this._injector=N(Xt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof __;if(!this._injector.get(Ph).done)throw!o&&function zr(e){const t=J(e)||Je(e)||ct(e);return null!==t&&t.standalone}(n),new w(405,!1);let s;s=o?n:this._injector.get(Vc).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function vk(e){return e.isBoundToModule}(s)?void 0:this._injector.get(fo),l=s.create(tt.NULL,[],r||s.selector,a),u=l.location.nativeElement,d=l.injector.get(OC,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),hl(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new w(101,!1);const r=q(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,q(r),this.afterTick.next()}}detectChangesInAttachedViews(n){let r=null;this._injector.destroyed||(r=this._injector.get(xf,null,{optional:!0}));let o=0;const i=this.afterRenderEffectManager;for(;o<10;){const s=0===o;if(n||!s){this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:c}of this._views)Dk(a,c,s,this.zonelessEnabled)}else r?.begin?.(),r?.end?.();if(o++,i.executeInternalCallbacks(),!this.allViews.some(({_lView:a})=>ts(a))&&(i.execute(),!this.allViews.some(({_lView:a})=>ts(a))))break}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;hl(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Fh,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>hl(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Dk(e,t,n,r){(n||ts(e))&&Rc(e,t,n&&!r?0:1)}let bk=(()=>{class e{constructor(){this.zone=N(pe),this.changeDetectionScheduler=N(ai),this.applicationRef=N($n)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function kh({ngZoneFactory:e,ignoreChangesOutsideZone:t}){return e??=()=>new pe(function Lh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}()),[{provide:pe,useFactory:e},{provide:Nn,multi:!0,useFactory:()=>{const n=N(bk,{optional:!0});return()=>n.initialize()}},{provide:Nn,multi:!0,useFactory:()=>{const n=N(Tk);return()=>{n.initialize()}}},!0===t?{provide:v_,useValue:!0}:[]]}let Tk=(()=>{class e{constructor(){this.subscription=new Jt,this.initialized=!1,this.zone=N(pe),this.pendingTasks=N(Er)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{pe.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{pe.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Qs=(()=>{class e{constructor(){this.appRef=N($n),this.taskService=N(Er),this.ngZone=N(pe),this.zonelessEnabled=N(Ns),this.disableScheduling=N(v_,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Jt,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Sd||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&5===n)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:this.shouldRefreshViews=!0}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?uy:ly;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&pe.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;const r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(r),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,uy(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ar=new R("",{providedIn:"root",factory:()=>N(ar,te.Optional|te.SkipSelf)||function Mk(){return typeof $localize<"u"&&$localize.locale||Si}()}),Hh=new R("");let Mr=null;let Bh=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=xk}return e})();function xk(e){return function Pk(e,t,n){if(Yr(e)&&!n){const r=qt(e.index,t);return new Cs(r,r)}return 175&e.type?new Cs(t[xe],t):null}(me(),D(),!(16&~e))}class YC{constructor(){}supports(t){return qc(t)}create(t){return new Hk(t)}}const Vk=(e,t)=>t;class Hk{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Vk}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new jk(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new KC),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new KC),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class jk{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Bk{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class KC{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new Bk,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function QC(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new $k(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class $k{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function XC(){return new zh([new YC])}let zh=(()=>{class e{static#e=this.\u0275prov=U({token:e,providedIn:"root",factory:XC});constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||XC()),deps:[[e,new Hu,new Vu]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new w(901,!1)}}return e})();function ew(){return new yl([new JC])}let yl=(()=>{class e{static#e=this.\u0275prov=U({token:e,providedIn:"root",factory:ew});constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||ew()),deps:[[e,new Hu,new Vu]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new w(901,!1)}}return e})(),zk=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)($($n))};static#t=this.\u0275mod=Vo({type:e});static#n=this.\u0275inj=qr({})}return e})();function aL(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e,o=function Ok(e=[]){if(Mr)return Mr;const t=function $C(e=[],t){return tt.create({name:t,providers:[{provide:Zu,useValue:"platform"},{provide:Hh,useValue:new Set([()=>Mr=null])},...e]})}(e);return Mr=t,function PC(){!function Qt(e){K=e}(()=>{throw new w(600,!1)})}(),function qC(e){e.get(Fy,null)?.forEach(n=>n())}(t),t}(r),i=[kh({}),{provide:ai,useExisting:Qs},...n||[]],a=new oD({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(pe);return c.run(()=>{a.resolveInjectorInitializers();const l=a.get(_n,null);let u;c.runOutsideAngular(()=>{u=c.onError.subscribe({next:f=>{l.handleError(f)}})});const d=()=>a.destroy(),h=o.get(Hh);return h.add(d),a.onDestroy(()=>{u.unsubscribe(),h.delete(d)}),function FC(e,t,n){try{const r=n();return fl(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(l,c,()=>{const f=a.get(Ph);return f.runInitializers(),f.donePromise.then(()=>{!function lE(e){"string"==typeof e&&(cE=e.toLowerCase().replace(/_/g,"-"))}(a.get(ar,Si)||Si);const g=a.get($n);return void 0!==t&&g.bootstrap(t),g})})})}catch(t){return Promise.reject(t)}}const yw=new R("");function ta(e,t){It("NgSignals");const n=function Sn(e){const t=Object.create(Ye);t.computation=e;const n=()=>{if(ot(t),Ue(t),t.value===G)throw t.error;return t.value};return n[Yt]=t,n}(e);return t?.equal&&(n[Yt].equal=t.equal),n}function qn(e){const t=q(null);try{return e()}finally{q(t)}}let Mw=null;function na(){return Mw}class kL{}const Gn=new R("");function kw(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}class b2{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let oa=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new b2(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),Hw(a,o)}});for(let o=0,i=r.length;o{Hw(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(I(Vn),I(sr),I(zh))};static#t=this.\u0275dir=W({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function Hw(e,t){e.context.$implicit=t.item}let xi=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new I2,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){jw("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){jw("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(I(Vn),I(sr))};static#t=this.\u0275dir=W({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class I2{constructor(){this.$implicit=null,this.ngIf=null}}function jw(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Qe(t)}'.`)}let lp=(()=>{class e{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=Uw}transform(n,r=Uw){if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ??=this.differs.find(n).create();const o=this.differ.diff(n),i=r!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(s=>{this.keyValues.push(function G2(e,t){return{key:e,value:t}}(s.key,s.currentValue))})),(o||i)&&(this.keyValues.sort(r),this.compareFn=r),this.keyValues}static#e=this.\u0275fac=function(r){return new(r||e)(I(yl,16))};static#t=this.\u0275pipe=kt({name:"keyvalue",type:e,pure:!1,standalone:!0})}return e})();function Uw(e,t){const n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Vo({type:e});static#n=this.\u0275inj=qr({})}return e})();function qw(e){return"server"===e}class Gw{}function tb(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(l){return void n(l)}a.done?t(c):Promise.resolve(c).then(r,o)}function gp(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(c){tb(i,r,o,s,a,"next",c)}function a(c){tb(i,r,o,s,a,"throw",c)}s(void 0)})}}function mp(e){return e[e.length-1]}function Sr(e){return this instanceof Sr?(this.v=e,this):new Sr(e)}function ib(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Dp(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){!function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}(a,c,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const sb=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function ab(e){return Le(e?.then)}function cb(e){return Le(e[mu])}function lb(e){return Symbol.asyncIterator&&Le(e?.[Symbol.asyncIterator])}function ub(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const db=function YV(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function fb(e){return Le(e?.[db])}function hb(e){return function ob(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},a("next"),a("throw"),a("return",function s(f){return function(p){return Promise.resolve(p).then(f,d)}}),o[Symbol.asyncIterator]=function(){return this},o;function a(f,p){r[f]&&(o[f]=function(g){return new Promise(function(v,E){i.push([f,g,v,E])>1||c(f,g)})},p&&(o[f]=p(o[f])))}function c(f,p){try{!function l(f){f.value instanceof Sr?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}(r[f](p))}catch(g){h(i[0][3],g)}}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,p){f(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield Sr(n.read());if(o)return yield Sr(void 0);yield yield Sr(r)}}finally{n.releaseLock()}})}function pb(e){return Le(e?.getReader)}function Do(e){if(e instanceof xt)return e;if(null!=e){if(cb(e))return function KV(e){return new xt(t=>{const n=e[mu]();if(Le(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(sb(e))return function QV(e){return new xt(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ug)})}(e);if(lb(e))return gb(e);if(fb(e))return function XV(e){return new xt(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(pb(e))return function eH(e){return gb(hb(e))}(e)}throw ub(e)}function gb(e){return new xt(t=>{(function tH(e,t){var n,r,o,i;return function nb(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=ib(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Ar(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function mb(e,t=0){return Ur((n,r)=>{n.subscribe(pr(r,o=>Ar(r,e,()=>r.next(o),t),()=>Ar(r,e,()=>r.complete(),t),o=>Ar(r,e,()=>r.error(o),t)))})}function yb(e,t=0){return Ur((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function vb(e,t){if(!e)throw new Error("Iterable cannot be null");return new xt(n=>{Ar(n,t,()=>{const r=e[Symbol.asyncIterator]();Ar(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ep(e,t){return t?function aH(e,t){if(null!=e){if(cb(e))return function nH(e,t){return Do(e).pipe(yb(t),mb(t))}(e,t);if(sb(e))return function oH(e,t){return new xt(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(ab(e))return function rH(e,t){return Do(e).pipe(yb(t),mb(t))}(e,t);if(lb(e))return vb(e,t);if(fb(e))return function iH(e,t){return new xt(n=>{let r;return Ar(n,t,()=>{r=e[db](),Ar(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>Le(r?.return)&&r.return()})}(e,t);if(pb(e))return function sH(e,t){return vb(hb(e),t)}(e,t)}throw ub(e)}(e,t):Do(e)}function _b(...e){return Ep(e,function MV(e){return function IV(e){return e&&Le(e.schedule)}(mp(e))?e.pop():void 0}(e))}function Cp(e,t,n=1/0){return Le(t)?Cp((r,o)=>gr((i,s)=>t(r,i,o,s))(Do(e(r,o))),n):("number"==typeof t&&(n=t),Ur((r,o)=>function cH(e,t,n,r,o,i,s,a){const c=[];let l=0,u=0,d=!1;const h=()=>{d&&!c.length&&!l&&t.complete()},f=g=>l{i&&t.next(g),l++;let v=!1;Do(n(g,u++)).subscribe(pr(t,E=>{o?.(E),i?f(E):t.next(E)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&lp(E)):p(E)}h()}catch(E){t.error(E)}}))};return e.subscribe(pr(t,f,()=>{d=!0,h()})),()=>{a?.()}}(r,o,e,n)))}function Db(e){return Ur((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}class Vl{}class Hl{}class dt{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?"string"==typeof t?this.lazyInit=()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof dt?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(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new dt;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof dt?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}setHeaderEntries(t,n){const r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class fH{encodeKey(t){return Eb(t)}encodeValue(t){return Eb(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const pH=/%(\d[a-f0-9])/gi,gH={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Eb(e){return encodeURIComponent(e).replace(pH,(t,n)=>gH[n]??t)}function jl(e){return`${e}`}class Nr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new fH,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function hH(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(jl):[jl(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new Nr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(jl(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(jl(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class mH{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),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 Cb(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function wb(e){return typeof Blob<"u"&&e instanceof Blob}function bb(e){return typeof FormData<"u"&&e instanceof FormData}class aa{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function yH(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new dt,this.context??=new mH,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ah.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),u)),new aa(n,r,s,{params:u,headers:l,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}}var Rr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Rr||{});class wp{constructor(t,n=200,r="OK"){this.headers=t.headers||new dt,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Bl extends wp{constructor(t={}){super(t),this.type=Rr.ResponseHeader}clone(t={}){return new Bl({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Eo extends wp{constructor(t={}){super(t),this.type=Rr.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Eo({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Fi extends wp{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function bp(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Tb=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof aa)i=n;else{let c,l;c=o.headers instanceof dt?o.headers:new dt(o.headers),o.params&&(l=o.params instanceof Nr?o.params:new Nr({fromObject:o.params})),i=new aa(n,r,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const s=_b(i).pipe(function lH(e,t){return Le(t)?Cp(e,t,1):Cp(e,1)}(c=>this.handler.handle(c)));if(n instanceof aa||"events"===o.observe)return s;const a=s.pipe(function uH(e,t){return Ur((n,r)=>{let o=0;n.subscribe(pr(r,i=>e.call(t,i,o++)&&r.next(i)))})}(c=>c instanceof Eo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(gr(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(gr(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(gr(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(gr(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new Nr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,bp(o,r))}post(n,r,o={}){return this.request("POST",n,bp(o,r))}put(n,r,o={}){return this.request("PUT",n,bp(o,r))}static#e=this.\u0275fac=function(r){return new(r||e)($(Vl))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();const EH=/^\)\]\}',?\n/;function Mb(e){if(e.url)return e.url;const t="X-Request-URL".toLocaleLowerCase();return e.headers.get(t)}let Ip=(()=>{class e{constructor(){this.fetchImpl=N(wH,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=N(pe)}handle(n){return new xt(r=>{const o=new AbortController;return this.doRequest(n,o.signal,r).then(Tp,i=>r.error(new Fi({error:i}))),()=>o.abort()})}doRequest(n,r,o){var i=this;return gp(function*(){const s=i.createRequestInit(n);let a;try{const p=i.ngZone.runOutsideAngular(()=>i.fetchImpl(n.urlWithParams,{signal:r,...s}));(function bH(e){e.then(Tp,Tp)})(p),o.next({type:Rr.Sent}),a=yield p}catch(p){return void o.error(new Fi({error:p,status:p.status??0,statusText:p.statusText,url:n.urlWithParams,headers:p.headers}))}const c=new dt(a.headers),l=a.statusText,u=Mb(a)??n.urlWithParams;let d=a.status,h=null;if(n.reportProgress&&o.next(new Bl({headers:c,status:d,statusText:l,url:u})),a.body){const p=a.headers.get("content-length"),g=[],v=a.body.getReader();let _,S,E=0;const F=typeof Zone<"u"&&Zone.current;yield i.ngZone.runOutsideAngular(gp(function*(){for(;;){const{done:fe,value:at}=yield v.read();if(fe)break;if(g.push(at),E+=at.length,n.reportProgress){S="text"===n.responseType?(S??"")+(_??=new TextDecoder).decode(at,{stream:!0}):void 0;const ur=()=>o.next({type:Rr.DownloadProgress,total:p?+p:void 0,loaded:E,partialText:S});F?F.run(ur):ur()}}}));const X=i.concatChunks(g,E);try{const fe=a.headers.get("Content-Type")??"";h=i.parseBody(n,X,fe)}catch(fe){return void o.error(new Fi({error:fe,headers:new dt(a.headers),status:a.status,statusText:a.statusText,url:Mb(a)??n.urlWithParams}))}}0===d&&(d=h?200:0),d>=200&&d<300?(o.next(new Eo({body:h,headers:c,status:d,statusText:l,url:u})),o.complete()):o.error(new Fi({error:h,headers:c,status:d,statusText:l,url:u}))})()}parseBody(n,r,o){switch(n.responseType){case"json":const i=(new TextDecoder).decode(r).replace(EH,"");return""===i?null:JSON.parse(i);case"text":return(new TextDecoder).decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){const r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){const i=n.detectContentTypeHeader();null!==i&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){const o=new Uint8Array(r);let i=0;for(const s of n)o.set(s,i),i+=s.length;return o}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();class wH{}function Tp(){}function Sb(e,t){return t(e)}function IH(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const MH=new R(""),ca=new R(""),Ab=new R(""),Nb=new R("",{providedIn:"root",factory:()=>!0});function SH(){let e=null;return(t,n)=>{null===e&&(e=(N(MH,{optional:!0})??[]).reduceRight(IH,Sb));const r=N(Er);if(N(Nb)){const i=r.add();return e(t,n).pipe(Db(()=>r.remove(i)))}return e(t,n)}}let Rb=(()=>{class e extends Vl{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=N(Er),this.contributeToStability=N(Nb)}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(ca),...this.injector.get(Ab,[])]));this.chain=r.reduceRight((o,i)=>function TH(e,t,n){return(r,o)=>function um(e,t){e instanceof Ho&&e.assertNotDestroyed();const r=vr(e),o=Pt(void 0);try{return t()}finally{vr(r),Pt(o)}}(n,()=>t(r,i=>e(i,o)))}(o,i,this.injector),Sb)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Db(()=>this.pendingTasks.remove(r)))}return this.chain(n,r=>this.backend.handle(r))}static#e=this.\u0275fac=function(r){return new(r||e)($(Hl),$(Xt))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();const xH=/^\)\]\}',?\n/;let xb=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new w(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Ep(r.\u0275loadImpl()):_b(null)).pipe(function dH(e,t){return Ur((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(pr(r,c=>{o?.unsubscribe();let l=0;const u=i++;Do(e(c,u)).subscribe(o=pr(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}(()=>new xt(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,v)=>s.setRequestHeader(g,v.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=n.serializeBody();let c=null;const l=()=>{if(null!==c)return c;const g=s.statusText||"OK",v=new dt(s.getAllResponseHeaders()),E=function PH(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return c=new Bl({headers:v,status:s.status,statusText:g,url:E}),c},u=()=>{let{headers:g,status:v,statusText:E,url:_}=l(),S=null;204!==v&&(S=typeof s.response>"u"?s.responseText:s.response),0===v&&(v=S?200:0);let F=v>=200&&v<300;if("json"===n.responseType&&"string"==typeof S){const X=S;S=S.replace(xH,"");try{S=""!==S?JSON.parse(S):null}catch(fe){S=X,F&&(F=!1,S={error:fe,text:S})}}F?(i.next(new Eo({body:S,headers:g,status:v,statusText:E,url:_||void 0})),i.complete()):i.error(new Fi({error:S,headers:g,status:v,statusText:E,url:_||void 0}))},d=g=>{const{url:v}=l(),E=new Fi({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});i.error(E)};let h=!1;const f=g=>{h||(i.next(l()),h=!0);let v={type:Rr.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),"text"===n.responseType&&s.responseText&&(v.partialText=s.responseText),i.next(v)},p=g=>{let v={type:Rr.UploadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),i.next(v)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),null!==a&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),i.next({type:Rr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)($(Gw))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();const Mp=new R(""),Pb=new R("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Fb=new R("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class kb{}let LH=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=kw(n,this.cookieName),this.lastCookieString=n),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)($(Gn),$(to),$(Pb))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();function VH(e,t){const n=e.url.toLowerCase();if(!N(Mp)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=N(kb).getToken(),o=N(Fb);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Or=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Or||{});const Lb=new R("");var xr=Lr(784);class ki{constructor(t,n){this.key=t,this.value=n}}let $l=(()=>{class e{constructor(){this.uriSubject=new Et,this._uriObservable=this.uriSubject.asObservable(),this.themeSubject=new Et,this._themeObservable=this.themeSubject.asObservable(),this.layoutSubject=new Et,this._layoutObservable=this.layoutSubject.asObservable(),this.httpOptionsSubject=new Et,this._httpOptionsObservable=this.httpOptionsSubject.asObservable(),this.allHttpMethodsForLinksSubject=new Et,this._allHttpMethodsForLinksObservable=this.allHttpMethodsForLinksSubject.asObservable(),this.requestHeadersSubject=new Et,this._requestHeadersObservable=this.requestHeadersSubject.asObservable(),this.reactOnLocationHashChange=!0,this.handleLocationHash(),window.addEventListener("hashchange",()=>this.handleLocationHash(),!1)}get uriObservable(){return this._uriObservable}get themeObservable(){return this._themeObservable}get layoutObservable(){return this._layoutObservable}get httpOptionsObservable(){return this._httpOptionsObservable}get allHttpMethodsForLinksObservable(){return this._allHttpMethodsForLinksObservable}get requestHeadersObservable(){return this._requestHeadersObservable}getUri(){return this.uriParam}setUri(n,r=!0){this.reactOnLocationHashChange=r,this.uriParamBackup=this.uriParam,this.uriParam=n,this.setLocationHash()}getTheme(){return this.themeParam}setTheme(n){this.themeParamBackup=this.themeParam,this.themeParam=n,this.setLocationHash()}getLayout(){return this.layoutParam}setLayout(n){"2"===n||"3"===n?(this.layoutParamBackup=this.layoutParam,this.layoutParam=n,this.setLocationHash()):console.error("Cannot set unknown layout: "+n)}getHttpOptions(){return this.httpOptionsParam}setHttpOptions(n){this.httpOptionsParamBackup=this.httpOptionsParam,this.httpOptionsParam=n,this.setLocationHash()}getAllHttpMethodsForLinks(){return this.allHttpMethodsForLinksParam}setAllHttpMethodsForLinks(n){this.allHttpMethodsForLinksParamBackup=this.allHttpMethodsForLinksParam,this.allHttpMethodsForLinksParam=n,this.setLocationHash()}getCustomRequestHeaders(){return this.customRequestHeaders}setCustomRequestHeaders(n){this.customRequestHeaders=n,this.setLocationHash()}handleLocationHash(){if(!this.reactOnLocationHashChange)return void(this.reactOnLocationHashChange=!0);this.uriParam||(this.uriParam=""),this.themeParam||(this.themeParam="Default"),this.layoutParam||(this.layoutParam="2"),this.httpOptionsParam||(this.httpOptionsParam=!1),this.allHttpMethodsForLinksParam||(this.allHttpMethodsForLinksParam=!1);const n=new Array(5),r=location.hash.substring(1),o=/([^&=]+)=([^&]*)/g;let i=o.exec(r);for(;i;){const a=decodeURIComponent(i[1]);if("theme"===a)this.themeParam=decodeURIComponent(i[2]),i=o.exec(r);else if("layout"===a)this.layoutParam=decodeURIComponent(i[2]),i=o.exec(r);else if("httpOptions"===a){const c=decodeURIComponent(i[2]);this.httpOptionsParam="true"===c,i=o.exec(r)}else if("allHttpMethodsForLinks"===a){const c=decodeURIComponent(i[2]);this.allHttpMethodsForLinksParam="true"===c,i=o.exec(r)}else if(a.startsWith("hkey")){const c=decodeURIComponent(i[2]),l=Number(a.substring(4)),u=n[l];u?u.key=c:n[l]=new ki(c,void 0),i=o.exec(r)}else if(a.startsWith("hval")){const c=decodeURIComponent(i[2]),l=Number(a.substring(4)),u=n[l];u?u.value=c:n[l]=new ki(void 0,c),i=o.exec(r)}else"url"===a?(this.uriParam=r.substring(r.indexOf("url=")+4),i=null):"uri"===a?(this.uriParam=r.substring(r.indexOf("uri=")+4),i=null):i=o.exec(r)}this.uriParamBackup!==this.uriParam&&this.uriSubject.next(this.uriParam),this.themeParamBackup!==this.themeParam&&this.themeSubject.next(this.themeParam),this.layoutParamBackup!==this.layoutParam&&this.layoutSubject.next(this.layoutParam),this.httpOptionsParamBackup!==this.httpOptionsParam&&(this.httpOptionsSubject.next(this.httpOptionsParam),this.uriSubject.next(this.uriParam)),this.allHttpMethodsForLinksParamBackup!==this.allHttpMethodsForLinksParam&&this.allHttpMethodsForLinksSubject.next(this.allHttpMethodsForLinksParam),this.customRequestHeaders=[];let s=!1;for(let a=0;a<5;a++)n[a]&&n[a].key&&n[a].value&&(this.customRequestHeaders.push(n[a]),s=!0);s&&this.requestHeadersSubject.next(this.customRequestHeaders)}setLocationHash(){let n="",r="";"default"!==this.themeParam.toLowerCase()&&(n+=r+"theme="+this.themeParam,r="&"),"2"!==this.layoutParam&&(n+=r+"layout="+this.layoutParam,r="&"),0!=this.httpOptionsParam&&(n+=r+"httpOptions="+this.httpOptionsParam,r="&"),0!=this.allHttpMethodsForLinksParam&&(n+=r+"allHttpMethodsForLinks="+this.allHttpMethodsForLinksParam,r="&");for(let o=0;o{class e{constructor(n,r){this.appService=n,this.http=r,this.responseSubject=new Et,this.responseObservable=this.responseSubject.asObservable(),this.needInfoSubject=new Et,this.needInfoObservable=this.needInfoSubject.asObservable(),this.documentationSubject=new Et,this.documentationObservable=this.documentationSubject.asObservable(),this.requestHeaders=new dt({Accept:"application/prs.hal-forms+json, application/hal+json, application/json, */*"})}getResponseObservable(){return this.responseObservable}getNeedInfoObservable(){return this.needInfoObservable}getDocumentationObservable(){return this.documentationObservable}getUri(n){!n||0===n.trim().length||this.processCommand(Ae.Get,n)}requestUri(n,r,o,i){let s=this.requestHeaders;i||"post"===r.toLowerCase()||"put"===r.toLowerCase()||"patch"===r.toLowerCase()?s=s.set("Content-Type",i||"application/json; charset=utf-8"):this.appService.setUri(n,!1),this.http.request(r,n,{headers:s,observe:"response",body:o}).subscribe({next:a=>{this.responseSubject.next(new zb(a,null))},error:a=>{this.responseSubject.next(new zb(null,a))}})}processCommand(n,r,o){if(n!==Ae.Get||this.isUriTemplated(r)||o){if(n===Ae.Get||n===Ae.Post||n===Ae.Put||n===Ae.Patch){const i=new Gb(ql.FillHttpRequest,n,r);return void(o||n===Ae.Get?(i.halFormsTemplate=o,this.needInfoSubject.next(i)):this.getJsonSchema(i))}n===Ae.Delete?(this.isUriTemplated(r)&&(r=xr(r).fill({})),this.requestUri(r,"DELETE")):n===Ae.Document&&this.documentationSubject.next(r)}else this.requestUri(r,"GET")}getJsonSchema(n){let r=n.uri;this.isUriTemplated(r)&&(r=xr(r).fill({})),this.http.request("HEAD",r,{headers:this.requestHeaders,observe:"response"}).subscribe({next:o=>{let i=!1;const s=o.headers.get("link");if(s){let c;if(s.split(",").forEach(l=>{const u=l.split(";"),h=u[0].slice(1,u[0].length-1),p=u[1].split("=")[1];"profile"===p.slice(1,p.length-1).toLowerCase()&&(c=h)}),c){i=!0;let l=new dt({Accept:"application/schema+json"});if(this.customRequestHeaders)for(const u of this.customRequestHeaders)l=l.append(u.key,u.value);this.http.get(c,{headers:l,observe:"response"}).subscribe({next:u=>{const d=u.body;Object.keys(d.properties).forEach(h=>{d.properties[h].hasOwnProperty("readOnly")&&!0===d.properties[h].readOnly&&delete d.properties[h]}),n.jsonSchema=d,this.needInfoSubject.next(n)},error:()=>{console.warn("Cannot get JSON schema for: ",c),this.needInfoSubject.next(n)}})}}i||this.needInfoSubject.next(n)},error:()=>{console.warn("Cannot get JSON schema information for: ",r),this.needInfoSubject.next(n)}})}setCustomHeaders(n){this.customRequestHeaders=n,this.requestHeaders=new dt;let r=!0;for(const o of n)"accept"===o.key.toLowerCase()&&(r=!1),this.requestHeaders=this.requestHeaders.append(o.key,o.value);!0===r&&(this.requestHeaders=this.requestHeaders.append("Accept","application/prs.hal-forms+json, application/hal+json, application/json, */*"))}getInputType(n,r){switch(n.toLowerCase()){case"integer":return"number";case"string":return r&&"uri"===r.toLowerCase()?"url":"text";default:return"text"}}isUriTemplated(n){return xr(n).varNames.length>0}computeHalFormsOptionsFromLink(n){if(!(n.options&&n.options.link&&n.options.link.href))return;let r=(new dt).set("Accept","application/json");if(n.options.link.type&&(r=r.set("Accept",n.options.link.type)),this.isUriTemplated(n.options.link.href)){const o=xr(n.options.link.href);n.options.link.href=o.fill({})}this.http.get(n.options.link.href,{headers:r,observe:"response"}).subscribe(o=>{n.options.inline=o.body;const i=o.headers.get("content-type");i&&(i.startsWith("application/prs.hal-forms+json")||i.startsWith("application/hal+json"))&&o.body._embedded&&(n.options.inline=o.body._embedded[Object.keys(o.body._embedded)[0]])})}getHttpOptions(n){let r=n.href;this.isUriTemplated(r)&&(r=xr(r).fill({}));let o=(new dt).set("Accept","*/*");this.http.options(r,{headers:o,observe:"response"}).subscribe({next:i=>{n.options=i.headers.get("allow")},error:()=>{console.warn("Cannot get OPTIONS for: ",n),n.options="http-options-error"}})}static#e=this.\u0275fac=function(r){return new(r||e)($($l),$(Tb))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class KH extends kL{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Sp extends KH{static makeCurrent(){!function FL(e){Mw??=e}(new Sp)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function QH(){return ua=ua||document.querySelector("base"),ua?ua.getAttribute("href"):null}();return null==n?null:function JH(e){return new URL(e,document.baseURI).pathname}(n)}resetBaseElement(){ua=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return kw(document.cookie,t)}}let ua=null,ej=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();const Gl=new R("");let Wb=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new w(5101,!1);return this._eventNameToPlugin.set(n,r),r}static#e=this.\u0275fac=function(r){return new(r||e)($(Gl),$(pe))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();class Ap{constructor(t){this._doc=t}}const Np="ng-app-id";let Zb=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=qw(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Np}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(Np),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Np,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)($(Gn),$(Jo),$(ky,8),$(to))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();const Rp={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"},Op=/%COMP%/g,oj=new R("",{providedIn:"root",factory:()=>!0});function Kb(e,t){return t.map(n=>n.replace(Op,e))}let Qb=(()=>{class e{constructor(n,r,o,i,s,a,c,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=qw(a),this.defaultRenderer=new xp(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===hn.ShadowDom&&(r={...r,encapsulation:hn.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof Xb?o.applyToHost(n):o instanceof Pp&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case hn.Emulated:i=new Xb(c,l,r,this.appId,u,s,a,d);break;case hn.ShadowDom:return new cj(c,l,n,r,s,a,this.nonce,d);default:i=new Pp(c,l,r,u,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)($(Wb),$(Zb),$(Jo),$(oj),$(Gn),$(to),$(pe),$(ky))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();class xp{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Rp[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Jb(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Jb(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new w(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=Rp[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Rp[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(wr.DashCase|wr.Important)?t.style.setProperty(n,r,o&wr.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&wr.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){null!=t&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=na().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function Jb(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class cj extends xp{constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=Kb(o.id,o.styles);for(const u of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Pp extends xp{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?Kb(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Xb extends Pp{constructor(t,n,r,o,i,s,a,c){const l=o+"-"+r.id;super(t,n,r,i,s,a,c,l),this.contentAttr=function ij(e){return"_ngcontent-%COMP%".replace(Op,e)}(l),this.hostAttr=function sj(e){return"_nghost-%COMP%".replace(Op,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let lj=(()=>{class e extends Ap{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static#e=this.\u0275fac=function(r){return new(r||e)($(Gn))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})(),uj=(()=>{class e extends Ap{constructor(n){super(n),this.delegate=N(yw,{optional:!0})}supports(n){return!!this.delegate&&this.delegate.supports(n)}addEventListener(n,r,o){return this.delegate.addEventListener(n,r,o)}removeEventListener(n,r,o){return this.delegate.removeEventListener(n,r,o)}static#e=this.\u0275fac=function(r){return new(r||e)($(Gn))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();const eI=["alt","control","meta","shift"],dj={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},fj={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let hj=(()=>{class e extends Ap{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>na().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),eI.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=dj[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),eI.forEach(s=>{s!==o&&(0,fj[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}static#e=this.\u0275fac=function(r){return new(r||e)($(Gn))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac})}return e})();function tI(e){return{appProviders:[...rI,...e?.providers??[]],platformProviders:vj}}const vj=[{provide:to,useValue:"browser"},{provide:Fy,useValue:function gj(){Sp.makeCurrent()},multi:!0},{provide:Gn,useFactory:function yj(){return function dA(e){Od=e}(document),document},deps:[]}],_j=new R(""),nI=[{provide:dl,useClass:class XH{addToWindow(t){Te.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new w(5103,!1);return i},Te.getAllAngularTestabilities=()=>t.getAllTestabilities(),Te.getAllAngularRootElements=()=>t.getAllRootElements(),Te.frameworkStabilizers||(Te.frameworkStabilizers=[]),Te.frameworkStabilizers.push(r=>{const o=Te.getAllAngularTestabilities();let i=o.length;const s=function(){i--,0==i&&r()};o.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?na().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:OC,useClass:Rh,deps:[pe,Oh,dl]},{provide:Rh,useClass:Rh,deps:[pe,Oh,dl]}],rI=[{provide:Zu,useValue:"root"},{provide:_n,useFactory:function mj(){return new _n},deps:[]},{provide:Gl,useClass:lj,multi:!0,deps:[Gn,pe,to]},{provide:Gl,useClass:hj,multi:!0,deps:[Gn]},{provide:Gl,useClass:uj,multi:!0},Qb,Zb,Wb,{provide:xf,useExisting:Qb},{provide:Gw,useClass:ej,deps:[]},[]];let Dj=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Jo,useValue:n.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)($(_j,12))};static#t=this.\u0275mod=Vo({type:e});static#n=this.\u0275inj=qr({providers:[...rI,...nI],imports:[Y2,zk]})}return e})(),Fp=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:function(r){let o=null;return o=r?new(r||e):$(bj),o},providedIn:"root"})}return e})(),bj=(()=>{class e extends Fp{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case nn.NONE:return r;case nn.HTML:return kn(r,"HTML")?Gt(r):iv(this._doc,String(r)).toString();case nn.STYLE:return kn(r,"Style")?Gt(r):r;case nn.SCRIPT:if(kn(r,"Script"))return Gt(r);throw new w(5200,!1);case nn.URL:return kn(r,"URL")?Gt(r):yc(String(r));case nn.RESOURCE_URL:if(kn(r,"ResourceURL"))return Gt(r);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(n){return function OA(e){return new TA(e)}(n)}bypassSecurityTrustStyle(n){return function xA(e){return new MA(e)}(n)}bypassSecurityTrustScript(n){return function PA(e){return new SA(e)}(n)}bypassSecurityTrustUrl(n){return function FA(e){return new AA(e)}(n)}bypassSecurityTrustResourceUrl(n){return function kA(e){return new NA(e)}(n)}static#e=this.\u0275fac=function(r){return new(r||e)($(Gn))};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ij(e,t){if(1&e&&(y(0,"div",1),re(1,"br"),y(2,"div",2)(3,"div",3)(4,"div",4)(5,"h5"),b(6,"Documentation"),m()(),y(7,"div")(8,"iframe",5),b(9,"..."),m()()()()()),2&e){const n=A();C(8),M("src",n.docUri,Ec)}}let Tj=(()=>{class e{constructor(n,r){this.requestService=n,this.sanitizer=r}ngOnInit(){this.requestService.getDocumentationObservable().subscribe({next:n=>{this.docUri=this.sanitizer.bypassSecurityTrustResourceUrl(n)},error:n=>console.error("DocumentationComponent: "+n)}),this.requestService.getResponseObservable().subscribe(()=>{this.docUri=void 0})}static#e=this.\u0275fac=function(r){return new(r||e)(I(la),I(Fp))};static#t=this.\u0275cmp=Lo({type:e,selectors:[["app-documentation"]],standalone:!0,features:[Ai],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"page-header","first-row"],["id","doc-iframe","onload","setIframeHeight('doc-iframe')",3,"src"]],template:function(r,o){1&r&&Y(0,Ij,10,1,"div",0),2&r&&M("ngIf",o.docUri)},dependencies:[xi],styles:["iframe{width:100%}\n"],encapsulation:2})}return e})();function sI(e){const t=(e=e||document).body,n=e.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}window.setIframeHeight=e=>{const t=document.getElementById(e);t.style.visibility="hidden",t.style.height="10px",t.style.visibility="visible";try{t.style.height=sI(t.contentDocument?t.contentDocument:t.contentWindow.document)+4+"px"}catch{t.style.height=sI(document)-130+"px"}};var Mj={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",103:"Early Hints",426:"Upgrade Required",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"};function aI(e){var t=Mj[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}let cI=(()=>{class e{syntaxHighlight(n){if(n)try{return JSON.parse(n),(n=n.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,r=>{let o="number";return/^"/.test(r)?/:$/.test(r)?(o="key",(/_embedded/.test(r)||/_links/.test(r)||/_templates/.test(r)||/curies/.test(r))&&(o="hal")):o="string":/true|false/.test(r)?o="boolean":/null/.test(r)&&(o="null"),''+r+""})}catch{return n}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Sj(e,t){if(1&e&&(y(0,"tr")(1,"td",9),b(2),m(),y(3,"td",10),b(4),m()()),2&e){const n=t.$implicit,r=A(2);C(2),Me(n),C(2),Me(r.httpResponse.headers.get(n))}}function Aj(e,t){1&e&&(y(0,"pre",14),b(1,">"),m()),2&e&&M("innerHTML",A(3).responseBody,_c)}function Nj(e,t){if(1&e&&(y(0,"pre"),b(1),m()),2&e){const n=A(3);C(),Me(n.responseBody)}}function Rj(e,t){if(1&e&&(y(0,"div")(1,"div",4)(2,"h5"),b(3,"Response Body"),m()(),y(4,"div",11)(5,"div",12),Y(6,Aj,2,1,"pre",13)(7,Nj,2,1,"pre",8),m()()()),2&e){const n=A(2);C(6),M("ngIf",!n.isString),C(),M("ngIf",n.isString)}}function Oj(e,t){if(1&e&&(y(0,"div",1)(1,"div",2)(2,"div",3),re(3,"br"),y(4,"div",4)(5,"h5"),b(6,"Response Status"),m()(),y(7,"div",5)(8,"table",6)(9,"tbody")(10,"tr")(11,"td"),b(12),m()()()()(),y(13,"div",4)(14,"h5"),b(15,"Response Headers"),m()(),y(16,"div",5)(17,"table",6)(18,"tbody"),Y(19,Sj,5,2,"tr",7),m()()(),Y(20,Rj,8,2,"div",8),m()()()),2&e){const n=A();C(12),zs("",n.httpResponse.status," (",n.httpResponseReasonPhrase,")"),C(7),M("ngForOf",n.httpResponse.headers.keys()),C(),M("ngIf",n.responseBody)}}function xj(e,t){if(1&e&&(y(0,"tr")(1,"td",9),b(2),m(),y(3,"td",10),b(4),m()()),2&e){const n=t.$implicit,r=A(3);C(2),Me(n),C(2),Me(r.httpErrorResponse.headers.get(n))}}function Pj(e,t){if(1&e&&(y(0,"div")(1,"div",4)(2,"h5"),b(3,"Error Response Headers"),m()(),y(4,"div",5)(5,"table",6)(6,"tbody"),Y(7,xj,5,2,"tr",7),m()()()()),2&e){const n=A(2);C(7),M("ngForOf",n.httpErrorResponse.headers.keys())}}function Fj(e,t){1&e&&(y(0,"pre",14),b(1,">"),m()),2&e&&M("innerHTML",A(2).error,_c)}function kj(e,t){if(1&e&&(y(0,"pre"),b(1),m()),2&e){const n=A(2);C(),Me(n.error)}}function Lj(e,t){if(1&e&&(y(0,"div",1)(1,"div",2)(2,"div",3),re(3,"br"),y(4,"div",4)(5,"h5"),b(6,"Error Response Status"),m()(),y(7,"div",5)(8,"table",6)(9,"tbody")(10,"tr")(11,"td"),b(12),m()()()()(),Y(13,Pj,8,1,"div",8),y(14,"div")(15,"div",4)(16,"h5"),b(17,"Error Message"),m()(),y(18,"div",11)(19,"div",12)(20,"pre"),b(21),m()()()(),re(22,"br"),y(23,"div")(24,"div",4)(25,"h5"),b(26,"Additional Error Information"),m()(),y(27,"div",11)(28,"div",12),Y(29,Fj,2,1,"pre",13)(30,kj,2,1,"pre",8),m()()()()()()),2&e){const n=A();C(12),zs("",n.httpErrorResponse.status," (",n.httpErrorResponse.statusText,")"),C(),M("ngIf",n.httpErrorResponse.headers.keys().length>0),C(8),Me(n.httpErrorResponse.message),C(8),M("ngIf",!n.isString),C(),M("ngIf",n.isString)}}let Vj=(()=>{class e{constructor(n,r){this.requestService=n,this.jsonHighlighterService=r}ngOnInit(){this.requestService.getResponseObservable().subscribe({next:n=>{this.httpResponse=n.httpResponse,this.httpErrorResponse=n.httpErrorResponse,this.httpResponseReasonPhrase="Unknown",this.httpResponse?(this.httpResponse.status>199?this.httpResponseReasonPhrase=aI(this.httpResponse.status):this.httpResponse.statusText&&(this.httpResponseReasonPhrase=this.httpResponse.statusText),this.responseBody=void 0,this.httpResponse.body&&("string"==typeof this.httpResponse.body||this.httpResponse.body instanceof String?(this.isString=!0,this.responseBody=this.httpResponse.body):(this.isString=!1,this.responseBody=this.jsonHighlighterService.syntaxHighlight(JSON.stringify(this.httpResponse.body,void 0,2))))):this.httpErrorResponse&&(this.error=void 0,this.httpErrorResponse.status>199?this.httpResponseReasonPhrase=aI(this.httpErrorResponse.status):this.httpErrorResponse.statusText&&(this.httpResponseReasonPhrase=this.httpErrorResponse.statusText),this.httpErrorResponse.error&&("string"==typeof this.httpErrorResponse.error||this.httpErrorResponse.error instanceof String?(this.isString=!0,this.error=this.httpErrorResponse.error):(this.isString=!1,this.error=this.jsonHighlighterService.syntaxHighlight(JSON.stringify(this.httpErrorResponse.error,void 0,2)))))},error:n=>console.error("Error during HTTP request: "+JSON.stringify(n))})}static#e=this.\u0275fac=function(r){return new(r||e)(I(la),I(cI))};static#t=this.\u0275cmp=Lo({type:e,selectors:[["app-response-details"]],standalone:!0,features:[Ai],decls:2,vars:2,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"legend"],[1,"bs-component"],[1,"table","table-striped","table-sm"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"w-25"],[1,"w-75"],[1,"card","info"],[1,"card-text"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(r,o){1&r&&Y(0,Oj,21,4,"div",0)(1,Lj,31,6,"div",0),2&r&&(M("ngIf",o.httpResponse&&!o.httpErrorResponse),C(),M("ngIf",o.httpErrorResponse))},dependencies:[xi,oa],encapsulation:2})}return e})();function Hj(e,t){if(1&e&&(y(0,"div")(1,"div",5)(2,"h5"),b(3,"JSON Properties"),m()(),y(4,"div",6)(5,"div",7),re(6,"pre",8),m()(),re(7,"br"),m()),2&e){const n=A(2);C(6),M("innerHTML",n.properties,_c)}}function jj(e,t){if(1&e){const n=Mt();y(0,"button",21),ce("click",function(){se(n);const o=A().$implicit,i=A(3);return ae(i.processCommand(i.command.Document,o.docUri))}),m()}}function Bj(e,t){if(1&e){const n=Mt();y(0,"tr")(1,"td"),b(2),m(),y(3,"td"),b(4),m(),y(5,"td"),b(6),m(),y(7,"td")(8,"button",15),ce("click",function(){const o=se(n).$implicit,i=A(3);return ae(i.processCommand(i.command.Get,i.getRelTargetUrl(o.href,i.command.Get)))}),m(),y(9,"button",16),ce("click",function(){const o=se(n).$implicit,i=A(3);return ae(i.processCommand(i.command.Post,i.getRelTargetUrl(o.href,i.command.Post)))}),m(),y(10,"button",17),ce("click",function(){const o=se(n).$implicit,i=A(3);return ae(i.processCommand(i.command.Put,i.getRelTargetUrl(o.href,i.command.Put)))}),m(),y(11,"button",18),ce("click",function(){const o=se(n).$implicit,i=A(3);return ae(i.processCommand(i.command.Patch,i.getRelTargetUrl(o.href,i.command.Patch)))}),m(),y(12,"button",19),ce("click",function(){const o=se(n).$implicit,i=A(3);return ae(i.processCommand(i.command.Delete,i.getRelTargetUrl(o.href,i.command.Delete)))}),m()(),y(13,"td")(14,"span",13),Y(15,jj,1,0,"button",20),m()()()}if(2&e){const n=t.$implicit,r=A(3);C(2),Me(n.rel),C(2),Me(n.name),C(2),Me(n.title),C(2),mo(r.getRequestButtonClass(r.command.Get)+" "+r.getLinkButtonClass(r.command.Get,n)),M("disabled",r.isButtonDisabled(r.command.Get,n)),C(),mo(r.getRequestButtonClass(r.command.Post)+" "+r.getLinkButtonClass(r.command.Post,n)),M("disabled",r.isButtonDisabled(r.command.Post,n)),C(),mo(r.getRequestButtonClass(r.command.Put)+" "+r.getLinkButtonClass(r.command.Put,n)),M("disabled",r.isButtonDisabled(r.command.Put,n)),C(),mo(r.getRequestButtonClass(r.command.Patch)+" "+r.getLinkButtonClass(r.command.Patch,n)),M("disabled",r.isButtonDisabled(r.command.Patch,n)),C(),mo(r.getRequestButtonClass(r.command.Delete)+" "+r.getLinkButtonClass(r.command.Delete,n)),M("disabled",r.isButtonDisabled(r.command.Delete,n)),C(3),M("ngIf",n.docUri)}}function Uj(e,t){if(1&e&&(y(0,"div")(1,"div",5)(2,"h5"),b(3,"Links"),m()(),y(4,"div",9)(5,"div",10)(6,"table",11)(7,"thead")(8,"tr")(9,"th",12),b(10,"Relation"),m(),y(11,"th",12),b(12,"Name"),m(),y(13,"th",12),b(14,"Title"),m(),y(15,"th",12),b(16,"HTTP Request"),m(),y(17,"th",12)(18,"span",13),b(19,"Doc \xa0"),m()()()(),y(20,"tbody"),Y(21,Bj,16,19,"tr",14),m()()()(),re(22,"br"),m()),2&e){const n=A(2);C(21),M("ngForOf",n.links)}}function $j(e,t){if(1&e){const n=Mt();y(0,"tr")(1,"td"),b(2),m(),y(3,"td"),b(4),m(),y(5,"td")(6,"button",22),ce("click",function(){const o=se(n).$implicit,i=A(3);return ae(i.processCommand(i.getCommandForTemplateMethod(o.value.method),i.getUrlForTemplateTarget(o.value.target),o))}),m()()()}if(2&e){const n=t.$implicit,r=A(3);C(2),Me(n.key),C(2),Me(n.value.title),C(2),mo(r.getRequestButtonClass(r.getCommandForTemplateMethod(n.value.method))),vo("title","",n.value.method.toUpperCase()," Request"),M("disabled",!1)}}function qj(e,t){if(1&e&&(y(0,"div")(1,"div",5)(2,"h5"),b(3,"HAL-FORMS Template Elements"),m()(),y(4,"div",9)(5,"div",10)(6,"table",11)(7,"thead")(8,"tr")(9,"th",12),b(10,"Name"),m(),y(11,"th",12),b(12,"Title"),m(),y(13,"th",12),b(14,"HTTP Request"),m()()(),y(15,"tbody"),Y(16,$j,7,7,"tr",14),bh(17,"keyvalue"),m()()()(),re(18,"br"),m()),2&e){const n=A(2);C(16),M("ngForOf",Ih(17,1,n.templates))}}function Gj(e,t){if(1&e){const n=Mt();y(0,"button",37),ce("click",function(){se(n);const o=A(3).$implicit,i=A(3);return ae(i.processCommand(i.command.Document,o.docUri))}),m()}}function zj(e,t){if(1&e&&(y(0,"div",32)(1,"div",25)(2,"a",26),b(3),m(),Y(4,Gj,1,0,"button",33),m(),y(5,"div",34)(6,"div",35),re(7,"app-response-explorer",36),m()()()),2&e){const n=t.$implicit,r=t.index,o=A(2),i=o.$implicit,s=o.index,a=A(3);vt("id",a.prefix+"item_"+s+"_"+r),C(2),vt("data-parent","#"+a.prefix+"item_"+s+"_"+r)("href","#"+a.prefix+"embedded_object_"+r,Dc),C(),zs("",i.name," [",r,"]"),C(),M("ngIf",i.docUri),C(),vt("id",a.prefix+"embedded_object_"+r),C(2),M("jsonRoot",n)("prefix",a.prefix+"x_")("curieLinks",a.curieLinks)("isHalFormsMediaType",a.isHalFormsMediaType)}}function Wj(e,t){if(1&e&&(y(0,"div",30),Y(1,zj,8,11,"div",31),m()),2&e){const n=A(),r=n.$implicit,o=n.index;vt("id",A(3).prefix+"embedded_"+o),C(),M("ngForOf",r.content)}}function Zj(e,t){if(1&e&&(y(0,"div",34)(1,"div",35),re(2,"app-response-explorer",36),m()()),2&e){const n=A(),r=n.$implicit,o=n.index,i=A(3);vt("id",i.prefix+"embedded_"+o),C(2),M("jsonRoot",r.content)("prefix",i.prefix+"x_")("curieLinks",i.curieLinks)("isHalFormsMediaType",i.isHalFormsMediaType)}}function Yj(e,t){if(1&e&&(y(0,"div",24)(1,"div",25)(2,"a",26)(3,"h5"),b(4),m()()(),y(5,"div",27),Y(6,Wj,2,2,"div",28),m(),Y(7,Zj,3,5,"div",29),m()),2&e){const n=t.$implicit,r=t.index,o=A(3);vt("id",o.prefix+"item_"+r),C(2),vt("data-parent","#"+o.prefix+"item_"+r)("href","#"+o.prefix+"embedded_"+r,Dc),C(2),Me(n.name),C(2),M("ngIf",n.isArray),C(),M("ngIf",!n.isArray)}}function Kj(e,t){if(1&e&&(y(0,"div")(1,"div",5)(2,"h5"),b(3,"Embedded Resources"),m()(),y(4,"div"),Y(5,Yj,8,6,"div",23),m()()),2&e){const n=A(2);C(5),M("ngForOf",n.embedded)}}function Qj(e,t){if(1&e&&(y(0,"div",1)(1,"div",2)(2,"div",3),Y(3,Hj,8,1,"div",4)(4,Uj,23,1,"div",4)(5,qj,19,3,"div",4)(6,Kj,6,1,"div",4),m()()()),2&e){const n=A();C(3),M("ngIf",n.showProperties),C(),M("ngIf",n.showLinks),C(),M("ngIf",n.hasHalFormsTemplates),C(),M("ngIf",n.showEmbedded)}}class lI{constructor(t,n,r,o,i,s){this.rel=t,this.href=n,this.title=r,this.name=o,this.docUri=i,this.options=s}}class Jj{constructor(t,n,r,o){this.name=t,this.content=n,this.isArray=r,this.docUri=o}}let Xj=(()=>{class e{constructor(n,r,o){this.requestService=n,this.jsonHighlighterService=r,this.appService=o,this.command=Ae}ngOnInit(){this.jsonRoot?this.processJsonObject(this.jsonRoot):this.requestService.getResponseObservable().subscribe({next:n=>{const r=n.httpResponse;if(this.httpErrorResponse=n.httpErrorResponse,r){this.responseUrl=r.url,this.isHalFormsMediaType=!1;const o=r.headers.get("content-type");(o&&o.startsWith("application/prs.hal-forms+json")||this.responseUrl&&this.responseUrl.endsWith(".hal-forms.json"))&&(this.isHalFormsMediaType=!0),this.processJsonObject("string"==typeof r.body||r.body instanceof String?{}:r.body)}},error:n=>console.error("Error during HTTP request: "+JSON.stringify(n))})}processJsonObject(n){this.prefix||(this.prefix=""),this.showProperties=!1,this.showLinks=!1,this.showEmbedded=!1,this.hasHalFormsTemplates=!1,this.properties=null,this.links=null,this.embedded=null;const r=Object.assign({},n);delete r._links,delete r._embedded,delete r._templates,Object.keys(r).length>0&&(this.showProperties=!0,this.properties=this.jsonHighlighterService.syntaxHighlight(JSON.stringify(r,void 0,2)));const o=n._links;this.links=[],this.selfLink=void 0,this.curieLinks||(this.curieLinks=[]),o&&(this.showLinks=!0,Object.getOwnPropertyNames(o).forEach(s=>{if(o[s]instanceof Array)o[s].forEach((a,c)=>{"curies"===s&&this.curieLinks.push(a),this.links.push(new lI(s+" ["+c+"]",a.href,a.title,a.name))});else{const a=new lI(s,o[s].href,o[s].title,o[s].name);this.links.push(a),"self"===s&&(this.selfLink=a)}}),this.appService.getHttpOptions()&&this.links.forEach(s=>{this.requestService.getHttpOptions(s)}),this.curieLinks.forEach(s=>{this.links.forEach(a=>{const c=s.name+":";"curies"!==a.rel&&a.rel.startsWith(c)&&(a.docUri=s.href.replace("{rel}",a.rel.replace(c,"")))})}));const i=n._embedded;if(this.embedded=new Array(0),i){let s;this.showEmbedded=!0,this.curieLinks.forEach(a=>{const c=a.name+":";Object.keys(i)[0].startsWith(c)&&(s=a.href.replace("{rel}",Object.keys(i)[0].replace(c,"")))}),Object.getOwnPropertyNames(i).forEach(a=>{this.embedded.push(new Jj(a,i[a],i[a]instanceof Array,s))})}this.isHalFormsMediaType&&n._templates&&(this.hasHalFormsTemplates=!0,this.templates=n._templates)}processCommand(n,r,o){this.requestService.processCommand(n,r,o)}getLinkButtonClass(n,r){if(r&&r.options){if("http-options-error"===r.options)return"btn-outline-dark";const o=Ae[n].toLowerCase();return r.options.toLowerCase().includes(o)?"":"btn-outline-light"}return!this.isHalFormsMediaType||"get"===Ae[n].toLowerCase()||this.appService.getAllHttpMethodsForLinks()?"":"btn-outline-light"}isButtonDisabled(n,r){return r&&r.options?"http-options-error"!==r.options&&!r.options.toLowerCase().includes(Ae[n].toLowerCase()):"get"!==Ae[n].toLowerCase()&&!this.appService.getAllHttpMethodsForLinks()&&this.isHalFormsMediaType}getRelTargetUrl(n,r){let o=n;if(this.isHalFormsMediaType&&this.templates&&Object.getOwnPropertyNames(this.templates).forEach(i=>{this.templates[i].method===Ae[r].toLowerCase()&&this.templates[i].target&&(o=this.templates[i].target)}),this.responseUrl){const i=new URL(o,this.responseUrl).href;o=decodeURI(i)}return o}getRequestButtonClass(n){const r="ms-1 btn btn-sm nav-button ";return n===Ae.Post?r+"btn-outline-info icon-plus":n===Ae.Put||n===Ae.Patch?r+"btn-outline-warning icon-right-open":n===Ae.Delete?r+"btn-outline-danger icon-cancel":r+"btn-outline-success icon-left-open"}getCommandForTemplateMethod(n){return Ae[n[0].toUpperCase()+n.substring(1).toLowerCase()]||Ae.Get}getUrlForTemplateTarget(n){return n||(this.selfLink?this.selfLink.href:this.responseUrl?this.responseUrl:void 0)}static#e=this.\u0275fac=function(r){return new(r||e)(I(la),I(cI),I($l))};static#t=this.\u0275cmp=Lo({type:e,selectors:[["app-response-explorer"]],inputs:{jsonRoot:"jsonRoot",prefix:"prefix",curieLinks:"curieLinks",isHalFormsMediaType:"isHalFormsMediaType"},standalone:!0,features:[Ai],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-lg-12"],[4,"ngIf"],[1,"legend"],[1,"card","info"],[1,"card-text"],[3,"innerHTML"],[1,"bs-component"],[1,"table-responsive-sm"],[1,"table","table-striped","table-sm"],["scope","col"],[2,"float","right"],[4,"ngFor","ngForOf"],["title","GET Request",3,"click","disabled"],["title","POST Request",3,"click","disabled"],["title","PUT Request",3,"click","disabled"],["title","PATCH Request",3,"click","disabled"],["title","DELETE Request",3,"click","disabled"],["class","icon-book ml-auto btn btn-outline-info btn-sm nav-button","title","Show Documentation",3,"click",4,"ngIf"],["title","Show Documentation",1,"icon-book","ml-auto","btn","btn-outline-info","btn-sm","nav-button",3,"click"],[3,"click","disabled","title"],["class","card",4,"ngFor","ngForOf"],[1,"card"],[1,"card-header","d-flex"],["data-bs-toggle","collapse",1,"text-decoration-none"],[1,"card-body","p-1"],["class","collapse show",4,"ngIf"],["class","collapse",4,"ngIf"],[1,"collapse","show"],["class","card m-1",4,"ngFor","ngForOf"],[1,"card","m-1"],["class","icon-book ms-auto btn btn-outline-info btn-sm nav-button","title","Show Documentation",3,"click",4,"ngIf"],[1,"collapse"],[1,"card-body"],[3,"jsonRoot","prefix","curieLinks","isHalFormsMediaType"],["title","Show Documentation",1,"icon-book","ms-auto","btn","btn-outline-info","btn-sm","nav-button",3,"click"]],template:function(r,o){1&r&&Y(0,Qj,7,4,"div",0),2&r&&M("ngIf",!o.httpErrorResponse)},dependencies:()=>[e,xi,oa,lp],styles:[".card-header.d-flex{padding:.2rem .5rem}.nav-button-x{padding-top:0!important;padding-bottom:0!important;margin-right:.25rem!important;font-size:75%!important}.nav-button{display:inline-block!important;padding:.25em .7em!important;font-size:75%!important;font-weight:700!important;line-height:1!important;text-align:center!important;white-space:nowrap!important}\n"],encapsulation:2})}return e})();const{isArray:eB}=Array,{getPrototypeOf:tB,prototype:nB,keys:rB}=Object;const{isArray:sB}=Array;function lB(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function uB(...e){const t=function TV(e){return Le(mp(e))?e.pop():void 0}(e),{args:n,keys:r}=function oB(e){if(1===e.length){const t=e[0];if(eB(t))return{args:t,keys:null};if(function iB(e){return e&&"object"==typeof e&&tB(e)===nB}(t)){const n=rB(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e),o=new xt(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?lB(r,a):a),i.complete())}))}});return t?o.pipe(function cB(e){return gr(t=>function aB(e,t){return sB(t)?e(...t):e(t)}(e,t))}(t)):o}let uI=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static#e=this.\u0275fac=function(r){return new(r||e)(I(lo),I(Dn))};static#t=this.\u0275dir=W({type:e})}return e})(),bo=(()=>{class e extends uI{static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=gt(e)))(o||e)}})();static#t=this.\u0275dir=W({type:e,features:[ye]})}return e})();const zn=new R(""),fB={provide:zn,useExisting:De(()=>Wl),multi:!0},pB=new R("");let Wl=(()=>{class e extends uI{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function hB(){const e=na()?na().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static#e=this.\u0275fac=function(r){return new(r||e)(I(lo),I(Dn),I(pB,8))};static#t=this.\u0275dir=W({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){1&r&&ce("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[Se([fB]),ye]})}return e})();function Pr(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function fI(e){return null!=e&&"number"==typeof e.length}const ft=new R(""),Fr=new R(""),gB=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Io{static min(t){return function hI(e){return t=>{if(Pr(t.value)||Pr(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(Pr(t.value)||Pr(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(t)}static required(t){return function gI(e){return Pr(e.value)?{required:!0}:null}(t)}static requiredTrue(t){return function mI(e){return!0===e.value?null:{required:!0}}(t)}static email(t){return function yI(e){return Pr(e.value)||gB.test(e.value)?null:{email:!0}}(t)}static minLength(t){return function vI(e){return t=>Pr(t.value)||!fI(t.value)?null:t.value.lengthfI(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}(t)}static pattern(t){return function DI(e){if(!e)return Zl;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Pr(r.value))return null;const o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}(t)}static nullValidator(t){return null}static compose(t){return TI(t)}static composeAsync(t){return MI(t)}}function Zl(e){return null}function EI(e){return null!=e}function CI(e){return fl(e)?Ep(e):e}function wI(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function bI(e,t){return t.map(n=>n(e))}function II(e){return e.map(t=>function mB(e){return!e.validate}(t)?t:n=>t.validate(n))}function TI(e){if(!e)return null;const t=e.filter(EI);return 0==t.length?null:function(n){return wI(bI(n,t))}}function kp(e){return null!=e?TI(II(e)):null}function MI(e){if(!e)return null;const t=e.filter(EI);return 0==t.length?null:function(n){return uB(bI(n,t).map(CI)).pipe(gr(wI))}}function Lp(e){return null!=e?MI(II(e)):null}function SI(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Vp(e){return e?Array.isArray(e)?e:[e]:[]}function Yl(e,t){return Array.isArray(e)?e.includes(t):e===t}function RI(e,t){const n=Vp(t);return Vp(e).forEach(o=>{Yl(n,o)||n.push(o)}),n}function OI(e,t){return Vp(t).filter(n=>!Yl(e,n))}class xI{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=kp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Lp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class Rt extends xI{get formDirective(){return null}get path(){return null}}class kr extends xI{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class PI{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let FI=(()=>{class e extends PI{constructor(n){super(n)}static#e=this.\u0275fac=function(r){return new(r||e)(I(kr,2))};static#t=this.\u0275dir=W({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&Jc("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ye]})}return e})(),kI=(()=>{class e extends PI{constructor(n){super(n)}static#e=this.\u0275fac=function(r){return new(r||e)(I(Rt,10))};static#t=this.\u0275dir=W({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&Jc("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ye]})}return e})();const da="VALID",Ql="INVALID",Li="PENDING",fa="DISABLED";class Vi{}class VI extends Vi{constructor(t,n){super(),this.value=t,this.source=n}}class Bp extends Vi{constructor(t,n){super(),this.pristine=t,this.source=n}}class Up extends Vi{constructor(t,n){super(),this.touched=t,this.source=n}}class Jl extends Vi{constructor(t,n){super(),this.status=t,this.source=n}}function $p(e){return(Xl(e)?e.validators:e)||null}function qp(e,t){return(Xl(t)?t.asyncValidators:e)||null}function Xl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Gp{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=ta(()=>this.statusReactive()),this.statusReactive=ci(void 0),this._pristine=ta(()=>this.pristineReactive()),this.pristineReactive=ci(!0),this._touched=ta(()=>this.touchedReactive()),this.touchedReactive=ci(!1),this._events=new Et,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return qn(this.statusReactive)}set status(t){qn(()=>this.statusReactive.set(t))}get valid(){return this.status===da}get invalid(){return this.status===Ql}get pending(){return this.status==Li}get disabled(){return this.status===fa}get enabled(){return this.status!==fa}get pristine(){return qn(this.pristineReactive)}set pristine(t){qn(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return qn(this.touchedReactive)}set touched(t){qn(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(RI(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(RI(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(OI(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(OI(t,this._rawAsyncValidators))}hasValidator(t){return Yl(this._rawValidators,t)}hasAsyncValidator(t){return Yl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){const n=!1===this.touched;this.touched=!0;const r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched({...t,sourceControl:r}),n&&!1!==t.emitEvent&&this._events.next(new Up(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){const n=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&!1!==t.emitEvent&&this._events.next(new Up(!1,r))}markAsDirty(t={}){const n=!0===this.pristine;this.pristine=!1;const r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty({...t,sourceControl:r}),n&&!1!==t.emitEvent&&this._events.next(new Bp(!1,r))}markAsPristine(t={}){const n=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&!1!==t.emitEvent&&this._events.next(new Bp(!0,r))}markAsPending(t={}){this.status=Li;const n=t.sourceControl??this;!1!==t.emitEvent&&(this._events.next(new Jl(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending({...t,sourceControl:n})}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=fa,this.errors=null,this._forEachChild(o=>{o.disable({...t,onlySelf:!0})}),this._updateValue();const r=t.sourceControl??this;!1!==t.emitEvent&&(this._events.next(new VI(this.value,r)),this._events.next(new Jl(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n},this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=da,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===da||this.status===Li)&&this._runAsyncValidator(r,t.emitEvent)}const n=t.sourceControl??this;!1!==t.emitEvent&&(this._events.next(new VI(this.value,n)),this._events.next(new Jl(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity({...t,sourceControl:n})}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fa:da}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Li,this._hasOwnPendingAsyncValidator={emitEvent:!1!==n};const r=CI(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent,this,n.shouldHaveEmitted)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Jl(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new mt,this.statusChanges=new mt}_calculateStatus(){return this._allControlsDisabled()?fa:this.errors?Ql:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Li)?Li:this._anyControlsHaveStatus(Ql)?Ql:da}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){const r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new Bp(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Up(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Xl(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function wB(e){return Array.isArray(e)?kp(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function bB(e){return Array.isArray(e)?Lp(e):e||null}(this._rawAsyncValidators)}}class zp extends Gp{constructor(t,n,r){super($p(n),qp(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function jI(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new w(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function HI(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new w(1e3,"");if(!r[n])throw new w(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Hi=new R("CallSetDisabledState",{providedIn:"root",factory:()=>eu}),eu="always";function ha(e,t,n=eu){Wp(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function MB(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&BI(e,t)})}(e,t),function AB(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function SB(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&BI(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function TB(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function ru(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Wp(e,t){const n=function AI(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(SI(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function NI(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(SI(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();ru(t._rawValidators,o),ru(t._rawAsyncValidators,o)}function BI(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const PB={provide:Rt,useExisting:De(()=>iu)},pa=Promise.resolve();let iu=(()=>{class e extends Rt{get submitted(){return qn(this.submittedReactive)}constructor(n,r,o){super(),this.callSetDisabledState=o,this._submitted=ta(()=>this.submittedReactive()),this.submittedReactive=ci(!1),this._directives=new Set,this.ngSubmit=new mt,this.form=new zp({},kp(n),Lp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){pa.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),ha(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){pa.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){pa.then(()=>{const r=this._findContainer(n.path),o=new zp({});(function UI(e,t){Wp(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){pa.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){pa.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),function $I(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}static#e=this.\u0275fac=function(r){return new(r||e)(I(ft,10),I(Fr,10),I(Hi,8))};static#t=this.\u0275dir=W({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){1&r&&ce("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Se([PB]),ye]})}return e})();function qI(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function GI(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const Qp=class extends Gp{constructor(t=null,n,r){super($p(n),qp(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xl(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=GI(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){qI(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){qI(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){GI(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},ga=Qp,LB={provide:kr,useExisting:De(()=>Jp)},ZI=Promise.resolve();let Jp=(()=>{class e extends kr{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Qp,this._registered=!1,this.name="",this.update=new mt,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Kp(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Wl?n=i:function OB(e){return Object.getPrototypeOf(e.constructor)===bo}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Yp(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,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(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ha(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){ZI.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&function Kh(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);ZI.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function tu(e,t){return[...t.path,e]}(n,this._parent):[n]}static#e=this.\u0275fac=function(r){return new(r||e)(I(Rt,9),I(ft,10),I(Fr,10),I(zn,10),I(Bh,8),I(Hi,8))};static#t=this.\u0275dir=W({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Se([LB]),ye,er]})}return e})(),YI=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=W({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const WB={provide:zn,useExisting:De(()=>su),multi:!0};function rT(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let su=(()=>{class e extends bo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const o=rT(this._getOptionId(n),n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function ZB(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=gt(e)))(o||e)}})();static#t=this.\u0275dir=W({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){1&r&&ce("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Se([WB]),ye]})}return e})(),oT=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(rT(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(r){return new(r||e)(I(Dn),I(lo),I(su,9))};static#t=this.\u0275dir=W({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();const YB={provide:zn,useExisting:De(()=>au),multi:!0};function iT(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let au=(()=>{class e extends bo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{let n;return function(o){return(n||(n=gt(e)))(o||e)}})();static#t=this.\u0275dir=W({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){1&r&&ce("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Se([YB]),ye]})}return e})(),sT=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(iT(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(iT(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(r){return new(r||e)(I(Dn),I(lo),I(au,9))};static#t=this.\u0275dir=W({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})(),iU=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Vo({type:e});static#n=this.\u0275inj=qr({})}return e})(),mT=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Hi,useValue:n.callSetDisabledState??eu}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Vo({type:e});static#n=this.\u0275inj=qr({imports:[iU]})}return e})(),aU=(()=>{class e{validate(n){if(!this.halFormsProperty)return null;let r={};if(this.halFormsProperty.required&&(r=Object.assign(r,Io.required(n))),this.halFormsProperty.regex){const o=Io.pattern(this.halFormsProperty.regex);r=Object.assign(r,o(n))}if(this.halFormsProperty.maxLength){const o=new ga(n.value,Io.maxLength(this.halFormsProperty.maxLength));r=Object.assign(r,o.errors)}if(this.halFormsProperty.minLength){const o=new ga(n.value,Io.minLength(this.halFormsProperty.minLength));r=Object.assign(r,o.errors)}if(this.halFormsProperty.max){const o=new ga(n.value,Io.max(this.halFormsProperty.max));r=Object.assign(r,o.errors)}if(this.halFormsProperty.min){const o=new ga(n.value,Io.min(this.halFormsProperty.min));r=Object.assign(r,o.errors)}if("email"===this.halFormsProperty.type){const o=new ga(n.value,Io.email);r=Object.assign(r,o.errors)}if(this.halFormsProperty.options){let o=1;n.value instanceof Array&&(o=n.value.length),this.halFormsProperty.options.maxItems&&o>this.halFormsProperty.options.maxItems&&(r=Object.assign(r,{maxItems:{maxItems:this.halFormsProperty.options.maxItems,actual:n.value.length}})),this.halFormsProperty.options.minItems&&o({standalone:!0});function cU(e,t){if(1&e&&(y(0,"tr")(1,"td",47),b(2),m(),y(3,"td",48),b(4),m()()),2&e){const n=t.$implicit;C(2),Me(n.key),C(2),Me(n.value)}}function lU(e,t){if(1&e&&(y(0,"div"),re(1,"br"),y(2,"div",44)(3,"h5"),b(4,"Custom Request Headers"),m()(),y(5,"div",5)(6,"table",45)(7,"tbody"),Y(8,cU,5,2,"tr",46),m()()()()),2&e){const n=A();C(8),M("ngForOf",n.requestHeaders)}}function uU(e,t){1&e&&(y(0,"span"),b(1,"Template"),m())}function dU(e,t){if(1&e){const n=Mt();y(0,"div",50)(1,"label",25),b(2),m(),y(3,"div",22)(4,"input",51),bn("ngModelChange",function(o){const i=se(n).$implicit;return Un(i.value,o)||(i.value=o),ae(o)}),ce("keyup",function(){return se(n),ae(A(2).computeUriFromTemplate())}),m()()()}if(2&e){const n=t.$implicit;C(2),Me(n.key),C(2),Bn("name",n.key),wn("ngModel",n.value)}}function fU(e,t){if(1&e&&(y(0,"div",20)(1,"label",52),b(2,"Expanded URI"),m(),y(3,"div",22)(4,"div",53),b(5),m()()()),2&e){const n=A(2);C(4),Bn("title",n.newRequestUri),C(),Me(n.newRequestUri)}}function hU(e,t){if(1&e&&(y(0,"div",35)(1,"label"),b(2,"Parameters"),m(),Y(3,dU,5,3,"div",49)(4,fU,6,2,"div",27),m()),2&e){const n=A();C(3),M("ngForOf",n.uriTemplateParameters),C(),M("ngIf",n.httpRequestEvent.command!==n.commandPlaceholder.Get&&n.httpRequestEvent.command!==n.commandPlaceholder.Delete)}}function pU(e,t){if(1&e&&(y(0,"div",20)(1,"label",25),b(2,"HAL-FORMS Content Type"),m(),y(3,"div",22)(4,"div",26),b(5),m()()()),2&e){const n=A();C(5),sn(" ",n.halFormsContentType," ")}}function gU(e,t){if(1&e){const n=Mt();y(0,"div",20)(1,"label",56),b(2),m(),y(3,"div",22)(4,"input",57),bn("ngModelChange",function(o){const i=se(n).$implicit,s=A(2);return Un(s.jsonSchema[i.key].value,o)||(s.jsonSchema[i.key].value=o),ae(o)}),ce("keyup",function(){return se(n),ae(A(2).propertyChanged())}),m()()()}if(2&e){const n=t.$implicit,r=A(2);C(),M("title",r.getTooltip(n.key)),C(),sn("",r.jsonSchema[n.key].title," "),C(2),M("type",r.getInputType(n.key)),wn("ngModel",r.jsonSchema[n.key].value),M("ngModelOptions",al(5,rg))}}function mU(e,t){if(1&e&&(y(0,"div"),re(1,"hr"),y(2,"label",54),b(3,"Spring Profile (JSON Schema)"),m(),Y(4,gU,5,6,"div",55),bh(5,"keyvalue"),re(6,"hr"),m()),2&e){const n=A();C(4),M("ngForOf",Ih(5,1,n.jsonSchema))}}function yU(e,t){if(1&e&&(y(0,"span"),b(1),m()),2&e){const n=A(2);C(),sn(" [",n.halFormsPropertyKey,"]")}}function vU(e,t){1&e&&(y(0,"span"),b(1,"*"),m())}function _U(e,t){if(1&e&&(y(0,"label",56),b(1),Y(2,vU,2,0,"span",11),m()),2&e){const n=A().$implicit;M("title",n.name),C(),sn(" ",n.prompt," "),C(),M("ngIf",n.required)}}function DU(e,t){1&e&&(y(0,"span"),b(1,"*"),m())}function EU(e,t){if(1&e&&(y(0,"label",60),b(1),Y(2,DU,2,0,"span",11),m()),2&e){const n=A().$implicit;C(),sn(" ",n.name," "),C(),M("ngIf",n.required)}}function CU(e,t){if(1&e){const n=Mt();y(0,"div")(1,"input",61,1),bn("ngModelChange",function(o){se(n);const i=A().$implicit;return Un(i.value,o)||(i.value=o),ae(o)}),ce("change",function(){return se(n),ae(A(3).propertyChanged())})("keyup",function(){return se(n),ae(A(3).propertyChanged())}),m(),y(3,"div",62),b(4),m()()}if(2&e){const n=ol(2),r=A().$implicit,o=A(2);C(),Bn("name",r.name),vo("id","request-input-",r.name,""),Bn("type",r.type),Bn("placeholder",r.placeholder),wn("ngModel",r.value),M("appHalFormsProperty",r),C(3),Me(o.getValidationErrors(n))}}function wU(e,t){if(1&e&&(y(0,"option",67),b(1),m()),2&e){const n=t.$implicit,r=A(3).$implicit,o=A(2);M("value",n.value)("selected",o.isHalFormsOptionSelected(r,n.value)),C(),sn(" ",n.prompt," ")}}function bU(e,t){if(1&e){const n=Mt();y(0,"select",65),bn("ngModelChange",function(o){se(n);const i=A(2).$implicit;return Un(i.value,o)||(i.value=o),ae(o)}),ce("change",function(){return se(n),ae(A(4).propertyChanged())}),Y(1,wU,2,3,"option",66),m()}if(2&e){const n=A(2).$implicit;Bn("name",n.name),vo("id","request-option-",n.name,""),wn("ngModel",n.value),M("appHalFormsProperty",n),C(),M("ngForOf",n.options.computedOptions)}}function IU(e,t){if(1&e&&(y(0,"option",67),b(1),m()),2&e){const n=t.$implicit,r=A(3).$implicit,o=A(2);M("value",n.value)("selected",o.isHalFormsOptionSelected(r,n.value)),C(),sn(" ",n.prompt," ")}}function TU(e,t){if(1&e){const n=Mt();y(0,"select",68),bn("ngModelChange",function(o){se(n);const i=A(2).$implicit;return Un(i.value,o)||(i.value=o),ae(o)}),ce("change",function(){return se(n),ae(A(4).propertyChanged())}),Y(1,IU,2,3,"option",66),m()}if(2&e){const n=A(2).$implicit;Bn("name",n.name),vo("id","request-option-multiple-",n.name,""),wn("ngModel",n.value),M("appHalFormsProperty",n),C(),M("ngForOf",n.options.computedOptions)}}function MU(e,t){if(1&e&&(y(0,"div"),Y(1,bU,2,6,"select",63)(2,TU,2,6,"select",64),y(3,"div",62),b(4),m()()),2&e){const n=A().$implicit,r=A(2);C(),M("ngIf","select"===r.getUiElementForHalFormsTemplateProperty(n)&&1===(null==n.options?null:n.options.maxItems)),C(),M("ngIf","select"===r.getUiElementForHalFormsTemplateProperty(n)&&1!==(null==n.options?null:n.options.maxItems)),C(2),Me(r.getValidationErrors(n))}}function SU(e,t){if(1&e&&(y(0,"div",20),Y(1,_U,3,3,"label",58)(2,EU,3,2,"label",59),y(3,"div",22),Y(4,CU,5,8,"div",11)(5,MU,5,3,"div",11),m()()),2&e){const n=t.$implicit,r=A(2);C(),M("ngIf",n.prompt),C(),M("ngIf",!n.prompt),C(2),M("ngIf","input"===r.getUiElementForHalFormsTemplateProperty(n)),C(),M("ngIf","select"===r.getUiElementForHalFormsTemplateProperty(n))}}function AU(e,t){if(1&e&&(y(0,"div"),re(1,"hr"),y(2,"label",54),b(3,"HAL-FORMS Properties "),Y(4,yU,2,1,"span",11),m(),Y(5,SU,6,4,"div",55),re(6,"hr"),m()),2&e){const n=A();C(4),M("ngIf",n.halFormsPropertyKey),C(),M("ngForOf",n.halFormsProperties)}}function NU(e,t){if(1&e){const n=Mt();y(0,"textarea",72),bn("ngModelChange",function(o){se(n);const i=A(2);return Un(i.requestBody,o)||(i.requestBody=o),ae(o)}),b(1," "),m()}2&e&&wn("ngModel",A(2).requestBody)}function RU(e,t){1&e&&(y(0,"textarea",73),b(1," "),m())}function OU(e,t){if(1&e&&(y(0,"div",20)(1,"label",69),b(2,"Body"),m(),y(3,"div",22),Y(4,NU,2,1,"textarea",70)(5,RU,2,0,"textarea",71),m()()),2&e){A();const n=ol(23);C(4),M("ngIf",n.valid),C(),M("ngIf",n.invalid)}}function xU(e,t){if(1&e&&(y(0,"div",20)(1,"label",69),b(2,"Expanded URI"),m(),y(3,"div",22)(4,"div",74),b(5),m()()()),2&e){const n=A();C(5),sn(" ",n.newRequestUri," ")}}function PU(e,t){if(1&e){const n=Mt();y(0,"div",75)(1,"div",37)(2,"input",76),bn("ngModelChange",function(o){const i=se(n).$implicit;return Un(i.key,o)||(i.key=o),ae(o)}),m()(),y(3,"div",38)(4,"input",76),bn("ngModelChange",function(o){const i=se(n).$implicit;return Un(i.value,o)||(i.value=o),ae(o)}),m()()()}if(2&e){const n=t.$implicit;C(2),wn("ngModel",n.key),M("ngModelOptions",al(4,rg)),C(2),wn("ngModel",n.value),M("ngModelOptions",al(5,rg))}}class og{constructor(t,n){this.prompt=t,this.value=n}}let FU=(()=>{class e{constructor(n,r){this.appService=n,this.requestService=r,this.httpRequestEvent=new Gb(ql.FillHttpRequest,Ae.Post,""),this.commandPlaceholder=Ae,this.noValueSelected=""}ngOnInit(){var n=this;this.jsonSchema=void 0,this.halFormsProperties=void 0,this.halFormsContentType=void 0,this.uri=this.appService.getUri(),this.tempRequestHeaders=this.appService.getCustomRequestHeaders(),this.requestService.getNeedInfoObservable().subscribe(function(){var r=gp(function*(o){if(o.type===ql.FillHttpRequest){n.jsonSchema=void 0,n.halFormsProperties=void 0,n.halFormsPropertyKey=void 0,n.halFormsTemplate=void 0;const i=o;if(n.httpRequestEvent=i,i.jsonSchema&&(n.jsonSchema=i.jsonSchema.properties),i.halFormsTemplate){if(n.halFormsTemplate=i.halFormsTemplate,n.halFormsProperties=n.halFormsTemplate.value.properties,n.halFormsTemplate.value.contentType&&(n.halFormsContentType=n.halFormsTemplate.value.contentType),Array.isArray(n.halFormsProperties))for(const a of n.halFormsProperties)if(a.options){const c=a.options;if(!c.inline&&c.link){n.requestService.computeHalFormsOptionsFromLink(a);for(let l=0;l<10&&!c.inline;l++)try{yield new Promise(u=>setTimeout(u,50))}catch{}}c.inline?(a.options.computedOptions=n.getHalFormsOptions(a),c.selectedValues?a.value=1===c?.maxItems?c.selectedValues[0]:c.selectedValues:a.required||c.selectedValues||c?.minItems>=1?a.required&&!c.selectedValues&&c.computedOptions&&(a.value=1===c?.maxItems?a.options.computedOptions[0].value:[a.options.computedOptions[0].value]):a.value=n.noValueSelected):(console.warn('Cannot compute HAL-FORMS options for property "'+a.name+'".'),console.warn('Will ignore HAL-FORMS options for property "'+a.name+'".'),a.options=void 0)}n.halFormsPropertyKey=n.halFormsTemplate.value.title}if(n.requestBody="",n.selectedHttpMethod=i.command,n.templatedUri=void 0,n.isUriTemplate=e.isUriTemplated(i.uri),n.originalRequestUri=i.uri,n.isUriTemplate){const a=xr(i.uri);n.uriTemplateParameters=[];for(const c of a.varNames)n.uriTemplateParameters.push(new YH(c,""));n.templatedUri=i.uri,n.computeUriFromTemplate()}else n.newRequestUri=i.uri;const s=document.getElementById("HttpRequestTrigger");s&&s.click(),n.propertyChanged()}});return function(o){return r.apply(this,arguments)}}()),this.appService.uriObservable.subscribe(r=>this.goFromHashChange(r)),this.appService.requestHeadersObservable.subscribe(r=>{this.tempRequestHeaders=r,this.updateRequestHeaders()}),this.updateRequestHeaders(),this.getUri()}getUri(){this.requestService.getUri(this.uri)}getExpandedUri(){this.requestService.getUri(this.newRequestUri)}makeHttpRequest(){this.requestService.requestUri(this.newRequestUri,Ae[this.selectedHttpMethod],this.requestBody,this.halFormsContentType)}goFromHashChange(n){this.uri=n,this.requestService.getUri(this.uri)}computeUriFromTemplate(n=!0){const r=xr(this.templatedUri),o={};for(const i of this.uriTemplateParameters)i.value.length>0&&(o[i.key]=i.value);this.newRequestUri=r.fill(o),this.halFormsProperties&&n&&this.propertyChanged()}static isUriTemplated(n){return xr(n).varNames.length>0}propertyChanged(){this.requestBody="{\n",this.templatedUri?this.computeUriFromTemplate(!1):this.originalRequestUri&&(this.newRequestUri=this.originalRequestUri);let n=!1;if(this.jsonSchema)for(const r of Object.keys(this.jsonSchema))this.jsonSchema[r].value&&this.jsonSchema[r].value.length>0&&(n&&(this.requestBody+=",\n"),this.requestBody+=' "'+r+'": '+("integer"!==this.jsonSchema[r].type?'"':"")+this.jsonSchema[r].value+("integer"!==this.jsonSchema[r].type?'"':""),n=!0);else if(this.halFormsProperties){this.templatedUri&&(n=this.newRequestUri.includes("?"));for(const r of this.halFormsProperties){let o="get";this.halFormsTemplate.value.method&&(o=this.halFormsTemplate.value.method.toLowerCase()),"get"!==o&&"post"!==o&&"put"!==o&&"patch"!==o&&"delete"!==o&&(o="get");const i="post"===o||"put"===o||"patch"===o,s=1!==r?.options?.maxItems;r.name&&r.value&&""!==r.value&&(n?i?this.requestBody+=",\n":this.newRequestUri+="&":i||(this.newRequestUri+="?"),i?this.requestBody+=s?' "'+r.name+'": '+JSON.stringify(r.value):' "'+r.name+'": "'+r.value+'"':this.newRequestUri+=r.name+"="+r.value,n=!0)}}this.requestBody+="\n}"}showEditHeadersDialog(){this.tempRequestHeaders=[];for(let n=0;n<5;n++)this.tempRequestHeaders.push(this.requestHeaders.length>n?new ki(this.requestHeaders[n].key,this.requestHeaders[n].value):new ki("",""));document.getElementById("requestHeadersModalTrigger").click()}updateRequestHeaders(){this.requestHeaders=[];for(const n of this.tempRequestHeaders){const r=n.key.trim(),o=n.value.trim();r.length>0&&o.length>0&&this.requestHeaders.push(new ki(r,o))}this.processRequestHeaders()}clearRequestHeaders(){this.tempRequestHeaders=[];for(let n=0;n<5;n++)this.tempRequestHeaders.push(new ki("",""));this.processRequestHeaders()}processRequestHeaders(){this.requestService.setCustomHeaders(this.requestHeaders),this.hasCustomRequestHeaders=this.requestHeaders.length>0,this.appService.setCustomRequestHeaders(this.requestHeaders)}setAcceptRequestHeader(n){let r=!1;for(let o=0;o<5;o++)if("accept"===this.tempRequestHeaders[o].key.toLowerCase()){this.tempRequestHeaders[o].value=n,r=!0;break}if(!r)for(let o=0;o<5;o++)if(""===this.tempRequestHeaders[o].key){this.tempRequestHeaders[o].key="Accept",this.tempRequestHeaders[o].value=n;break}}getTooltip(n){if(!this.jsonSchema)return"";let r=this.jsonSchema[n].type;return this.jsonSchema[n].format&&(r+=" in "+this.jsonSchema[n].format+" format"),r}getInputType(n){return this.requestService.getInputType(this.jsonSchema[n].type,this.jsonSchema[n].format)}getValidationErrors(n){if(!n.errors)return"";let r="";return n.errors.required&&(r="Value is required\n"),n.errors.pattern&&(r+="Value does not match pattern: "+n.errors.pattern.requiredPattern+"\n"),n.errors.maxlength&&(r+="Value does not have required max length: "+n.errors.maxlength.requiredLength+"\n"),n.errors.minlength&&(r+="Value does not have required min length: "+n.errors.minlength.requiredLength+"\n"),n.errors.max&&(r+="Value is bigger than max: "+n.errors.max.max+"\n"),n.errors.min&&(r+="Value is smaller than min: "+n.errors.min.min+"\n"),n.errors.email&&(r+="Value is not a valid email\n"),n.errors.maxItems&&(r+="Selection exceeds the maximum number of items: "+n.errors.maxItems.maxItems+"\n"),n.errors.minItems&&(r+="Selection falls below the minimum number of items: "+n.errors.minItems.minItems+"\n"),r}getUiElementForHalFormsTemplateProperty(n){return n.options?"select":"input"}getHalFormsOptions(n){if(!n.options)return[];const r=n.options,o=[];!n.required&&1===r.maxItems&&!(r.minItems>=1)&&o.push(new og(this.noValueSelected,this.noValueSelected));const i=r?.promptField||"prompt",s=r?.valueField||"value";if(r.inline){if(!(r.inline instanceof Array))return console.warn('HAL-FORMS: Selectable options for property "'+n.name+'" must be an array'),console.warn('=> Property "'+n.name+'" input will be rendered as HTML "input"'),n.options=void 0,o;for(const a of r.inline)if("string"==typeof a||a instanceof String)o.push(new og(a,a));else{if(!a[i]||!a[s])return console.warn('HAL-FORMS: Selectable options for property "'+n.name+'" are not parsable'),console.warn('=> Property "'+n.name+'" input will be rendered as HTML "input"'),n.options=void 0,o;o.push(new og(a[i],a[s]))}}return o}isHalFormsOptionSelected(n,r){return!!n.value&&n.value.includes(r)}static#e=this.\u0275fac=function(r){return new(r||e)(I($l),I(la))};static#t=this.\u0275cmp=Lo({type:e,selectors:[["app-uri-input"]],standalone:!0,features:[Ai],decls:73,vars:14,consts:[["myForm","ngForm"],["ngModel","ngModel"],[1,"container"],[1,"row"],[1,"col-lg-12"],[1,"bs-component"],[3,"ngSubmit"],[1,"input-group"],["type","button",1,"btn","btn-secondary",3,"click"],["type","url","id","InputApiUri","placeholder","Enter API URI","name","uri",1,"form-control",3,"ngModelChange","ngModel"],["type","submit","id","go",1,"btn","btn-primary"],[4,"ngIf"],["id","HttpRequestTrigger","data-bs-toggle","modal","data-bs-target","#httpRequestModal"],["id","httpRequestModal","role","dialog","aria-hidden","false",1,"modal","fade"],["role","document",1,"modal-dialog","modal-xl"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close"],[1,"modal-body","me-2"],[1,"form-group","row"],["for","uri",1,"col-sm-3","col-form-label"],[1,"p-1","col-sm-9"],["readonly","true","id","uri",1,"form-control","text-truncate",3,"title"],["class","form-group",4,"ngIf"],[1,"col-sm-3","col-form-label"],["readonly","true",1,"form-control","text-truncate"],["class","form-group row",4,"ngIf"],[1,"modal-footer"],["id","requestDialogGoButton","type","button","data-bs-dismiss","modal",1,"btn","btn-secondary",3,"click","disabled"],["id","requestHeadersModalTrigger","data-bs-toggle","modal","data-bs-target","#requestHeadersModal"],["id","requestHeadersModal","role","dialog","aria-labelledby","requestHeadersModalLabel","aria-hidden","false",1,"modal","fade"],["role","document",1,"modal-dialog","modal-lg"],["id","requestHeadersModalLabel",1,"modal-title"],[1,"modal-body"],[1,"form-group"],["id","titles",1,"form-group","row"],[1,"p-2","col-sm-3"],[1,"p-2","col-sm-9"],["id","headers","class","form-group row",4,"ngFor","ngForOf"],[1,"me-auto"],["type","button",1,"btn","btn-outline-primary","me-2",3,"click"],["type","button",1,"btn","btn-outline-primary",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-secondary",3,"click"],[1,"legend"],[1,"table","table-striped","table-sm"],[4,"ngFor","ngForOf"],[1,"w-25"],[1,"w-75"],["id","uri-parameters","class","form-group row",4,"ngFor","ngForOf"],["id","uri-parameters",1,"form-group","row"],[1,"form-control",3,"ngModelChange","keyup","ngModel","name"],["for","expandedURI",1,"col-sm-3","col-form-label"],["id","expandedURI",1,"form-control","text-truncate",3,"title"],[1,"mb-2"],["class","form-group row",4,"ngFor","ngForOf"],[1,"text-info","col-sm-3","col-form-label",3,"title"],[1,"form-control",3,"ngModelChange","keyup","type","ngModel","ngModelOptions"],["class","text-info col-sm-3 col-form-label",3,"title",4,"ngIf"],["class","text-info col-sm-3 col-form-label",4,"ngIf"],[1,"text-info","col-sm-3","col-form-label"],[1,"form-control",3,"ngModelChange","change","keyup","ngModel","name","id","type","placeholder","appHalFormsProperty"],[1,"error-text"],["class","form-select",3,"ngModel","name","id","appHalFormsProperty","ngModelChange","change",4,"ngIf"],["class","form-control","multiple","",3,"ngModel","name","id","appHalFormsProperty","ngModelChange","change",4,"ngIf"],[1,"form-select",3,"ngModelChange","change","ngModel","name","id","appHalFormsProperty"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"],["multiple","",1,"form-control",3,"ngModelChange","change","ngModel","name","id","appHalFormsProperty"],["for","body",1,"col-sm-3","col-form-label"],["class","form-control","id","body","rows","5","name","bodyArea",3,"ngModel","ngModelChange",4,"ngIf"],["class","form-control","id","invalidBody","rows","5","name","invalidBodyArea",4,"ngIf"],["id","body","rows","5","name","bodyArea",1,"form-control",3,"ngModelChange","ngModel"],["id","invalidBody","rows","5","name","invalidBodyArea",1,"form-control"],["id","request-input-expanded-uri","readonly","true",1,"form-control","text-truncate"],["id","headers",1,"form-group","row"],[1,"form-control",3,"ngModelChange","ngModel","ngModelOptions"]],template:function(r,o){if(1&r){const i=Mt();re(0,"br"),y(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"form",6),ce("ngSubmit",function(){return se(i),ae(o.getUri())}),y(6,"div",7)(7,"button",8),ce("click",function(){return se(i),ae(o.showEditHeadersDialog())}),b(8,"Edit Headers "),m(),y(9,"input",9),bn("ngModelChange",function(a){return se(i),Un(o.uri,a)||(o.uri=a),ae(a)}),m(),y(10,"button",10),b(11,"Go!"),m()()()(),Y(12,lU,9,1,"div",11),m()()(),re(13,"div",12),y(14,"div",13)(15,"div",14)(16,"div",15)(17,"div",16)(18,"h5",17),b(19,"HTTP Request Input"),m(),re(20,"button",18),m(),y(21,"div",19)(22,"form",null,0)(24,"div",20)(25,"label",21),b(26,"URI "),Y(27,uU,2,0,"span",11),m(),y(28,"div",22)(29,"div",23),b(30),m()()(),Y(31,hU,5,2,"div",24),y(32,"div",20)(33,"label",25),b(34,"HTTP Method"),m(),y(35,"div",22)(36,"div",26),b(37),m()()(),Y(38,pU,6,1,"div",27)(39,mU,7,3,"div",11)(40,AU,7,2,"div",11)(41,OU,6,2,"div",27)(42,xU,6,1,"div",27),m()(),y(43,"div",28)(44,"button",29),ce("click",function(){return se(i),ae(o.makeHttpRequest())}),b(45,"Go! "),m()()()()(),re(46,"div",30),y(47,"div",31)(48,"div",32)(49,"div",15)(50,"div",16)(51,"h5",33),b(52,"Custom Request Headers"),m(),re(53,"button",18),m(),y(54,"div",34)(55,"form")(56,"div",35)(57,"div",36)(58,"div",37),b(59," Key "),m(),y(60,"div",38),b(61," Value "),m()(),Y(62,PU,5,6,"div",39),m()()(),y(63,"div",28)(64,"div",40)(65,"button",41),ce("click",function(){return se(i),ae(o.clearRequestHeaders())}),b(66,"Clear"),m(),y(67,"button",41),ce("click",function(){return se(i),ae(o.setAcceptRequestHeader("application/hal+json"))}),b(68,"Accept HAL "),m(),y(69,"button",42),ce("click",function(){return se(i),ae(o.setAcceptRequestHeader("application/prs.hal-forms+json"))}),b(70,"Accept HAL-FORMS "),m()(),y(71,"button",43),ce("click",function(){return se(i),ae(o.updateRequestHeaders())}),b(72,"OK "),m()()()()()}if(2&r){const i=ol(23);C(9),wn("ngModel",o.uri),C(3),M("ngIf",o.hasCustomRequestHeaders),C(15),M("ngIf",o.isUriTemplate),C(2),Bn("title",o.httpRequestEvent.uri),C(),Me(o.httpRequestEvent.uri),C(),M("ngIf",o.isUriTemplate),C(6),sn(" ",o.commandPlaceholder[o.httpRequestEvent.command]," "),C(),M("ngIf",o.halFormsContentType),C(),M("ngIf",o.jsonSchema),C(),M("ngIf",o.halFormsProperties),C(),M("ngIf",o.httpRequestEvent.command===o.commandPlaceholder.Post||o.httpRequestEvent.command===o.commandPlaceholder.Put||o.httpRequestEvent.command===o.commandPlaceholder.Patch),C(),M("ngIf",o.httpRequestEvent.command===o.commandPlaceholder.Get||o.httpRequestEvent.command===o.commandPlaceholder.Delete),C(2),M("disabled",i.invalid),C(18),M("ngForOf",o.tempRequestHeaders)}},dependencies:[mT,YI,oT,sT,Wl,su,au,FI,kI,Jp,iu,xi,oa,aU,lp],styles:["pre[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.15);border-radius:4px}.table[_ngcontent-%COMP%]{table-layout:fixed}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]})}return e})();function kU(e,t){if(1&e&&(y(0,"div"),re(1,"link",29),m()),2&e){const n=A();C(),M("href",n.selectedThemeUrl,Ec)}}function LU(e,t){if(1&e){const n=Mt();y(0,"a",30),ce("click",function(){const o=se(n).$implicit;return ae(A().changeTheme(o))}),re(1,"i",31),b(2),m()}if(2&e){const n=t.$implicit,r=A();C(),on(r.getThemeIconCheckStyle(n)),C(),Me(n)}}function VU(e,t){1&e&&re(0,"hr",34)}function HU(e,t){if(1&e){const n=Mt();y(0,"a",30),ce("click",function(){se(n);const o=A().$implicit;return ae(A().selectSetting(o))}),re(1,"i",31),b(2),m()}if(2&e){const n=A().$implicit,r=A();C(),on(r.getSettingsIconCheckStyle(n)),C(),Me(n)}}function jU(e,t){if(1&e&&(y(0,"div"),Y(1,VU,1,0,"hr",32)(2,HU,3,3,"a",33),m()),2&e){const n=t.$implicit;C(),M("ngIf","---"===n),C(),M("ngIf","---"!==n)}}function BU(e,t){1&e&&(y(0,"td")(1,"a",35),b(2,"Snapshot Reference Documentation"),m()())}function UU(e,t){1&e&&(y(0,"td")(1,"a",36),b(2,"Release Reference Documentation"),m()())}function $U(e,t){1&e&&(y(0,"div",2)(1,"div",37)(2,"div",38),re(3,"app-uri-input")(4,"br")(5,"app-response-explorer"),m(),y(6,"div",38),re(7,"app-response-details"),m(),y(8,"div",38),re(9,"app-documentation"),m()()())}function qU(e,t){if(1&e&&(y(0,"div",2)(1,"div",37)(2,"div",38),re(3,"app-uri-input")(4,"br")(5,"app-response-explorer"),m(),y(6,"div",38),re(7,"app-response-details",39)(8,"app-documentation"),m()()()),2&e){const n=A();C(7),M("hidden",n.showDocumentation)}}(function pj(e,t){return aL({rootComponent:e,...tI(t)})})((()=>{class e{constructor(n,r,o){this.appService=n,this.requestService=r,this.sanitizer=o,this.themes=["Default","Cerulean","Cosmo","Cyborg","Darkly","Flatly","Journal","Litera","Lumen","Lux","Materia","Minty","Morph","Pulse","Quartz","Sandstone","Simplex","Sketchy","Slate","Solar","Spacelab","Superhero","United","Vapor","Yeti","Zephyr"],this.layouts=["2 Columns","3 Columns"],this.settings=["2 Column Layout","3 Column Layout","---","Use HTTP OPTIONS","---","Enable all HTTP Methods for HAL-FORMS Links"],this.isCustomTheme=!1,this.showDocumentation=!1,this.isTwoColumnLayout=!0,this.useHttpOptions=!1,this.enableAllHttpMethodsForLinks=!1,this.version="1.2.2",this.isSnapshotVersion=this.version.endsWith("SNAPSHOT")}ngOnInit(){this.requestService.getResponseObservable().subscribe(()=>{this.showDocumentation=!1}),this.requestService.getDocumentationObservable().subscribe(()=>{this.showDocumentation=!0}),this.appService.themeObservable.subscribe(n=>this.changeTheme(n)),this.changeTheme(this.appService.getTheme()),this.appService.layoutObservable.subscribe(n=>this.changeLayout(n)),this.changeLayout(this.appService.getLayout()),this.appService.httpOptionsObservable.subscribe(n=>this.changeHttpOptions(n)),this.changeHttpOptions(this.appService.getHttpOptions()),this.appService.allHttpMethodsForLinksObservable.subscribe(n=>this.changeAllHttpMethodsForLinks(n)),this.changeAllHttpMethodsForLinks(this.appService.getAllHttpMethodsForLinks())}changeTheme(n){this.isCustomTheme=n!==this.themes[0],this.isCustomTheme&&(this.selectedThemeUrl=this.sanitizer.bypassSecurityTrustResourceUrl("https://bootswatch.com/5/"+n.toLowerCase()+"/bootstrap.min.css")),this.appService.setTheme(n)}changeLayout(n){this.appService.setLayout(n.substring(0,1)),this.isTwoColumnLayout="2"===this.appService.getLayout()}changeHttpOptions(n){this.appService.setHttpOptions(n),this.useHttpOptions=n}changeAllHttpMethodsForLinks(n){this.appService.setAllHttpMethodsForLinks(n),this.enableAllHttpMethodsForLinks=n}selectSetting(n){n.includes("OPTIONS")?(this.useHttpOptions=!this.useHttpOptions,this.appService.setHttpOptions(this.useHttpOptions)):n.includes("Links")?(this.enableAllHttpMethodsForLinks=!this.enableAllHttpMethodsForLinks,this.appService.setAllHttpMethodsForLinks(this.enableAllHttpMethodsForLinks)):this.changeLayout(n)}getThemeIconCheckStyle(n){return n===this.appService.getTheme()?"":"visibility: hidden"}getSettingsIconCheckStyle(n){return n.includes("OPTIONS")&&this.useHttpOptions||n.includes(this.appService.getLayout())||n.includes("Links")&&this.enableAllHttpMethodsForLinks?"":"visibility: hidden"}static#e=this.\u0275fac=function(r){return new(r||e)(I($l),I(la),I(Fp))};static#t=this.\u0275cmp=Lo({type:e,selectors:[["app-root"]],standalone:!0,features:[Ai],decls:59,vars:8,consts:[[4,"ngIf"],[1,"navbar","navbar-expand-lg","navbar-toggleable-md","navbar-dark","bg-dark"],[1,"container-fluid"],[1,"navbar-brand"],["src","favicon.ico","width","30","height","30","alt","",1,"d-inline-block","align-top"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbar1","aria-controls","navbar1","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbar1",1,"collapse","navbar-collapse"],[1,"navbar-nav"],[1,"nav-item","dropdown"],["href","#","id","navbarDropdownTheme","role","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"nav-link","dropdown-toggle"],["aria-labelledby","navbarDropdownTheme",1,"dropdown-menu"],["class","dropdown-item","href","#",3,"click",4,"ngFor","ngForOf"],["href","#","id","navbarDropdownLayout","role","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"nav-link","dropdown-toggle"],["aria-labelledby","navbarDropdownLayout",1,"dropdown-menu"],[4,"ngFor","ngForOf"],["href","#","data-bs-toggle","modal","data-bs-target","#aboutModal",1,"nav-link"],["id","aboutModal","tabindex","-1","role","dialog","aria-labelledby","aboutModalLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","aboutModalLabel",1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close"],[1,"modal-body"],[1,"table","table-striped","table-sm"],["href","https://github.com/toedter/hal-explorer",1,"p-0","text-decoration-none"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-secondary"],["class","container-fluid",4,"ngIf"],["rel","stylesheet",3,"href"],["href","#",1,"dropdown-item",3,"click"],[1,"icon-ok"],["class","dropdown-divider",4,"ngIf"],["class","dropdown-item","href","#",3,"click",4,"ngIf"],[1,"dropdown-divider"],["href","https://toedter.github.io/hal-explorer/snapshot/reference-doc/",1,"p-0","text-decoration-none"],["href","https://toedter.github.io/hal-explorer/release/reference-doc/",1,"p-0","text-decoration-none"],[1,"row","gx-2"],[1,"form-group","col-xl"],[3,"hidden"]],template:function(r,o){1&r&&(Y(0,kU,2,1,"div",0),y(1,"nav",1)(2,"div",2)(3,"div",3),re(4,"img",4),b(5," HAL Explorer "),m(),y(6,"button",5),re(7,"span",6),m(),y(8,"div",7)(9,"ul",8)(10,"li",9)(11,"a",10),b(12," Theme "),m(),y(13,"div",11),Y(14,LU,3,3,"a",12),m()(),y(15,"li",9)(16,"a",13),b(17," Settings "),m(),y(18,"div",14),Y(19,jU,3,2,"div",15),m()(),y(20,"a",16),b(21,"About"),m()()()()(),y(22,"div",17)(23,"div",18)(24,"div",19)(25,"div",20)(26,"h5",21),b(27,"About HAL Explorer"),m(),re(28,"button",22),m(),y(29,"div",23)(30,"div",2)(31,"table",24)(32,"tbody")(33,"tr")(34,"td"),b(35,"Author:"),m(),y(36,"td"),b(37,"Kai T\xf6dter"),m()(),y(38,"tr")(39,"td"),b(40,"Version:"),m(),y(41,"td"),b(42),m()(),y(43,"tr")(44,"td"),b(45,"GitHub:"),m(),y(46,"td")(47,"a",25),b(48,"https://github.com/toedter/hal-explorer"),m()()(),y(49,"tr")(50,"td"),b(51,"Docs:"),m(),Y(52,BU,3,0,"td",0)(53,UU,3,0,"td",0),m()()()()(),y(54,"div",26)(55,"button",27),b(56,"Close"),m()()()()(),Y(57,$U,10,0,"div",28)(58,qU,9,1,"div",28)),2&r&&(M("ngIf",o.isCustomTheme),C(14),M("ngForOf",o.themes),C(5),M("ngForOf",o.settings),C(23),Me(o.version),C(10),M("ngIf",o.isSnapshotVersion),C(),M("ngIf",!o.isSnapshotVersion),C(4),M("ngIf",!o.isTwoColumnLayout),C(),M("ngIf",o.isTwoColumnLayout))},dependencies:[xi,oa,FU,Xj,Vj,Tj],styles:[".form-group.col-md-6[_ngcontent-%COMP%]{padding-right:5px;padding-left:5px}"]})}return e})(),{providers:[im(Dj,mT),function HH(...e){const t=[Tb,xb,Rb,{provide:Vl,useExisting:Rb},{provide:Hl,useFactory:()=>N(Ip,{optional:!0})??N(xb)},{provide:ca,useValue:VH,multi:!0},{provide:Mp,useValue:!0},{provide:kb,useClass:LH}];for(const n of e)t.push(...n.\u0275providers);return function Zi(e){return{\u0275providers:e}}(t)}(function jH(){return function Co(e,t){return{\u0275kind:e,\u0275providers:t}}(Or.LegacyInterceptors,[{provide:Lb,useFactory:SH},{provide:ca,useExisting:Lb,multi:!0}])}())]}).catch(e=>console.log(e))},784:function(ji,ma){var Lr,Pe;void 0!==(Pe="function"==typeof(Lr=function(){var dr={"+":!0,"#":!0,".":!0,"/":!0,";":!0,"?":!0,"&":!0},fr={"*":!0};function q(Ie){return encodeURI(Ie).replace(/%25[0-9][0-9]/g,function(Ue){return"%"+Ue.substring(3)})}function Wn(Ie){return Ie=Ie.replace(/%../g,""),encodeURIComponent(Ie)===Ie}function cu(Ie){var Ue="";dr[Ie.charAt(0)]&&(Ue=Ie.charAt(0),Ie=Ie.substring(1));var Ne="",ot="",$e=!0,it=!1,Zn=!1;"+"==Ue?$e=!1:"."==Ue?(ot=".",Ne="."):"/"==Ue?(ot="/",Ne="/"):"#"==Ue?(ot="#",$e=!1):";"==Ue?(ot=";",Ne=";",it=!0,Zn=!0):"?"==Ue?(ot="?",Ne="&",it=!0):"&"==Ue&&(ot="&",Ne="&",it=!0);for(var Mn=[],Yn=Ie.split(","),Fe=[],ln={},ne=0;ne0&&(G+=K.suffices["*"]&&Ne||",",K.suffices["*"]&&it&&(G+=K.name+"=")),G+=$e?encodeURIComponent(L[Qt]).replace(/!/g,"%21"):q(L[Qt])}else if("object"==typeof L){it&&!K.suffices["*"]&&(G+=K.name+"=");var ee=!0;for(var he in L)ee||(G+=K.suffices["*"]&&Ne||","),ee=!1,G+=$e?encodeURIComponent(he).replace(/!/g,"%21"):q(he),G+=K.suffices["*"]?"=":",",G+=$e?encodeURIComponent(L[he]).replace(/!/g,"%21"):q(L[he])}else it&&(G+=K.name,(!Zn||""!=L)&&(G+="=")),null!=K.truncate&&(L=L.substring(0,K.truncate)),G+=$e?encodeURIComponent(L).replace(/!/g,"%21"):q(L)}return G},unSubstitution:function(B,G,Ye){if(ot&&(B=B.substring(ot.length)),1==Fe.length&&Fe[0].suffices["*"]){for(var K=(Dt=Fe[0]).name,L=Dt.suffices["*"]?B.split(Ne||","):[B],Qt=$e&&-1!=B.indexOf("="),ee=1;ee0&&Fe.length-Hr0;){var Mn=Ue.shift(),Yn=Mn.split("}")[0],Fe=Mn.substring(Yn.length+1),ln=cu(Yn);$e.push(ln.substitution),it.push(ln.unSubstitution),ot.push(ln.prefix),Ne.push(Fe),Zn=Zn.concat(ln.varNames)}this.fill=function(ne){if(ne&&"function"!=typeof ne){var Re=ne;ne=function(dn){return Re[dn]}}for(var _t=Ne[0],ke=0;ke<$e.length;ke++)_t+=(0,$e[ke])(ne),_t+=Ne[ke+1];return _t},this.fromUri=function(ne,Re){Re=Re||{};for(var _t={},ke=0;ke=Ne.length-1){if(""==ne)break;return}var dn=ot[ke];if(!dn||ne.substring(0,dn.length)===dn){for(var Sn=Ne[ke+1],Kt=ke;;){if(Kt==Ne.length-2){var B=ne.substring(ne.length-Sn.length);if(B!==Sn)return;var G=ne.substring(0,ne.length-Sn.length);ne=B}else if(Sn){var Ye=ne.indexOf(Sn);G=ne.substring(0,Ye),ne=ne.substring(Ye)}else if(ot[Kt+1])-1===(Ye=ne.indexOf(ot[Kt+1]))&&(Ye=ne.length),G=ne.substring(0,Ye),ne=ne.substring(Ye);else{if(Ne.length>Kt+2){Kt++,Sn=Ne[Kt+1];continue}G=ne,ne=""}break}if(!it[ke](G,_t,Re.strict))return}}return _t},this.varNames=Zn,this.template=Ie}return Bi.prototype={toString:function(){return this.template},fillFromObject:function(Ie){return this.fill(Ie)},test:function(Ie,Ue){return!!this.fromUri(Ie,Ue)}},Bi})?Lr.apply(ma,[]):Lr)&&(ji.exports=Pe)}},ji=>{ji(ji.s=464)}]); \ No newline at end of file diff --git a/snapshot/reference-doc/index.html b/snapshot/reference-doc/index.html index 391d5e3..3d1d4d9 100644 --- a/snapshot/reference-doc/index.html +++ b/snapshot/reference-doc/index.html @@ -696,7 +696,7 @@

5. License

diff --git a/snapshot/reference-doc/introduction.html b/snapshot/reference-doc/introduction.html index 89d8e38..e191c9f 100644 --- a/snapshot/reference-doc/introduction.html +++ b/snapshot/reference-doc/introduction.html @@ -128,7 +128,7 @@

Features

diff --git a/snapshot/reference-doc/license.html b/snapshot/reference-doc/license.html index 80bcb8c..11c04f1 100644 --- a/snapshot/reference-doc/license.html +++ b/snapshot/reference-doc/license.html @@ -40,7 +40,7 @@

License

diff --git a/snapshot/reference-doc/menu.html b/snapshot/reference-doc/menu.html index f77b1ce..b6e194e 100644 --- a/snapshot/reference-doc/menu.html +++ b/snapshot/reference-doc/menu.html @@ -88,7 +88,7 @@

Settings

diff --git a/snapshot/reference-doc/setup.html b/snapshot/reference-doc/setup.html index 8e53636..6227394 100644 --- a/snapshot/reference-doc/setup.html +++ b/snapshot/reference-doc/setup.html @@ -223,7 +223,7 @@

Running Tes diff --git a/snapshot/reference-doc/usage.html b/snapshot/reference-doc/usage.html index b352bc2..599b65a 100644 --- a/snapshot/reference-doc/usage.html +++ b/snapshot/reference-doc/usage.html @@ -288,7 +288,7 @@

HAL