@whoz-oss/coday-client 0.0.0-workstream-forge.232 → 0.0.0-workstream-forge.233
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/chunk-BEtE9u4S.js +1 -0
- package/browser/chunk-BHFL0zBW.js +1 -0
- package/browser/{chunk-DSTjQyTQ.js → chunk-BL4O5z35.js} +1 -1
- package/browser/chunk-BRhYc841.js +2 -0
- package/browser/chunk-BSCoGKQH.js +1 -0
- package/browser/chunk-BSwOttIr.js +1 -0
- package/browser/chunk-BTyI5T9m.js +1 -0
- package/browser/chunk-BUAyDXTF.js +1 -0
- package/browser/{chunk-BxwRgKBY.js → chunk-BeFHuscX.js} +1 -1
- package/browser/chunk-BhiMaXTc.js +1 -0
- package/browser/chunk-BmWGkbfS.js +1 -0
- package/browser/chunk-BvB8BwW-.js +1 -0
- package/browser/chunk-BxyJxLnM.js +1 -0
- package/browser/chunk-By1CBVie.js +1 -0
- package/browser/chunk-ByIZOfZp.js +1 -0
- package/browser/chunk-CGIofH1S.js +1 -0
- package/browser/{chunk-c_qjGPOd.js → chunk-CW0Xz9Gc.js} +1 -1
- package/browser/chunk-CXeXS2-8.js +1 -0
- package/browser/chunk-CkYlNhz9.js +1 -0
- package/browser/chunk-Cs_kiN3M.js +1 -0
- package/browser/chunk-D-GH6Vwh.js +1 -0
- package/browser/{chunk-DjcIrFfd.js → chunk-D25q4NMm.js} +1 -1
- package/browser/chunk-D4MihuHS.js +1 -0
- package/browser/chunk-D4Ru-LHQ.js +1 -0
- package/browser/chunk-D73N8VqQ.js +1 -0
- package/browser/chunk-D98SYWQ_.js +1 -0
- package/browser/{chunk-CMPqP2EF.js → chunk-DAJa9g45.js} +1 -1
- package/browser/chunk-DDqlkc9R.js +1 -0
- package/browser/chunk-DFBrAyo5.js +1 -0
- package/browser/{chunk-BPdkZgsT.js → chunk-DKNVANEr.js} +1 -1
- package/browser/{chunk-CRfz50nT.js → chunk-DLa-RTUD.js} +1 -1
- package/browser/chunk-DPJF32r4.js +1 -0
- package/browser/{chunk-WDJc7xVn.js → chunk-DPZEV56F.js} +1 -1
- package/browser/chunk-DQpYayn2.js +2 -0
- package/browser/chunk-DU2T72t1.js +674 -0
- package/browser/chunk-Df9nff1i.js +1 -0
- package/browser/{chunk-BCYFEsQY.js → chunk-DgP8Uad-.js} +1 -1
- package/browser/{chunk-Rh-neiKa.js → chunk-Dje4hFK9.js} +1 -1
- package/browser/chunk-DofPUUm1.js +1 -0
- package/browser/chunk-DrUGsskB.js +1 -0
- package/browser/chunk-DrtsXIGf.js +1 -0
- package/browser/chunk-SfXGcx_u.js +2 -0
- package/browser/chunk-ZSYVOgwG.js +1 -0
- package/browser/chunk-k4Z-nQ9G.js +1 -0
- package/browser/{chunk-B8baUEmT.js → chunk-oglfMLBg.js} +1 -1
- package/browser/chunk-vbsIYZk_.js +1 -0
- package/browser/index.html +1 -1
- package/browser/{main-HPRR3LFL.js → main-WGM2SCAZ.js} +17 -17
- package/package.json +1 -1
- package/browser/chunk-B0vz8knv.js +0 -1
- package/browser/chunk-BC-t1LQ0.js +0 -1
- package/browser/chunk-BNLt7aDq.js +0 -1
- package/browser/chunk-BNhQCDMY.js +0 -1
- package/browser/chunk-BY5vmyDB.js +0 -1
- package/browser/chunk-Bg86ht3w.js +0 -1
- package/browser/chunk-Bkx1jNbv.js +0 -1
- package/browser/chunk-BxOB3DD8.js +0 -2
- package/browser/chunk-Bzech8Jm.js +0 -1
- package/browser/chunk-C25EGaCF.js +0 -1
- package/browser/chunk-CQwT3hLh.js +0 -1
- package/browser/chunk-Cet942zR.js +0 -1
- package/browser/chunk-CfEqRYpx.js +0 -1
- package/browser/chunk-Cmclgb-D.js +0 -2
- package/browser/chunk-CsW8J3QQ.js +0 -1
- package/browser/chunk-CyyVQAzK.js +0 -1
- package/browser/chunk-D02C8Sxz.js +0 -1
- package/browser/chunk-D2NMPGa5.js +0 -1
- package/browser/chunk-D4KiawUp.js +0 -1
- package/browser/chunk-D55dWwKm.js +0 -1
- package/browser/chunk-D9bz-8U4.js +0 -1
- package/browser/chunk-DIPHL1c9.js +0 -1
- package/browser/chunk-DJT7DUkW.js +0 -674
- package/browser/chunk-DW4fRjPY.js +0 -1
- package/browser/chunk-DWT2_U7s.js +0 -1
- package/browser/chunk-DbgTR-la.js +0 -1
- package/browser/chunk-DhxW6por.js +0 -2
- package/browser/chunk-Dosu1Uyt.js +0 -1
- package/browser/chunk-Ds9gmUVT.js +0 -1
- package/browser/chunk-Kc_v3nWb.js +0 -1
- package/browser/chunk-W2Auog5Y.js +0 -1
- package/browser/chunk-WqgsE68d.js +0 -1
- package/browser/chunk-tvgu7LYE.js +0 -1
- package/browser/chunk-vMe5ZNxR.js +0 -1
- package/browser/chunk-ynoqb-D_.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var p$1=Object.create;var j$5=Object.defineProperty,q$2=Object.defineProperties,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertyNames,g$1=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,k$3=Object.prototype.hasOwnProperty,m$3=Object.prototype.propertyIsEnumerable;var l=(a,b,c)=>b in a?j$5(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,w$1=(a,b)=>{for(var c in b||={})k$3.call(b,c)&&l(a,c,b[c]);if(g$1)for(var c of g$1(b))m$3.call(b,c)&&l(a,c,b[c]);return a},x$1=(a,b)=>q$2(a,s(b));var y$1=(a,b)=>{var c={};for(var d in a)k$3.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&g$1)for(var d of g$1(a))b.indexOf(d)<0&&m$3.call(a,d)&&(c[d]=a[d]);return c};var z$2=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}};var v$2=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of t(b))!k$3.call(a,e)&&e!==c&&j$5(a,e,{get:()=>b[e],enumerable:!(d=r(b,e))||d.enumerable});return a};var A$3=(a,b,c)=>(c=a!=null?p$1(u(a)):{},v$2(!a||!a.__esModule?j$5(c,"default",{value:a,enumerable:true}):c,a));var B$3=(a,b,c)=>new Promise((d,e)=>{var n=f=>{try{h(c.next(f));}catch(i){e(i);}},o=f=>{try{h(c.throw(f));}catch(i){e(i);}},h=f=>f.done?d(f.value):Promise.resolve(f.value).then(n,o);h((c=c.apply(a,b)).next());});function M(e){return typeof e=="function"}function Rt$1(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack;});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var
|
|
1
|
+
var p$1=Object.create;var j$5=Object.defineProperty,q$2=Object.defineProperties,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertyNames,g$1=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,k$3=Object.prototype.hasOwnProperty,m$3=Object.prototype.propertyIsEnumerable;var l=(a,b,c)=>b in a?j$5(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,w$1=(a,b)=>{for(var c in b||={})k$3.call(b,c)&&l(a,c,b[c]);if(g$1)for(var c of g$1(b))m$3.call(b,c)&&l(a,c,b[c]);return a},x$1=(a,b)=>q$2(a,s(b));var y$1=(a,b)=>{var c={};for(var d in a)k$3.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&g$1)for(var d of g$1(a))b.indexOf(d)<0&&m$3.call(a,d)&&(c[d]=a[d]);return c};var z$2=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}};var v$2=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of t(b))!k$3.call(a,e)&&e!==c&&j$5(a,e,{get:()=>b[e],enumerable:!(d=r(b,e))||d.enumerable});return a};var A$3=(a,b,c)=>(c=a!=null?p$1(u(a)):{},v$2(!a||!a.__esModule?j$5(c,"default",{value:a,enumerable:true}):c,a));var B$3=(a,b,c)=>new Promise((d,e)=>{var n=f=>{try{h(c.next(f));}catch(i){e(i);}},o=f=>{try{h(c.throw(f));}catch(i){e(i);}},h=f=>f.done?d(f.value):Promise.resolve(f.value).then(n,o);h((c=c.apply(a,b)).next());});function M(e){return typeof e=="function"}function Rt$1(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack;});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Lo$1=Rt$1(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
2
|
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
-
`)}`:"",this.name="UnsubscriptionError",this.errors=n;});function Jt$2(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var ee$5=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r();}catch(i){t=i instanceof Po$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Wl(i);}catch(s){t=t??[],s instanceof Po$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new Po$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Wl(t);else {if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this);}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t);}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t;}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Jt$2(n,t);}remove(t){let{_finalizers:n}=this;n&&Jt$2(n,t),t instanceof e&&t._removeParent(this);}};ee$5.EMPTY=(()=>{let e=new ee$5;return e.closed=true,e})();var ra$1=ee$5.EMPTY;function Lo$1(e){return e instanceof ee$5||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function Wl(e){M(e)?e():e.unsubscribe();}var Pe$2={Promise:void 0};var Pn$3={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function jo$2(e){Pn$3.setTimeout(()=>{throw e});}function ft$4(){}function Ln$3(e){e();}var tn$2=class tn extends ee$5{constructor(t){super(),this.isStopped=false,t?(this.destination=t,Lo$1(t)&&t.add(this)):this.destination=ny;}static create(t,n,r){return new Le$2(t,n,r)}next(t){this.isStopped?sa$1():this._next(t);}error(t){this.isStopped?sa$1():(this.isStopped=true,this._error(t));}complete(){this.isStopped?sa$1():(this.isStopped=true,this._complete());}unsubscribe(){this.closed||(this.isStopped=true,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();}}};var aa$1=class aa{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){Bo$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){Bo$1(r);}else Bo$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){Bo$1(n);}}},Le$2=class Le extends tn$2{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new aa$1(o);}};function Bo$1(e){jo$2(e);}function ty(e){throw e}function sa$1(e,t){}var ny={closed:true,next:ft$4,error:ty,complete:ft$4};var jn$3=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ue$3(e){return e}function ry(...e){return ca$1(e)}function ca$1(e){return e.length===0?ue$3:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var R$2=(()=>{class e{constructor(n){n&&(this._subscribe=n);}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=iy(n)?n:new Le$2(n,r,o);return Ln$3(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i));}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r);}}forEach(n,r){return r=Kl(r),new r((o,i)=>{let s=new Le$2({next:a=>{try{n(a);}catch(c){i(c),s.unsubscribe();}},error:i,complete:o});this.subscribe(s);})}_subscribe(n){var r;return (r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[jn$3](){return this}pipe(...n){return ca$1(n)(this)}toPromise(n){return n=Kl(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i));})}}return e.create=t=>new e(t),e})();function Kl(e){var t;return (t=e??Pe$2.Promise)!==null&&t!==void 0?t:Promise}function oy(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function iy(e){return e&&e instanceof tn$2||oy(e)&&Lo$1(e)}var Xl=Rt$1(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var le$4=(()=>{class e extends R$2{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new Vo$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Xl}next(n){Ln$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){Ln$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=true,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n);}});}complete(){Ln$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=true;let{observers:n}=this;for(;n.length;)n.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=true,this.observers=this.currentObservers=null;}get observed(){var n;return ((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ra$1:(this.currentObservers=null,i.push(n),new ee$5(()=>{this.currentObservers=null,Jt$2(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new R$2;return n.source=this,n}}return e.create=(t,n)=>new Vo$1(t,n),e})(),Vo$1=class Vo extends le$4{constructor(t,n){super(),this.destination=t,this.source=n;}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t);}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t);}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t);}_subscribe(t){var n,r;return (r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ra$1}};var Cr$1=class Cr extends le$4{constructor(t){super(),this._value=t;}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return !n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t);}};var nn$2=new R$2(e=>e.complete());function Ho$1(e){return e&&M(e.schedule)}function ua$1(e){return e[e.length-1]}function Uo$1(e){return M(ua$1(e))?e.pop():void 0}function Ze$2(e){return Ho$1(ua$1(e))?e.pop():void 0}function Jl(e,t){return typeof ua$1(e)=="number"?e.pop():t}function td(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i);})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l));}catch(d){s(d);}}function c(l){try{u(r.throw(l));}catch(d){s(d);}}function u(l){l.done?i(l.value):o(l.value).then(a,c);}u((r=r.apply(e,[])).next());})}function ed(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function rn$2(e){return this instanceof rn$2?(this.v=e,this):new rn$2(e)}function nd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(y){return new Promise(function(D,_){i.push([f,y,D,_])>1||c(f,y);})},h&&(o[f]=h(o[f])));}function c(f,h){try{u(r[f](h));}catch(y){p(i[0][3],y);}}function u(f){f.value instanceof rn$2?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f);}function l(f){c("next",f);}function d(f){c("throw",f);}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function rd(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ed=="function"?ed(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value);})};}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a});},s);}}var $o$1=e=>e&&typeof e.length=="number"&&typeof e!="function";function zo$1(e){return M(e?.then)}function Go$1(e){return M(e[jn$3])}function Wo$1(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function qo$1(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function sy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Zo$1=sy();function Yo$1(e){return M(e?.[Zo$1])}function Qo$1(e){return nd(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield rn$2(n.read());if(o)return yield rn$2(void 0);yield yield rn$2(r);}}finally{n.releaseLock();}})}function Ko$1(e){return M(e?.getReader)}function A$2(e){if(e instanceof R$2)return e;if(e!=null){if(Go$1(e))return ay(e);if($o$1(e))return cy(e);if(zo$1(e))return uy(e);if(Wo$1(e))return od(e);if(Yo$1(e))return ly(e);if(Ko$1(e))return dy(e)}throw qo$1(e)}function ay(e){return new R$2(t=>{let n=e[jn$3]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function cy(e){return new R$2(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function uy(e){return new R$2(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,jo$2);})}function ly(e){return new R$2(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function od(e){return new R$2(t=>{fy(e,t).catch(n=>t.error(n));})}function dy(e){return od(Qo$1(e))}function fy(e,t){var n,r,o,i;return td(this,void 0,void 0,function*(){try{for(n=rd(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s};}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n));}finally{if(o)throw o.error}}t.complete();})}function oe$3(e,t,n,r=0,o=false){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe();},r);if(e.add(i),!o)return i}function py(e){return M(e?.lift)}function w(e){return t=>{if(py(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 C(e,t,n,r,o){return new la$1(e,t,n,r,o)}var la$1=class la extends tn$2{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()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this));}}};function Xo$1(e,t=0){return w((n,r)=>{n.subscribe(C(r,o=>oe$3(r,e,()=>r.next(o),t),()=>oe$3(r,e,()=>r.complete(),t),o=>oe$3(r,e,()=>r.error(o),t)));})}function Jo$1(e,t=0){return w((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function id(e,t){return A$2(e).pipe(Jo$1(t),Xo$1(t))}function sd(e,t){return A$2(e).pipe(Jo$1(t),Xo$1(t))}function ad(e,t){return new R$2(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function cd(e,t){return new R$2(n=>{let r;return oe$3(n,t,()=>{r=e[Zo$1](),oe$3(n,t,()=>{let o,i;try{({value:o,done:i}=r.next());}catch(s){n.error(s);return}i?n.complete():n.next(o);},0,true);}),()=>M(r?.return)&&r.return()})}function ei$3(e,t){if(!e)throw new Error("Iterable cannot be null");return new R$2(n=>{oe$3(n,t,()=>{let r=e[Symbol.asyncIterator]();oe$3(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function ud(e,t){return ei$3(Qo$1(e),t)}function ld(e,t){if(e!=null){if(Go$1(e))return id(e,t);if($o$1(e))return ad(e,t);if(zo$1(e))return sd(e,t);if(Wo$1(e))return ei$3(e,t);if(Yo$1(e))return cd(e,t);if(Ko$1(e))return ud(e,t)}throw qo$1(e)}function Ye$2(e,t){return t?ld(e,t):A$2(e)}function Tr$1(...e){let t=Ze$2(e);return Ye$2(e,t)}var on$2=Rt$1(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function hy(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new Le$2({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{n?r(t.defaultValue):o(new on$2);}});e.subscribe(i);})}function ne$3(e,t){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:gy}=Array,{getPrototypeOf:my,prototype:yy,keys:vy}=Object;function ti$3(e){if(e.length===1){let t=e[0];if(gy(t))return {args:t,keys:null};if(Dy(t)){let n=vy(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function Dy(e){return e&&typeof e=="object"&&my(e)===yy}var{isArray:Ey}=Array;function Iy(e,t){return Ey(t)?e(...t):e(t)}function ni$3(e){return ne$3(t=>Iy(e,t))}function ri$3(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function wy(...e){let t=Ze$2(e),n=Uo$1(e),{args:r,keys:o}=ti$3(e);if(r.length===0)return Ye$2([],t);let i=new R$2(Cy(r,t,o?s=>ri$3(o,s):ue$3));return n?i.pipe(ni$3(n)):i}function Cy(e,t,n=ue$3){return r=>{dd(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)dd(t,()=>{let u=Ye$2(e[c],t),l=false;u.subscribe(C(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function dd(e,t,n){e?oe$3(n,e,t):t();}function Ty(...e){let t=Uo$1(e),{args:n,keys:r}=ti$3(e),o=new R$2(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=false;A$2(n[l]).subscribe(C(i,p=>{d||(d=true,u--),a[l]=p;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?ri$3(r,a):a),i.complete());}));}});return t?o.pipe(ni$3(t)):o}function oi$3(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,p=()=>{d&&!c.length&&!u&&t.complete();},f=y=>u<r?h(y):c.push(y),h=y=>{i&&t.next(y),u++;let D=false;A$2(n(y,l++)).subscribe(C(t,_=>{i?f(_):t.next(_);},()=>{D=true;},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let _=c.shift();s?oe$3(t,s,()=>h(_)):h(_);}p();}catch(_){t.error(_);}}));};return e.subscribe(C(t,f,()=>{d=true,p();})),()=>{}}function pt$4(e,t,n=1/0){return M(t)?pt$4((r,o)=>ne$3((i,s)=>t(r,i,o,s))(A$2(e(r,o))),n):(typeof t=="number"&&(n=t),w((r,o)=>oi$3(r,o,e,n)))}function br$1(e=1/0){return pt$4(ue$3,e)}function by(...e){let t=Ze$2(e),n=Jl(e,1/0),r=e;return r.length?r.length===1?A$2(r[0]):br$1(n)(Ye$2(r,t)):nn$2}function Ot$1(e,t){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>e.call(t,i,o++)&&r.next(i)));})}function da(e){return w((t,n)=>{let r=null,o=!1,i;r=t.subscribe(C(n,void 0,void 0,s=>{i=A$2(e(s,da(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var ii$3=class ii extends ee$5{constructor(t,n){super();}schedule(t,n=0){return this}};var Sr$1={setInterval(e,t,...n){let{delegate:r}=Sr$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var si$3=class si extends ii$3{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=false;}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=true,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Sr$1.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&Sr$1.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=false,Jt$2(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var _r$1={now(){return (_r$1.delegate||Date).now()},delegate:void 0};var Bn$3=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n;}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Bn$3.now=_r$1.now;var ai$3=class ai extends Bn$3{constructor(t,n=Bn$3.now){super(t,n),this.actions=[],this._active=false;}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=true;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=false,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var ht$4=new ai$3(si$3),fd=ht$4;function pd(e,t=ht$4){return w((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u);}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a();}n.subscribe(C(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}function ci$3(e){return w((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function hd(e){return Ot$1((t,n)=>e<=n)}function gd(){return br$1(1)}function kt$1(...e){return gd()(Ye$2(e,Ze$2(e)))}function md(...e){let t=Ze$2(e);return w((n,r)=>{(t?kt$1(e,n,t):kt$1(e,n)).subscribe(r);})}function fa(e,t){return w((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(C(r,c=>{o?.unsubscribe();let u=0,l=i++;A$2(e(c,l)).subscribe(o=C(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function yd(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?w((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(C(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c);},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete();},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c);},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r);}));}):ue$3}var Mr$1=class Mr extends le$4{constructor(t=1/0,n=1/0,r=_r$1){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};function Sy(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new R$2(r)}function _y(e){return !!e&&(e instanceof R$2||M(e.lift)&&M(e.subscribe))}function ui$3(e){return e instanceof Date&&!isNaN(e)}var My=Rt$1(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function Ny(e,t){let{first:n,each:r,with:o=xy,scheduler:i=ht$4,meta:s=null}=ui$3(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return w((a,c)=>{let u,l,d=null,p=0,f=h=>{l=oe$3(c,i,()=>{try{u.unsubscribe(),A$2(o({meta:s,lastValue:d,seen:p})).subscribe(c);}catch(y){c.error(y);}},h);};u=a.subscribe(C(c,h=>{l?.unsubscribe(),p++,c.next(d=h),r>0&&f(r);},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null;})),!p&&f(n!=null?typeof n=="number"?n:+n-i.now():r);})}function xy(e){throw new My(e)}function Ay(e){return new R$2(t=>{A$2(e()).subscribe(t);})}function sn$2(e=0,t,n=fd){let r=-1;return t!=null&&(Ho$1(t)?n=t:r=t),new R$2(o=>{let i=ui$3(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete());},i)})}function vd(e){return w((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u);}s&&n.complete();},c=()=>{i=null,s&&n.complete();};t.subscribe(C(n,u=>{r=!0,o=u,i||A$2(e(u)).subscribe(i=C(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Ry(e,t=ht$4){return vd(()=>sn$2(e,t))}function Dd(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(C(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function li$3(e,t){return M(t)?pt$4(e,t,1):pt$4(e,1)}function Ed(e){return w((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function an$2(e){return e<=0?()=>nn$2:w((t,n)=>{let r=0;t.subscribe(C(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function pa(){return w((e,t)=>{e.subscribe(C(t,ft$4));})}function ha(e){return ne$3(()=>e)}function ga(e,t){return t?n=>kt$1(t.pipe(an$2(1),pa()),n.pipe(ga(e))):pt$4((n,r)=>A$2(e(n,r)).pipe(an$2(1),ha(n)))}function Oy(e,t=ht$4){let n=sn$2(e,t);return ga(()=>n)}function ky(e,t){return w((n,r)=>{let o=new Set;n.subscribe(C(r,i=>{let s=e?e(i):i;o.has(s)||(o.add(s),r.next(i));})),t&&A$2(t).subscribe(C(r,()=>o.clear(),ft$4));})}function Id(e,t=ue$3){return e=e??Fy,w((n,r)=>{let o,i=!0;n.subscribe(C(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Fy(e,t){return e===t}function wd(e=Py){return w((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function Py(){return new on$2}function Ly(...e){return t=>kt$1(t,Tr$1(...e))}function ma(e,t){return t?n=>n.pipe(ma((r,o)=>A$2(e(r,o)).pipe(ne$3((i,s)=>t(r,i,o,s))))):w((n,r)=>{let o=0,i=null,s=!1;n.subscribe(C(r,a=>{i||(i=C(r,void 0,()=>{i=null,s&&r.complete();}),A$2(e(a,o++)).subscribe(i));},()=>{s=!0,!i&&r.complete();}));})}function jy(e,t=1/0,n){return t=(t||0)<1?1/0:t,w((r,o)=>oi$3(r,o,e,t,void 0,!0,n))}function By(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ot$1((o,i)=>e(o,i,r)):ue$3,an$2(1),n?Ed(t):wd(()=>new on$2))}function Vy(e){return e<=0?()=>nn$2:w((t,n)=>{let r=[];t.subscribe(C(n,o=>{r.push(o),e<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));})}function Hy(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=false}=t;return n<=0?ue$3:w((i,s)=>{let a=0,c,u=()=>{let l=!1;c=i.subscribe(C(s,d=>{o&&(a=0),s.next(d);},void 0,d=>{if(a++<n){let p=()=>{c?(c.unsubscribe(),c=null,u()):l=!0;};if(r!=null){let f=typeof r=="number"?sn$2(r):A$2(r(d,a)),h=C(s,()=>{h.unsubscribe(),p();},()=>{s.complete();});f.subscribe(h);}else p();}else s.error(d);})),l&&(c.unsubscribe(),c=null,u());};u();})}function Uy(e,t){return w(Dd(e,t,arguments.length>=2,!0))}function va(e={}){let{connector:t=()=>new le$4,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,p=()=>{a?.unsubscribe(),a=void 0;},f=()=>{p(),s=c=void 0,l=d=false;},h=()=>{let y=s;f(),y?.unsubscribe();};return w((y,D)=>{u++,!d&&!l&&p();let _=c=c??t();D.add(()=>{u--,u===0&&!d&&!l&&(a=ya(h,o));}),_.subscribe(D),!s&&u>0&&(s=new Le$2({next:$=>_.next($),error:$=>{d=!0,p(),a=ya(f,n,$),_.error($);},complete:()=>{l=!0,p(),a=ya(f,r),_.complete();}}),A$2(y).subscribe(s));})(i)}}function ya(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new Le$2({next:()=>{r.unsubscribe(),e();}});return A$2(t(...n)).subscribe(r)}function $y(e,t,n){let r,o=false;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=false,scheduler:n}=e:r=e??1/0,va({connector:()=>new Mr$1(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Cd(e){return w((t,n)=>{A$2(e).subscribe(C(n,()=>n.complete(),ft$4)),!n.closed&&t.subscribe(n);})}function zy(e,t=false){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var de$5=null,di$3=false,cn$2=1,q$1=Symbol("SIGNAL");function I(e){let t=de$5;return de$5=e,t}function fi$3(){return de$5}var Ft$2={version:0,lastCleanEpoch:0,dirty:false,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:false,consumerAllowSignalWrites:false,consumerIsAlwaysLive:false,kind:"unknown",producerMustRecompute:()=>false,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function gt$3(e){if(di$3)throw new Error("");if(de$5===null)return;de$5.consumerOnSignalRead(e);let t=de$5.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=de$5.recomputing;if(r&&(n=t!==void 0?t.nextProducer:de$5.producers,n!==void 0&&n.producer===e)){de$5.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=cn$2;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===de$5&&(!r||o.knownValidAtEpoch===cn$2))return;let i=Un$3(de$5),s={producer:e,consumer:de$5,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:cn$2,lastReadVersion:e.version,nextConsumer:void 0};de$5.producersTail=s,t!==void 0?t.nextProducer=s:de$5.producers=s,i&&_d(e,s);}function Td(){cn$2++;}function dn$3(e){if(!(Un$3(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===cn$2)){if(!e.producerMustRecompute(e)&&!Hn$3(e)){Vn$3(e);return}e.producerRecomputeValue(e),Vn$3(e);}}function Da(e){if(e.consumers===void 0)return;let t=di$3;di$3=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Wy(r);}}finally{di$3=t;}}function Ea$1(){return de$5?.consumerAllowSignalWrites!==false}function Wy(e){e.dirty=true,Da(e),e.consumerMarkedDirty?.(e);}function Vn$3(e){e.dirty=false,e.lastCleanEpoch=cn$2;}function mt$4(e){return e&&bd(e),I(e)}function bd(e){if(e.producersTail?.knownValidAtEpoch===cn$2){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function Pt$3(e,t){I(t),e&&Sd(e);}function Sd(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Un$3(e))do n=Ia(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Hn$3(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(dn$3(n),r!==n.version))return true}return false}function Lt$2(e){if(Un$3(e)){let t=e.producers;for(;t!==void 0;)t=Ia(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function _d(e,t){let n=e.consumersTail,r=Un$3(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)_d(o.producer,o);}function Ia(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Un$3(t)){let i=t.producers;for(;i!==void 0;)i=Ia(i);}return n}function Un$3(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function xr(e,t){return Object.is(e,t)}function Ar$1(e,t){let n=Object.create(qy);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(dn$3(n),gt$3(n),n.value===Qe$2)throw n.error;return n.value};return r[q$1]=n,r}var un$2=Symbol("UNSET"),ln$1=Symbol("COMPUTING"),Qe$2=Symbol("ERRORED"),qy=x$1(w$1({},Ft$2),{value:un$2,dirty:true,error:null,equal:xr,kind:"computed",producerMustRecompute(e){return e.value===un$2||e.value===ln$1},producerRecomputeValue(e){if(e.value===ln$1)throw new Error("");let t=e.value;e.value=ln$1;let n=mt$4(e),r,o=false;try{r=e.computation(),I(null),o=t!==un$2&&t!==Qe$2&&r!==Qe$2&&e.equal(t,r);}catch(i){r=Qe$2,e.error=i;}finally{Pt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Zy(){throw new Error}var Md=Zy;function Nd(e){Md(e);}function wa(e){Md=e;}function Ca(e,t){let n=Object.create(Rr$1);n.value=e,t!==void 0&&(n.equal=t);let r=()=>xd(n);return r[q$1]=n,[r,s=>jt$2(n,s),s=>pi$3(n,s)]}function xd(e){return gt$3(e),e.value}function jt$2(e,t){Ea$1()||Nd(e),e.equal(e.value,t)||(e.value=t,Qy(e));}function pi$3(e,t){Ea$1()||Nd(e),jt$2(e,t(e.value));}var Rr$1=x$1(w$1({},Ft$2),{equal:xr,value:void 0,kind:"signal"});function Qy(e){e.version++,Td(),Da(e);}var Ta=x$1(w$1({},Ft$2),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function ba(e){if(e.dirty=false,e.version>0&&!Hn$3(e))return;e.version++;let t=mt$4(e);try{e.cleanup(),e.fn();}finally{Pt$3(e,t);}}var Sa;function hi$3(){return Sa}function Ke$3(e){let t=Sa;return Sa=e,t}var Ad=Symbol("NotFound");function $n$3(e){return e===Ad||e?.name==="\u0275NotFound"}function _a(e,t,n){let r=Object.create(Ky);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(dn$3(r),gt$3(r),r.value===Qe$2)throw r.error;return r.value};return i[q$1]=r,i}function Rd(e,t){dn$3(e),jt$2(e,t),Vn$3(e);}function Od(e,t){if(dn$3(e),e.value===Qe$2)throw e.error;pi$3(e,t),Vn$3(e);}var Ky=x$1(w$1({},Ft$2),{value:un$2,dirty:true,error:null,equal:xr,kind:"linkedSignal",producerMustRecompute(e){return e.value===un$2||e.value===ln$1},producerRecomputeValue(e){if(e.value===ln$1)throw new Error("");let t=e.value;e.value=ln$1;let n=mt$4(e),r,o=false;try{let i=e.source(),s=t!==un$2&&t!==Qe$2,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,I(null),o=s&&r!==Qe$2&&e.equal(t,r);}catch(i){r=Qe$2,e.error=i;}finally{Pt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function kd(e){let t=I(null);try{return e()}finally{I(t);}}var Ii$1="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m$2=class m extends Error{code;constructor(t,n){super(Xe(t,n)),this.code=t;}};function Xy(e){return `NG0${Math.abs(e)}`}function Xe(e,t){return `${Xy(e)}${t?": "+t:""}`}function k$2(e){for(let t in e)if(e[t]===k$2)return t;throw Error("")}function Bd(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function jr(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(jr).join(", ")}]`;if(e==null)return ""+e;let t=e.overriddenName||e.name;if(t)return `${t}`;let n=e.toString();if(n==null)return ""+n;let r=n.indexOf(`
|
|
4
|
-
`);return r>=0?n.slice(0,r):n}function wi$3(e,t){return e?t?`${e} ${t}`:e:t||""}var Jy=k$2({__forward_ref__:k$2});function Ci$3(e){return e.__forward_ref__=Ci$3,e}function re$3(e){return Va(e)?e():e}function Va(e){return typeof e=="function"&&e.hasOwnProperty(Jy)&&e.__forward_ref__===Ci$3}function x(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Br(e){return {providers:e.providers||[],imports:e.imports||[]}}function Vr(e){return tv(e,Ti$3)}function ev(e){return Vr(e)!==null}function tv(e,t){return e.hasOwnProperty(t)&&e[t]||null}function nv(e){let t=e?.[Ti$3]??null;return t||null}function Na(e){return e&&e.hasOwnProperty(mi$3)?e[mi$3]:null}var Ti$3=k$2({\u0275prov:k$2}),mi$3=k$2({\u0275inj:k$2}),T$4=class T{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function Ha(e){return e&&!!e.\u0275providers}var Ua=k$2({\u0275cmp:k$2}),$a=k$2({\u0275dir:k$2}),za=k$2({\u0275pipe:k$2}),Ga=k$2({\u0275mod:k$2}),kr=k$2({\u0275fac:k$2}),mn$2=k$2({__NG_ELEMENT_ID__:k$2}),Fd=k$2({__NG_ENV_ID__:k$2});function Vd(e){return bi$3(e),e[Ga]||null}function Et$2(e){return bi$3(e),e[Ua]||null}function Wa(e){return bi$3(e),e[$a]||null}function Hd(e){return bi$3(e),e[za]||null}function bi$3(e,t){if(e==null)throw new m$2(-919,false)}function Z$1(e){return typeof e=="string"?e:e==null?"":String(e)}var Ud=k$2({ngErrorCode:k$2}),rv=k$2({ngErrorMessage:k$2});k$2({ngTokenPath:k$2});function qa(e,t){return $d("",-200)}function Si$3(e,t){throw new m$2(-201,false)}function $d(e,t,n){let r=new m$2(t,e);return r[Ud]=t,r[rv]=e,r}function iv(e){return e[Ud]}var xa;function zd(){return xa}function fe$5(e){let t=xa;return xa=e,t}function Za(e,t,n){let r=Vr(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Si$3();}var _e$4=globalThis;var sv={},fn$2=sv,av="__NG_DI_FLAG__",Aa=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=pn$2(n)||0;try{return this.injector.get(t,r&8?null:fn$2,r)}catch(o){if($n$3(o))return o;throw o}}};function cv(e,t=0){let n=hi$3();if(n===void 0)throw new m$2(-203,false);if(n===null)return Za(e,void 0,t);{let r=uv(t),o=n.retrieve(e,r);if($n$3(o)){if(r.optional)return null;throw o}return o}}function b$2(e,t=0){return (zd()||cv)(re$3(e),t)}function g(e,t){return b$2(e,pn$2(t))}function pn$2(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function uv(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Ra(e){let t=[];for(let n=0;n<e.length;n++){let r=re$3(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m$2(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=lv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(b$2(o,i));}else t.push(b$2(r));}return t}function lv(e){return e[av]}function Bt$1(e,t){let n=e.hasOwnProperty(kr);return n?e[kr]:null}function Gd(e,t,n){if(e.length!==t.length)return false;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return false}return true}function Wd(e){return e.flat(Number.POSITIVE_INFINITY)}function _i$3(e,t){e.forEach(n=>Array.isArray(n)?_i$3(n,t):t(n));}function Ya(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Hr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function qd(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Zd(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else {for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--;}e[t]=n,e[t+1]=r;}}function Mi$3(e,t,n){let r=Wn$3(e,t);return r>=0?e[r|1]=n:(r=~r,Zd(e,r,t,n)),r}function Ni$3(e,t){let n=Wn$3(e,t);if(n>=0)return e[n|1]}function Wn$3(e,t){return dv(e,t,1)}function dv(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1;}return ~(o<<n)}var Ht$1={},ie$2=[],It$2=new T$4(""),Ur=new T$4("",-1),Qa=new T$4(""),Gn$3=class Gn{get(t,n=fn$2){if(n===fn$2){let o=$d("",-201);throw o.name="\u0275NotFound",o}return n}};function wt$3(e){return {\u0275providers:e}}function Yd(e){return wt$3([{provide:It$2,multi:true,useValue:e}])}function Qd(...e){return {\u0275providers:Ka(true,e),\u0275fromNgModule:true}}function Ka(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return _i$3(t,s=>{let a=s;yi$3(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Kd(o,i),n}function Kd(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Xa(o,i=>{t(i,r);});}}function yi$3(e,t,n,r){if(e=re$3(e),!e)return false;let o=null,i=Na(e),s=!i&&Et$2(e);if(!i&&!s){let c=e.ngModule;if(i=Na(c),i)o=c;else return false}else {if(s&&!s.standalone)return false;o=e;}let a=r.has(o);if(s){if(a)return false;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)yi$3(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;_i$3(i.imports,l=>{yi$3(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Kd(u,t);}if(!a){let u=Bt$1(o)||(()=>new o);t({provide:o,useFactory:u,deps:ie$2},o),t({provide:Qa,useValue:o,multi:true},o),t({provide:It$2,useValue:()=>b$2(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;Xa(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function Xa(e,t){for(let n of e)Ha(n)&&(n=n.\u0275providers),Array.isArray(n)?Xa(n,t):t(n);}var fv=k$2({provide:String,useValue:k$2});function Xd(e){return e!==null&&typeof e=="object"&&fv in e}function pv(e){return !!(e&&e.useExisting)}function hv(e){return !!(e&&e.useFactory)}function hn$2(e){return typeof e=="function"}function Jd(e){return !!e.useClass}var $r=new T$4(""),gi$3={},Pd={},Ma;function qn$3(){return Ma===void 0&&(Ma=new Gn$3),Ma}var pe$5=class pe{},gn$2=class gn extends pe$5{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ka$1(t,s=>this.processProvider(s)),this.records.set(Ur,zn$3(void 0,this)),o.has("environment")&&this.records.set(pe$5,zn$3(void 0,this));let i=this.records.get($r);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Qa,ie$2,{self:true}));}retrieve(t,n){let r=pn$2(n)||0;try{return this.get(t,fn$2,r)}catch(o){if($n$3(o))return o;throw o}}destroy(){Or(this),this._destroyed=true;let t=I(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),I(t);}}onDestroy(t){return Or(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Or(this);let n=Ke$3(this),r=fe$5(void 0);try{return t()}finally{Ke$3(n),fe$5(r);}}get(t,n=fn$2,r){if(Or(this),t.hasOwnProperty(Fd))return t[Fd](this);let o=pn$2(r),s=Ke$3(this),a=fe$5(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Dv(t)&&Vr(t);l&&this.injectableDefInScope(l)?u=zn$3(Oa(t),gi$3):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?qn$3():this.parent;return n=o&8&&n===fn$2?null:n,c.get(t,n)}catch(c){let u=iv(c);throw u===-200||u===-201?new m$2(u,null):c}finally{fe$5(a),Ke$3(s);}}resolveInjectorInitializers(){let t=I(null),n=Ke$3(this),r=fe$5(void 0);try{let i=this.get(It$2,ie$2,{self:!0});for(let s of i)s();}finally{Ke$3(n),fe$5(r),I(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=re$3(t);let n=hn$2(t)?t:re$3(t&&t.provide),r=mv(t);if(!hn$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=zn$3(void 0,gi$3,true),o.factory=()=>Ra(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=I(null);try{if(n.value===Pd)throw qa("");return n.value===gi$3&&(n.value=Pd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&vv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=re$3(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1);}};function Oa(e){let t=Vr(e),n=t!==null?t.factory:Bt$1(e);if(n!==null)return n;if(e instanceof T$4)throw new m$2(-204,false);if(e instanceof Function)return gv(e);throw new m$2(-204,false)}function gv(e){if(e.length>0)throw new m$2(-204,false);let n=nv(e);return n!==null?()=>n.factory(e):()=>new e}function mv(e){if(Xd(e))return zn$3(void 0,e.useValue);{let t=Ja(e);return zn$3(t,gi$3)}}function Ja(e,t,n){let r;if(hn$2(e)){let o=re$3(e);return Bt$1(o)||Oa(o)}else if(Xd(e))r=()=>re$3(e.useValue);else if(hv(e))r=()=>e.useFactory(...Ra(e.deps||[]));else if(pv(e))r=(o,i)=>b$2(re$3(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=re$3(e&&(e.useClass||e.provide));if(yv(e))r=()=>new o(...Ra(e.deps));else return Bt$1(o)||Oa(o)}return r}function Or(e){if(e.destroyed)throw new m$2(-205,false)}function zn$3(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function yv(e){return !!e.deps}function vv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Dv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function ka$1(e,t){for(let n of e)Array.isArray(n)?ka$1(n,t):n&&Ha(n)?ka$1(n.\u0275providers,t):t(n);}function Zn$3(e,t){let n;e instanceof gn$2?(Or(e),n=e):n=new Aa(e);let o=Ke$3(n),i=fe$5(void 0);try{return t()}finally{Ke$3(o),fe$5(i);}}function ef(){return zd()!==void 0||hi$3()!=null}var Be$3=0,E=1,S$2=2,te$4=3,Me$3=4,se$2=5,yn$2=6,Yn$3=7,Y$3=8,Je$3=9,Ve$2=10,L$3=11,Qn$3=12,ec=13,Ut$3=14,ae$3=15,$t$3=16,vn$2=17,et=18,tt$1=19,tc=20,vt$3=21,xi$2=22,Vt$1=23,ve$3=24,Dn$3=25,nt$1=26,H$1=27,tf=1,nc=6,zt$1=7,zr=8,En$3=9,W$4=10;function Ct$2(e){return Array.isArray(e)&&typeof e[tf]=="object"}function Ne$3(e){return Array.isArray(e)&&e[tf]===true}function rc(e){return (e.flags&4)!==0}function Tt$3(e){return e.componentOffset>-1}function Kn$3(e){return (e.flags&1)===1}function rt$2(e){return !!e.template}function Xn$3(e){return (e[S$2]&512)!==0}function In$3(e){return (e[S$2]&256)===256}var oc="svg",nf="math";function xe$3(e){for(;Array.isArray(e);)e=e[Be$3];return e}function ic(e,t){return xe$3(t[e])}function Ae$2(e,t){return xe$3(t[e.index])}function Ai$3(e,t){return e.data[t]}function Ri$3(e,t){return e[t]}function sc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function Re$3(e,t){let n=t[e];return Ct$2(n)?n:n[Be$3]}function rf(e){return (e[S$2]&4)===4}function Oi$2(e){return (e[S$2]&128)===128}function of(e){return Ne$3(e[te$4])}function De$3(e,t){return t==null?null:e[t]}function ac(e){e[vn$2]=0;}function cc(e){e[S$2]&1024||(e[S$2]|=1024,Oi$2(e)&&wn$3(e));}function sf(e,t){for(;e>0;)t=t[Ut$3],e--;return t}function Gr(e){return !!(e[S$2]&9216||e[ve$3]?.dirty)}function ki$3(e){e[Ve$2].changeDetectionScheduler?.notify(8),e[S$2]&64&&(e[S$2]|=1024),Gr(e)&&wn$3(e);}function wn$3(e){e[Ve$2].changeDetectionScheduler?.notify(0);let t=Dt$2(e);for(;t!==null&&!(t[S$2]&8192||(t[S$2]|=8192,!Oi$2(t)));)t=Dt$2(t);}function Fi$3(e,t){if(In$3(e))throw new m$2(911,false);e[vt$3]===null&&(e[vt$3]=[]),e[vt$3].push(t);}function af(e,t){if(e[vt$3]===null)return;let n=e[vt$3].indexOf(t);n!==-1&&e[vt$3].splice(n,1);}function Dt$2(e){let t=e[te$4];return Ne$3(t)?t[te$4]:t}function uc(e){return e[Yn$3]??=[]}function lc(e){return e.cleanup??=[]}function cf(e,t,n,r){let o=uc(t);o.push(n),e.firstCreatePass&&lc(e).push(r,o.length-1);}var N$2={lFrame:If(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Fa=false;function uf(){return N$2.lFrame.elementDepthCount}function lf(){N$2.lFrame.elementDepthCount++;}function dc(){N$2.lFrame.elementDepthCount--;}function Pi$3(){return N$2.bindingsEnabled}function fc(){return N$2.skipHydrationRootTNode!==null}function pc(e){return N$2.skipHydrationRootTNode===e}function hc(){N$2.skipHydrationRootTNode=null;}function v$1(){return N$2.lFrame.lView}function j$4(){return N$2.lFrame.tView}function df(e){return N$2.lFrame.contextLView=e,e[Y$3]}function ff(e){return N$2.lFrame.contextLView=null,e}function X$2(){let e=gc();for(;e!==null&&e.type===64;)e=e.parent;return e}function gc(){return N$2.lFrame.currentTNode}function pf(){let e=N$2.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Jn$2(e,t){let n=N$2.lFrame;n.currentTNode=e,n.isParent=t;}function mc(){return N$2.lFrame.isParent}function yc(){N$2.lFrame.isParent=false;}function hf(){return N$2.lFrame.contextLView}function vc(){return Fa}function Fr(e){let t=Fa;return Fa=e,t}function er$1(){let e=N$2.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wr(){return N$2.lFrame.bindingIndex}function gf(e){return N$2.lFrame.bindingIndex=e}function Gt$1(){return N$2.lFrame.bindingIndex++}function Cn$3(e){let t=N$2.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function mf(){return N$2.lFrame.inI18n}function yf(e,t){let n=N$2.lFrame;n.bindingIndex=n.bindingRootIndex=e,Li$2(t);}function vf(){return N$2.lFrame.currentDirectiveIndex}function Li$2(e){N$2.lFrame.currentDirectiveIndex=e;}function Df(e){let t=N$2.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ji$1(){return N$2.lFrame.currentQueryIndex}function qr(e){N$2.lFrame.currentQueryIndex=e;}function Ev(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[se$2]:null}function Dc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Ev(i),o===null||(i=i[Ut$3],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=N$2.lFrame=Ef();return r.currentTNode=t,r.lView=e,true}function Bi$2(e){let t=Ef(),n=e[E];N$2.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function Ef(){let e=N$2.lFrame,t=e===null?null:e.child;return t===null?If(e):t}function If(e){let t={currentTNode:null,isParent:true,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:false};return e!==null&&(e.child=t),t}function wf(){let e=N$2.lFrame;return N$2.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ec=wf;function Vi$2(){let e=wf();e.isParent=true,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 Cf(e){return (N$2.lFrame.contextLView=sf(e,N$2.lFrame.contextLView))[Y$3]}function Ee$3(){return N$2.lFrame.selectedIndex}function Wt$1(e){N$2.lFrame.selectedIndex=e;}function tr$1(){let e=N$2.lFrame;return Ai$3(e.tView,e.selectedIndex)}function Tf(){N$2.lFrame.currentNamespace=oc;}function bf(){Iv();}function Iv(){N$2.lFrame.currentNamespace=null;}function Ic(){return N$2.lFrame.currentNamespace}var Sf=true;function Hi$1(){return Sf}function Zr(e){Sf=e;}function Pa(e,t=null,n=null,r){let o=wc(e,t,n);return o.resolveInjectorInitializers(),o}function wc(e,t=null,n=null,r,o=new Set){let i=[n||ie$2,Qd(e)];return new gn$2(i,t||qn$3(),null,o)}var he$4=class e{static THROW_IF_NOT_FOUND=fn$2;static NULL=new Gn$3;static create(t,n){if(Array.isArray(t))return Pa({name:""},n,t);{let r=t.name??"";return Pa({name:r},t.parent,t.providers)}}static \u0275prov=x({token:e,providedIn:"any",factory:()=>b$2(Ur)});static __NG_ELEMENT_ID__=-1},U$5=new T$4(""),Ie$2=(()=>{class e{static __NG_ELEMENT_ID__=wv;static __NG_ENV_ID__=n=>n}return e})(),vi$3=class vi extends Ie$2{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return In$3(this._lView)}onDestroy(t){let n=this._lView;return Fi$3(n,t),()=>af(n,t)}};function wv(){return new vi$3(v$1())}var Cc=false,_f=new T$4(""),qt$1=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Cr$1(false);debugTaskTracker=g(_f,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new R$2(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),La=class extends le$4{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,ef()&&(this.destroyRef=g(Ie$2,{optional:true})??void 0,this.pendingTasks=g(qt$1,{optional:true})??void 0);}emit(t){let n=I(null);try{super.next(t);}finally{I(n);}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let 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)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ee$5&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n);}finally{r!==void 0&&this.pendingTasks?.remove(r);}});}}},yt$3=La;function Di$3(...e){}function Tc(e){let t,n;function r(){e=Di$3;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t);}catch(o){}}return t=setTimeout(()=>{e(),r();}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r();})),()=>r()}function Mf(e){return queueMicrotask(()=>e()),()=>{e=Di$3;}}var bc="isAngularZone",Pr=bc+"_ID",Cv=0,G$2=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new yt$3(false);onMicrotaskEmpty=new yt$3(false);onStable=new yt$3(false);onError=new yt$3(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=Cc}=t;if(typeof Zone>"u")throw new m$2(908,false);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=false,s.scheduleInRootZone=i,Sv(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(bc)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new m$2(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m$2(909,false)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Tv,Di$3,Di$3);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)}},Tv={};function Sc(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null);}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null));}finally{e.isStable=true;}}}function bv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Tc(()=>{e.callbackScheduled=false,ja(e),e.isCheckStableRunning=true,Sc(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),ja(e);}function Sv(e){let t=()=>{bv(e);},n=Cv++;e._inner=e._inner.fork({name:"angular",properties:{[bc]:true,[Pr]:n,[Pr+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(_v(c))return r.invokeTask(i,s,a,c);try{return Ld(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),jd(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Ld(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Mv(c)&&t(),jd(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ja(e),Sc(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask));},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),false)});}function ja(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function Ld(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function jd(e){e._nesting--,Sc(e);}var Lr=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new yt$3;onMicrotaskEmpty=new yt$3;onStable=new yt$3;onError=new yt$3;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 _v(e){return Nf(e,"__ignore_ng_zone__")}function Mv(e){return Nf(e,"__scheduler_tick__")}function Nf(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Se$2=class Se{_console=console;handleError(t){this._console.error("ERROR",t);}},ot$2=new T$4("",{factory:()=>{let e=g(G$2),t=g(pe$5),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Se$2),n.handleError(r));});}}}),xf={provide:It$2,useValue:()=>{g(Se$2,{optional:true});},multi:true},Nv=new T$4("",{factory:()=>{let e=g(U$5).defaultView;if(!e)return;let t=g(ot$2),n=i=>{t(i.reason),i.preventDefault();},r=i=>{i.error?t(i.error):t(new Error(i.message,{cause:i})),i.preventDefault();},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r);};typeof Zone<"u"?Zone.root.run(o):o(),g(Ie$2).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n);});}});function xv(){return wt$3([Yd(()=>{g(Nv);})])}function Ui$1(e,t){let [n,r,o]=Ca(e,t?.equal),i=n;i[q$1];return i.set=r,i.update=o,i.asReadonly=Yr.bind(i),i}function Yr(){let e=this[q$1];if(e.readonlyFn===void 0){let t=()=>this();t[q$1]=e,e.readonlyFn=t;}return e.readonlyFn}var Qr=new T$4("",{factory:()=>Av}),Av="ng";var $i$1=new T$4(""),Kr=new T$4("",{providedIn:"platform",factory:()=>"unknown"}),Rv=new T$4(""),Xr=new T$4("",{factory:()=>g(U$5).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var nr$1=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Ov}return e})();function Ov(){return new nr$1(v$1(),X$2())}var je$3=class je{},rr$1=new T$4("",{factory:()=>true});var zi$2=new T$4(""),Gi$1=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new Ba})}return e})(),Ba=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t);}schedule(t){t.dirty&&this.dirtyEffectCount++;}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--);}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t);}flush(){for(;this.dirtyEffectCount>0;){let t=false;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0);}}flushQueue(t){let n=false;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=true,r.run());return n}},Ei$2=class Ei{[q$1];constructor(t){this[q$1]=t;}destroy(){this[q$1].destroy();}};function Af(e,t){let n=t?.injector??g(he$4),r=t?.manualCleanup!==true?n.get(Ie$2):null,o,i=n.get(nr$1,null,{optional:true}),s=n.get(je$3);return i!==null?(o=Pv(i.view,s,e),r instanceof vi$3&&r._lView===i.view&&(r=null)):o=Lv(e,n.get(Gi$1),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ei$2(o)}var Rf=x$1(w$1({},Ta),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Fr(false);try{ba(this);}finally{Fr(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=I(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],I(e);}}}),kv=x$1(w$1({},Rf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Lt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),Fv=x$1(w$1({},Rf),{consumerMarkedDirty(){this.view[S$2]|=8192,wn$3(this.view),this.notifier.notify(13);},destroy(){if(Lt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Vt$1]?.delete(this);}});function Pv(e,t,n){let r=Object.create(Fv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Of(r,n),e[Vt$1]??=new Set,e[Vt$1].add(r),r.consumerMarkedDirty(r),r}function Lv(e,t,n){let r=Object.create(kv);return r.fn=Of(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Of(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function Jr(e){return typeof e=="function"&&e[q$1]!==void 0}function Wi$1(e){return Jr(e)&&typeof e.set=="function"}var eo$1=(()=>{class e{internalPendingTasks=g(qt$1);scheduler=g(je$3);errorHandler=g(ot$2);add(){let n=this.internalPendingTasks.add();return ()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n));}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r);}catch(o){this.errorHandler(o),r();}}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function po$1(e){return {toString:e}.toString()}var O$2=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(O$2||{}),ts=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function vp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var Dp=null,Du=(()=>{Dp=kf;let e=()=>kf;return e.ngInherit=true,e})();function Zv(){return Dp}function kf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qv),Yv}function Yv(){let e=Ep(this),t=e?.current;if(t){let n=e.previous;if(n===Ht$1)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function Qv(e,t,n,r,o){let i=this.declaredInputs[r],s=Ep(e)||Kv(e,{previous:Ht$1,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ts(u&&u.currentValue,n,c===Ht$1),vp(e,t,o,n);}var jc="__ngSimpleChanges__";function Ep(e){return Object.hasOwn(e,jc)&&e[jc]||null}function Kv(e,t){return e[jc]=t}var Ff=[];var F$4=function(e,t=null,n){for(let r=0;r<Ff.length;r++){let o=Ff[r];o(e,t,n);}};function Xv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Zv()(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s);}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i));}function Ip(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l);}}function Ki$1(e,t,n){wp(e,t,3,n);}function Xi$1(e,t,n,r){(e[S$2]&3)===n&&wp(e,t,n,r);}function _c(e,t){let n=e[S$2];(n&3)===t&&(n&=16383,n+=1,e[S$2]=n);}function wp(e,t,n,r){let o=r!==void 0?e[vn$2]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[vn$2]+=65536),(a<i||i==-1)&&(Jv(e,n,t,c),e[vn$2]=(e[vn$2]&4294901760)+c+2),c++;}function Pf(e,t){F$4(O$2.LifecycleHookStart,e,t);let n=I(null);try{t.call(e);}finally{I(n),F$4(O$2.LifecycleHookEnd,e,t);}}function Jv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[S$2]>>14<e[vn$2]>>16&&(e[S$2]&3)===t&&(e[S$2]+=16384,Pf(a,i)):Pf(a,i);}var ir$1=-1,bn$2=class bn{factory;name;injectImpl;resolving=false;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r;}};function eD(e){return (e.flags&8)!==0}function tD(e){return (e.flags&16)!==0}function nD(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i);}else {let i=o,s=n[++r];rD(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function Cp(e){return e===3||e===4||e===6}function rD(e){return e.charCodeAt(0)===64}function sr$1(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else {let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Lf(e,n,o,null,t[++r]):Lf(e,n,o,null,null));}}return e}function Lf(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++;}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o);}function Tp(e){return e!==ir$1}function ns(e){return e&32767}function oD(e){return e>>16}function rs(e,t){let n=oD(e),r=t;for(;n>0;)r=r[Ut$3],n--;return r}var Bc=true;function os(e){let t=Bc;return Bc=e,t}var iD=256,bp=iD-1,Sp=5,sD=0,it$3={};function aD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(mn$2)&&(r=n[mn$2]),r==null&&(r=n[mn$2]=sD++);let o=r&bp,i=1<<o;t.data[e+(o>>Sp)]|=i;}function is(e,t){let n=_p(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,Mc(r.data,e),Mc(t,null),Mc(r.blueprint,null));let o=Eu(e,t),i=e.injectorIndex;if(Tp(o)){let s=ns(o),a=rs(o,t),c=a[E].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Mc(e,t){e.push(0,0,0,0,0,0,0,0,t);}function _p(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Eu(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Op(o),r===null)return ir$1;if(n++,o=o[Ut$3],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ir$1}function Vc(e,t,n){aD(e,t,n);}function cD(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(Cp(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else {if(i===t)return n[o+1];o=o+2;}}}return null}function Mp(e,t,n){if(n&8||e!==void 0)return e;Si$3();}function Np(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Je$3],i=fe$5(void 0);try{return o?o.get(t,r,n&8):Za(t,r,n&8)}finally{fe$5(i);}}return Mp(r,t,n)}function xp(e,t,n,r=0,o){if(e!==null){if(t[S$2]&2048&&!(r&2)){let s=fD(e,t,n,r,it$3);if(s!==it$3)return s}let i=Ap(e,t,n,r,it$3);if(i!==it$3)return i}return Np(t,n,r,o)}function Ap(e,t,n,r,o){let i=lD(n);if(typeof i=="function"){if(!Dc(t,e,r))return r&1?Mp(o,n,r):Np(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Si$3(n);else return s}finally{Ec();}}else if(typeof i=="number"){let s=null,a=_p(e,t),c=ir$1,u=r&1?t[ae$3][se$2]:null;for((a===-1||r&4)&&(c=a===-1?Eu(e,t):t[a+8],c===ir$1||!Bf(r,false)?a=-1:(s=t[E],a=ns(c),t=rs(c,t)));a!==-1;){let l=t[E];if(jf(i,a,l.data)){let d=uD(a,t,n,s,r,u);if(d!==it$3)return d}c=t[a+8],c!==ir$1&&Bf(r,t[E].data[a+8]===u)&&jf(i,a,t)?(s=l,a=ns(c),t=rs(c,t)):a=-1;}}return o}function uD(e,t,n,r,o,i){let s=t[E],a=s.data[e+8],c=r==null?Tt$3(a)&&Bc:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=Ji$1(a,s,n,c,u);return l!==null?io$1(t,s,l,a,o):it$3}function Ji$1(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:u;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&rt$2(f)&&f.type===n)return c}return null}function io$1(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof bn$2){let a=i;if(a.resolving)throw qa();let c=os(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?fe$5(a.injectImpl):null;Dc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Xv(n,s[n],t);}finally{d!==null&&fe$5(d),os(c),a.resolving=false,Ec();}}return i}function lD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(mn$2)?e[mn$2]:void 0;return typeof t=="number"?t>=0?t&bp:dD:t}function jf(e,t,n){let r=1<<e;return !!(n[t+(e>>Sp)]&r)}function Bf(e,t){return !(e&2)&&!(e&1&&t)}var Zt$2=class Zt{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return xp(this._tNode,this._lView,t,pn$2(r),n)}};function dD(){return new Zt$2(X$2(),v$1())}function Rp(e){return po$1(()=>{let t=e.prototype.constructor,n=t[kr]||Hc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[kr]||Hc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function Hc(e){return Va(e)?()=>{let t=Hc(re$3(e));return t&&t()}:Bt$1(e)}function fD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S$2]&2048&&!Xn$3(s);){let a=Ap(i,s,n,r|2,it$3);if(a!==it$3)return a;let c=i.parent;if(!c){let u=s[tc];if(u){let l=u.get(n,it$3,r&-5);if(l!==it$3)return l}c=Op(s),s=s[Ut$3];}i=c;}return o}function Op(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[se$2]:null}function Iu(e){return cD(X$2(),e)}function Ce$5(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function pD(){return fr$1(X$2(),v$1())}function fr$1(e,t){return new An$3(Ae$2(e,t))}var An$3=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=pD}return e})();function kp(e){return e instanceof An$3?e.nativeElement:e}function hD(){return this._results[Symbol.iterator]()}var ss=class{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new le$4}constructor(t=false){this._emitDistinctChangesOnly=t;}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t);}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=false;let r=Wd(t);(this._changesDetected=!Gd(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0]);}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this);}onDirty(t){this._onDirty=t;}setDirty(){this.dirty=true,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=hD};function Fp(e){return (e.flags&128)===128}var wu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(wu||{}),Pp=new Map,gD=0;function mD(){return gD++}function yD(e){Pp.set(e[tt$1],e);}function Uc(e){Pp.delete(e[tt$1]);}var Vf="__ngContext__";function ar$1(e,t){Ct$2(t)?(e[Vf]=t[tt$1],yD(t)):e[Vf]=t;}function Lp(e){return Bp(e[Qn$3])}function jp(e){return Bp(e[Me$3])}function Bp(e){for(;e!==null&&!Ne$3(e);)e=e[Me$3];return e}var $c;function Cu(e){$c=e;}function Tu(){if($c!==void 0)return $c;if(typeof document<"u")return document;throw new m$2(210,false)}var Vp="r";var Hp="di";var vD=new T$4(""),Up=false,$p=new T$4("",{factory:()=>Up});var zp=new T$4("");var Hf=new WeakMap;function DD(e,t){if(e==null||typeof e!="object")return;let n=Hf.get(e);n||(n=new WeakSet,Hf.set(e,n)),n.add(t);}function Is$1(e){return (e.flags&32)===32}var wD=()=>null;function Gp(e,t,n=false){return wD()}function Wp(e,t){let n=e.contentQueries;if(n!==null){let r=I(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];qr(i),a.contentQueries(2,t[s],s);}}}finally{I(r);}}}function zc(e,t,n){qr(0);let r=I(null);try{t(e,n);}finally{I(r);}}function bu(e,t,n){if(rc(t)){let r=I(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s);}}}finally{I(r);}}}var $e$4=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})($e$4||{});var qi$1;function CD(){if(qi$1===void 0&&(qi$1=null,_e$4.trustedTypes))try{qi$1=_e$4.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return qi$1}function ws$1(e){return CD()?.createHTML(e)||e}var Zi$1;function qp(){if(Zi$1===void 0&&(Zi$1=null,_e$4.trustedTypes))try{Zi$1=_e$4.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Zi$1}function Uf(e){return qp()?.createHTML(e)||e}function $f(e){return qp()?.createScriptURL(e)||e}var bt$3=class bt{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ii$1})`}},Gc=class extends bt$3{getTypeName(){return "HTML"}},Wc=class extends bt$3{getTypeName(){return "Style"}},qc=class extends bt$3{getTypeName(){return "Script"}},Zc=class extends bt$3{getTypeName(){return "URL"}},Yc=class extends bt$3{getTypeName(){return "ResourceURL"}};function Te$1(e){return e instanceof bt$3?e.changingThisBreaksApplicationSecurity:e}function at$3(e,t){let n=Zp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ii$1})`)}return n===t}function Zp(e){return e instanceof bt$3&&e.getTypeName()||null}function Su(e){return new Gc(e)}function _u(e){return new Wc(e)}function Mu(e){return new qc(e)}function Nu(e){return new Zc(e)}function xu(e){return new Yc(e)}function TD(e){let t=new Kc(e);return bD()?new Qc(t):t}var Qc=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(ws$1(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},Kc=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=ws$1(t),n}};function bD(){try{return !!new window.DOMParser().parseFromString(ws$1(""),"text/html")}catch(e){return false}}var SD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ho$1(e){return e=String(e),e.match(SD)?e:"unsafe:"+e}function St$2(e){let t={};for(let n of e.split(","))t[n]=true;return t}function go$1(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Yp=St$2("area,br,col,hr,img,wbr"),Qp=St$2("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Kp=St$2("rp,rt"),_D=go$1(Kp,Qp),MD=go$1(Qp,St$2("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")),ND=go$1(Kp,St$2("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")),zf=go$1(Yp,MD,ND,_D),Xp=St$2("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xD=St$2("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"),AD=St$2("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"),RD=go$1(Xp,xD,AD),OD=St$2("script,style,template"),Xc=class{sanitizedSomething=false;buf=[];sanitizeChildren(t){let n=t.firstChild,r=true,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=true,r&&n.firstChild){o.push(n),n=PD(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=FD(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=Gf(t).toLowerCase();if(!zf.hasOwnProperty(n))return this.sanitizedSomething=true,!OD.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!RD.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;Xp[a]&&(c=ho$1(c)),this.buf.push(" ",s,'="',Wf(c),'"');}return this.buf.push(">"),true}endElement(t){let n=Gf(t).toLowerCase();zf.hasOwnProperty(n)&&!Yp.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(Wf(t));}};function kD(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function FD(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Jp(t);return t}function PD(e){let t=e.firstChild;if(t&&kD(e,t))throw Jp(t);return t}function Gf(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Jp(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var LD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jD=/([^\#-~ |!])/g;function Wf(e){return e.replace(/&/g,"&").replace(LD,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(jD,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Yi$1;function Cs$1(e,t){let n=null;try{Yi$1=Yi$1||TD(e);let r=t?String(t):"";n=Yi$1.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Yi$1.getInertBodyElement(r);}while(r!==i);let a=new Xc().sanitizeChildren(qf(n)||n);return ws$1(a)}finally{if(n){let r=qf(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function qf(e){return "content"in e&&BD(e)?e.content:null}function BD(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var VD=/^>|^->|<!--|-->|--!>|<!-$/g,HD=/(<|>)/g,UD="\u200B$1\u200B";function $D(e){return e.replace(VD,t=>t.replace(HD,UD))}function zD(e,t){return e.createText(t)}function GD(e,t,n){e.setValue(t,n);}function WD(e,t){return e.createComment($D(t))}function eh(e,t,n){return e.createElement(t,n)}function as(e,t,n,r,o){e.insertBefore(t,n,r,o);}function th(e,t,n){e.appendChild(t,n);}function Zf(e,t,n,r,o){r!==null?as(e,t,n,r,o):th(e,t,n);}function nh(e,t,n,r){e.removeChild(null,t,n,r);}function qD(e,t,n){e.setAttribute(t,"style",n);}function ZD(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function rh(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&nD(e,t,r),o!==null&&ZD(e,t,o),i!==null&&qD(e,t,i);}var Oe$1=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(Oe$1||{});function YD(e){let t=Au();return t?Uf(t.sanitize(Oe$1.HTML,e)||""):at$3(e,"HTML")?Uf(Te$1(e)):Cs$1(Tu(),Z$1(e))}function oh(e){let t=Au();return t?t.sanitize(Oe$1.URL,e)||"":at$3(e,"URL")?Te$1(e):ho$1(Z$1(e))}function ih(e){let t=Au();if(t)return $f(t.sanitize(Oe$1.RESOURCE_URL,e)||"");if(at$3(e,"ResourceURL"))return $f(Te$1(e));throw new m$2(904,false)}var QD={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function KD(e,t){return QD[e.toLowerCase()]?.[t.toLowerCase()]===true?ih:oh}function XD(e,t,n){return KD(t,n)(e)}function Au(){let e=v$1();return e&&e[Ve$2].sanitizer}function JD(e){return e instanceof Function?e():e}function eE(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1;}}var sh="ng-template";function tE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&eE(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(Ru(e))return false;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return true}return false}function Ru(e){return e.type===4&&e.value!==sh}function nE(e,t,n){let r=e.type===4&&!n?sh:e.value;return t===r}function rE(e,t,n){let r=4,o=e.attrs,i=o!==null?sE(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!He$2(r)&&!He$2(c))return false;if(s&&He$2(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!nE(e,c,n)||c===""&&t.length===1){if(He$2(r))return false;s=true;}}else if(r&8){if(o===null||!tE(e,o,c,n)){if(He$2(r))return false;s=true;}}else {let u=t[++a],l=oE(c,o,Ru(e),n);if(l===-1){if(He$2(r))return false;s=true;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(He$2(r))return false;s=true;}}}}return He$2(r)||s}function He$2(e){return (e&1)===0}function oE(e,t,n,r){if(t===null)return -1;let o=0;if(r||!n){let i=false;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=true;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else {if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2;}return -1}else return aE(t,e)}function ah(e,t,n=false){for(let r=0;r<t.length;r++)if(rE(e,t[r],n))return true;return false}function iE(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function sE(e){for(let t=0;t<e.length;t++){let n=e[t];if(Cp(n))return t}return e.length}function aE(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return -1;if(r===t)return n;n++;}return -1}function cE(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return true}}return false}function Yf(e,t){return e?":not("+t.trim()+")":t}function uE(e){let t=e[0],n=1,r=2,o="",i=false;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]";}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!He$2(s)&&(t+=Yf(i,o),o=""),r=s,i=i||!He$2(r);n++;}return o!==""&&(t+=Yf(i,o)),t}function lE(e){return e.map(uE).join(",")}function dE(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else {if(!He$2(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var Q$1={},st$1=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(st$1||{}),fE;function Ou(e,t){return fE(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Jc=new WeakMap;function ch(e){return e?e[Ut$3]??e:null}var no$1=new WeakSet;function pE(e,t,n){let r=Jc.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=ch(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:u}=r[a],l=c.parentNode;c===t?(r.splice(a,1),no$1.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c)):l&&o&&l!==o&&(s===null||u===null||s===u)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c));}}function hE(e,t,n){let r=ch(n),o=Jc.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):Jc.set(e,[{el:t,declarationView:r}]);}var Yt$2=new Set,Ts$1=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Ts$1||{}),ct$1=new T$4(""),Qf=new Set;function ut$2(e){Qf.has(e)||(Qf.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var bs$1=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),ku=[0,1,2,3],Fu=(()=>{class e{ngZone=g(G$2);scheduler=g(je$3);errorHandler=g(Se$2,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g(ct$1,{optional:true});}execute(){let n=this.sequences.size>0;n&&F$4(O$2.AfterRenderHooksStart),this.executing=true;for(let r of ku)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot));}catch(i){o.erroredOrDestroyed=true,this.errorHandler?.handleError(i);}this.executing=false;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&F$4(O$2.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[Dn$3]??=[]).push(n),wn$3(r),r[S$2]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n);}addSequence(n){this.sequences.add(n),this.scheduler.notify(7);}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=true,n.pipelinedValue=void 0,n.once=true):(this.sequences.delete(n),this.deferredRegistrations.delete(n));}maybeTrace(n,r){return r?r.run(Ts$1.AFTER_NEXT_RENDER,n):n()}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),so$1=class so{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Dn$3];t&&(this.view[Dn$3]=t.filter(n=>n!==this));}};function gE(e,t){let n=t?.injector??g(he$4);return ut$2("NgAfterNextRender"),yE(e,n,t,true)}function mE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function yE(e,t,n,r){let o=t.get(bs$1);o.impl??=t.get(Fu);let i=t.get(ct$1,null,{optional:true}),s=n?.manualCleanup!==true?t.get(Ie$2):null,a=t.get(nr$1,null,{optional:true}),c=new so$1(o.impl,mE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Pu=new T$4("",{factory:()=>{let e=g(pe$5),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function uh(e,t,n){let r=e.get(Pu);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e);}function vE(e,t){let n=e.get(Pu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function DE(e,t){let n=e.get(Pu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function EE(e,t){for(let[n,r]of t)uh(e,r.animateFns);}function Kf(e,t,n,r){let o=e?.[nt$1]?.enter;t!==null&&o&&o.has(n.index)&&EE(r,o);}function Xf(e,t,n,r){try{n.get(Ur);}catch(s){return r(false)}let o=e?.[nt$1];o?.enter?.has(t.index)&&vE(n,o.enter.get(t.index).animateFns);let i=IE(e,t,o);if(i.size===0){let s=false;if(e){let a=[];Ss$1(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&Yt$2.add(e[tt$1]),uh(n,()=>wE(e,t,o||void 0,i,r),o||void 0);}function IE(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[E].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function wE(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:u}=c();i.push(u);}n.detachedLeaveAnimationFns=void 0;}if(e&&Ss$1(e,t,i),i.length>0){let s=n||e?.[nt$1];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),TE(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&Yt$2.delete(e[tt$1]),o(true);});}else e&&Yt$2.delete(e[tt$1]),o(false);}function Ss$1(e,t,n){if(t.type&12){let o=e[t.index];if(Ne$3(o))for(let i=W$4;i<o.length;i++){let s=o[i];s[E].type===2&&CE(s,n);}}let r=t.child;for(;r;)Ss$1(e,r,n),r=r.next;}function CE(e,t){let n=e[nt$1];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[E].firstChild;for(;r;)Ss$1(e,r,t),r=r.next;}function TE(e,t,n){t.then(()=>{e[nt$1]?.running===t&&(e[nt$1].running=void 0,Yt$2.delete(e[tt$1])),n(true);});}function or$1(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;Ne$3(o)?c=o:Ct$2(o)&&(u=true,o=o[Be$3]);let l=xe$3(o);e===0&&r!==null?(Kf(a,r,i,n),s==null?th(t,r,l):as(t,r,l,s||null,true)):e===1&&r!==null?(Kf(a,r,i,n),as(t,r,l,s||null,true),pE(i,l,a)):e===2?(a?.[nt$1]?.leave?.has(i.index)&&hE(i,l,a),no$1.delete(l),Xf(a,i,n,d=>{if(no$1.has(l)){no$1.delete(l);return}nh(t,l,u,d);})):e===3&&(no$1.delete(l),Xf(a,i,n,()=>{t.destroyNode(l);})),c!=null&&kE(t,e,n,c,i,r,s);}}function bE(e,t){lh(e,t),t[Be$3]=null,t[se$2]=null;}function SE(e,t,n,r,o,i){r[Be$3]=o,r[se$2]=t,Ms$1(e,r,n,1,o,i);}function lh(e,t){t[Ve$2].changeDetectionScheduler?.notify(9),Ms$1(e,t,t[L$3],2,null,null);}function _E(e){let t=e[Qn$3];if(!t)return Nc(e[E],e);for(;t;){let n=null;if(Ct$2(t))n=t[Qn$3];else {let r=t[W$4];r&&(n=r);}if(!n){for(;t&&!t[Me$3]&&t!==e;)Ct$2(t)&&Nc(t[E],t),t=t[te$4];t===null&&(t=e),Ct$2(t)&&Nc(t[E],t),n=t&&t[Me$3];}t=n;}}function Lu(e,t){let n=e[En$3],r=n.indexOf(t);n.splice(r,1);}function _s$1(e,t){if(In$3(t))return;let n=t[L$3];n.destroyNode&&Ms$1(e,t,n,3,null,null),_E(t);}function Nc(e,t){if(In$3(t))return;let n=I(null);try{t[S$2]&=-129,t[S$2]|=256,t[ve$3]&&Lt$2(t[ve$3]),NE(e,t),ME(e,t),t[E].type===1&&t[L$3].destroy();let r=t[$t$3];if(r!==null&&Ne$3(t[te$4])){r!==t[te$4]&&Lu(r,t);let o=t[et];o!==null&&o.detachView(e);}Uc(t);}finally{I(n);}}function ME(e,t){let n=e.cleanup,r=t[Yn$3];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2;}else {let a=r[n[s+1]];n[s].call(a);}r!==null&&(t[Yn$3]=null);let o=t[vt$3];if(o!==null){t[vt$3]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[Vt$1];if(i!==null){t[Vt$1]=null;for(let s of i)s.destroy();}}function NE(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof bn$2)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];F$4(O$2.LifecycleHookStart,a,c);try{c.call(a);}finally{F$4(O$2.LifecycleHookEnd,a,c);}}else {F$4(O$2.LifecycleHookStart,o,i);try{i.call(o);}finally{F$4(O$2.LifecycleHookEnd,o,i);}}}}}function dh(e,t,n){return xE(e,t.parent,n)}function xE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Be$3];if(Tt$3(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===$e$4.None||o===$e$4.Emulated)return null}return Ae$2(r,n)}function fh(e,t,n){return RE(e,t,n)}function AE(e,t,n){return e.type&40?Ae$2(e,n):null}var RE=AE;function ju(e,t,n,r){let o=dh(e,r,t),i=t[L$3],s=r.parent||t[se$2],a=fh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Zf(i,o,n[c],a,false);else Zf(i,o,n,a,false);}function ro$1(e,t){if(t!==null){let n=t.type;if(n&3)return Ae$2(t,e);if(n&4)return eu(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return ro$1(e,r);{let o=e[t.index];return Ne$3(o)?eu(-1,o):xe$3(o)}}else {if(n&128)return ro$1(e,t.next);if(n&32)return Ou(t,e)()||xe$3(e[t.index]);{let r=ph(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Dt$2(e[ae$3]);return ro$1(o,r)}else return ro$1(e,t.next)}}}return null}function ph(e,t){if(t!==null){let r=e[ae$3][se$2],o=t.projection;return r.projection[o]}return null}function eu(e,t){let n=W$4+e+1;if(n<t.length){let r=t[n],o=r[E].firstChild;if(o!==null)return ro$1(r,o)}return t[zt$1]}function Bu(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Je$3];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&ar$1(xe$3(c),r),n.flags|=2),!Is$1(n))if(u&8)Bu(e,t,n.child,r,o,i,false),or$1(t,e,a,o,c,n,i,r);else if(u&32){let l=Ou(n,r),d;for(;d=l();)or$1(t,e,a,o,d,n,i,r);or$1(t,e,a,o,c,n,i,r);}else u&16?hh(e,t,r,n,o,i):or$1(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function Ms$1(e,t,n,r,o,i){Bu(n,r,e.firstChild,t,o,i,false);}function OE(e,t,n){let r=t[L$3],o=dh(e,n,t),i=n.parent||t[se$2],s=fh(i,n,t);hh(r,0,t,n,o,s);}function hh(e,t,n,r,o,i){let s=n[ae$3],c=s[se$2].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];or$1(t,e,n[Je$3],o,l,r,i,n);}else {let u=c,l=s[te$4];Fp(r)&&(u.flags|=128),Bu(e,t,u,l,o,i,true);}}function kE(e,t,n,r,o,i,s){let a=r[zt$1],c=xe$3(r);a!==c&&or$1(t,e,n,i,a,o,s);for(let u=W$4;u<r.length;u++){let l=r[u];Ms$1(l[E],l,e,t,i,a);}}function FE(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:st$1.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=st$1.Important),e.setStyle(n,r,o,i));}}function Vu(e,t,n,r,o,i,s,a,c,u,l){let d=H$1+r,p=d+o,f=PE(d,p),h=typeof u=="function"?u():u;return f[E]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:false,ssrId:l}}function PE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Q$1);return n}function LE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Vu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Hu(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Be$3]=o,d[S$2]=r|4|128|8|64|1024,(u!==null||e&&e[S$2]&2048)&&(d[S$2]|=2048),ac(d),d[te$4]=d[Ut$3]=e,d[Y$3]=n,d[Ve$2]=s||e&&e[Ve$2],d[L$3]=a||e&&e[L$3],d[Je$3]=c||e&&e[Je$3]||null,d[se$2]=i,d[tt$1]=mD(),d[yn$2]=l,d[tc]=u,d[ae$3]=t.type==2?e[ae$3]:d,d}function jE(e,t,n){let r=Ae$2(t,e),o=LE(n),i=e[Ve$2].rendererFactory,s=Uu(e,Hu(e,o,null,gh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function gh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function mh(e,t,n,r){if(n===0)return -1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Uu(e,t){return e[Qn$3]?e[ec][Me$3]=t:e[Qn$3]=t,e[ec]=t,t}function BE(e=1){yh(j$4(),v$1(),Ee$3()+e);}function yh(e,t,n,r){if((t[S$2]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ki$1(t,i,n);}else {let i=e.preOrderHooks;i!==null&&Xi$1(t,i,0,n);}Wt$1(n);}var Ns$1=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ns$1||{});function Sn$3(e,t,n,r){let o=I(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ns$1.SignalBased)!==0&&(c=t[i][q$1]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):vp(t,c,i,r);}finally{I(o);}}function vh(e,t,n,r,o){let i=Ee$3(),s=r&2;try{Wt$1(-1),s&&t.length>H$1&&yh(e,t,H$1,!1);let a=s?O$2.TemplateUpdateStart:O$2.TemplateCreateStart;F$4(a,o,n),n(r,o);}finally{Wt$1(i);let a=s?O$2.TemplateUpdateEnd:O$2.TemplateCreateEnd;F$4(a,o,n);}}function xs$1(e,t,n){GE(e,t,n),(n.flags&64)===64&&WE(e,t,n);}function mo$1(e,t,n=Ae$2){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a;}}}function VE(e,t,n,r){let i=r.get($p,Up)||n===$e$4.ShadowDom||n===$e$4.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function $E(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Dh(e,t,n,r,o,i){let s=t[E];if(Wu(e,s,t,n,r)){Tt$3(e)&&zE(t,e.index);return}e.type&3&&(n=$E(n)),Eh(e,t,n,r,o,i);}function Eh(e,t,n,r,o,i){if(e.type&3){let s=Ae$2(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function zE(e,t){let n=Re$3(t,e);n[S$2]&16||(n[S$2]|=64);}function GE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Tt$3(n)&&jE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||is(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=io$1(t,e,s,n);if(ar$1(c,t),i!==null&&QE(t,s-r,c,a,n,i),rt$2(a)){let u=Re$3(n.index,t);u[Y$3]=io$1(t,e,s,n);}}}function WE(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=vf();try{Wt$1(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Li$2(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&qE(c,u);}}finally{Wt$1(-1),Li$2(s);}}function qE(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function $u(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];ah(t,i.selectors,false)&&(r??=[],rt$2(i)?r.unshift(i):r.push(i));}return r}function ZE(e,t,n,r,o,i){let s=Ae$2(e,t);YE(t[L$3],s,i,e.value,n,r,o);}function YE(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?Z$1(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function QE(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Sn$3(r,n,c,u);}}function zu(e,t,n,r,o){let i=H$1+n,s=t[E],a=o(s,t,e,r,n);t[i]=a,Jn$2(e,true);let c=e.type===2;return c?(rh(t[L$3],a,e),(uf()===0||Kn$3(e))&&ar$1(a,t),lf()):ar$1(a,t),Hi$1()&&(!c||!Is$1(e))&&ju(s,t,a,e),e}function Gu(e){let t=e;return mc()?yc():(t=t.parent,Jn$2(t,false)),t}function KE(e,t){let n=e[Je$3];if(!n)return;let r;try{r=n.get(ot$2,null);}catch(o){r=null;}r?.(t);}function Wu(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=false;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];Sn$3(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];Sn$3(l,u,r,o),a=true;}return a}function XE(e,t,n,r,o,i){let s=null,a=null,c=null,u=false,l=e.directiveToIndex.get(r.type);if(typeof l=="number"?s=l:[s,a,c]=l,a!==null&&c!==null&&e.hostDirectiveInputs?.hasOwnProperty(o)){let d=e.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=t.data[f],y=d[p+1];Sn$3(h,n[f],y,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(Sn$3(r,n[s],o,i),u=true),u}function JE(e,t){let n=Re$3(t,e),r=n[E];eI(r,n);let o=n[Be$3];o!==null&&n[yn$2]===null&&(n[yn$2]=Gp(o,n[Je$3])),F$4(O$2.ComponentStart);try{qu(r,n,n[Y$3]);}finally{F$4(O$2.ComponentEnd,n[Y$3]);}}function eI(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function qu(e,t,n){Bi$2(t);try{let r=e.viewQuery;r!==null&&zc(1,r,n);let o=e.template;o!==null&&vh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[et]?.finishViewCreation(e),e.staticContentQueries&&Wp(e,t),e.staticViewQueries&&zc(2,e.viewQuery,n);let i=e.components;i!==null&&tI(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[S$2]&=-5,Vi$2();}}function tI(e,t){for(let n=0;n<t.length;n++)JE(e,t[n]);}function yo$1(e,t,n,r){let o=I(null);try{let i=t.tView,a=e[S$2]&4096?4096:16,c=Hu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[$t$3]=u;let l=e[et];return l!==null&&(c[et]=l.createEmbeddedView(i)),qu(i,c,n),c}finally{I(o);}}function cr$1(e,t){return !t||t.firstChild===null||Fp(e)}function ao$1(e,t,n,r,o=false){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(xe$3(i)),Ne$3(i)&&Ih(i,r);let s=n.type;if(s&8)ao$1(e,t,n.child,r);else if(s&32){let a=Ou(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=ph(t,n);if(Array.isArray(a))r.push(...a);else {let c=Dt$2(t[ae$3]);ao$1(c[E],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Ih(e,t){for(let n=W$4;n<e.length;n++){let r=e[n],o=r[E].firstChild;o!==null&&ao$1(r[E],r,o,t);}e[zt$1]!==e[Be$3]&&t.push(e[zt$1]);}function wh(e){if(e[Dn$3]!==null){for(let t of e[Dn$3])t.impl.addSequence(t);e[Dn$3].length=0;}}var Ch=[];function nI(e){return e[ve$3]??rI(e)}function rI(e){let t=Ch.pop()??Object.create(iI);return t.lView=e,t}function oI(e){e.lView[ve$3]!==e&&(e.lView=null,Ch.push(e));}var iI=x$1(w$1({},Ft$2),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{wn$3(e.lView);},consumerOnSignalRead(){this.lView[ve$3]=this;}});function sI(e){let t=e[ve$3]??Object.create(aI);return t.lView=e,t}var aI=x$1(w$1({},Ft$2),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Dt$2(e.lView);for(;t&&!Th(t[E]);)t=Dt$2(t);t&&cc(t);},consumerOnSignalRead(){this.lView[ve$3]=this;}});function Th(e){return e.type!==2}function bh(e){if(e[Vt$1]===null)return;let t=true;for(;t;){let n=false;for(let r of e[Vt$1])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S$2]&8192);}}var cI=100;function Sh(e,t=0){let r=e[Ve$2].rendererFactory;r.begin?.();try{uI(e,t);}finally{r.end?.();}}function uI(e,t){let n=vc();try{Fr(!0),tu(e,t);let r=0;for(;Gr(e);){if(r===cI)throw new m$2(103,!1);r++,tu(e,1);}}finally{Fr(n);}}function lI(e,t,n,r){if(In$3(t))return;let o=t[S$2],i=false,s=false;Bi$2(t);let a=true,c=null,u=null;(Th(e)?(u=nI(t),c=mt$4(u)):fi$3()===null?(a=false,u=sI(t),c=mt$4(u)):t[ve$3]&&(Lt$2(t[ve$3]),t[ve$3]=null));try{ac(t),gf(e.bindingStartIndex),n!==null&&vh(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Ki$1(t,f,null);}else {let f=e.preOrderHooks;f!==null&&Xi$1(t,f,0,null),_c(t,0);}if(s||dI(t),bh(t),_h(t,0),e.contentQueries!==null&&Wp(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Ki$1(t,f);}else {let f=e.contentHooks;f!==null&&Xi$1(t,f,1),_c(t,1);}pI(e,t);let d=e.components;d!==null&&Nh(t,d,0);let p=e.viewQuery;if(p!==null&&zc(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Ki$1(t,f);}else {let f=e.viewHooks;f!==null&&Xi$1(t,f,2),_c(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[xi$2]){for(let f of t[xi$2])f();t[xi$2]=null;}i||(wh(t),t[S$2]&=-73);}catch(l){throw wn$3(t),l}finally{u!==null&&(Pt$3(u,c),a&&oI(u)),Vi$2();}}function _h(e,t){for(let n=Lp(e);n!==null;n=jp(n))for(let r=W$4;r<n.length;r++){let o=n[r];Mh(o,t);}}function dI(e){for(let t=Lp(e);t!==null;t=jp(t)){if(!(t[S$2]&2))continue;let n=t[En$3];for(let r=0;r<n.length;r++){let o=n[r];cc(o);}}}function fI(e,t,n){F$4(O$2.ComponentStart);let r=Re$3(t,e);try{Mh(r,n);}finally{F$4(O$2.ComponentEnd,r[Y$3]);}}function Mh(e,t){Oi$2(e)&&tu(e,t);}function tu(e,t){let r=e[E],o=e[S$2],i=e[ve$3],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Hn$3(i)),s||=false,i&&(i.dirty=false),e[S$2]&=-9217,s)lI(r,e,r.template,e[Y$3]);else if(o&8192){let a=I(null);try{bh(e),_h(e,1);let c=r.components;c!==null&&Nh(e,c,1),wh(e);}finally{I(a);}}}function Nh(e,t,n){for(let r=0;r<t.length;r++)fI(e,t[r],n);}function pI(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Wt$1(~o);else {let i=o,s=n[++r],a=n[++r];yf(s,i);let c=t[i];F$4(O$2.HostBindingsUpdateStart,c);try{a(2,c);}finally{F$4(O$2.HostBindingsUpdateEnd,c);}}}}finally{Wt$1(-1);}}function Zu(e,t){let n=vc()?64:1088;for(e[Ve$2].changeDetectionScheduler?.notify(t);e;){e[S$2]|=n;let r=Dt$2(e);if(Xn$3(e)&&!r)return e;e=r;}return null}function xh(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Ah(e,t){let n=W$4+t;if(n<e.length)return e[n]}function vo$1(e,t,n,r=true){let o=t[E];if(hI(o,t,e,n),r){let s=eu(n,e),a=t[L$3],c=a.parentNode(e[zt$1]);c!==null&&SE(o,e[se$2],a,t,c,s);}let i=t[yn$2];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function Rh(e,t){let n=co$1(e,t);return n!==void 0&&_s$1(n[E],n),n}function co$1(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n];if(r){let o=r[$t$3];o!==null&&o!==e&&Lu(o,r),t>0&&(e[n-1][Me$3]=r[Me$3]);let i=Hr(e,W$4+t);bE(r[E],r);let s=i[et];s!==null&&s.detachView(i[E]),r[te$4]=null,r[Me$3]=null,r[S$2]&=-129;}return r}function hI(e,t,n,r){let o=W$4+r,i=n.length;r>0&&(n[o-1][Me$3]=t),r<i-W$4?(t[Me$3]=n[o],Ya(n,W$4+r,t)):(n.push(t),t[Me$3]=null),t[te$4]=n;let s=t[$t$3];s!==null&&n!==s&&Oh(s,t);let a=t[et];a!==null&&a.insertView(e),ki$3(t),t[S$2]|=128;}function Oh(e,t){let n=e[En$3],r=t[te$4];if(Ct$2(r))e[S$2]|=2;else {let o=r[te$4][ae$3];t[ae$3]!==o&&(e[S$2]|=2);}n===null?e[En$3]=[t]:n.push(t);}var Qt$2=class Qt{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[E];return ao$1(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[Y$3]}set context(t){this._lView[Y$3]=t;}get destroyed(){return In$3(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[te$4];if(Ne$3(t)){let n=t[zr],r=n?n.indexOf(this):-1;r>-1&&(co$1(t,r),Hr(n,r));}this._attachedToViewContainer=false;}_s$1(this._lView[E],this._lView);}onDestroy(t){Fi$3(this._lView,t);}markForCheck(){Zu(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[S$2]&=-129;}reattach(){ki$3(this._lView),this._lView[S$2]|=128;}detectChanges(){this._lView[S$2]|=1024,Sh(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m$2(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Xn$3(this._lView),n=this._lView[$t$3];n!==null&&!t&&Lu(n,this._lView),lh(this._lView[E],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new m$2(902,false);this._appRef=t;let n=Xn$3(this._lView),r=this._lView[$t$3];r!==null&&!n&&Oh(r,this._lView),ki$3(this._lView);}};var ur$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=gI;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o;}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=yo$1(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Qt$2(i)}}return e})();function gI(){return As$1(X$2(),v$1())}function As$1(e,t){return e.type&4?new ur$1(t,e,fr$1(e,t)):null}function pr$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=mI(e,t,n,r,o),mf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=pf();i.injectorIndex=s===null?-1:s.injectorIndex;}return Jn$2(i,true),i}function mI(e,t,n,r,o){let i=gc(),s=mc(),a=s?i:i&&i.parent,c=e.data[t]=vI(e,a,n,t,r,o);return yI(e,c,i,s),c}function yI(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n));}function vI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return fc()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:Ic(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function DI(e){let t=e[nc]??[],r=e[te$4][L$3],o=[];for(let i of t)i.data[Hp]!==void 0?o.push(i):EI(i,r);e[nc]=o;}function EI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Vp];for(;n<o;){let i=r.nextSibling;nh(t,r,false),r=i,n++;}}}var II=()=>null,wI=()=>null;function cs(e,t){return II()}function kh(e,t,n){return wI()}var Fh=class{},_n$3=class _n{},Yu=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>CI()}return e})();function CI(){let e=v$1(),t=X$2(),n=Re$3(t.index,e);return (Ct$2(n)?n:e)[L$3]}var Ph=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>null})}return e})();function Lh(e){return e.debugInfo?.className||e.type.name||null}var es={},us=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,es,r);return o!==es||n===es?o:this.parentInjector.get(t,n,r)}};function Qu(e,t,n){return e[t]=n}function TI(e,t){return e[t]}function we$2(e,t,n){if(n===Q$1)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function uo$1(e,t,n,r){let o=we$2(e,t,n);return we$2(e,t+1,r)||o}function Ku(e,t,n,r,o,i){let s=uo$1(e,t,n,r);return uo$1(e,t+2,o,i)||s}function Tn$3(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&DD(o,i);let s=Tt$3(e)?Re$3(e.index,t):t;Zu(s,5);let a=t[Y$3],c=ep(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=ep(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function ep(e,t,n,r){let o=I(null);try{return F$4(O$2.OutputStart,t,n),n(r)!==!1}catch(i){return KE(e,i),false}finally{F$4(O$2.OutputEnd,t,n),I(o);}}function Xu(e,t,n,r,o,i,s,a){let c=Kn$3(e),u=false,l=null;if(!r&&c&&(l=SI(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=Ae$2(e,n),p=r?r(d):d;r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!bI(i)){let h=r?y=>r(xe$3(y[e.index])):e.index;jh(h,t,n,i,a,f,false);}}return u}function bI(e){return e.startsWith("animation")||e.startsWith("transition")}function SI(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Yn$3],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function jh(e,t,n,r,o,i,s){let a=t.firstCreatePass?lc(t):null,c=uc(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function tp(e,t,n,r,o){let i=null,s=null,a=null,c=false,u=e.directiveToIndex.get(n.type);if(typeof u=="number"?i=u:[i,s,a]=u,s!==null&&a!==null&&e.hostDirectiveOutputs?.hasOwnProperty(r)){let l=e.hostDirectiveOutputs[r];for(let d=0;d<l.length;d+=2){let p=l[d];if(p>=s&&p<=a)c=true,ls(e,t,p,l[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,ls(e,t,i,r,r,o)),c}function ls(e,t,n,r,o,i){let s=t[n],a=t[E],u=a.data[n].outputs[r],d=s[u].subscribe(i);jh(e.index,a,t,o,i,d,true);}function _I(){MI();}function MI(){let e=v$1(),t=j$4(),n=X$2();if(t.firstCreatePass&&AI(t,n),n.controlDirectiveIndex===-1)return;ut$2("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new ds(e,t,n));}function NI(){xI();}function xI(){let e=v$1(),t=j$4(),n=tr$1();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new ds(e,t,n));}var ds=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096);}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return Ae$2(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];tp(this.tNode,this.lView,r,t,Tn$3(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];tp(this.tNode,this.lView,r,n,Tn$3(this.tNode,this.lView,t));}listenToDom(t,n){Xu(this.tNode,this.tView,this.lView,void 0,this.lView[L$3],t,n,Tn$3(this.tNode,this.lView,n));}setInputOnDirectives(t,n){let r=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!r&&!o)return false;let i=false;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];Sn$3(a,c,t,n),i=true;}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],u=this.tView.data[a],l=this.lView[a];Sn$3(u,l,c,n),i=true;}return i}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";XE(this.tNode,this.tView,this.lView,n,r,t);}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return false;let n=this.tView.data[this.tNode.customControlIndex];return (n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===true}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=true;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=true;let i=np(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=true;}let s=np(i.directive);s!==null&&r.push(...s);}}}return n}};function np(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function AI(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}RI(e,t);}function RI(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(rp(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(rp(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return false;for(let a=0;a<i.length;a+=2){let c=i[a];for(let u=0;u<s.length;u+=2){let l=s[u];if(c===l)for(let d of t.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,h]=d;if(c>=f&&c<=h)return t.flags|=o,t.customControlIndex=p,true}}}return false};if(n("value",1024)||n("checked",2048))return}}function rp(e,t){return OI(e,t)&&kI(e,t+"Change")}function OI(e,t){return t in e.inputs}function kI(e,t){return t in e.outputs}var nu=Symbol("BINDING");var Rn$3=new T$4("");function fs(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=wi$3(o,a);else if(i==2){let c=a,u=t[++s];r=wi$3(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function ze$2(e,t=0){let n=v$1();if(n===null)return b$2(e,t);let r=X$2();return xp(r,n,re$3(e),t)}function FI(){let e="invalid";throw new Error(e)}function Bh(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}jI(e,t,n,a,i,c,u);}i!==null&&r!==null&&PI(n,r,i);}function PI(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new m$2(-301,false);r.push(t[o],i);}}function LI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function jI(e,t,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&rt$2(f)&&(c=f,LI(e,n,p)),Vc(is(n,t),e,f.type);}zI(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f);}let u=false,l=false,d=mh(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=sr$1(n.mergedAttrs,f.hostAttrs),VI(e,n,t,d,f),$I(d,f,o),s!==null&&s.has(f)){let[y,D]=s.get(f);n.directiveToIndex.set(f.type,[d,y+n.directiveStart,D+n.directiveStart]);}else (i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}BI(e,n,i);}function BI(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))op(0,t,o,r),op(1,t,o,r),sp(t,r,false);else {let i=n.get(o);ip(0,t,i,r),ip(1,t,i,r),sp(t,r,true);}}}function op(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Vh(t,i);}}function ip(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Vh(t,s);}}function Vh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function sp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Ru(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2;}e.initialInputs??=[],e.initialInputs.push(s);}function VI(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Bt$1(o.type)),s=new bn$2(i,rt$2(o),ze$2,null);e.blueprint[r]=s,n[r]=s,HI(e,t,r,mh(e,n,o.hostVars,Q$1),o);}function HI(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;UI(s)!=a&&s.push(a),s.push(n,r,i);}}function UI(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function $I(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;rt$2(t)&&(n[""]=e);}}function zI(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function Ju(e,t,n,r,o,i,s,a){let c=t[E],u=c.consts,l=De$3(u,s),d=pr$1(c,e,n,r,l);return Bh(c,t,d,De$3(u,a),o),d.mergedAttrs=sr$1(d.mergedAttrs,d.attrs),d.attrs!==null&&fs(d,d.attrs,false),d.mergedAttrs!==null&&fs(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function el(e,t){Ip(e,t),rc(t)&&e.queries.elementEnd(t);}function GI(e,t,n,r,o,i){let s=t.consts,a=De$3(s,o),c=pr$1(t,e,n,r,a);if(c.mergedAttrs=sr$1(c.mergedAttrs,c.attrs),i!=null){let u=De$3(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&fs(c,c.attrs,false),c.mergedAttrs!==null&&fs(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var Hh=typeof ShadowRoot<"u",WI=typeof Document<"u";function qI(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ns$1.SignalBased)!==0};return o&&(i.transform=o),i})}function ZI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function YI(e,t,n){let r=t instanceof pe$5?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new us(n,r):n}function QI(e){let t=e.get(_n$3,null);if(t===null)throw new m$2(407,false);let n=e.get(Ph,null),r=e.get(je$3,null),o=e.get(ct$1,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function KI(e,t){let n=Uh(e);return eh(t,n,n==="svg"?oc:n==="math"?nf:null)}function XI(e){if(e?.toLowerCase()==="script")throw new m$2(905,false)}function Uh(e){return (e.selectors[0][0]||"div").toLowerCase()}var Mn$4=class Mn{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=qI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=ZI(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=lE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){F$4(O$2.DynamicComponentStart);let a=I(null);try{let c=this.componentDef,u=YI(c,o||this.ngModule,t),l=QI(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Lh(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{I(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=JI(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?VE(u,o,a.encapsulation,n):KI(a,u);XI(l?.tagName);let d=n.get(Rn$3,null),p=ew(l,()=>n.get(U$5,null)??Tu());d&&d.addHost(p);let f=s?.some(ap)||i?.some(D=>typeof D!="function"&&D.bindings.some(ap)),h=Hu(null,c,null,512|gh(a),null,null,t,u,n,null,Gp(l,n,true));d&&Hh&&p instanceof ShadowRoot&&Fi$3(h,()=>{d.removeHost(p);}),h[H$1]=l,Bi$2(h);let y=null;try{let D=Ju(H$1,h,2,"#host",()=>c.directiveRegistry,!0,0);rh(u,l,D),ar$1(l,h),xs$1(c,h,D),bu(c,D,h),el(c,D),r!==void 0&&nw(D,this.ngContentSelectors,r),y=Re$3(D.index,h),h[Y$3]=y[Y$3],qu(c,h,null);}catch(D){throw y!==null&&Uc(y),Uc(h),D}finally{F$4(O$2.DynamicComponentEnd),Vi$2();}return new ps(this.componentType,h,!!f)}};function JI(e,t,n,r){let o=e?["ng-version","22.0.8"]:dE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[nu].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let p of d.bindings){a+=p[nu].requiredVars;let f=l+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p));}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,p=Wa(d);c.push(p);}return Vu(0,null,tw(i,s),1,a,c,null,null,null,[o],null)}function ew(e,t){let n=e.getRootNode?.();return WI&&n instanceof Document?n.head:n&&Hh&&n instanceof ShadowRoot?n:t().head}function tw(e,t){return !e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update();}}function ap(e){let t=e[nu].kind;return t==="input"||t==="twoWay"}var ps=class extends Fh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Ai$3(n[E],H$1),this.location=fr$1(this._tNode,n),this.instance=Re$3(this._tNode.index,n)[Y$3],this.hostView=this.changeDetectorRef=new Qt$2(n,void 0),this.componentType=t;}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;Wu(r,o[E],o,t,n);this.previousInputValues.set(t,n);let s=Re$3(r.index,o);Zu(s,1);}get injector(){return new Zt$2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function nw(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null);}}var hr$1=(()=>{class e{static __NG_ELEMENT_ID__=rw}return e})();function rw(){let e=X$2();return $h(e,v$1())}var ru=class e extends hr$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return fr$1(this._hostTNode,this._hostLView)}get injector(){return new Zt$2(this._hostTNode,this._hostLView)}get parentInjector(){let t=Eu(this._hostTNode,this._hostLView);if(Tp(t)){let n=rs(t,this._hostLView),r=ns(t),o=n[E].data[r+8];return new Zt$2(o,n)}else return new Zt$2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=cp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-W$4}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=cs(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,cr$1(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,u=n||{};c=u.index,r=u.injector,o=u.projectableNodes,i=u.environmentInjector||u.ngModuleRef,s=u.directives,a=u.bindings;let l=new Mn$4(Et$2(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let _=this.parentInjector.get(pe$5,null);_&&(i=_);}let p=Et$2(l.componentType??{}),f=cs(this._lContainer,p?.id??null),h=null,y=l.create(d,o,h,i,s,a);return this.insertImpl(y.hostView,c,cr$1(this._hostTNode,f)),y}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(of(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[te$4],u=new e(c,c[se$2],c[te$4]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return vo$1(s,o,i,r),t.attachToViewContainerRef(),Ya(xc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=cp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=co$1(this._lContainer,n);r&&(Hr(xc(this._lContainer),n),_s$1(r[E],r));}detach(t){let n=this._adjustIndex(t,-1),r=co$1(this._lContainer,n);return r&&Hr(xc(this._lContainer),n)!=null?new Qt$2(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function cp(e){return e[zr]}function xc(e){return e[zr]||(e[zr]=[])}function $h(e,t){let n,r=t[e.index];return Ne$3(r)?n=r:(n=xh(r,t,null,e),t[e.index]=n,Uu(t,n)),iw(n,t,e,r),new ru(n,e,t)}function ow(e,t){let n=e[L$3],r=n.createComment(""),o=Ae$2(t,e),i=n.parentNode(o);return as(n,i,r,n.nextSibling(o),false),r}var iw=cw;function cw(e,t,n,r){if(e[zt$1])return;let o;n.type&8?o=xe$3(r):o=ow(t,n),e[zt$1]=o;}var ou=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},iu=class e{queries;constructor(t=[]){this.queries=t;}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone());}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t);}detachView(t){this.dirtyQueriesWithMatches(t);}finishViewCreation(t){this.dirtyQueriesWithMatches(t);}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)nl(t,n).matches!==null&&this.queries[n].setDirty();}},hs=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=pw(t):this.predicate=t;}},su=class e{queries;constructor(t=[]){this.queries=t;}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n);}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t);}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i]);}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n);}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t);}},au=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=false;_declarationNodeIndex;_appliesToNextNode=true;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n;}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n);}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=false);}template(t,n){this.elementStart(t,n);}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=true,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,uw(n,i)),this.matchTNodeWithReadOption(t,n,Ji$1(n,t,i,false,false));}else r===ur$1?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ji$1(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===An$3||o===hr$1||o===ur$1&&n.type&4)this.addMatch(n.index,-2);else {let i=Ji$1(n,t,o,false,false);i!==null&&this.addMatch(n.index,i);}else this.addMatch(n.index,r);}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n);}};function uw(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function lw(e,t){return e.type&11?fr$1(e,t):e.type&4?As$1(e,t):null}function dw(e,t,n,r){return n===-1?lw(t,e):n===-2?fw(e,t,r):io$1(e,e[E],n,t)}function fw(e,t,n){if(n===An$3)return fr$1(t,e);if(n===ur$1)return As$1(t,e);if(n===hr$1)return $h(t,e)}function zh(e,t,n,r){let o=t[et].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else {let l=i[u];a.push(dw(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function cu(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=zh(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else {let u=i[a+1],l=t[-c];for(let d=W$4;d<l.length;d++){let p=l[d];p[$t$3]===p[te$4]&&cu(p[E],p,u,r);}if(l[En$3]!==null){let d=l[En$3];for(let p=0;p<d.length;p++){let f=d[p];cu(f[E],f,u,r);}}}}}return r}function tl$1(e,t){return e[et].queries[t].queryList}function Gh(e,t,n){let r=new ss((n&4)===4);return cf(e,t,r,r.destroy),(t[et]??=new iu).queries.push(new ou(r))-1}function Wh(e,t,n){let r=j$4();return r.firstCreatePass&&(Zh(r,new hs(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Gh(r,v$1(),t)}function qh(e,t,n,r){let o=j$4();if(o.firstCreatePass){let i=X$2();Zh(o,new hs(t,n,r),i.index),hw(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Gh(o,v$1(),n)}function pw(e){return e.split(",").map(t=>t.trim())}function Zh(e,t,n){e.queries===null&&(e.queries=new su),e.queries.track(new au(t,n));}function hw(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t);}function nl(e,t){return e.queries.getByIndex(t)}function Yh(e,t){let n=e[E],r=nl(n,t);return r.crossesNgTemplate?cu(n,e,t,[]):zh(n,e,r,t)}function rl(e,t,n){let r,o=Ar$1(()=>{r._dirtyCounter();let i=gw(r,e);if(t&&i===void 0)throw new m$2(-951,false);return i});return r=o[q$1],r._dirtyCounter=Ui$1(0),r._flatValue=void 0,o}function ol(e){return rl(true,false)}function il(e){return rl(true,true)}function Qh(e){return rl(false,false)}function Kh(e,t){let n=e[q$1];n._lView=v$1(),n._queryIndex=t,n._queryList=tl$1(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function gw(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[S$2]&4)return t?void 0:ie$2;let o=tl$1(n,r),i=Yh(n,r);return o.reset(i,kp),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Rs$1(e){return !!e&&typeof e.then=="function"}function sl(e){return !!e&&typeof e.subscribe=="function"}var Nn$3=class Nn{},Xh=class{};var gs=class extends Nn$3{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Vd(t);this._bootstrapComponents=JD(i.bootstrap),this._r3Injector=wc(t,n,[{provide:Nn$3,useValue:this},...r],jr(t),new Set(["environment"])),o&&this.resolveInjectorInitializers();}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType);}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null;}onDestroy(t){this.destroyCbs.push(t);}},ms=class extends Xh{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new gs(this.moduleType,t,[])}};var lo$1=class lo extends Nn$3{injector;instance=null;constructor(t){super();let n=new gn$2([...t.providers,{provide:Nn$3,useValue:this}],t.parent||qn$3(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function Jh(e,t,n=null){return new lo$1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var mw=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n;}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Ka(false,n.type),o=r.length>0?Jh([r],this._injector,""):null;this.cachedInjectors.set(n,o);}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy();}finally{this.cachedInjectors.clear();}}static \u0275prov=x({token:e,providedIn:"environment",factory:()=>new e(b$2(pe$5))})}return e})();function yw(e){return po$1(()=>{let t=eg(e),n=x$1(w$1({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==wu.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(mw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||$e$4.Emulated,styles:e.styles||ie$2,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&ut$2("NgStandalone"),tg(n);let r=e.dependencies;return n.directiveDefs=up(r,vw),n.pipeDefs=up(r,Hd),n.id=Iw(n),n})}function vw(e){return Et$2(e)||Wa(e)}function Os$2(e){return po$1(()=>({type:e.type,bootstrap:e.bootstrap||ie$2,declarations:e.declarations||ie$2,imports:e.imports||ie$2,exports:e.exports||ie$2,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Dw(e,t){if(e==null)return Ht$1;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Ns$1.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function Ew(e){if(e==null)return Ht$1;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function al(e){return po$1(()=>{let t=eg(e);return tg(t),t})}function gr$1(e){return {type:e.type,name:e.name,factory:null,pure:e.pure!==false,standalone:e.standalone??true,onDestroy:e.type.prototype.ngOnDestroy||null}}function eg(e){let t={};return {type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Ht$1,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||ie$2,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:Dw(e.inputs,t),outputs:Ew(e.outputs),debugInfo:null}}function tg(e){e.features?.forEach(t=>t(e));}function up(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i);}return r}:null}function Iw(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var cl=new T$4("");function ww(e){return wt$3([{provide:cl,multi:true,useValue:e}])}var ul=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=g(cl,{optional:true})??[];injector=g(he$4);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Zn$3(this.injector,o);if(Rs$1(i))n.push(i);else if(sl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c});});n.push(s);}}let r=()=>{this.done=true,this.resolve();};Promise.all(n).then(()=>{r();}).catch(o=>{this.reject(o);}),n.length===0&&r(),this.initialized=true;}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();function Cw(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function Tw(e){return Object.getPrototypeOf(e.prototype).constructor}function ng(e){let t=Tw(e.type),n=true,r=[e];for(;t;){let o;if(rt$2(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new m$2(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=Ac(e.inputs),s.declaredInputs=Ac(e.declaredInputs),s.outputs=Ac(e.outputs);let a=o.hostBindings;a&&Nw(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&_w(e,c),u&&Mw(e,u),bw(e,o),Bd(e.outputs,o.outputs),rt$2(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation);}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===ng&&(n=false);}}t=Object.getPrototypeOf(t);}Sw(r);}function bw(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n]);}}function Sw(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=sr$1(o.hostAttrs,n=sr$1(n,o.hostAttrs));}}function Ac(e){return e===Ht$1?{}:e===ie$2?[]:e}function _w(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function Mw(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function Nw(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function rg(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=sr$1(e.mergedAttrs,e.attrs);let l=e.tView=Vu(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e));}a&&(e.flags|=a),Jn$2(e,false);let c=Aw(n,t);Hi$1()&&ju(n,t,c,e),ar$1(c,t);let u=xh(c,t,c,e);t[r+H$1]=u,Uu(t,u);}function xw(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$1,p;return t.firstCreatePass?(p=pr$1(t,d,4,s||null,a||null),Bh(t,e,p,De$3(t.consts,u),$u),Ip(t,p)):p=t.data[d],rg(p,e,t,n,r,o,i,c),Kn$3(p)&&xs$1(t,e,p),u!=null&&mo$1(e,p,l),p}function lr$1(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$1,p;if(t.firstCreatePass){if(p=pr$1(t,d,4,s||null,a||null),u!=null){let f=De$3(t.consts,u);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1);}}else p=t.data[d];return rg(p,e,t,n,r,o,i,c),u!=null&&mo$1(e,p,l),p}function og(e,t,n,r,o,i,s,a){let c=v$1(),u=j$4(),l=De$3(u.consts,i);return xw(c,u,e,t,n,r,o,l,void 0,s,a),og}function ig(e,t,n,r,o,i,s,a){let c=v$1(),u=j$4(),l=De$3(u.consts,i);return lr$1(c,u,e,t,n,r,o,l,void 0,s,a),ig}var Aw=Rw;function Rw(e,t,n,r){return Zr(true),t[L$3].createComment("")}var sg=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var ll=new T$4("");var dl=new T$4("");function ag(){wa(()=>{let e="";throw new m$2(600,e)});}var Ow=10;var mr$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g(ot$2);afterRenderManager=g(bs$1);zonelessEnabled=g(rr$1);rootEffectScheduler=g(Gi$1);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new le$4;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(qt$1);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ne$3(n=>!n))}constructor(){g(ct$1,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g(pe$5);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=he$4.NULL){return this._injector.get(G$2).run(()=>{if(F$4(O$2.BootstrapComponentStart),!this._injector.get(ul).done){let _="";throw new m$2(405,_)}let a=Et$2(n),c=this._injector.get(Nn$3),u=new Mn$4(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=kw(r),f=l||u.selector,h=u.create(o,[],f,c.injector,d,p),y=h.location.nativeElement,D=h.injector.get(ll,null);return D?.registerApplication(y),h.onDestroy(()=>{this.detachView(h.hostView),oo$1(this.components,h),D?.unregisterApplication(y);}),this._loadComponent(h),F$4(O$2.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){F$4(O$2.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ts$1.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw F$4(O$2.ChangeDetectionEnd),new m$2(101,false);let n=I(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,I(n),this.afterTick.next(),F$4(O$2.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(_n$3,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<Ow;){F$4(O$2.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{F$4(O$2.ChangeDetectionSyncEnd);}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=false;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Gr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Sh(o,i),n=true;}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews();}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Gr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8;}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this);}detachView(n){let r=n;oo$1(this._views,r),r.detachFromAppRef();}_loadComponent(n){this.attachView(n.hostView);try{this.tick();}catch(o){this.internalErrorHandler(o);}this.components.push(n),this._injector.get(dl,[]).forEach(o=>o(n));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy());}finally{this._destroyed=true,this._views=[],this._destroyListeners=[];}}onDestroy(n){return this._destroyListeners.push(n),()=>oo$1(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m$2(406,false);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy();}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();function kw(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function oo$1(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function cg(e,t,n,r){let o=v$1(),i=Gt$1();if(we$2(o,i,t)){j$4();let a=tr$1();ZE(a,o,e,t,n,r);}return cg}function Fw(){return v$1()[ae$3][Y$3]}var uu=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s);}else this.attach(r,i);}move(t,n){this.attach(n,this.detach(t));}};function Rc(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Pw(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){I(r);let u=t.length-1;for(I(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Rc(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[u],y=Rc(a,f,u,h,n);if(y!==0){y<0&&e.updateValue(a,h),a--,u--;continue}let D=n(s,l),_=n(a,f),$=n(s,d);if(Object.is($,_)){let be=n(u,h);Object.is(be,D)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new ys,i??=dp(e,s,a,n),lu(e,o,s,$))e.updateValue(s,d),s++,a++;else if(i.has($))o.set(D,e.detach(s)),a--;else {let be=e.create(s,t[s]);e.attach(s,be),s++,a++;}}for(;s<=u;)lp(e,o,n,s,t[s]),s++;}else if(t!=null){I(r);let u=t[Symbol.iterator]();I(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Rc(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new ys,i??=dp(e,s,a,n);let h=n(s,p);if(lu(e,o,s,h))e.updateValue(s,p),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,p)),s++,a++,l=u.next();else {let y=n(s,d);o.set(y,e.detach(s)),a--;}}}for(;!l.done;)lp(e,o,n,e.length,l.value),l=u.next();}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u);});}function lu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function lp(e,t,n,r,o){if(lu(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function dp(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var ys=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return false;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),true}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n);}else this.kvMap.set(t,n);}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n);}}};function Lw(e,t,n,r,o,i,s,a){ut$2("NgControlFlow");let c=v$1(),u=j$4(),l=De$3(u.consts,i);return lr$1(c,u,e,t,n,r,o,l,256,s,a),fl}function fl(e,t,n,r,o,i,s,a){ut$2("NgControlFlow");let c=v$1(),u=j$4(),l=De$3(u.consts,i);return lr$1(c,u,e,t,n,r,o,l,512,s,a),fl}function jw(e,t){ut$2("NgControlFlow");let n=v$1(),r=Gt$1(),o=n[r]!==Q$1?n[r]:-1,i=o!==-1?vs$1(n,H$1+o):void 0,s=0;if(we$2(n,r,e)){let a=I(null);try{if(i!==void 0&&Rh(i,s),e!==-1){let c=H$1+e,u=vs$1(n,c),l=hu(n[E],c),d=kh(u,l,n),p=yo$1(n,l,t,{dehydratedView:d});vo$1(u,p,s,cr$1(l,d));}}finally{I(a);}}else if(i!==void 0){let a=Ah(i,s);a!==void 0&&(a[Y$3]=t);}}var du=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-W$4}};function Bw(e){return e}function Vw(e,t){return t}var fu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function Hw(e,t,n,r,o,i,s,a,c,u,l,d,p){ut$2("NgControlFlow");let f=v$1(),h=j$4(),y=c!==void 0,D=v$1(),_=a?s.bind(D[ae$3][Y$3]):s,$=new fu(y,_);D[H$1+e]=$,lr$1(f,h,e+1,t,n,r,o,De$3(h.consts,i),256),y&&lr$1(f,h,e+2,c,u,l,d,De$3(h.consts,p),512);}var pu=class extends uu{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=false;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r;}get length(){return this.lContainer.length-W$4}at(t){return this.getLView(t)[Y$3].$implicit}attach(t,n){let r=n[yn$2];this.needsIndexUpdate||=t!==this.length,vo$1(this.lContainer,n,t,cr$1(this.templateTNode,r)),$w(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,zw(this.lContainer,t),Gw(this.lContainer,t)}create(t,n){let r=cs(this.lContainer,this.templateTNode.tView.ssrId);return yo$1(this.hostLView,this.templateTNode,new du(this.lContainer,n,t),{dehydratedView:r})}destroy(t){_s$1(t[E],t);}updateValue(t,n){this.getLView(t)[Y$3].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Y$3].$index=t;}getLView(t){return Ww(this.lContainer,t)}};function Uw(e){let t=I(null),n=Ee$3();try{let r=v$1(),o=r[E],i=r[n],s=n+1,a=vs$1(r,s);if(i.liveCollection===void 0){let u=hu(o,s);i.liveCollection=new pu(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(Pw(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Gt$1(),l=c.length===0;if(we$2(r,u,l)){let d=n+2,p=vs$1(r,d);if(l){let f=hu(o,d),h=kh(p,f,r),y=yo$1(r,f,void 0,{dehydratedView:h});vo$1(p,y,0,cr$1(f,h));}else o.firstUpdatePass&&DI(p),Rh(p,0);}}}finally{I(t);}}function vs$1(e,t){return e[t]}function $w(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[nt$1]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Je$3];DE(i,o),Yt$2.delete(r[tt$1]),o.detachedLeaveAnimationFns=void 0;}}function zw(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[nt$1]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function Gw(e,t){return co$1(e,t)}function Ww(e,t){return Ah(e,t)}function hu(e,t){return Ai$3(e,t)}function ug(e,t,n){let r=v$1(),o=Gt$1();if(we$2(r,o,t)){j$4();let s=tr$1();Dh(s,r,e,t,r[L$3],n);}return ug}function gu(e,t,n,r,o){Wu(t,e,n,o?"class":"style",r);}function Ds$1(e,t,n,r){let o=v$1(),i=o[E],s=e+H$1,a=i.firstCreatePass?Ju(s,o,2,t,$u,Pi$3(),n,r):i.data[s];if(Tt$3(a)){let c=o[Ve$2].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Lh(u),()=>(fp(e,t,o,a,r),Ds$1))}}return fp(e,t,o,a,r),Ds$1}function fp(e,t,n,r,o){if(zu(r,n,e,t,fg),Kn$3(r)){let i=n[E];xs$1(i,n,r),bu(i,r,n);}o!=null&&mo$1(n,r);}function pl(){let e=j$4(),t=X$2(),n=Gu(t);return e.firstCreatePass&&el(e,n),pc(n)&&hc(),dc(),n.classesWithoutHost!=null&&eD(n)&&gu(e,n,v$1(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&tD(n)&&gu(e,n,v$1(),n.stylesWithoutHost,false),pl}function lg(e,t,n,r){return Ds$1(e,t,n,r),pl(),lg}function hl(e,t,n,r){let o=v$1(),i=o[E],s=e+H$1,a=i.firstCreatePass?GI(s,i,2,t,n,r):i.data[s];return zu(a,o,e,t,fg),r!=null&&mo$1(o,a),hl}function gl(){let e=X$2(),t=Gu(e);return pc(t)&&hc(),dc(),gl}function dg(e,t,n,r){return hl(e,t,n,r),gl(),dg}var fg=(e,t,n,r,o)=>(Zr(true),eh(t[L$3],r,Ic()));function ml(e,t,n){let r=v$1(),o=r[E],i=e+H$1,s=o.firstCreatePass?Ju(i,r,8,"ng-container",$u,Pi$3(),t,n):o.data[i];if(zu(s,r,e,"ng-container",qw),Kn$3(s)){let a=r[E];xs$1(a,r,s),bu(a,s,r);}return n!=null&&mo$1(r,s),ml}function yl(){let e=j$4(),t=X$2(),n=Gu(t);return e.firstCreatePass&&el(e,n),yl}function pg(e,t,n){return ml(e,t,n),yl(),pg}var qw=(e,t,n,r,o)=>(Zr(true),WD(t[L$3],""));function Zw(){return v$1()}function hg(e,t,n){let r=v$1(),o=Gt$1();if(we$2(r,o,t)){j$4();let s=tr$1();Eh(s,r,e,t,r[L$3],n);}return hg}var to$1=void 0;function Yw(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Qw=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],to$1,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],to$1,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",to$1,to$1,to$1],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Yw],Oc=Object.create(null);function ge$5(e){let t=Kw(e),n=pp(t);if(n)return n;let r=t.split("-")[0];if(n=pp(r),n)return n;if(r==="en")return Qw;throw new m$2(701,false)}function pp(e){if(!(e in Oc)){let t=_e$4.ng&&_e$4.ng.common&&_e$4.ng.common.locales&&_e$4.ng.common.locales[e];return t!==void 0&&(Oc[e]=t),t}return Oc[e]}var K$4={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,ExtraData:21};function Kw(e){return e.toLowerCase().replace(/_/g,"-")}var Do$1="en-US";function gg(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function mg(e,t,n){let r=v$1(),o=j$4(),i=X$2();return vg(o,r,r[L$3],i,e,t,n),mg}function yg(e,t,n){let r=v$1(),o=j$4(),i=X$2();return (i.type&3||n)&&Xu(i,o,r,n,r[L$3],e,t,Tn$3(i,r,t)),yg}function vg(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=Tn$3(r,t,i),Xu(r,e,t,s,n,o,i,c)&&(a=false)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let p=l[d],f=l[d+1];c??=Tn$3(r,t,i),ls(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=Tn$3(r,t,i),ls(r,t,d,o,o,c);}}function Jw(e=1){return Cf(e)}function eC(e,t){let n=null,r=iE(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?ah(e,i,true):cE(r,i))return o}return n}function tC(e){let t=v$1()[ae$3][se$2];if(!t.projection){let n=e?e.length:1,r=t.projection=qd(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?eC(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function nC(e,t=0,n,r,o,i){let s=v$1(),a=j$4(),c=null;let u=pr$1(a,H$1+e,16,null,null);u.projection===null&&(u.projection=t),yc();let d=!s[yn$2]||fc();s[ae$3][se$2].projection[u.projection]===null&&c!==null?rC(s,a,c):d&&!Is$1(u)&&OE(a,s,u);}function rC(e,t,n){let r=H$1+n,o=t.data[r],i=e[r],s=cs(i,o.tView.ssrId),a=yo$1(e,o,void 0,{dehydratedView:s});vo$1(i,a,0,cr$1(o,s));}function Dg(e,t,n,r){return qh(e,t,n,r),Dg}function Eg(e,t,n){return Wh(e,t,n),Eg}function oC(e){let t=v$1(),n=j$4(),r=ji$1();qr(r+1);let o=nl(n,r);if(e.dirty&&rf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Yh(t,r);e.reset(i,kp),e.notifyOnChanges();}return true}return false}function iC(){return tl$1(v$1(),ji$1())}function Ig(e,t,n,r,o){return Kh(t,qh(e,n,r,o)),Ig}function wg(e,t,n,r){return Kh(e,Wh(t,n,r)),wg}function sC(e=1){qr(ji$1()+e);}function aC(e){let t=hf();return Ri$3(t,H$1+e)}function Qi$1(e,t){return e<<17|t<<2}function xn$3(e){return e>>17&32767}function cC(e){return (e&2)==2}function uC(e,t){return e&131071|t<<17}function mu(e){return e|2}function dr$1(e){return (e&131068)>>2}function kc(e,t){return e&-131069|t<<2}function lC(e){return (e&1)===1}function yu(e){return e|1}function dC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=xn$3(s),c=dr$1(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Wn$3(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=xn$3(e[a+1]);e[r+1]=Qi$1(p,a),p!==0&&(e[p+1]=kc(e[p+1],r)),e[a+1]=uC(e[a+1],r);}else e[r+1]=Qi$1(a,0),a!==0&&(e[a+1]=kc(e[a+1],r)),a=r;else e[r+1]=Qi$1(c,0),a===0?a=r:e[c+1]=kc(e[c+1],r),c=r;u&&(e[r+1]=mu(e[r+1])),hp(e,l,r,true),hp(e,l,r,false),fC(t,l,e,r,i),s=Qi$1(a,c),i?t.classBindings=s:t.styleBindings=s;}function fC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Wn$3(i,t)>=0&&(n[r+1]=yu(n[r+1]));}function hp(e,t,n,r){let o=e[n+1],i=t===null,s=r?xn$3(o):dr$1(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];pC(c,t)&&(a=true,e[s+1]=r?yu(u):mu(u)),s=r?xn$3(u):dr$1(u);}a&&(e[n+1]=r?mu(o):yu(o));}function pC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Wn$3(e,t)>=0:false}var Ue$2={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hC(e){return e.substring(Ue$2.key,Ue$2.keyEnd)}function gC(e){return mC(e),Cg(e,Tg(e,0,Ue$2.textEnd))}function Cg(e,t){let n=Ue$2.textEnd;return n===t?-1:(t=Ue$2.keyEnd=yC(e,Ue$2.key=t,n),Tg(e,t,n))}function mC(e){Ue$2.key=0,Ue$2.keyEnd=0,Ue$2.value=0,Ue$2.valueEnd=0,Ue$2.textEnd=e.length;}function Tg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function yC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function bg(e,t,n){return _g(e,t,n,false),bg}function Sg(e,t){return _g(e,t,null,true),Sg}function vC(e){EC(SC,DC,e,true);}function DC(e,t){for(let n=gC(t);n>=0;n=Cg(t,n))Mi$3(e,hC(t),true);}function _g(e,t,n,r){let o=v$1(),i=j$4(),s=Cn$3(2);if(i.firstUpdatePass&&Ng(i,e,s,r),t!==Q$1&&we$2(o,s,t)){let a=i.data[Ee$3()];xg(i,a,o,o[L$3],e,o[s+1]=MC(t,n),r,s);}}function EC(e,t,n,r){let o=j$4(),i=Cn$3(2);o.firstUpdatePass&&Ng(o,null,i,r);let s=v$1();if(n!==Q$1&&we$2(s,i,n)){let a=o.data[Ee$3()];if(Ag(a,r)&&!Mg(o,i)){let c=a.classesWithoutHost;c!==null&&(n=wi$3(c,n||"")),gu(o,a,s,n,r);}else _C(o,a,s,s[L$3],s[i+1],s[i+1]=bC(e,t,n),r,i);}}function Mg(e,t){return t>=e.expandoStartIndex}function Ng(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ee$3()],s=Mg(e,n);Ag(i,r)&&t===null&&!s&&(t=false),t=IC(o,i,t,r),dC(o,i,t,n,s,r);}}function IC(e,t,n,r){let o=Df(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Fc(null,e,t,n,r),n=fo$1(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Fc(o,e,t,n,r),i===null){let c=wC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Fc(null,e,t,c[1],r),c=fo$1(c,t.attrs,r),CC(e,t,r,c));}else i=TC(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function wC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(dr$1(r)!==0)return e[xn$3(r)]}function CC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[xn$3(o)]=r;}function TC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=fo$1(r,s,n);}return fo$1(r,t.attrs,n)}function Fc(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=fo$1(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function fo$1(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Mi$3(e,s,n?true:t[++i]));}return e===void 0?null:e}function bC(e,t,n){if(n==null||n==="")return ie$2;let r=[],o=Te$1(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],true);else if(o instanceof Set)for(let i of o)e(r,i,true);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function SC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Mi$3(e,r,n);}function _C(e,t,n,r,o,i,s,a){o===Q$1&&(o=ie$2);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=u<i.length?i[u+1]:void 0,h=null,y;l===d?(c+=2,u+=2,p!==f&&(h=d,y=f)):d===null||l!==null&&l<d?(c+=2,h=l):(u+=2,h=d,y=f),h!==null&&xg(e,t,n,r,h,y,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function xg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=lC(u)?gp(c,t,n,o,dr$1(u),s):void 0;if(!Es$1(l)){Es$1(i)||cC(u)&&(i=gp(c,null,n,o,a,s));let d=ic(Ee$3(),n);FE(r,s,d,o,i);}}function gp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,p=n[o+1];p===Q$1&&(p=d?ie$2:void 0);let f=d?Ni$3(p,r):l===r?p:void 0;if(u&&!Es$1(f)&&(f=Ni$3(c,r)),Es$1(f)&&(a=f,s))return a;let h=e[o+1];o=s?xn$3(h):dr$1(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ni$3(c,r));}return a}function Es$1(e){return e!==void 0}function MC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=jr(Te$1(e)))),e}function Ag(e,t){return (e.flags&(t?8:16))!==0}function NC(e,t=""){let n=v$1(),r=j$4(),o=e+H$1,i=r.firstCreatePass?pr$1(r,o,1,t,null):r.data[o],s=xC(r,n,i,t);n[o]=s,Hi$1()&&ju(r,n,s,i),Jn$2(i,false);}var xC=(e,t,n,r)=>(Zr(true),zD(t[L$3],r));function Rg(e,t,n,r=""){return we$2(e,Gt$1(),n)?t+Z$1(n)+r:Q$1}function AC(e,t,n,r,o,i=""){let s=Wr(),a=uo$1(e,s,n,o);return Cn$3(2),a?t+Z$1(n)+r+Z$1(o)+i:Q$1}function RC(e,t,n,r,o,i,s,a,c,u=""){let l=Wr(),d=Ku(e,l,n,o,s,c);return Cn$3(4),d?t+Z$1(n)+r+Z$1(o)+i+Z$1(s)+a+Z$1(c)+u:Q$1}function OC(e,t,n,r,o,i,s,a,c,u,l,d=""){let p=Wr(),f=Ku(e,p,n,o,s,c);return f=we$2(e,p+4,l)||f,Cn$3(5),f?t+Z$1(n)+r+Z$1(o)+i+Z$1(s)+a+Z$1(c)+u+Z$1(l)+d:Q$1}function kC(e,t,n,r,o,i,s,a,c,u,l,d,p,f=""){let h=Wr(),y=Ku(e,h,n,o,s,c);return y=uo$1(e,h+4,l,p)||y,Cn$3(6),y?t+Z$1(n)+r+Z$1(o)+i+Z$1(s)+a+Z$1(c)+u+Z$1(l)+d+Z$1(p)+f:Q$1}function Og(e){return vl("",e),Og}function vl(e,t,n){let r=v$1(),o=Rg(r,e,t,n);return o!==Q$1&&Eo$1(r,Ee$3(),o),vl}function kg(e,t,n,r,o){let i=v$1(),s=AC(i,e,t,n,r,o);return s!==Q$1&&Eo$1(i,Ee$3(),s),kg}function Fg(e,t,n,r,o,i,s,a,c){let u=v$1(),l=RC(u,e,t,n,r,o,i,s,a,c);return l!==Q$1&&Eo$1(u,Ee$3(),l),Fg}function Pg(e,t,n,r,o,i,s,a,c,u,l){let d=v$1(),p=OC(d,e,t,n,r,o,i,s,a,c,u,l);return p!==Q$1&&Eo$1(d,Ee$3(),p),Pg}function Lg(e,t,n,r,o,i,s,a,c,u,l,d,p){let f=v$1(),h=kC(f,e,t,n,r,o,i,s,a,c,u,l,d,p);return h!==Q$1&&Eo$1(f,Ee$3(),h),Lg}function Eo$1(e,t,n){let r=ic(t,e);GD(e[L$3],r,n);}function jg(e,t,n){Wi$1(t)&&(t=t());let r=v$1(),o=Gt$1();if(we$2(r,o,t)){j$4();let s=tr$1();Dh(s,r,e,t,r[L$3],n);}return jg}function FC(e,t){let n=Wi$1(e);return n&&e.set(t),n}function Bg(e,t){let n=v$1(),r=j$4(),o=X$2();return vg(r,n,n[L$3],o,e,t),Bg}function PC(e,t,n=""){return Rg(v$1(),e,t,n)}function mp(e,t,n){let r=j$4();r.firstCreatePass&&Vg(t,r.data,r.blueprint,rt$2(e),n);}function Vg(e,t,n,r,o){if(e=re$3(e),Array.isArray(e))for(let i=0;i<e.length;i++)Vg(e[i],t,n,r,o);else {let i=j$4(),s=v$1(),a=X$2(),c=hn$2(e)?e:re$3(e.provide),u=Ja(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(hn$2(e)||!e.multi){let f=new bn$2(u,o,ze$2,null),h=Lc(c,t,l+p,d);h===-1?(Vc(is(a,s),i,c),Pc(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(f),s.push(f)):(n[h]=f,s[h]=f);}else {let f=Lc(c,t,l+p,d),h=Lc(c,t,l,l+p),y=f>=0&&n[f],D=h>=0&&n[h];if(!y){Vc(is(a,s),i,c);let _=BC(LC,n.length,o,r,u);D&&(n[h].providerFactory=_),Pc(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(_),s.push(_);}else {let _=Hg(n[f],u,r);Pc(i,e,f>-1?f:h,_);}r&&D&&n[h].componentProviders++;}}}function Pc(e,t,n,r){let o=hn$2(t),i=Jd(t);if(o||i){let c=(i?re$3(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c);}else u.push(n,c);}}}function Hg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Lc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function LC(e,t,n,r,o){return vu(this.multi,[])}function vu(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function BC(e,t,n,r,o,i){let s=new bn$2(e,n,ze$2,null);return s.multi=[],s.index=t,s.componentProviders=0,Hg(s,o,r&&!n),s}function VC(e,t){return n=>{n.providersResolver=(r,o)=>mp(r,o?o(e):e,false);}}function HC(e,t){let n=er$1()+e,r=v$1();return r[n]===Q$1?Qu(r,n,t()):TI(r,n)}function UC(e,t,n){return $g(v$1(),er$1(),e,t,n)}function $C(e,t,n,r){return zg(v$1(),er$1(),e,t,n,r)}function Ug(e,t){let n=e[t];return n===Q$1?void 0:n}function $g(e,t,n,r,o,i){let s=t+n;return we$2(e,s,o)?Qu(e,s+1,i?r.call(i,o):r(o)):Ug(e,s+1)}function zg(e,t,n,r,o,i,s){let a=t+n;return uo$1(e,a,o,i)?Qu(e,a+2,s?r.call(s,o,i):r(o,i)):Ug(e,a+2)}function zC(e,t){let n=j$4(),r,o=e+H$1;n.firstCreatePass?(r=GC(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Bt$1(r.type)),a=fe$5(ze$2);try{let c=os(!1),u=i();return os(c),sc(n,v$1(),o,u),u}finally{fe$5(a);}}function GC(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function WC(e,t,n){let r=e+H$1,o=v$1(),i=Ri$3(o,r);return Gg(o,r)?$g(o,er$1(),t,i.transform,n,i):i.transform(n)}function qC(e,t,n,r){let o=e+H$1,i=v$1(),s=Ri$3(i,o);return Gg(i,o)?zg(i,er$1(),t,s.transform,n,r,s):s.transform(n,r)}function Gg(e,t){return e[E].data[t].pure}function ZC(e,t){return As$1(e,t)}var Wg=(()=>{class e{applicationErrorHandler=g(ot$2);appRef=g(mr$1);taskService=g(qt$1);ngZone=g(G$2);zonelessEnabled=g(rr$1);tracing=g(ct$1,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new ee$5;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Pr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(zi$2,{optional:true})??false);cancelScheduledCallback=null;useMicrotaskScheduler=false;runningTick=false;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n);})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup();}));}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=true,queueMicrotask(()=>{this.useMicrotaskScheduler=false,this.taskService.remove(n);});});}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8;}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Mf:Tc;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()));}shouldScheduleTick(){return !(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Pr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(r){this.applicationErrorHandler(r);}finally{this.taskService.remove(n),this.cleanup();}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=false,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n);}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();function qg(){return [{provide:je$3,useExisting:Wg},{provide:G$2,useClass:Lr},{provide:rr$1,useValue:true}]}var YC=(()=>{class e{compileModuleSync(n){return new ms(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();function QC(){return typeof $localize<"u"&&$localize.locale||Do$1}var yr$1=new T$4("",{factory:()=>g(yr$1,{optional:true,skipSelf:true})||QC()});var Io$1=class Io{destroyed=false;listeners=null;errorHandler=g(Se$2,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=g(Ie$2);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new m$2(953,false);return (this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=true,this.listeners[n]=null):this.listeners.splice(n,1));}}}emit(t){if(this.destroyed){console.warn(Xe(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=I(null);try{for(let r of this.listeners)try{r!==null&&r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{this.hasNullListeners&&(this.hasNullListeners=false,this.listeners&&KC(this.listeners)),I(n),this.isEmitting=false;}}};function KC(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function XC(e,t){return Ar$1(e,t?.equal)}function wo$1(e){return kd(e)}var JC=e=>e;function eT(e,t){if(typeof e=="function"){let n=_a(e,JC,t?.equal);return Zg(n)}else {let n=_a(e.source,e.computation,e.equal);return Zg(n,e.debugName)}}function Zg(e,t){let n=e[q$1],r=e;return r.set=o=>Rd(n,o),r.update=o=>Od(n,o),r.asReadonly=Yr.bind(e),r}var Fs$1=Symbol("InputSignalNode#UNSET"),rm=x$1(w$1({},Rr$1),{transformFn:void 0,applyValueToInputSignal(e,t){jt$2(e,t);}});function om(e,t){let n=Object.create(rm);n.value=e,n.transformFn=t?.transform;function r(){if(gt$3(n),n.value===Fs$1){let o=null;throw new m$2(-950,o)}return n.value}return r[q$1]=n,r}var Yg=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>Iu(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function bB(e){return pT(e)?e.default:e}function pT(e){return e&&typeof e=="object"&&"default"in e}function SB(e){return new Io$1}function Qg(e,t){return om(e,t)}function hT(e){return om(Fs$1,e)}var _B=(Qg.required=hT,Qg);function im(e,t){let n=Object.create(rm),r=new Io$1;n.value=e;function o(){return gt$3(n),Kg(n.value),n.value}return o[q$1]=n,o.asReadonly=Yr.bind(o),o.set=i=>{n.equal(n.value,i)||(jt$2(n,i),r.emit(i));},o.update=i=>{Kg(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function Kg(e){if(e===Fs$1)throw new m$2(952,false)}function Xg(e,t){return im(e)}function gT(e){return im(Fs$1)}var MB=(Xg.required=gT,Xg);function Jg(e,t){return ol()}function mT(e,t){return il()}var NB=(Jg.required=mT,Jg);function xB(e,t){return Qh()}function em(e,t){return ol()}function yT(e,t){return il()}var AB=(em.required=yT,em);var sm=(()=>{class e{static __NG_ELEMENT_ID__=DT}return e})();function DT(e){return ET(X$2(),v$1(),(e&16)===16)}function ET(e,t,n){if(Tt$3(e)&&!n){let r=Re$3(e.index,t);return new Qt$2(r,r)}else if(e.type&175){let r=t[ae$3];return new Qt$2(r,t)}return null}var IT=(()=>{class e{zone=g(G$2);changeDetectionScheduler=g(je$3);applicationRef=g(mr$1);applicationErrorHandler=g(ot$2);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick();}catch(n){this.applicationErrorHandler(n);}});}}));}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})(),wT=new T$4("",{factory:()=>false});function CT({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new G$2(x$1(w$1({},am()),{scheduleInRootZone:t})),[{provide:rr$1,useValue:false},{provide:G$2,useFactory:e},{provide:It$2,multi:true,useFactory:()=>{let n=g(IT,{optional:true});return ()=>n.initialize()}},{provide:It$2,multi:true,useFactory:()=>{let n=g(TT);return ()=>{n.initialize();}}},{provide:zi$2,useValue:t??Cc}]}function OB(e){let t=e?.scheduleInRootZone,n=CT({ngZoneFactory:()=>{let r=am(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&ut$2("NgZone_CoalesceEvent"),new G$2(r)},scheduleInRootZone:t});return wt$3([{provide:wT,useValue:true},n])}function am(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var TT=(()=>{class e{subscription=new ee$5;initialized=false;zone=g(G$2);pendingTasks=g(qt$1);initialize(){if(this.initialized)return;this.initialized=true;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(()=>{G$2.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G$2.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();var El=new T$4(""),bT=new T$4("");function Co$1(e){return !e.moduleRef}function ST(e){let t=Co$1(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G$2);return n.run(()=>{Co$1(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ot$2),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),Co$1(e)){let i=()=>t.destroy(),s=e.platformInjector.get(El);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(El);s.add(i),e.moduleRef.onDestroy(()=>{oo$1(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return MT(r,n,()=>{let i=t.get(qt$1),s=i.add(),a=t.get(ul);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(yr$1,Do$1);if(gg(c||Do$1),!t.get(bT,!0))return Co$1(e)?t.get(mr$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Co$1(e)){let l=t.get(mr$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return _T?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var _T;function MT(e,t,n){try{let r=n();return Rs$1(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ks$1=null;function NT(e=[],t){return he$4.create({name:t,providers:[{provide:$r,useValue:"platform"},{provide:El,useValue:new Set([()=>ks$1=null])},...e]})}function xT(e=[]){if(ks$1)return ks$1;let t=NT(e);return ks$1=t,ag(),AT(t),t}function AT(e){let t=e.get($i$1,null);Zn$3(e,()=>{t?.forEach(n=>n());});}function cm(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;F$4(O$2.BootstrapApplicationStart);try{let i=o?.injector??xT(r),s=[qg(),xf,...n||[]],a=new lo$1({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return ST({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{F$4(O$2.BootstrapApplicationEnd);}}function RT(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function OT(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Dl=Symbol("NOT_SET"),um=new Set,kT=x$1(w$1({},Rr$1),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:Dl,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=true;}this.sequence.scheduler.notify(7);},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=false,this.value!==Dl&&!Hn$3(this))return this.signal;try{for(let o of this.cleanup??um)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=mt$4(this),r;try{r=this.userFn.apply(null,t);}finally{Pt$3(this,n);}return (this.value===Dl||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Il=class extends so$1{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(t,n,r,o,i,s=null){super(t,[void 0,void 0,void 0,void 0],r,false,i.get(Ie$2),s),this.scheduler=o;for(let a of ku){let c=n[a];if(c===void 0)continue;let u=Object.create(kT);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(gt$3(u),u.value),u.signal[q$1]=u,u.registerCleanupFn=l=>(u.cleanup??=new Set).add(l),this.nodes[a]=u,this.hooks[a]=l=>u.phaseFn(l);}}afterRun(){super.afterRun(),this.lastPhase=null;}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??um)n();}finally{Lt$2(t);}}};function kB(e,t){let n=g(he$4),r=n.get(je$3),o=n.get(bs$1),i=n.get(ct$1,null,{optional:true});o.impl??=n.get(Fu);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(nr$1,null,{optional:true}),c=new Il(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function FB(e,t){let n=Et$2(e),r=t.elementInjector||qn$3();return new Mn$4(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function PB(e){let t=Et$2(e);if(!t)return null;let n=new Mn$4(t);return {get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var lm=null;function _t$4(){return lm}function wl(e){lm??=e;}var To$1=class To{},Kt$2=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>g(dm),providedIn:"platform"})}return e})(),FT=new T$4(""),dm=(()=>{class e extends Kt$2{_location;_history;_doc=g(U$5);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return _t$4().getBaseHref(this._doc)}onPopState(n){let r=_t$4().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=_t$4().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,false),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n;}pushState(n,r,o){this._history.pushState(n,r,o);}replaceState(n,r,o){this._history.replaceState(n,r,o);}forward(){this._history.forward();}back(){this._history.back();}historyGo(n=0){this._history.go(n);}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Ps$1(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function fm(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Ge$3(e){return e&&e[0]!=="?"?`?${e}`:e}var vr$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>g(hm),providedIn:"root"})}return e})(),Ls$1=new T$4(""),hm=(()=>{class e extends vr$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(U$5).location?.origin??"";}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n));}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Ps$1(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+Ge$3(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$3(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$3(i));this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static \u0275fac=function(r){return new(r||e)(b$2(Kt$2),b$2(Ls$1,8))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var gm=(()=>{class e{_subject=new le$4;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=jT(fm(pm(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(true),pop:true,state:o.state,type:o.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(n=false){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Ge$3(r))}normalize(n){return e.stripTrailingSlash(LT(this._basePath,pm(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ge$3(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ge$3(r)),o);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(n=0){this._locationStrategy.historyGo?.(n);}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state);}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r));}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Ge$3;static joinWithSlash=Ps$1;static stripTrailingSlash=fm;static \u0275fac=function(r){return new(r||e)(b$2(vr$1))};static \u0275prov=x({token:e,factory:()=>PT(),providedIn:"root"})}return e})();function PT(){return new gm(b$2(vr$1))}function LT(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function pm(e){return e.replace(/\/index\.html$/,"")}function jT(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var BT=(()=>{class e extends vr$1{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,r!=null&&(this._baseHref=r);}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n));}getBaseHref(){return this._baseHref}path(n=false){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Ps$1(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$3(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$3(i))||this._platformLocation.pathname;this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static \u0275fac=function(r){return new(r||e)(b$2(Kt$2),b$2(Ls$1,8))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();var Ml=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Ml||{});var ce$1=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(ce$1||{}),B$2=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(B$2||{}),me$3=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(me$3||{}),ye$4={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function vm(e){return ge$5(e)[K$4.LocaleId]}function Dm(e,t,n){let r=ge$5(e),o=[r[K$4.DayPeriodsFormat],r[K$4.DayPeriodsStandalone]],i=ke$4(o,t);return ke$4(i,n)}function Em(e,t,n){let r=ge$5(e),o=[r[K$4.DaysFormat],r[K$4.DaysStandalone]],i=ke$4(o,t);return ke$4(i,n)}function Im(e,t,n){let r=ge$5(e),o=[r[K$4.MonthsFormat],r[K$4.MonthsStandalone]],i=ke$4(o,t);return ke$4(i,n)}function wm(e,t){let r=ge$5(e)[K$4.Eras];return ke$4(r,t)}function bo$1(e,t){let n=ge$5(e);return ke$4(n[K$4.DateFormat],t)}function So$1(e,t){let n=ge$5(e);return ke$4(n[K$4.TimeFormat],t)}function _o$1(e,t){let r=ge$5(e)[K$4.DateTimeFormat];return ke$4(r,t)}function lt$2(e,t){let n=ge$5(e),r=n[K$4.NumberSymbols][t];if(typeof r>"u"){if(t===ye$4.CurrencyDecimal)return n[K$4.NumberSymbols][ye$4.Decimal];if(t===ye$4.CurrencyGroup)return n[K$4.NumberSymbols][ye$4.Group]}return r}function Cm(e,t){return ge$5(e)[K$4.NumberFormats][t]}function Tm(e){if(!e[K$4.ExtraData])throw new m$2(2303,false)}function bm(e){let t=ge$5(e);return Tm(t),(t[K$4.ExtraData][2]||[]).map(r=>typeof r=="string"?Cl(r):[Cl(r[0]),Cl(r[1])])}function Sm(e,t,n){let r=ge$5(e);Tm(r);let o=[r[K$4.ExtraData][0],r[K$4.ExtraData][1]],i=ke$4(o,t)||[];return ke$4(i,n)||[]}function ke$4(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new m$2(2304,false)}function Cl(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var VT=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,js$1=Object.create(null),HT=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,UT=256;function _m(e,t,n,r){let o=XT(e);$T(t),t=Mt$2(n,t)||t;let s=[],a;for(;t;)if(a=HT.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l;}else {s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Nm(r,c),o=KT(o,r));let u="";return s.forEach(l=>{let d=YT(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function $T(e){if(e.length>UT)throw new m$2(2300,false)}function $s$1(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Mt$2(e,t){let n=vm(e);if(js$1[n]??=Object.create(null),js$1[n][t])return js$1[n][t];let r="";switch(t){case "shortDate":r=bo$1(e,me$3.Short);break;case "mediumDate":r=bo$1(e,me$3.Medium);break;case "longDate":r=bo$1(e,me$3.Long);break;case "fullDate":r=bo$1(e,me$3.Full);break;case "shortTime":r=So$1(e,me$3.Short);break;case "mediumTime":r=So$1(e,me$3.Medium);break;case "longTime":r=So$1(e,me$3.Long);break;case "fullTime":r=So$1(e,me$3.Full);break;case "short":let o=Mt$2(e,"shortTime"),i=Mt$2(e,"shortDate");r=Bs$1(_o$1(e,me$3.Short),[o,i]);break;case "medium":let s=Mt$2(e,"mediumTime"),a=Mt$2(e,"mediumDate");r=Bs$1(_o$1(e,me$3.Medium),[s,a]);break;case "long":let c=Mt$2(e,"longTime"),u=Mt$2(e,"longDate");r=Bs$1(_o$1(e,me$3.Long),[c,u]);break;case "full":let l=Mt$2(e,"fullTime"),d=Mt$2(e,"fullDate");r=Bs$1(_o$1(e,me$3.Full),[l,d]);break}return r&&(js$1[n][t]=r),r}function Bs$1(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function We$2(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function zT(e,t){return We$2(e,3).substring(0,t)}function J$2(e,t,n=0,r=false,o=false){return function(i,s){let a=GT(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return zT(a,t);let c=lt$2(s,ye$4.MinusSign);return We$2(a,t,c,r,o)}}function GT(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new m$2(2301,false)}}function V$2(e,t,n=ce$1.Format,r=false){return function(o,i){return WT(o,i,e,t,n,r)}}function WT(e,t,n,r,o,i){switch(n){case 2:return Im(t,o,r)[e.getMonth()];case 1:return Em(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=bm(t),l=Sm(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,y=s>=f.hours&&a>=f.minutes,D=s<h.hours||s===h.hours&&a<h.minutes;if(f.hours<h.hours){if(y&&D)return true}else if(y||D)return true}else if(p.hours===s&&p.minutes===a)return true;return false});if(d!==-1)return l[d]}return Dm(t,o,r)[s<12?0:1];case 3:return wm(t,r)[e.getFullYear()<=0?0:1];default:throw new m$2(2302,false)}}function Vs$1(e){return function(t,n,r){let o=-1*r,i=lt$2(n,ye$4.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+We$2(s,2,i)+We$2(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+We$2(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+We$2(s,2,i)+":"+We$2(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+We$2(s,2,i)+":"+We$2(Math.abs(o%60),2,i);default:throw new m$2(2310,false)}}}var qT=0,Us$1=4;function ZT(e){let t=$s$1(e,qT,1).getDay();return $s$1(e,0,1+(t<=Us$1?Us$1:Us$1+7)-t)}function Mm(e){let t=e.getDay(),n=t===0?-3:Us$1-t;return $s$1(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Tl(e,t=false){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7);}else {let i=Mm(n),s=ZT(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return We$2(o,e,lt$2(r,ye$4.MinusSign))}}function Hs$1(e,t=false){return function(n,r){let i=Mm(n).getFullYear();return We$2(i,e,lt$2(r,ye$4.MinusSign),t)}}var bl=Object.create(null);function YT(e){if(bl[e])return bl[e];let t;switch(e){case "G":case "GG":case "GGG":t=V$2(3,B$2.Abbreviated);break;case "GGGG":t=V$2(3,B$2.Wide);break;case "GGGGG":t=V$2(3,B$2.Narrow);break;case "y":t=J$2(0,1,0,false,true);break;case "yy":t=J$2(0,2,0,true,true);break;case "yyy":t=J$2(0,3,0,false,true);break;case "yyyy":t=J$2(0,4,0,false,true);break;case "Y":t=Hs$1(1);break;case "YY":t=Hs$1(2,true);break;case "YYY":t=Hs$1(3);break;case "YYYY":t=Hs$1(4);break;case "M":case "L":t=J$2(1,1,1);break;case "MM":case "LL":t=J$2(1,2,1);break;case "MMM":t=V$2(2,B$2.Abbreviated);break;case "MMMM":t=V$2(2,B$2.Wide);break;case "MMMMM":t=V$2(2,B$2.Narrow);break;case "LLL":t=V$2(2,B$2.Abbreviated,ce$1.Standalone);break;case "LLLL":t=V$2(2,B$2.Wide,ce$1.Standalone);break;case "LLLLL":t=V$2(2,B$2.Narrow,ce$1.Standalone);break;case "w":t=Tl(1);break;case "ww":t=Tl(2);break;case "W":t=Tl(1,true);break;case "d":t=J$2(2,1);break;case "dd":t=J$2(2,2);break;case "c":case "cc":t=J$2(7,1);break;case "ccc":t=V$2(1,B$2.Abbreviated,ce$1.Standalone);break;case "cccc":t=V$2(1,B$2.Wide,ce$1.Standalone);break;case "ccccc":t=V$2(1,B$2.Narrow,ce$1.Standalone);break;case "cccccc":t=V$2(1,B$2.Short,ce$1.Standalone);break;case "E":case "EE":case "EEE":t=V$2(1,B$2.Abbreviated);break;case "EEEE":t=V$2(1,B$2.Wide);break;case "EEEEE":t=V$2(1,B$2.Narrow);break;case "EEEEEE":t=V$2(1,B$2.Short);break;case "a":case "aa":case "aaa":t=V$2(0,B$2.Abbreviated);break;case "aaaa":t=V$2(0,B$2.Wide);break;case "aaaaa":t=V$2(0,B$2.Narrow);break;case "b":case "bb":case "bbb":t=V$2(0,B$2.Abbreviated,ce$1.Standalone,true);break;case "bbbb":t=V$2(0,B$2.Wide,ce$1.Standalone,true);break;case "bbbbb":t=V$2(0,B$2.Narrow,ce$1.Standalone,true);break;case "B":case "BB":case "BBB":t=V$2(0,B$2.Abbreviated,ce$1.Format,true);break;case "BBBB":t=V$2(0,B$2.Wide,ce$1.Format,true);break;case "BBBBB":t=V$2(0,B$2.Narrow,ce$1.Format,true);break;case "h":t=J$2(3,1,-12);break;case "hh":t=J$2(3,2,-12);break;case "H":t=J$2(3,1);break;case "HH":t=J$2(3,2);break;case "m":t=J$2(4,1);break;case "mm":t=J$2(4,2);break;case "s":t=J$2(5,1);break;case "ss":t=J$2(5,2);break;case "S":t=J$2(6,1);break;case "SS":t=J$2(6,2);break;case "SSS":t=J$2(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Vs$1(0);break;case "ZZZZZ":t=Vs$1(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Vs$1(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Vs$1(2);break;default:return null}return bl[e]=t,t}function Nm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function QT(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function KT(e,t,n){let o=e.getTimezoneOffset(),i=Nm(t,o);return QT(e,-1*(i-o))}function XT(e){if(mm(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return $s$1(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(VT))return JT(r)}let t=new Date(e);if(!mm(t))throw new m$2(2311,false);return t}function JT(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function mm(e){return e instanceof Date&&!isNaN(e.valueOf())}var eb=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ym=22,zs$1=".",Mo$2="0",tb=";",nb=",",Sl="#";function rb(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=lt$2(n,ye$4.Infinity);else {let u=sb(e);s&&(u=ib(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let $=i.match(eb);if($===null)throw new m$2(2306,false);let be=$[1],qe=$[3],At=$[5];be!=null&&(l=_l(be)),qe!=null&&(d=_l(qe)),At!=null?p=_l(At):qe!=null&&d>p&&(p=d);let Fe=100;if(l>Fe||d>Fe||p>Fe)throw new m$2(2306,false)}ab(u,d,p);let f=u.digits,h=u.integerLen,y=u.exponent,D=[];for(c=f.every($=>!$);h<l;h++)f.unshift(0);for(;h<0;h++)f.unshift(0);h>0?D=f.splice(h,f.length):(D=f,f=[0]);let _=[];for(f.length>=t.lgSize&&_.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)_.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&_.unshift(f.join("")),a=_.join(lt$2(n,r)),D.length&&(a+=lt$2(n,o)+D.join("")),y&&(a+=lt$2(n,ye$4.Exponential)+"+"+y);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function xm(e,t,n){let r=Cm(t,Ml.Decimal),o=ob(r,lt$2(t,ye$4.MinusSign));return rb(e,o,t,ye$4.Group,ye$4.Decimal,n)}function ob(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(tb),o=r[0],i=r[1],s=o.indexOf(zs$1)!==-1?o.split(zs$1):[o.substring(0,o.lastIndexOf(Mo$2)+1),o.substring(o.lastIndexOf(Mo$2)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(Sl));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Mo$2?n.minFrac=n.maxFrac=l+1:d===Sl?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(nb);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){let l=o.length-n.posPre.length-n.posSuf.length,d=i.indexOf(Sl);n.negPre=i.substring(0,d).replace(/'/g,""),n.negSuf=i.slice(d+l).replace(/'/g,"");}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function ib(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function sb(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(zs$1))>-1&&(t=t.replace(zs$1,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===Mo$2;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===Mo$2;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>ym&&(r=r.splice(0,ym-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function ab(e,t,n){if(t>n)throw new m$2(2307,false);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0;}else {o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0;}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++;}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=t+e.integerLen,l=r.reduceRight(function(d,p,f,h){return p=p+d,h[f]=p<10?p:p-10,c&&(h[f]===0&&f>=u?h.pop():c=false),p>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function _l(e){let t=parseInt(e);if(isNaN(t))throw new m$2(2305,false);return t}var cb=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g(he$4);constructor(n){this._viewContainerRef=n;}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return !!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):false,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(ze$2(hr$1))};static \u0275dir=al({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Du]})}return e})();function Nl(e,t){return new m$2(2100,false)}var ub=(()=>{class e{transform(n){return n==null?null:(lb(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=gr$1({name:"lowercase",type:e,pure:true})}return e})();function lb(e,t){if(typeof t!="string")throw Nl()}var db="mediumDate",Am=new T$4(""),Rm=new T$4(""),fb=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o;}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??db,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return _m(n,s,i||this.locale,a)}catch(s){throw Nl(e,s.message)}}static \u0275fac=function(r){return new(r||e)(ze$2(yr$1,16),ze$2(Am,24),ze$2(Rm,24))};static \u0275pipe=gr$1({name:"date",type:e,pure:true})}return e})();var pb=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=gr$1({name:"json",type:e,pure:false})}return e})();var hb=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!gb(n))return null;o||=this._locale;try{let i=mb(n);return xm(i,o,r)}catch(i){throw Nl(e,i.message)}}static \u0275fac=function(r){return new(r||e)(ze$2(yr$1,16))};static \u0275pipe=gr$1({name:"number",type:e,pure:true})}return e})();function gb(e){return !(e==null||e===""||e!==e)}function mb(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new m$2(2309,false);return e}function No$1(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Al="browser";function s2(e){return e===Al}var a2=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new xl(g(U$5),window)})}return e})(),xl=class{document;window;offset=()=>[0,0];constructor(t,n){this.document=t,this.window=n;}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t;}getScrollPosition(){return [this.window.scrollX,this.window.scrollY]}scrollToPosition(t,n){this.window.scrollTo(x$1(w$1({},n),{left:t[0],top:t[1]}));}scrollToAnchor(t,n){let r=Eb(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch(n){console.warn(Xe(2400,false));}}scrollToElement(t,n){let r=t.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(x$1(w$1({},n),{left:o-s[0],top:i-s[1]}));}};function Eb(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${CSS.escape(t)}"]`);if(s)return s}o=r.nextNode();}}return null}var xo$1=class xo{_doc;constructor(t){this._doc=t;}manager},Gs$1=(()=>{class e extends xo$1{constructor(n){super(n);}supports(n){return true}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(b$2(U$5))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Zs$1=new T$4(""),Fl=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this;});let o=n.filter(s=>!(s instanceof Gs$1));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Gs$1);i&&this._plugins.push(i);}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}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 m$2(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(b$2(Zs$1),b$2(G$2))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Rl="ng-app-id";function Om(e){for(let t of e)t.remove();}function km(e,t){let n=t.createElement("style");return n.textContent=e,n}function Ib(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Rl}="${t}"],link[${Rl}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(Rl),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]});return true}function kl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Pl=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,Ib(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,km);r?.forEach(o=>this.addUsage(o,this.external,kl));}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external));}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))});}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Om(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])Om(n);this.hosts.clear();}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,km(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,kl(r,this.doc)));}}removeHost(n){this.hosts.delete(n);for(let r of [...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o;}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(b$2(U$5),b$2(Qr),b$2(Xr,8),b$2(Kr))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Ol$1={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"},Ll=/%COMP%/g;var Pm="%COMP%",wb=`_nghost-${Pm}`,Cb=`_ngcontent-${Pm}`,Tb=true,bb=new T$4("",{factory:()=>Tb});function Sb(e){return Cb.replace(Ll,e)}function _b(e){return wb.replace(Ll,e)}function Lm(e,t){return t.map(n=>n.replace(Ll,e))}var jl=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new Ao$1(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof qs$2?o.applyToHost(n):o instanceof Ro$1&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case $e$4.Emulated:i=new qs$2(c,u,r,this.appId,l,s,a,d);break;case $e$4.ShadowDom:return new Ws$1(c,n,r,s,a,this.nonce,d,u);case $e$4.ExperimentalIsolatedShadowDom:return new Ws$1(c,n,r,s,a,this.nonce,d);default:i=new Ro$1(c,u,r,l,s,a,d);break}o.set(r.id,i);}return i}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(n){this.rendererByCompId.delete(n);}static \u0275fac=function(r){return new(r||e)(b$2(Fl),b$2(Rn$3),b$2(Qr),b$2(bb),b$2(U$5),b$2(G$2),b$2(Xr),b$2(ct$1,8))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Ao$1=class Ao{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o;}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Ol$1[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Fm(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(Fm(t)?t.content:t).insertBefore(n,r);}removeChild(t,n){n.remove();}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new m$2(-5104,false);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;let i=Ol$1[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=Ol$1[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&(st$1.DashCase|st$1.Important)?t.style.setProperty(n,r,o&st$1.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&st$1.DashCase?t.style.removeProperty(n):t.style[n]="";}setProperty(t,n,r){t!=null&&(t[n]=r);}setValue(t,n){t.nodeValue=n;}listen(t,n,r,o){if(typeof t=="string"&&(t=_t$4().getGlobalEventTarget(this.doc,t),!t))throw new m$2(-5102,false);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===false&&n.preventDefault();}}};function Fm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ws$1=class Ws extends Ao$1{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Lm(r.id,u);for(let d of u){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=d,this.shadowRoot.appendChild(p);}let l=r.getExternalStyles?.();if(l)for(let d of l){let p=kl(d,o);s&&p.setAttribute("nonce",s),this.shadowRoot.appendChild(p);}}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&&this.sharedStylesHost.removeHost(this.shadowRoot);}},Ro$1=class Ro extends Ao$1{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?Lm(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Yt$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},qs$2=class qs extends Ro$1{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=Sb(u),this.hostAttr=_b(u);}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"");}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Ys$1=class e extends To$1{supportsDOMEvents=true;static makeCurrent(){wl(new e);}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o);}}dispatchEvent(t,n){t.dispatchEvent(n);}remove(t){t.remove();}createElement(t,n){return n=n||this.getDefaultDocument(),n.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 n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Mb();return n==null?null:Nb(n)}resetBaseElement(){Oo$1=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return No$1(document.cookie,t)}},Oo$1=null;function Mb(){return Oo$1=Oo$1||document.head.querySelector("base"),Oo$1?Oo$1.getAttribute("href"):null}function Nb(e){return new URL(e,document.baseURI).pathname}var jm=["alt","control","meta","shift"],xb={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ab={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Bm=(()=>{class e extends xo$1{constructor(n){super(n);}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_t$4().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),jm.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".");}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=xb[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?false:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),jm.forEach(s=>{if(s!==o){let a=Ab[s];a(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 n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(b$2(U$5))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function Rb(e,t,n){return B$3(this,null,function*(){let r=w$1({rootComponent:e},Ob(t,n));return cm(r)})}function Ob(e,t){return {platformRef:t?.platformRef,appProviders:[...jb,...e?.providers??[]],platformProviders:Lb}}function kb(){Ys$1.makeCurrent();}function Fb(){return new Se$2}function Pb(){return Cu(document),document}var Lb=[{provide:Kr,useValue:Al},{provide:$i$1,useValue:kb,multi:true},{provide:U$5,useFactory:Pb}];var jb=[{provide:$r,useValue:"root"},{provide:Se$2,useFactory:Fb},{provide:Zs$1,useClass:Gs$1,multi:true},{provide:Zs$1,useClass:Bm,multi:true},jl,{provide:Rn$3,useClass:Pl},{provide:Pl,useExisting:Rn$3},Fl,{provide:_n$3,useExisting:jl},[]];var xt$2=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
5
|
-
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i);}});}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(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();let 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 e?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){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case "a":case "s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case "d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else {let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s);}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n]);}setHeaderEntries(t,n){let 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)));}};var Ks$1=class Ks{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()}},Xs$1=class Xs{encodeKey(t){return Vm(t)}encodeValue(t){return Vm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Bb(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[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}var Vb=/%(\d[a-f0-9])/gi,Hb={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Vm(e){return encodeURIComponent(e).replace(Vb,(t,n)=>Hb[n]??t)}function Qs$1(e){return `${e}`}var Nt$3=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Xs$1,t.fromString){if(t.fromObject)throw new m$2(2805,false);this.map=Bb(t.fromString,this.encoder);}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Qs$1):[Qs$1(r)];this.map.set(n,o);})):this.map=null;}has(t){return this.init(),this.map.has(t)}get(t){this.init();let 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){let n=[];return Object.keys(t).forEach(r=>{let 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=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case "a":case "s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Qs$1(t.value)),this.map.set(t.param,n);break;case "d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Qs$1(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param);}else {this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null);}};function Ub(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function Hm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Um(e){return typeof Blob<"u"&&e instanceof Blob}function $m(e){return typeof FormData<"u"&&e instanceof FormData}function $b(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Bl="Content-Type",zm="Accept",Wm="text/plain",qm="application/json",zb=`${qm}, ${Wm}, */*`,Dr$1=class e{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(Ub(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new m$2(2822,"");this.timeout=i.timeout;}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache;}if(this.headers??=new xt$2,this.context??=new Ks$1,!this.params)this.params=new Nt$3,this.urlWithParams=n;else {let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else {let a=n,c="",u=n.indexOf("#");u!==-1&&(c=n.substring(u),a=n.substring(0,u));let l=a.indexOf("?"),d=l===-1?"?":l<a.length-1?"&":"";this.urlWithParams=a+d+s+c;}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Hm(this.body)||Um(this.body)||$m(this.body)||$b(this.body)?this.body:this.body instanceof Nt$3?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||$m(this.body)?null:Um(this.body)?this.body.type||null:Hm(this.body)?null:typeof this.body=="string"?Wm:this.body instanceof Nt$3?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?qm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,p=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,h=t.transferCache??this.transferCache,y=t.timeout??this.timeout,D=t.body!==void 0?t.body:this.body,_=t.withCredentials??this.withCredentials,$=t.reportProgress??this.reportProgress,be=t.reportUploadProgress??this.reportUploadProgress,qe=t.reportDownloadProgress??this.reportDownloadProgress,At=t.headers||this.headers,Fe=t.params||this.params,Fo=t.context??this.context;return t.setHeaders!==void 0&&(At=Object.keys(t.setHeaders).reduce((Fn,Xt)=>Fn.set(Xt,t.setHeaders[Xt]),At)),t.setParams&&(Fe=Object.keys(t.setParams).reduce((Fn,Xt)=>Fn.set(Xt,t.setParams[Xt]),Fe)),new e(n,r,D,{params:Fe,headers:At,context:Fo,reportProgress:$,reportUploadProgress:be,reportDownloadProgress:qe,responseType:o,withCredentials:_,transferCache:h,keepalive:i,cache:a,priority:s,timeout:y,mode:c,redirect:u,credentials:l,referrer:d,integrity:p,referrerPolicy:f})}},Er$1=(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})(Er$1||{}),Ir$1=class Ir{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new xt$2,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300;}},Js$1=class e extends Ir$1{constructor(t={}){super(t);}type=Er$1.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},ko$1=class e extends Ir$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=Er$1.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},kn$3=class kn extends Ir$1{name="HttpErrorResponse";message;error;ok=false;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null;}},Gb=200;var Wb=/^\)\]\}',?\n/,Zm=new T$4("",{factory:()=>null}),ea$1=(()=>{class e{fetchImpl=g(Hl,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=g(G$2);destroyRef=g(Ie$2);maxResponseSize=g(Zm);handle(n){return new R$2(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(Ul,s=>r.error(new kn$3({error:s})));let i;return n.timeout&&(i=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"));},n.timeout))),()=>{i!==void 0&&clearTimeout(i),o.abort();}})}doRequest(n,r,o){return B$3(this,null,function*(){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,w$1({signal:r},i)));qb(D),o.next({type:Er$1.Sent}),s=yield D;}catch(D){o.error(new kn$3({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let a=new xt$2(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,p=n.reportProgress||n.reportDownloadProgress;if(p&&o.next(new Js$1({headers:a,status:l,statusText:c,url:u})),s.body){let D=s.headers.get("content-length"),_=D!==null?Number(D):NaN;this.maxResponseSize!==null&&Number.isFinite(_)&&_>this.maxResponseSize&&Gm(this.maxResponseSize);let $=[],be=s.body.getReader(),qe=0,At,Fe,Fo=typeof Zone<"u"&&Zone.current,Fn=false;if(yield this.ngZone.runOutsideAngular(()=>B$3(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield be.cancel(),Fn=true;break}let{done:wr,value:na}=yield be.read();if(wr)break;if($.push(na),qe+=na.length,this.maxResponseSize!==null&&qe>this.maxResponseSize&&(yield be.cancel(),Gm(this.maxResponseSize)),p){Fe=n.responseType==="text"?(Fe??"")+(At??=new TextDecoder).decode(na,{stream:true}):void 0;let Gl=()=>o.next({type:Er$1.DownloadProgress,total:Number.isFinite(_)?_:void 0,loaded:qe,partialText:Fe});Fo?Fo.run(Gl):Gl();}}})),Fn){o.complete();return}let Xt=this.concatChunks($,qe);try{let wr=s.headers.get(Bl)??"";d=this.parseBody(n,Xt,wr,l);}catch(wr){o.error(new kn$3({error:wr,headers:new xt$2(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?Gb:0);let f=l>=200&&l<300,h=s.redirected,y=s.type;f?(o.next(new ko$1({body:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:y})),o.complete()):o.error(new kn$3({error:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:y}));})}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(Wb,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case "text":return new TextDecoder().decode(r);case "blob":return new Blob([r],{type:o});case "arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new m$2(2824,false);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(zm)||(r[zm]=zb),!n.headers.has(Bl)){let i=n.detectContentTypeHeader();i!==null&&(r[Bl]=i);}return {body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})(),Hl=class{};function Ul(){}function qb(e){e.then(Ul,Ul);}function Gm(e){throw new m$2(-2825,false)}function Zb(e,t){return t(e)}function Yb(e,t,n){return (r,o)=>Zn$3(n,()=>t(r,i=>e(i,o)))}var Ym=new T$4("",{factory:()=>[]}),Qm=new T$4(""),Km=new T$4("",{factory:()=>true});var $l=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$2(ea$1),o},providedIn:"root"})}return e})();var ta$1=(()=>{class e{backend;injector;chain=null;pendingTasks=g(eo$1);contributeToStability=g(Km);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Ym),...this.injector.get(Qm,[])]));this.chain=o.reduceRight((i,s)=>Yb(i,s,this.injector),Zb);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return wo$1(()=>r(n,i=>this.backend.handle(i))).pipe(ci$3(o))}else return wo$1(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(b$2($l),b$2(pe$5))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$2(ta$1),o},providedIn:"root"})}return e})();function Vl(e,t){return w$1({body:t},e)}var Xm=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof Dr$1)i=n;else {let c;o.headers instanceof xt$2?c=o.headers:c=new xt$2(o.headers);let u;o.params&&(o.params instanceof Nt$3?u=o.params:u=new Nt$3({fromObject:o.params})),i=new Dr$1(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout});}let s=Tr$1(i).pipe(li$3(c=>this.handler.handle(c)));if(n instanceof Dr$1||o.observe==="events")return s;let a=s.pipe(Ot$1(c=>c instanceof ko$1));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(ne$3(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new m$2(2806,false);return c.body}));case "blob":return a.pipe(ne$3(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new m$2(2807,false);return c.body}));case "text":return a.pipe(ne$3(c=>{if(c.body!==null&&typeof c.body!="string")throw new m$2(2808,false);return c.body}));default:return a.pipe(ne$3(c=>c.body))}case "response":return a;default:throw new m$2(2809,false)}}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 Nt$3().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,Vl(o,r))}post(n,r,o={}){return this.request("POST",n,Vl(o,r))}put(n,r,o={}){return this.request("PUT",n,Vl(o,r))}static \u0275fac=function(r){return new(r||e)(b$2(zl))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Qb=new T$4("",{factory:()=>true}),Kb="XSRF-TOKEN",Xb=new T$4("",{factory:()=>Kb}),Jb="X-XSRF-TOKEN",eS=new T$4("",{factory:()=>Jb}),tS=(()=>{class e{cookieName=g(Xb);doc=g(U$5);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=No$1(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})(),Jm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$2(tS),o},providedIn:"root"})}return e})();function nS(e,t){if(!g(Qb)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=g(Kt$2).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch(o){return t(e)}let n=g(Jm).getToken(),r=g(eS);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function rS(...e){let t=[Xm,ea$1,ta$1,{provide:zl,useExisting:ta$1},{provide:$l,useFactory:()=>g(ea$1)},{provide:Ym,useValue:nS,multi:true}];for(let n of e)t.push(...n.\u0275providers);return wt$3(t)}var kH=(()=>{class e{_doc;constructor(n){this._doc=n;}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||"";}static \u0275fac=function(r){return new(r||e)(b$2(U$5))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var oS=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$2(iS),o},providedIn:"root"})}return e})(),iS=(()=>{class e extends oS{_doc=g(U$5);sanitize(n,r){if(r==null)return null;switch(n){case Oe$1.NONE:return r;case Oe$1.HTML:return at$3(r,"HTML")?Te$1(r):Cs$1(this._doc,String(r)).toString();case Oe$1.STYLE:return at$3(r,"Style")?Te$1(r):r;case Oe$1.SCRIPT:if(at$3(r,"Script"))return Te$1(r);throw new m$2(5200,false);case Oe$1.URL:return at$3(r,"URL")?Te$1(r):ho$1(String(r));case Oe$1.RESOURCE_URL:if(at$3(r,"ResourceURL"))return Te$1(r);throw new m$2(-5201,false);default:throw new m$2(5202,false)}}bypassSecurityTrustHtml(n){return Su(n)}bypassSecurityTrustStyle(n){return _u(n)}bypassSecurityTrustScript(n){return Mu(n)}bypassSecurityTrustUrl(n){return Nu(n)}bypassSecurityTrustResourceUrl(n){return xu(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();var y=class{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:x,apiKeys:n,basePath:r,credentials:p,encodeParam:o,encoder:t,password:e,username:s,withCredentials:c}={}){n&&(this.apiKeys=n),s!==void 0&&(this.username=s),e!==void 0&&(this.password=e),x!==void 0&&(this.accessToken=x),r!==void 0&&(this.basePath=r),c!==void 0&&(this.withCredentials=c),t&&(this.encoder=t),this.encodeParam=o??(a=>this.defaultEncodeParam(a)),this.credentials=p??{};}selectHeaderContentType(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}selectHeaderAccept(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}isJsonMime(x){let n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return x!==null&&(n.test(x)||x.toLowerCase()==="application/json-patch+json")}lookupCredential(x){let n=this.credentials[x];return typeof n=="function"?n():n}addCredentialToHeaders(x,n,r,p){let o=this.lookupCredential(x);return o?r.set(n,(p??"")+o):r}addCredentialToQuery(x,n,r){let p=this.lookupCredential(x);return p?r.set(n,p):r}defaultEncodeParam(x){let n=x.dataFormat==="date-time"&&x.value instanceof Date?x.value.toISOString():x.value;return encodeURIComponent(String(n))}};var P$1=new T$4("basePath");var B$1=class B{encodeKey(x){return encodeURIComponent(x)}encodeValue(x){return encodeURIComponent(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}};var j$3=class j{basePath="http://localhost:18124";defaultHeaders=new xt$2;configuration;encoder;constructor(x,n){if(this.configuration=n||new y,typeof this.configuration.basePath!="string"){let r=Array.isArray(x)?x[0]:void 0;r!=null&&(x=r),typeof x!="string"&&(x=this.basePath),this.configuration.basePath=x;}this.encoder=this.configuration.encoder||new B$1;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,r,p=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,p?r:void 0,p):this.addToHttpParamsRecursive(x,n,r)}addToHttpParamsRecursive(x,n,r,p=false){if(n==null)return x;if(typeof n=="object"){if(r!=null)return p?Object.keys(n).reduce((o,t)=>o.append(`${r}[${t}]`,n[t]),x):x.append(r,JSON.stringify(n));if(Array.isArray(n))n.forEach(o=>x=this.addToHttpParamsRecursive(x,o,r));else if(n instanceof Date)if(r!=null)x=x.append(r,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(o=>{let t=r?`${r}.${o}`:o;x=this.addToHttpParamsRecursive(x,n[o],t);});return x}else if(r!=null)return x.append(r,n);throw Error("key may not be null if value is not object or array")}};var U$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter agentConfig was null or undefined when calling createAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/agent-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}disableAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}enableAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}exportAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/agent-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getDefinitionAgentConfig(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling getDefinitionAgentConfig.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,r,"withUserOverlay"),s=this.addToHttpParams(s,p,"namespaceId");let c=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(c=c.set("Accept",a));let d=e?.context??new Ks$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/definition`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$1(w$1({context:d,params:s,responseType:l},m?{withCredentials:m}:{}),{headers:c,observe:o,transferCache:i,reportProgress:t}))}listByParentAgentConfig(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAgentConfig.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"withDisabled");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/agent-configs/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,r="body",p=false,o){let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"withDisabled");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=o?.context??new Ks$1,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/agent-configs/platform",{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:p}))}searchAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter agentConfigSearchRequest was null or undefined when calling searchAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/agent-configs/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateAgentConfig(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAgentConfig.");if(r==null)throw new Error("Required parameter agentConfig was null or undefined when calling updateAgentConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var N$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getAgentConfigDefaults(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/agent-configs/defaults",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var k$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createAiModel(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter aiModel was null or undefined when calling createAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/ai-models",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteAiModel(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdAiModel(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsAiModel(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/ai-models/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByNamespaceIdAiModel(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listByNamespaceIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-namespaceId/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByParentAiModel(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listPlatformLevelAiModel(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/ai-models/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateAiModel(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiModel.");if(r==null)throw new Error("Required parameter aiModel was null or undefined when calling updateAiModel.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var F$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createAiProvider(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter aiProvider was null or undefined when calling createAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteAiProvider(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdAiProvider(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsAiProvider(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/ai-providers/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listAiProvider(n,r,p="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}updateAiProvider(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiProvider.");if(r==null)throw new Error("Required parameter aiProvider was null or undefined when calling updateAiProvider.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var D$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;addMessageCase(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling addMessageCase.");if(r==null)throw new Error("Required parameter addMessageRequest was null or undefined when calling addMessageCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messages`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}countUnreadCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling countUnreadCase.");let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=o?.context??new Ks$1,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/cases/unread-count",{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:p}))}createCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter _case was null or undefined when calling createCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/cases",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/cases/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}interruptCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling interruptCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/interrupt`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}killCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling killCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/kill`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByParentCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByUserCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter userId was null or undefined when calling listByUserCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/${this.configuration.encodeParam({name:"userId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByUserExternalIdCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling listByUserExternalIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/external/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByUserInNamespaceCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter listByUserInNamespaceRequest was null or undefined when calling listByUserInNamespaceCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/cases/by-user/in-namespace",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listMineByParentCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listMineByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/mine`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}markCaseRead(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling markCaseRead.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/read`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}reopenCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling reopenCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reopen`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}setModelCase(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling setModelCase.");if(r==null)throw new Error("Required parameter caseModelRequest was null or undefined when calling setModelCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/model`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}setReasoningEffortCase(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling setReasoningEffortCase.");if(r==null)throw new Error("Required parameter caseReasoningEffortRequest was null or undefined when calling setReasoningEffortCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reasoning-effort`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}starCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling starCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("put",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}unstarCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling unstarCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateCase(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateCase.");if(r==null)throw new Error("Required parameter _case was null or undefined when calling updateCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var W$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;listEffectiveConfiguration(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/admin/configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var G$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createIntegrationConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter integrationConfig was null or undefined when calling createIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteIntegrationConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}exportIntegrationConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdIntegrationConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsIntegrationConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/integration-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listIntegrationConfig(n,r,p="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateIntegrationConfig.");if(r==null)throw new Error("Required parameter integrationConfig was null or undefined when calling updateIntegrationConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getTypeIntegrationType(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter type was null or undefined when calling getTypeIntegrationType.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-types/${this.configuration.encodeParam({name:"type",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listTypesIntegrationType(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/integration-types",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var J$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createNamespace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespace was null or undefined when calling createNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteNamespace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deployAgentsNamespace(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling deployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/deploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}getByIdNamespace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsNamespace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listAllNamespace(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/namespaces",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsNamespace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}undeployAgentsNamespace(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling undeployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling undeployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/undeploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}updateNamespace(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateNamespace.");if(r==null)throw new Error("Required parameter namespace was null or undefined when calling updateNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var L$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}removeAssociationNamespaceGit(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling removeAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}setAssociationNamespaceGit(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling setAssociationNamespaceGit.");if(r==null)throw new Error("Required parameter namespaceGitRequest was null or undefined when calling setAssociationNamespaceGit.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByAgentUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByAgentUsageRecord.");if(p==null)throw new Error("Required parameter to was null or undefined when calling aggregateByAgentUsageRecord.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,p,"to");let c=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(c=c.set("Accept",a));let d=e?.context??new Ks$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="blob");let f="/api/usage-records/aggregate/by-agent",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$1(w$1({context:d,params:s,responseType:l},m?{withCredentials:m}:{}),{headers:c,observe:o,transferCache:i,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling aggregateByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}aggregateByCaseTreeUsageRecord(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter rootCaseId was null or undefined when calling aggregateByCaseTreeUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case-tree/${this.configuration.encodeParam({name:"rootCaseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}aggregateByModelUsageRecord(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByModelUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByModelUsageRecord.");if(p==null)throw new Error("Required parameter to was null or undefined when calling aggregateByModelUsageRecord.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,p,"to");let c=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(c=c.set("Accept",a));let d=e?.context??new Ks$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="blob");let f="/api/usage-records/aggregate/by-model",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$1(w$1({context:d,params:s,responseType:l},m?{withCredentials:m}:{}),{headers:c,observe:o,transferCache:i,reportProgress:t}))}aggregateByUserUsageRecord(n,r,p,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter userId was null or undefined when calling aggregateByUserUsageRecord.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByUserUsageRecord.");if(p==null)throw new Error("Required parameter from was null or undefined when calling aggregateByUserUsageRecord.");if(o==null)throw new Error("Required parameter to was null or undefined when calling aggregateByUserUsageRecord.");let c=new Nt$3({encoder:this.encoder});c=this.addToHttpParams(c,n,"userId"),c=this.addToHttpParams(c,r,"namespaceId"),c=this.addToHttpParams(c,p,"from"),c=this.addToHttpParams(c,o,"to");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new Ks$1,l=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b="/api/usage-records/aggregate/by-user",{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$1(w$1({context:i,params:c,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}listByCaseIdUsageRecord(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var qe$2=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(qe$2||{});var Me$2=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(Me$2||{});var $e$3=(n=>(n.ENVIRONMENT="ENVIRONMENT",n.PROPERTY="PROPERTY",n))($e$3||{});var Be$2=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Be$2||{});var Ue$1=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))(Ue$1||{});var K$3=class C{http=g(Xm);config=g(y);exportAsYaml(x){let n=`${this.config.basePath}/api/agent-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Q=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(Q||{});var z$1=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(z$1||{});var Ne$2=Q,ke$3=z$1;var Fe$2={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},De$2={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var X$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;connectAuthSetting(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling connectAuthSetting.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/connect`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}createAuthSetting(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling createAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteAuthSetting(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdAuthSetting(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsAuthSetting(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/auth-settings/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getConnectionAuthSetting(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling getConnectionAuthSetting.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/connection`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}listAuthSetting(n,r,p="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}resetMyCredentialAuthSetting(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling resetMyCredentialAuthSetting.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/credential`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}updateAuthSetting(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAuthSetting.");if(r==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling updateAuthSetting.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsCaseEventRest(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/case-events/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByCaseCaseEventRest(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var ee$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getMembersCaseMembership(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersCaseMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateMembersCaseMembership(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersCaseMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersCaseMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var te$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;changesCaseWorkspace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling changesCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/changes`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}diffCaseWorkspace(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling diffCaseWorkspace.");if(r==null)throw new Error("Required parameter path was null or undefined when calling diffCaseWorkspace.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/diff`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}getCaseWorkspace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listCaseWorkspace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspaces`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}refreshCaseWorkspace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling refreshCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/refresh`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}retryCaseWorkspace(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling retryCaseWorkspace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/retry`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;applyConfigChange(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling applyConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling applyConfigChange.");if(p==null)throw new Error("Required parameter configChangeApplyRequest was null or undefined when calling applyConfigChange.");let s=this.defaultHeaders,c=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=e?.context??new Ks$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let f="json";c&&(c.startsWith("text")?f="text":this.configuration.isJsonMime(c)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/apply`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$1(w$1({context:a,body:p,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}rejectConfigChange(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling rejectConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling rejectConfigChange.");let s=this.defaultHeaders,c=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(s=s.set("Accept",c));let a=e?.context??new Ks$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let f="json";c&&(c.startsWith("text")?f="text":this.configuration.isJsonMime(c)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reject`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$1(w$1({context:a,body:p,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}viewConfigChange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling viewConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling viewConfigChange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var oe$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,r,p,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling browseCaseFilesExchange.");let c=new Nt$3({encoder:this.encoder});c=this.addToHttpParams(c,r,"path"),c=this.addToHttpParams(c,p,"page"),c=this.addToHttpParams(c,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new Ks$1,l=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$1(w$1({context:i,params:c,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}browseNamespaceFilesExchange(n,r,p,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling browseNamespaceFilesExchange.");let c=new Nt$3({encoder:this.encoder});c=this.addToHttpParams(c,r,"path"),c=this.addToHttpParams(c,p,"page"),c=this.addToHttpParams(c,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new Ks$1,l=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$1(w$1({context:i,params:c,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}deleteCaseFileExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling deleteCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteCaseFileExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deleteNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteNamespaceFileExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling downloadCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadCaseFileExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling downloadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadNamespaceFileExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getCaseFileContentExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getNamespaceFileContentExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getNamespaceFileContentExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}uploadCaseFileExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling uploadCaseFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadCaseFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),l,f=false;f=i,f?l=new FormData:l=new Nt$3({encoder:this.encoder}),r!==void 0&&(l=l.append("file",r)||l);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:O,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${O}${E}`,x$1(w$1({context:c,body:l,responseType:m},S?{withCredentials:S}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}uploadNamespaceFileExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling uploadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadNamespaceFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),l,f=false;f=i,f?l=new FormData:l=new Nt$3({encoder:this.encoder}),r!==void 0&&(l=l.append("file",r)||l);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:O,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${O}${E}`,x$1(w$1({context:c,body:l,responseType:m},S?{withCredentials:S}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createFeedback(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter feedbackInput was null or undefined when calling createFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/feedbacks",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByCaseEventFeedback(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseEventId was null or undefined when calling listByCaseEventFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-case-event/${this.configuration.encodeParam({name:"caseEventId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByCaseFeedback(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var ae$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getGitWorkspacesConfiguration(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/git-workspaces-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var se$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersNamespaceMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateMembersNamespaceMembership(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersNamespaceMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersNamespaceMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;grantAdmin(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}grantMember(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}revokeAdmin(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}revokeMember(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}updateRolesByExternalId(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter syncUserRolesRequest was null or undefined when calling updateRolesByExternalId.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces/update-roles-by-external-id",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter oAuthCallbackRequest was null or undefined when calling handleCallbackOAuthCallback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/oauth/callback",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var pe$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;debugAllPlugins(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins/debug",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}debugPlugin(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling debugPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/debug`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getAllPlugins(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}getPlugin(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling getPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}reloadAllAgentsPlugin(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins/reload-agents",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}reloadPlugin(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling reloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/reload`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}startPlugin(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling startPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/start`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}stopPlugin(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling stopPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/stop`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}unloadPlugin(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling unloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}uploadPlugin(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins/upload",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var le$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter prompt was null or undefined when calling createPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deletePrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deletePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}exportPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}resolveEffectivePrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter promptEffectiveRequest was null or undefined when calling resolveEffectivePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}searchPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter promptSearchRequest was null or undefined when calling searchPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}translateBatchPrompt(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter languageCode was null or undefined when calling translateBatchPrompt.");if(r==null)throw new Error("Required parameter promptBatchTranslateRequest was null or undefined when calling translateBatchPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/prompts/translations/${this.configuration.encodeParam({name:"languageCode",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}translatePrompt(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling translatePrompt.");if(r==null)throw new Error("Required parameter languageCode was null or undefined when calling translatePrompt.");if(p==null)throw new Error("Required parameter promptTranslateRequest was null or undefined when calling translatePrompt.");let s=this.defaultHeaders,c=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=e?.context??new Ks$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let f="json";c&&(c.startsWith("text")?f="text":this.configuration.isJsonMime(c)?f="json":f="blob");let b=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/translations/${this.configuration.encodeParam({name:"languageCode",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$1(w$1({context:a,body:p,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updatePrompt.");if(r==null)throw new Error("Required parameter prompt was null or undefined when calling updatePrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var de$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;continueCostRunRunCost(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling continueCostRunRunCost.");if(r==null)throw new Error("Required parameter continueCostRequest was null or undefined when calling continueCostRunRunCost.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/continue`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}getRunCost(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}stopCostRunRunCost(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling stopCostRunRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/stop`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var be$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling createScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/scheduled-prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}disableScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}enableScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/scheduled-prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}resolveEffectiveScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter scheduledPromptEffectiveRequest was null or undefined when calling resolveEffectiveScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/scheduled-prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}searchScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter scheduledPromptSearchRequest was null or undefined when calling searchScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/scheduled-prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateScheduledPrompt(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateScheduledPrompt.");if(r==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling updateScheduledPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var fe$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter skill was null or undefined when calling createSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/skills",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/skills/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByParentSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listEffectiveSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listEffectiveSkill.");let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=o?.context??new Ks$1,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/skills/effective",{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:p}))}listPlatformSkill(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/skills/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateSkill(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateSkill.");if(r==null)throw new Error("Required parameter skill was null or undefined when calling updateSkill.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;streamCaseInvalidationsNamespaceCaseInvalidationSse(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseInvalidationsNamespaceCaseInvalidationSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/case-invalidation`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}streamCaseListUpdatesNamespaceCaseListUpdateSse(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseListUpdatesNamespaceCaseListUpdateSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/case-list-updates`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}streamEventsCaseEventSse(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling streamEventsCaseEventSse.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"includePreviousEvents");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/events`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}streamMyEventsGlobalCaseEventSse(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/cases/events/mine",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;invokeToolInvoke(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter toolInvokeRequest was null or undefined when calling invokeToolInvoke.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/tools/invoke",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listToolInvoke(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listToolInvoke.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l="/api/tools",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var ge$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getUsageConfiguration(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/usage-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ce$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createUser(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter user was null or undefined when calling createUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteUser(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdUser(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsUser(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getGroupsByExternalIdsUser(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter groupsByExternalIdsRequest was null or undefined when calling getGroupsByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users/groups-by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getMeUser(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/users/me",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listAllUser(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/users",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsUser(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}revokeNamespaceAccessByExternalIdUser(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/users/by-external-id/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling revokeNamespaceAccessUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessUser.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}updateUser(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateUser.");if(r==null)throw new Error("Required parameter user was null or undefined when calling updateUser.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var He$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createUserGroup(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter userGroupCreateRequest was null or undefined when calling createUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/user-groups",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteUserGroup(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling deleteUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}findByNamespaceIdUserGroup(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling findByNamespaceIdUserGroup.");let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=o?.context??new Ks$1,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/user-groups",{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:p}))}getByIdUserGroup(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getByIdUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getMembersUserGroup(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getMembersUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateUserGroup(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling updateUserGroup.");if(r==null)throw new Error("Required parameter userGroupUpdateRequest was null or undefined when calling updateUserGroup.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new Ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var xe$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;capabilityVoiceMessage(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new Ks$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/voice-messages/capability",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}postVoiceMessage(n,r,p,o,t,e,s="body",c=false,a){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling postVoiceMessage.");if(r==null)throw new Error("Required parameter audio was null or undefined when calling postVoiceMessage.");let d=new Nt$3({encoder:this.encoder});d=this.addToHttpParams(d,p,"answerToEventId"),d=this.addToHttpParams(d,o,"durationMs");let i=this.defaultHeaders,l=a?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);l!==void 0&&(i=i.set("Accept",l));let f=a?.context??new Ks$1,b=a?.transferCache??true,m=["multipart/form-data"],E=this.canConsumeForm(m),O,S=false;S=E,S?O=new FormData:O=new Nt$3({encoder:this.encoder}),t!==void 0&&(O=O.append("answerToEventId",t)||O),r!==void 0&&(O=O.append("audio",r)||O),e!==void 0&&(O=O.append("durationMs",e)||O);let $="json";l&&(l.startsWith("text")?$="text":this.configuration.isJsonMime(l)?$="json":$="blob");let Oe=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/voice-messages`,{basePath:Se,withCredentials:we}=this.configuration;return this.httpClient.request("post",`${Se}${Oe}`,x$1(w$1({context:f,body:O,params:d,responseType:$},we?{withCredentials:we}:{}),{headers:i,observe:s,transferCache:b,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$2(Xm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var We$1=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(We$1||{});var Ge$2=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(Ge$2||{});var _e$3=(t=>(t.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(_e$3||{});var Je$2=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))(Je$2||{}),Le$1=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(Le$1||{});var Ye$1=(p=>(p.FREE_TEXT="FREE_TEXT",p.SINGLE_CHOICE="SINGLE_CHOICE",p.OPEN_CHOICE="OPEN_CHOICE",p.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",p))(Ye$1||{});function Ol(C){return wt$3([typeof C=="string"?{provide:P$1,useValue:C}:{provide:y,useValue:new y(w$1({},C))}])}(class C{config=g(y);zone=g(G$2);connect(x){let n=`${this.config.basePath}/api/cases/${x}/events`;return new R$2(r=>{let p=this.zone.runOutsideAngular(()=>new EventSource(n)),o=t=>{try{let e=JSON.parse(t.data);this.zone.run(()=>r.next(e));}catch(e){this.zone.run(()=>r.error(new Error(`Failed to parse SSE event: ${e}`)));}};return p.addEventListener("case-event",o),p.onerror=()=>{},()=>p.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var Ee$2="namespace-case-list-updated";(class C{config=g(y);zone=g(G$2);connect(x){let n=`${this.config.basePath}/api/namespaces/${encodeURIComponent(x)}/case-list-updates`;return new R$2(r=>{let p=this.zone.runOutsideAngular(()=>new EventSource(n));return p.onopen=()=>this.zone.run(()=>r.next("connected")),p.addEventListener(Ee$2,()=>this.zone.run(()=>r.next("updated"))),p.onerror=()=>{},()=>p.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C{config=g(y);zone=g(G$2);connect(x){let n=`${this.config.basePath}/api/namespaces/${x}/case-invalidation`;return new R$2(r=>{let p=this.zone.runOutsideAngular(()=>new EventSource(n));return p.onopen=()=>this.zone.run(()=>r.next("connected")),p.addEventListener("namespace-case-invalidation",()=>this.zone.run(()=>r.next("invalidated"))),p.onerror=()=>{},()=>p.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var ve$2=class C{http=g(Xm);config=g(y);exportAsYaml(x){let n=`${this.config.basePath}/api/integration-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Pe$1=class C{http=g(Xm);config=g(y);exportAsYaml(x){let n=`${this.config.basePath}/api/prompts/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var je$2=class C{http=g(Xm);config=g(y);invoke(x){let n=`${this.config.basePath}/api/tools/invoke`;return this.http.post(n,x)}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};
|
|
6
|
-
var b$1=class i{http=g(Xm);base="/api/setup";getStatus(){return this.http.get(`${this.base}/status`)}saveIdentity(e){return this.http.post(`${this.base}/identity`,{email:e})}browse(e,t=false){let r=new Nt$3;return e&&(r=r.set("path",e)),t&&(r=r.set("hidden","true")),this.http.get(`${this.base}/browse`,{params:r})}mkdir(e,t){return this.http.post(`${this.base}/mkdir`,{path:e,name:t})}apply(e){return this.http.post(`${this.base}/apply`,e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=x({token:i,factory:i.\u0275fac,providedIn:"root"})};var A$1=["email","providers","folder","progress"],ee$3=i=>i==="fresh"||i==="nofresh"?i:null,T$3=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,j$2=1500,U$3=8,O$1=2e4,m$1=(i,e,t)=>({key:i,label:e,state:t.state,percent:t.percent,message:t.message??(i==="java"?t.version:void 0)}),R$1=i=>{let e=[i?.agentos?`AgentOS ${i.agentos}`:null,i?.factory?`Factory ${i.factory}`:null].filter(t=>!!t);return e.length>0?`Downloading ${e.join(" and ")}`:"Downloading AgentOS"},f$1=(i,e)=>{if(i instanceof kn$3){let t=i.error;if(t&&typeof t=="object"&&t.error)return t.error;if(i.status===0)return "Cannot reach the Coday server."}return e},V$1=class i{api=g(b$1);users=g(Ce$4);namespaces=g(J$1);aiProviders=g(F$3);destroyRef=g(Ie$2);status=Ui$1(null);statusError=Ui$1(null);step=Ui$1("email");email=Ui$1("");providers=Ui$1([{id:"anthropic",enabled:false,apiKey:""},{id:"openai",enabled:false,apiKey:""},{id:"requesty",enabled:false,apiKey:""}]);folder=Ui$1("");mode=Ui$1("wizard");preview=Ui$1(null);factoryGraceElapsed=Ui$1(false);factoryGraceTimer=null;busy=Ui$1(false);error=Ui$1(null);profileEmail=Ui$1("");needsEmail=Ui$1(false);userKeys=Ui$1([]);userKeysChecked=Ui$1(false);userKeysCheck=null;me=null;emailValid=XC(()=>T$3.test(this.email().trim()));enabledProviders=XC(()=>this.providers().filter(e=>e.enabled));providersValid=XC(()=>{let e=this.enabledProviders();return e.length>0&&e.every(t=>t.apiKey.trim().length>=U$3)});needsUserKeys=XC(()=>this.userKeys().length>0);needsProfile=XC(()=>this.needsEmail()||this.needsUserKeys());userKeysValid=XC(()=>{let e=this.userKeys().filter(t=>t.apiKey.trim().length>0);return e.length>0&&e.every(t=>t.apiKey.trim().length>=U$3)});profileEmailValid=XC(()=>T$3.test(this.profileEmail().trim()));profileValid=XC(()=>(!this.needsEmail()||this.profileEmailValid())&&(!this.needsUserKeys()||this.userKeysValid()));folderValid=XC(()=>this.folder().startsWith("/")||/^[A-Za-z]:[\\/]/.test(this.folder()));stepIndex=XC(()=>A$1.indexOf(this.step()));checklist=XC(()=>{let e=this.status()?.steps;return e?[m$1("download",R$1(e.download.versions),e.download),m$1("java","Checking Java 25",e.java),m$1("agentos","Starting AgentOS",e.agentos),m$1("providers","Configuring your AI providers",e.providers),m$1("models","Registering the models",e.models),m$1("namespace","Creating your personal workspace",e.namespace),m$1("agent","Deploying the Coday agent",e.agent)]:[]});loadingChecklist=XC(()=>{let e=this.status()?.steps;return e?[m$1("download",R$1(e.download.versions),e.download),m$1("java","Checking Java 25",e.java),m$1("agentos","Starting AgentOS",e.agentos),...e.factory?[m$1("factory","Waiting for the Factory",e.factory)]:[]]:[]});loadingReady=XC(()=>{let e=this.status()?.steps;return !e||e.agentos.state!=="done"||this.status()?.mode==="managed"&&(!this.userKeysChecked()||this.needsProfile())?false:e.factory?e.factory.state==="done"||e.factory.state==="error"||this.factoryGraceElapsed():true});javaBlocked=XC(()=>this.status()?.steps.java.state==="blocked");ready=XC(()=>{let e=this.status();return !!e&&e.apply.status==="done"&&!!e.namespaceId});failed=XC(()=>this.status()?.apply.status==="error");emailLocked=XC(()=>!this.preview()&&(this.status()?.apply.status??"idle")!=="idle");namespaceId=XC(()=>this.status()?.namespaceId??null);poller=null;constructor(){this.destroyRef.onDestroy(()=>this.stopPolling());}setStatus(e){this.status.set(e),this.statusError.set(null),this.mode()==="loading"&&e.steps.agentos.state==="done"&&!this.factoryGraceTimer&&(this.factoryGraceTimer=setTimeout(()=>this.factoryGraceElapsed.set(true),O$1)),this.maybeCheckUserKeys();}refreshStatus(){return B$3(this,null,function*(){try{let e=yield hy(this.api.getStatus());return this.setStatus(e),e}catch(e){return this.statusError.set(f$1(e,"Cannot read the setup status.")),null}})}startPolling(){this.poller||(this.poller=sn$2(0,j$2).pipe(ma(()=>this.api.getStatus().pipe(da(()=>Tr$1(null))))).subscribe(e=>{e?this.setStatus(e):this.statusError.set("Lost contact with the Coday server, retrying...");}));}stopPolling(){this.poller?.unsubscribe(),this.poller=null,this.factoryGraceTimer&&clearTimeout(this.factoryGraceTimer),this.factoryGraceTimer=null;}init(e=null){return B$3(this,null,function*(){this.preview.set(e);let t=yield this.refreshStatus();if(!t)return;if(t.defaults?.sharedExchangePath&&!this.folder()&&this.folder.set(t.defaults.sharedExchangePath),t.identity&&!this.email()&&this.email.set(t.identity.email),this.startPolling(),!(e?e==="fresh":t.mode==="unmanaged"&&t.setupEnabled&&!t.setupDone)){this.mode.set("loading"),this.step.set("progress"),this.maybeCheckUserKeys();return}!e&&["running","error","done"].includes(t.apply.status)&&this.step.set("progress");})}back(){let e=this.stepIndex(),t=this.step()==="providers"&&this.emailLocked();e>0&&this.step()!=="progress"&&!t&&this.step.set(A$1[e-1]),this.error.set(null);}editAfterFailure(e){!this.failed()||this.step()!=="progress"||(this.error.set(e==="providers"&&!this.providersValid()?"Enter your API keys again: they are not kept when the page is reloaded.":null),this.step.set(e));}submitEmail(){return B$3(this,null,function*(){if(!(!this.emailValid()||this.busy())){if(this.error.set(null),this.preview()){this.step.set("providers");return}this.busy.set(true);try{yield hy(this.api.saveIdentity(this.email().trim())),yield this.refreshStatus(),this.step.set("providers");}catch(e){this.error.set(f$1(e,"Could not save your email."));}finally{this.busy.set(false);}}})}submitProviders(){this.providersValid()&&(this.error.set(null),this.step.set("folder"));}toggleProvider(e){this.providers.update(t=>{let r=t.find(a=>a.id===e);if(!r)return t;let s=t.map(a=>a.id===e?x$1(w$1({},a),{enabled:!a.enabled}):a);if(!r.enabled){let a=s.find(u=>u.id===e);return [...s.filter(u=>u.id!==e),a]}return s});}setApiKey(e,t){this.providers.update(r=>r.map(s=>s.id===e?x$1(w$1({},s),{apiKey:t}):s));}moveProvider(e,t){this.providers.update(r=>{let s=r.filter(p=>p.enabled),a=s.findIndex(p=>p.id===e),u=a+t;if(a<0||u<0||u>=s.length)return r;let o=[...s],[P]=o.splice(a,1);return o.splice(u,0,P),[...o,...r.filter(p=>!p.enabled)]});}moveProviderTo(e,t){e!==t&&this.providers.update(r=>{let s=r.filter(p=>p.enabled),a=s.findIndex(p=>p.id===e),u=s.findIndex(p=>p.id===t);if(a<0||u<0)return r;let o=[...s],[P]=o.splice(a,1);return o.splice(u,0,P),[...o,...r.filter(p=>!p.enabled)]});}rankOf(e){let t=this.enabledProviders().findIndex(r=>r.id===e);return t<0?null:t+1}browse(e,t=false){return hy(this.api.browse(e,t))}mkdir(e,t){return hy(this.api.mkdir(e,t))}selectFolder(e){this.folder.set(e);}submitFolderAndApply(){return B$3(this,null,function*(){if(!(!this.providersValid()||!this.folderValid()||this.busy())){if(this.error.set(null),this.preview()){this.step.set("progress");return}this.busy.set(true);try{yield hy(this.api.apply({providers:this.applyProviders(),sharedExchangePath:this.folder()})),this.step.set("progress"),this.startPolling();}catch(e){this.error.set(f$1(e,"Could not start the setup."));}finally{this.busy.set(false);}}})}retry(){return B$3(this,null,function*(){if(!this.providersValid()){this.step.set("providers"),this.error.set("Enter your API keys again: they are not kept when the page is reloaded.");return}yield this.submitFolderAndApply();})}maybeCheckUserKeys(){let e=this.status();this.mode()!=="loading"||this.preview()||e?.mode!=="managed"||e.steps.agentos.state==="done"&&this.checkUserKeys();}checkUserKeys(){return this.userKeysCheck??=this.loadProfileRequirements(),this.userKeysCheck}loadProfileRequirements(){return B$3(this,null,function*(){try{let[e,t,r]=yield Promise.all([hy(this.aiProviders.listAiProvider("none")),hy(this.aiProviders.listAiProvider("none","me")),hy(this.users.getMeUser())]);if(e.length===0)return;this.me=r,this.needsEmail.set(!r.email?.trim());let s=new Map(t.map(o=>[o.name.toLowerCase(),o])),a=new Set(e.map(o=>o.name.toLowerCase()));t.some(o=>!!o.apiKey&&a.has(o.name.toLowerCase()))||this.userKeys.set(e.map(o=>({name:o.name,apiType:o.apiType,apiKey:"",existingId:s.get(o.name.toLowerCase())?.id})));}catch(e){console.warn("Could not check the profile requirements of the platform",e);}finally{this.userKeysChecked.set(true);}})}setProfileEmail(e){this.profileEmail.set(e);}setUserKey(e,t){this.userKeys.update(r=>r.map(s=>s.name===e?x$1(w$1({},s),{apiKey:t}):s));}submitProfile(){return B$3(this,null,function*(){if(!(!this.profileValid()||this.busy())){this.error.set(null),this.busy.set(true);try{if(this.needsEmail()&&!(yield this.saveProfileEmail()))return;this.needsUserKeys()&&(yield this.saveUserKeys());}finally{this.busy.set(false);}}})}saveProfileEmail(){return B$3(this,null,function*(){try{let e=yield this.currentUser();return yield hy(this.users.updateUser(e.id,x$1(w$1({},e),{email:this.profileEmail().trim().toLowerCase()}))),this.needsEmail.set(!1),!0}catch(e){return console.warn("Could not save the email of the user",e),this.error.set(f$1(e,"Could not save your email.")),false}})}saveUserKeys(){return B$3(this,null,function*(){try{let e=yield this.currentUser(),t=[];for(let r of this.userKeys()){let s=r.apiKey.trim();if(!s)continue;let a={name:r.name,apiType:r.apiType,apiKey:s,userId:e.id};try{yield hy(r.existingId?this.aiProviders.updateAiProvider(r.existingId,a):this.aiProviders.createAiProvider(a));}catch(u){console.warn(`Could not save the key of ${r.name}`,u),t.push(r);}}this.userKeys.set(t),t.length>0&&this.error.set(`Could not save the key of ${t.map(r=>r.name).join(", ")}. Check it and try again.`);}catch(e){this.error.set(f$1(e,"Could not save your keys."));}})}currentUser(){return B$3(this,null,function*(){if(this.me??=yield hy(this.users.getMeUser()),!this.me.id)throw new Error("The current user has no id");return this.me})}applyProviders(){return this.enabledProviders().map((e,t)=>({id:e.id,apiKey:e.apiKey.trim(),rank:t+1}))}loadingTarget(){return B$3(this,null,function*(){let e=this.namespaceId()??(yield this.personalNamespaceId());return {path:"/home",queryParams:e?{ns:e}:{}}})}personalNamespaceId(){return B$3(this,null,function*(){try{let{externalId:e}=yield hy(this.users.getMeUser());if(!e)return null;let t=`user:${e}`;return (yield hy(this.namespaces.listByExternalIdsNamespace([t]))).find(s=>s.externalId===t)?.id??null}catch(e){return console.warn("Could not look up the personal namespace",e),null}})}landingCommands(){let e=this.namespaceId();return e?{path:"/home",queryParams:{ns:e}}:null}static \u0275fac=function(t){return new(t||i)};static \u0275prov=x({token:i,factory:i.\u0275fac,providedIn:"root"})};var de$3;try{de$3=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(i){de$3=false;}var v=(()=>{class i{_platformId=g(Kr);isBrowser=this._platformId?s2(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||de$3)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function Ke$2(i,e=0){return Ze$1(i)?Number(i):arguments.length===2?e:0}function Ze$1(i){return !isNaN(parseFloat(i))&&!isNaN(Number(i))}function N(i){return i instanceof An$3?i.nativeElement:i}var qn$2=new T$4("cdk-dir-doc",{providedIn:"root",factory:()=>g(U$5)}),Qn$2=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Ge$1(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Qn$2.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var mt$3=(()=>{class i{get value(){return this.valueSignal()}valueSignal=Ui$1("ltr");change=new yt$3;constructor(){let t=g(qn$2,{optional:true});if(t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(Ge$1(n||o||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var W$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$2({type:i});static \u0275inj=Br({})}return i})();var F$2=(function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i})(F$2||{}),It$1,Y$1;function Tt$2(){if(Y$1==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Y$1=false,Y$1;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Y$1=true;else {let i=Element.prototype.scrollTo;i?Y$1=!/\{\s*\[native code\]\s*\}/.test(i.toString()):Y$1=false;}}return Y$1}function it$2(){if(typeof document!="object"||!document)return F$2.NORMAL;if(It$1==null){let i=document.createElement("div"),e=i.style;i.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",i.appendChild(t),document.body.appendChild(i),It$1=F$2.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,It$1=i.scrollLeft===0?F$2.NEGATED:F$2.INVERTED),i.remove();}return It$1}var ti$2=20,Pt$2=(()=>{class i{_ngZone=g(G$2);_platform=g(v);_renderer=g(_n$3).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new le$4;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)));}deregister(t){let n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=ti$2){return this._platform.isBrowser?new R$2(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(Ry(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):Tr$1()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete();}ancestorScrolled(t,n){let o=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(Ot$1(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((o,r)=>{this._targetContainsElement(r,t)&&n.push(r);}),n}_targetContainsElement(t,n){let o=N(n),r=t.getElementRef().nativeElement;do if(o==r)return true;while(o=o.parentElement);return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),Mo$1=(()=>{class i{elementRef=g(An$3);scrollDispatcher=g(Pt$2);ngZone=g(G$2);dir=g(mt$3,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new le$4;_renderer=g(Yu);_cleanupScroll;_elementScrolled=new le$4;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this);}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete();}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),o&&it$2()!=F$2.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),it$2()==F$2.INVERTED?t.left=t.right:it$2()==F$2.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t);}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;Tt$2()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left));}measureScrollOffset(t){let n="left",o="right",r=this.elementRef.nativeElement;if(t=="top")return r.scrollTop;if(t=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return t=="start"?t=a?o:n:t=="end"&&(t=a?n:o),a&&it$2()==F$2.INVERTED?t==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&it$2()==F$2.NEGATED?t==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:t==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||i)};static \u0275dir=al({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return i})(),ei$2=20,ht$3=(()=>{class i{_platform=g(v);_listeners;_viewportSize=null;_change=new le$4;_document=g(U$5);constructor(){let t=g(G$2),n=g(_n$3).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return {top:t.top,left:t.left,bottom:t.top+o,right:t.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,n=this._getWindow(),o=t.documentElement,r=o.getBoundingClientRect(),a=-r.top||t.body?.scrollTop||n.scrollY||o.scrollTop||0,l=-r.left||t.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return {top:a,left:l}}change(t=ei$2){return t>0?this._change.pipe(Ry(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0};}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var $e$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$2({type:i});static \u0275inj=Br({})}return i})(),ue$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$2({type:i});static \u0275inj=Br({imports:[W$2,$e$2,W$2,$e$2]})}return i})();var Je$1=new Map,pt$3=class i{_appId=g(Qr);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(e,t=false){this._appId!=="ng"&&(e+=this._appId);let n=Je$1.get(e);return n===void 0?n=0:n++,Je$1.set(e,n),`${e}${t?i._infix+"-":""}${n}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})};var ft$3=class ft{_attachedHost=null;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach());}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e;}},me$2=class me extends ft$3{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,n,o,r,a){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.projectableNodes=o,this.bindings=r||null,this.directives=a||null;}},Ft$1=class Ft extends ft$3{templateRef;viewContainerRef;context;injector;constructor(e,t,n,o){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n,this.injector=o;}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},he$3=class he extends ft$3{element;constructor(e){super(),this.element=e instanceof An$3?e.nativeElement:e;}},Nt$2=class Nt{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof me$2)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ft$1)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof he$3)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=true;}setDisposeFn(e){this._disposeFn=e;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}},Lt$1=class Lt extends Nt$2{outletElement;_appRef;_defaultInjector;constructor(e,t,n){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=n;}attachComponentPortal(e){let t;if(e.viewContainerRef){let n=e.injector||e.viewContainerRef.injector,o=n.get(Nn$3,null,{optional:true})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let n=this._appRef,o=e.injector||this._defaultInjector||he$4.NULL,r=o.get(pe$5,n.injector);t=FB(e.component,{elementInjector:o,environmentInjector:r,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),n.attachView(t.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(n);o!==-1&&t.remove(o);}),this._attachedPortal=e,n}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var jo$1=(()=>{class i extends Nt$2{_moduleRef=g(Nn$3,{optional:true});_document=g(U$5);_viewContainerRef=g(hr$1);_isInitialized=false;_attachedRef=null;get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null);}attached=new yt$3;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let n=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=n.createComponent(t.component,{index:n.length,injector:t.injector||n.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=t=>{let n=t.element;n.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o);});};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=(()=>{let t;return function(o){return (t||(t=Rp(i)))(o||i)}})();static \u0275dir=al({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ng]})}return i})(),tn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$2({type:i});static \u0275inj=Br({})}return i})();function en$1(i,...e){return e.length?e.some(t=>i[t]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var pe$3;function nn$1(){if(pe$3==null){let i=typeof document<"u"?document.head:null;pe$3=!!(i&&(i.createShadowRoot||i.attachShadow));}return pe$3}function fe$3(i){if(nn$1()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ni$2(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let e=i.shadowRoot.activeElement;if(e===i)break;i=e;}return i}function D(i){if(i.composedPath)try{return i.composedPath()[0]}catch(e){}return i.target}function be$2(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Bt=new WeakMap,L$1=(()=>{class i{_appRef;_injector=g(he$4);_environmentInjector=g(pe$5);load(t){let n=this._appRef=this._appRef||this._injector.get(mr$1),o=Bt.get(n);o||(o={loaders:new Set,refs:[]},Bt.set(n,o),n.onDestroy(()=>{Bt.get(n)?.refs.forEach(r=>r.destroy()),Bt.delete(n);})),o.loaders.has(t)||(o.loaders.add(t),o.refs.push(FB(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function b(i){return i==null?"":typeof i=="string"?i:`${i}px`}function ot$1(i){return Array.isArray(i)?i:[i]}var on$1=Tt$2();function un$1(i){return new zt(i.get(ht$3),i.get(U$5))}var zt=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=false;_document;constructor(e,t){this._viewportRuler=e,this._document=t;}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=b(-this._previousScrollPosition.left),e.style.top=b(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=true;}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,n=e.style,o=t.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=false,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),on$1&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),on$1&&(n.scrollBehavior=r,o.scrollBehavior=a);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,n=this._viewportRuler.getViewportSize();return t.scrollHeight>n.height||t.scrollWidth>n.width}};function mn$1(i,e){return new Vt(i.get(Pt$2),i.get(G$2),i.get(ht$3),e)}var Vt=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,n,o){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=o;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Ot$1(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition();})):this._scrollSubscription=e.subscribe(this._detach);}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach());}};var bt$2=class bt{enable(){}disable(){}attach(){}};function _e$2(i,e){return e.some(t=>{let n=i.bottom<t.top,o=i.top>t.bottom,r=i.right<t.left,a=i.left>t.right;return n||o||r||a})}function rn$1(i,e){return e.some(t=>{let n=i.top<t.top,o=i.bottom>t.bottom,r=i.left<t.left,a=i.right>t.right;return n||o||r||a})}function hn$1(i,e){return new jt$1(i.get(Pt$2),i.get(ht$3),i.get(G$2),e)}var jt$1=class jt{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,n,o){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=o;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();_e$2(t,[{width:n,height:o,bottom:o,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},pn$1=(()=>{class i{_injector=g(he$4);noop=()=>new bt$2;close=t=>mn$1(this._injector,t);block=()=>un$1(this._injector);reposition=t=>hn$1(this._injector,t);static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),Ht=class{positionStrategy;scrollStrategy=new bt$2;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(e){if(e){let t=Object.keys(e);for(let n of t)e[n]!==void 0&&(this[n]=e[n]);}}};var Ut$2=class Ut{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var fn$1=(()=>{class i{_attachedOverlays=[];_document=g(U$5);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,n,o){return o.observers.length<1?false:t.eventPredicate?t.eventPredicate(n):true}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),bn$1=(()=>{class i extends fn$1{_ngZone=g(G$2);_renderer=g(_n$3).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=true);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=false);}_keydownListener=t=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,t,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(t));break}}};static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),_n$2=(()=>{class i extends fn$1{_platform=g(v);_ngZone=g(G$2);_renderer=g(_n$3).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let n=this._document.body,o={capture:true},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=t=>{this._pointerDownEventTarget=D(t);};_clickListener=t=>{let n=D(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let l=r[a],d=l._outsidePointerEvents;if(!(!l.hasAttached()||!this.canReceiveEvent(l,t,d))){if(an$1(l.overlayElement,n)||an$1(l.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>d.next(t)):d.next(t);}}};static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function an$1(i,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,n=e;for(;n;){if(n===i)return true;n=t&&n instanceof ShadowRoot?n.host:n.parentNode;}return false}var gn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=yw({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n;});function en$2(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var ee$5=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r();}catch(i){t=i instanceof Lo$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{ql(i);}catch(s){t=t??[],s instanceof Lo$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new Lo$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ql(t);else {if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this);}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t);}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t;}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&en$2(n,t);}remove(t){let{_finalizers:n}=this;n&&en$2(n,t),t instanceof e&&t._removeParent(this);}};ee$5.EMPTY=(()=>{let e=new ee$5;return e.closed=true,e})();var sa$1=ee$5.EMPTY;function jo$2(e){return e instanceof ee$5||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function ql(e){M(e)?e():e.unsubscribe();}var Pe$2={Promise:void 0};var Ln$3={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function Bo$1(e){Ln$3.setTimeout(()=>{throw e});}function ft$4(){}function jn$3(e){e();}var nn$2=class nn extends ee$5{constructor(t){super(),this.isStopped=false,t?(this.destination=t,jo$2(t)&&t.add(this)):this.destination=ry;}static create(t,n,r){return new Le$2(t,n,r)}next(t){this.isStopped?ua$1():this._next(t);}error(t){this.isStopped?ua$1():(this.isStopped=true,this._error(t));}complete(){this.isStopped?ua$1():(this.isStopped=true,this._complete());}unsubscribe(){this.closed||(this.isStopped=true,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();}}};var la$1=class la{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){Vo$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){Vo$1(r);}else Vo$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){Vo$1(n);}}},Le$2=class Le extends nn$2{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new la$1(o);}};function Vo$1(e){Bo$1(e);}function ny(e){throw e}function ua$1(e,t){}var ry={closed:true,next:ft$4,error:ny,complete:ft$4};var Bn$3=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ue$3(e){return e}function oy(...e){return da(e)}function da(e){return e.length===0?ue$3:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var R$2=(()=>{class e{constructor(n){n&&(this._subscribe=n);}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=sy(n)?n:new Le$2(n,r,o);return jn$3(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i));}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r);}}forEach(n,r){return r=Xl(r),new r((o,i)=>{let s=new Le$2({next:a=>{try{n(a);}catch(c){i(c),s.unsubscribe();}},error:i,complete:o});this.subscribe(s);})}_subscribe(n){var r;return (r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Bn$3](){return this}pipe(...n){return da(n)(this)}toPromise(n){return n=Xl(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i));})}}return e.create=t=>new e(t),e})();function Xl(e){var t;return (t=e??Pe$2.Promise)!==null&&t!==void 0?t:Promise}function iy(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function sy(e){return e&&e instanceof nn$2||iy(e)&&jo$2(e)}var Jl=Rt$1(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var le$4=(()=>{class e extends R$2{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new Ho$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Jl}next(n){jn$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){jn$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=true,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n);}});}complete(){jn$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=true;let{observers:n}=this;for(;n.length;)n.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=true,this.observers=this.currentObservers=null;}get observed(){var n;return ((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?sa$1:(this.currentObservers=null,i.push(n),new ee$5(()=>{this.currentObservers=null,en$2(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new R$2;return n.source=this,n}}return e.create=(t,n)=>new Ho$1(t,n),e})(),Ho$1=class Ho extends le$4{constructor(t,n){super(),this.destination=t,this.source=n;}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t);}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t);}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t);}_subscribe(t){var n,r;return (r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:sa$1}};var Tr$1=class Tr extends le$4{constructor(t){super(),this._value=t;}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return !n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t);}};var rn$2=new R$2(e=>e.complete());function Uo$1(e){return e&&M(e.schedule)}function fa(e){return e[e.length-1]}function $o$1(e){return M(fa(e))?e.pop():void 0}function Ze$2(e){return Uo$1(fa(e))?e.pop():void 0}function ed(e,t){return typeof fa(e)=="number"?e.pop():t}function nd(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i);})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l));}catch(d){s(d);}}function c(l){try{u(r.throw(l));}catch(d){s(d);}}function u(l){l.done?i(l.value):o(l.value).then(a,c);}u((r=r.apply(e,[])).next());})}function td(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function on$2(e){return this instanceof on$2?(this.v=e,this):new on$2(e)}function rd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(y){return new Promise(function(D,_){i.push([f,y,D,_])>1||c(f,y);})},h&&(o[f]=h(o[f])));}function c(f,h){try{u(r[f](h));}catch(y){p(i[0][3],y);}}function u(f){f.value instanceof on$2?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f);}function l(f){c("next",f);}function d(f){c("throw",f);}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function od(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof td=="function"?td(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value);})};}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a});},s);}}var zo$1=e=>e&&typeof e.length=="number"&&typeof e!="function";function Go$1(e){return M(e?.then)}function Wo$1(e){return M(e[Bn$3])}function qo$1(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function Zo$1(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function ay(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Yo$1=ay();function Qo$1(e){return M(e?.[Yo$1])}function Ko$1(e){return rd(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield on$2(n.read());if(o)return yield on$2(void 0);yield yield on$2(r);}}finally{n.releaseLock();}})}function Xo$1(e){return M(e?.getReader)}function A$2(e){if(e instanceof R$2)return e;if(e!=null){if(Wo$1(e))return cy(e);if(zo$1(e))return uy(e);if(Go$1(e))return ly(e);if(qo$1(e))return id(e);if(Qo$1(e))return dy(e);if(Xo$1(e))return fy(e)}throw Zo$1(e)}function cy(e){return new R$2(t=>{let n=e[Bn$3]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function uy(e){return new R$2(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function ly(e){return new R$2(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,Bo$1);})}function dy(e){return new R$2(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function id(e){return new R$2(t=>{py(e,t).catch(n=>t.error(n));})}function fy(e){return id(Ko$1(e))}function py(e,t){var n,r,o,i;return nd(this,void 0,void 0,function*(){try{for(n=od(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s};}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n));}finally{if(o)throw o.error}}t.complete();})}function oe$3(e,t,n,r=0,o=false){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe();},r);if(e.add(i),!o)return i}function hy(e){return M(e?.lift)}function w(e){return t=>{if(hy(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 C(e,t,n,r,o){return new pa(e,t,n,r,o)}var pa=class extends nn$2{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()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this));}}};function Jo$1(e,t=0){return w((n,r)=>{n.subscribe(C(r,o=>oe$3(r,e,()=>r.next(o),t),()=>oe$3(r,e,()=>r.complete(),t),o=>oe$3(r,e,()=>r.error(o),t)));})}function ei$3(e,t=0){return w((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function sd(e,t){return A$2(e).pipe(ei$3(t),Jo$1(t))}function ad(e,t){return A$2(e).pipe(ei$3(t),Jo$1(t))}function cd(e,t){return new R$2(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function ud(e,t){return new R$2(n=>{let r;return oe$3(n,t,()=>{r=e[Yo$1](),oe$3(n,t,()=>{let o,i;try{({value:o,done:i}=r.next());}catch(s){n.error(s);return}i?n.complete():n.next(o);},0,true);}),()=>M(r?.return)&&r.return()})}function ti$3(e,t){if(!e)throw new Error("Iterable cannot be null");return new R$2(n=>{oe$3(n,t,()=>{let r=e[Symbol.asyncIterator]();oe$3(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function ld(e,t){return ti$3(Ko$1(e),t)}function dd(e,t){if(e!=null){if(Wo$1(e))return sd(e,t);if(zo$1(e))return cd(e,t);if(Go$1(e))return ad(e,t);if(qo$1(e))return ti$3(e,t);if(Qo$1(e))return ud(e,t);if(Xo$1(e))return ld(e,t)}throw Zo$1(e)}function Ye$2(e,t){return t?dd(e,t):A$2(e)}function br$1(...e){let t=Ze$2(e);return Ye$2(e,t)}var sn$2=Rt$1(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function gy(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new Le$2({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{n?r(t.defaultValue):o(new sn$2);}});e.subscribe(i);})}function ne$3(e,t){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:my}=Array,{getPrototypeOf:yy,prototype:vy,keys:Dy}=Object;function ni$3(e){if(e.length===1){let t=e[0];if(my(t))return {args:t,keys:null};if(Ey(t)){let n=Dy(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function Ey(e){return e&&typeof e=="object"&&yy(e)===vy}var{isArray:Iy}=Array;function wy(e,t){return Iy(t)?e(...t):e(t)}function ri$3(e){return ne$3(t=>wy(e,t))}function oi$3(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Cy(...e){let t=Ze$2(e),n=$o$1(e),{args:r,keys:o}=ni$3(e);if(r.length===0)return Ye$2([],t);let i=new R$2(Ty(r,t,o?s=>oi$3(o,s):ue$3));return n?i.pipe(ri$3(n)):i}function Ty(e,t,n=ue$3){return r=>{fd(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)fd(t,()=>{let u=Ye$2(e[c],t),l=false;u.subscribe(C(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function fd(e,t,n){e?oe$3(n,e,t):t();}function by(...e){let t=$o$1(e),{args:n,keys:r}=ni$3(e),o=new R$2(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=false;A$2(n[l]).subscribe(C(i,p=>{d||(d=true,u--),a[l]=p;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?oi$3(r,a):a),i.complete());}));}});return t?o.pipe(ri$3(t)):o}function ii$3(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,p=()=>{d&&!c.length&&!u&&t.complete();},f=y=>u<r?h(y):c.push(y),h=y=>{i&&t.next(y),u++;let D=false;A$2(n(y,l++)).subscribe(C(t,_=>{i?f(_):t.next(_);},()=>{D=true;},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let _=c.shift();s?oe$3(t,s,()=>h(_)):h(_);}p();}catch(_){t.error(_);}}));};return e.subscribe(C(t,f,()=>{d=true,p();})),()=>{}}function pt$4(e,t,n=1/0){return M(t)?pt$4((r,o)=>ne$3((i,s)=>t(r,i,o,s))(A$2(e(r,o))),n):(typeof t=="number"&&(n=t),w((r,o)=>ii$3(r,o,e,n)))}function Sr$1(e=1/0){return pt$4(ue$3,e)}function Sy(...e){let t=Ze$2(e),n=ed(e,1/0),r=e;return r.length?r.length===1?A$2(r[0]):Sr$1(n)(Ye$2(r,t)):rn$2}function Ot$1(e,t){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>e.call(t,i,o++)&&r.next(i)));})}function ha(e){return w((t,n)=>{let r=null,o=!1,i;r=t.subscribe(C(n,void 0,void 0,s=>{i=A$2(e(s,ha(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var si$3=class si extends ee$5{constructor(t,n){super();}schedule(t,n=0){return this}};var _r$1={setInterval(e,t,...n){let{delegate:r}=_r$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var ai$3=class ai extends si$3{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=false;}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=true,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return _r$1.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&_r$1.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=false,en$2(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var Mr$1={now(){return (Mr$1.delegate||Date).now()},delegate:void 0};var Vn$3=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n;}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Vn$3.now=Mr$1.now;var ci$3=class ci extends Vn$3{constructor(t,n=Vn$3.now){super(t,n),this.actions=[],this._active=false;}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=true;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=false,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var ht$4=new ci$3(ai$3),pd=ht$4;function hd(e,t=ht$4){return w((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u);}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a();}n.subscribe(C(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}function ui$3(e){return w((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function gd(e){return Ot$1((t,n)=>e<=n)}function md(){return Sr$1(1)}function kt$1(...e){return md()(Ye$2(e,Ze$2(e)))}function yd(...e){let t=Ze$2(e);return w((n,r)=>{(t?kt$1(e,n,t):kt$1(e,n)).subscribe(r);})}function ga(e,t){return w((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(C(r,c=>{o?.unsubscribe();let u=0,l=i++;A$2(e(c,l)).subscribe(o=C(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function vd(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?w((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(C(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c);},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete();},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c);},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r);}));}):ue$3}var Nr$1=class Nr extends le$4{constructor(t=1/0,n=1/0,r=Mr$1){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};function _y(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new R$2(r)}function My(e){return !!e&&(e instanceof R$2||M(e.lift)&&M(e.subscribe))}function li$3(e){return e instanceof Date&&!isNaN(e)}var Dd=Rt$1(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function Ny(e,t){let{first:n,each:r,with:o=xy,scheduler:i=ht$4,meta:s=null}=li$3(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return w((a,c)=>{let u,l,d=null,p=0,f=h=>{l=oe$3(c,i,()=>{try{u.unsubscribe(),A$2(o({meta:s,lastValue:d,seen:p})).subscribe(c);}catch(y){c.error(y);}},h);};u=a.subscribe(C(c,h=>{l?.unsubscribe(),p++,c.next(d=h),r>0&&f(r);},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null;})),!p&&f(n!=null?typeof n=="number"?n:+n-i.now():r);})}function xy(e){throw new Dd(e)}function Ay(e){return new R$2(t=>{A$2(e()).subscribe(t);})}function an$2(e=0,t,n=pd){let r=-1;return t!=null&&(Uo$1(t)?n=t:r=t),new R$2(o=>{let i=li$3(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete());},i)})}function Ed(e){return w((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u);}s&&n.complete();},c=()=>{i=null,s&&n.complete();};t.subscribe(C(n,u=>{r=!0,o=u,i||A$2(e(u)).subscribe(i=C(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Ry(e,t=ht$4){return Ed(()=>an$2(e,t))}function Id(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(C(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function di$3(e,t){return M(t)?pt$4(e,t,1):pt$4(e,1)}function wd(e){return w((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function cn$2(e){return e<=0?()=>rn$2:w((t,n)=>{let r=0;t.subscribe(C(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function ma(){return w((e,t)=>{e.subscribe(C(t,ft$4));})}function ya(e){return ne$3(()=>e)}function va(e,t){return t?n=>kt$1(t.pipe(cn$2(1),ma()),n.pipe(va(e))):pt$4((n,r)=>A$2(e(n,r)).pipe(cn$2(1),ya(n)))}function Oy(e,t=ht$4){let n=an$2(e,t);return va(()=>n)}function ky(e,t){return w((n,r)=>{let o=new Set;n.subscribe(C(r,i=>{let s=e?e(i):i;o.has(s)||(o.add(s),r.next(i));})),t&&A$2(t).subscribe(C(r,()=>o.clear(),ft$4));})}function Cd(e,t=ue$3){return e=e??Fy,w((n,r)=>{let o,i=!0;n.subscribe(C(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Fy(e,t){return e===t}function Td(e=Py){return w((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function Py(){return new sn$2}function Ly(...e){return t=>kt$1(t,br$1(...e))}function Da(e,t){return t?n=>n.pipe(Da((r,o)=>A$2(e(r,o)).pipe(ne$3((i,s)=>t(r,i,o,s))))):w((n,r)=>{let o=0,i=null,s=!1;n.subscribe(C(r,a=>{i||(i=C(r,void 0,()=>{i=null,s&&r.complete();}),A$2(e(a,o++)).subscribe(i));},()=>{s=!0,!i&&r.complete();}));})}function jy(e,t=1/0,n){return t=(t||0)<1?1/0:t,w((r,o)=>ii$3(r,o,e,t,void 0,!0,n))}function By(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ot$1((o,i)=>e(o,i,r)):ue$3,cn$2(1),n?wd(t):Td(()=>new sn$2))}function Vy(e){return e<=0?()=>rn$2:w((t,n)=>{let r=[];t.subscribe(C(n,o=>{r.push(o),e<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));})}function Hy(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=false}=t;return n<=0?ue$3:w((i,s)=>{let a=0,c,u=()=>{let l=!1;c=i.subscribe(C(s,d=>{o&&(a=0),s.next(d);},void 0,d=>{if(a++<n){let p=()=>{c?(c.unsubscribe(),c=null,u()):l=!0;};if(r!=null){let f=typeof r=="number"?an$2(r):A$2(r(d,a)),h=C(s,()=>{h.unsubscribe(),p();},()=>{s.complete();});f.subscribe(h);}else p();}else s.error(d);})),l&&(c.unsubscribe(),c=null,u());};u();})}function Uy(e,t){return w(Id(e,t,arguments.length>=2,!0))}function Ia(e={}){let{connector:t=()=>new le$4,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,p=()=>{a?.unsubscribe(),a=void 0;},f=()=>{p(),s=c=void 0,l=d=false;},h=()=>{let y=s;f(),y?.unsubscribe();};return w((y,D)=>{u++,!d&&!l&&p();let _=c=c??t();D.add(()=>{u--,u===0&&!d&&!l&&(a=Ea$1(h,o));}),_.subscribe(D),!s&&u>0&&(s=new Le$2({next:$=>_.next($),error:$=>{d=!0,p(),a=Ea$1(f,n,$),_.error($);},complete:()=>{l=!0,p(),a=Ea$1(f,r),_.complete();}}),A$2(y).subscribe(s));})(i)}}function Ea$1(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new Le$2({next:()=>{r.unsubscribe(),e();}});return A$2(t(...n)).subscribe(r)}function $y(e,t,n){let r,o=false;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=false,scheduler:n}=e:r=e??1/0,Ia({connector:()=>new Nr$1(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function bd(e){return w((t,n)=>{A$2(e).subscribe(C(n,()=>n.complete(),ft$4)),!n.closed&&t.subscribe(n);})}function zy(e,t=false){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var de$5=null,fi$3=false,un$2=1,q$1=Symbol("SIGNAL");function I(e){let t=de$5;return de$5=e,t}function pi$3(){return de$5}var Ft$2={version:0,lastCleanEpoch:0,dirty:false,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:false,consumerAllowSignalWrites:false,consumerIsAlwaysLive:false,kind:"unknown",producerMustRecompute:()=>false,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function gt$3(e){if(fi$3)throw new Error("");if(de$5===null)return;de$5.consumerOnSignalRead(e);let t=de$5.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=de$5.recomputing;if(r&&(n=t!==void 0?t.nextProducer:de$5.producers,n!==void 0&&n.producer===e)){de$5.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=un$2;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===de$5&&(!r||o.knownValidAtEpoch===un$2))return;let i=$n$3(de$5),s={producer:e,consumer:de$5,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:un$2,lastReadVersion:e.version,nextConsumer:void 0};de$5.producersTail=s,t!==void 0?t.nextProducer=s:de$5.producers=s,i&&Nd(e,s);}function Sd(){un$2++;}function fn$2(e){if(!($n$3(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===un$2)){if(!e.producerMustRecompute(e)&&!Un$3(e)){Hn$3(e);return}e.producerRecomputeValue(e),Hn$3(e);}}function wa(e){if(e.consumers===void 0)return;let t=fi$3;fi$3=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Wy(r);}}finally{fi$3=t;}}function Ca(){return de$5?.consumerAllowSignalWrites!==false}function Wy(e){e.dirty=true,wa(e),e.consumerMarkedDirty?.(e);}function Hn$3(e){e.dirty=false,e.lastCleanEpoch=un$2;}function mt$4(e){return e&&_d(e),I(e)}function _d(e){if(e.producersTail?.knownValidAtEpoch===un$2){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function Pt$3(e,t){I(t),e&&Md(e);}function Md(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if($n$3(e))do n=Ta(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Un$3(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(fn$2(n),r!==n.version))return true}return false}function Lt$2(e){if($n$3(e)){let t=e.producers;for(;t!==void 0;)t=Ta(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function Nd(e,t){let n=e.consumersTail,r=$n$3(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Nd(o.producer,o);}function Ta(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!$n$3(t)){let i=t.producers;for(;i!==void 0;)i=Ta(i);}return n}function $n$3(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ar$1(e,t){return Object.is(e,t)}function Rr$1(e,t){let n=Object.create(qy);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(fn$2(n),gt$3(n),n.value===Qe$2)throw n.error;return n.value};return r[q$1]=n,r}var ln$1=Symbol("UNSET"),dn$3=Symbol("COMPUTING"),Qe$2=Symbol("ERRORED"),qy=x$1(w$1({},Ft$2),{value:ln$1,dirty:true,error:null,equal:Ar$1,kind:"computed",producerMustRecompute(e){return e.value===ln$1||e.value===dn$3},producerRecomputeValue(e){if(e.value===dn$3)throw new Error("");let t=e.value;e.value=dn$3;let n=mt$4(e),r,o=false;try{r=e.computation(),I(null),o=t!==ln$1&&t!==Qe$2&&r!==Qe$2&&e.equal(t,r);}catch(i){r=Qe$2,e.error=i;}finally{Pt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Zy(){throw new Error}var xd=Zy;function Ad(e){xd(e);}function ba(e){xd=e;}function Sa(e,t){let n=Object.create(Or);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Rd(n);return r[q$1]=n,[r,s=>jt$2(n,s),s=>hi$3(n,s)]}function Rd(e){return gt$3(e),e.value}function jt$2(e,t){Ca()||Ad(e),e.equal(e.value,t)||(e.value=t,Qy(e));}function hi$3(e,t){Ca()||Ad(e),jt$2(e,t(e.value));}var Or=x$1(w$1({},Ft$2),{equal:Ar$1,value:void 0,kind:"signal"});function Qy(e){e.version++,Sd(),wa(e);}var _a=x$1(w$1({},Ft$2),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function Ma(e){if(e.dirty=false,e.version>0&&!Un$3(e))return;e.version++;let t=mt$4(e);try{e.cleanup(),e.fn();}finally{Pt$3(e,t);}}var Na;function gi$3(){return Na}function Ke$3(e){let t=Na;return Na=e,t}var Od=Symbol("NotFound");function zn$3(e){return e===Od||e?.name==="\u0275NotFound"}function xa(e,t,n){let r=Object.create(Ky);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(fn$2(r),gt$3(r),r.value===Qe$2)throw r.error;return r.value};return i[q$1]=r,i}function kd(e,t){fn$2(e),jt$2(e,t),Hn$3(e);}function Fd(e,t){if(fn$2(e),e.value===Qe$2)throw e.error;hi$3(e,t),Hn$3(e);}var Ky=x$1(w$1({},Ft$2),{value:ln$1,dirty:true,error:null,equal:Ar$1,kind:"linkedSignal",producerMustRecompute(e){return e.value===ln$1||e.value===dn$3},producerRecomputeValue(e){if(e.value===dn$3)throw new Error("");let t=e.value;e.value=dn$3;let n=mt$4(e),r,o=false;try{let i=e.source(),s=t!==ln$1&&t!==Qe$2,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,I(null),o=s&&r!==Qe$2&&e.equal(t,r);}catch(i){r=Qe$2,e.error=i;}finally{Pt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Pd(e){let t=I(null);try{return e()}finally{I(t);}}var wi$3="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m$2=class m extends Error{code;constructor(t,n){super(Xe(t,n)),this.code=t;}};function Xy(e){return `NG0${Math.abs(e)}`}function Xe(e,t){return `${Xy(e)}${t?": "+t:""}`}function k$2(e){for(let t in e)if(e[t]===k$2)return t;throw Error("")}function Hd(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function Br(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(Br).join(", ")}]`;if(e==null)return ""+e;let t=e.overriddenName||e.name;if(t)return `${t}`;let n=e.toString();if(n==null)return ""+n;let r=n.indexOf(`
|
|
4
|
+
`);return r>=0?n.slice(0,r):n}function Ci$3(e,t){return e?t?`${e} ${t}`:e:t||""}var Jy=k$2({__forward_ref__:k$2});function Ti$3(e){return e.__forward_ref__=Ti$3,e}function re$3(e){return $a(e)?e():e}function $a(e){return typeof e=="function"&&e.hasOwnProperty(Jy)&&e.__forward_ref__===Ti$3}function x(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Vr(e){return {providers:e.providers||[],imports:e.imports||[]}}function Hr(e){return tv(e,bi$3)}function ev(e){return Hr(e)!==null}function tv(e,t){return e.hasOwnProperty(t)&&e[t]||null}function nv(e){let t=e?.[bi$3]??null;return t||null}function Ra(e){return e&&e.hasOwnProperty(yi$3)?e[yi$3]:null}var bi$3=k$2({\u0275prov:k$2}),yi$3=k$2({\u0275inj:k$2}),T$4=class T{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function za(e){return e&&!!e.\u0275providers}var Ga=k$2({\u0275cmp:k$2}),Wa=k$2({\u0275dir:k$2}),qa=k$2({\u0275pipe:k$2}),Za=k$2({\u0275mod:k$2}),Fr=k$2({\u0275fac:k$2}),yn$2=k$2({__NG_ELEMENT_ID__:k$2}),Ld=k$2({__NG_ENV_ID__:k$2});function Ud(e){return Si$3(e),e[Za]||null}function Et$2(e){return Si$3(e),e[Ga]||null}function Ya(e){return Si$3(e),e[Wa]||null}function $d(e){return Si$3(e),e[qa]||null}function Si$3(e,t){if(e==null)throw new m$2(-919,false)}function Z$1(e){return typeof e=="string"?e:e==null?"":String(e)}var zd=k$2({ngErrorCode:k$2}),rv=k$2({ngErrorMessage:k$2});k$2({ngTokenPath:k$2});function Qa(e,t){return Gd("",-200)}function _i$3(e,t){throw new m$2(-201,false)}function Gd(e,t,n){let r=new m$2(t,e);return r[zd]=t,r[rv]=e,r}function iv(e){return e[zd]}var Oa;function Wd(){return Oa}function fe$5(e){let t=Oa;return Oa=e,t}function Ka(e,t,n){let r=Hr(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;_i$3();}var _e$4=globalThis;var sv={},pn$2=sv,av="__NG_DI_FLAG__",ka$1=class ka{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=hn$2(n)||0;try{return this.injector.get(t,r&8?null:pn$2,r)}catch(o){if(zn$3(o))return o;throw o}}};function cv(e,t=0){let n=gi$3();if(n===void 0)throw new m$2(-203,false);if(n===null)return Ka(e,void 0,t);{let r=uv(t),o=n.retrieve(e,r);if(zn$3(o)){if(r.optional)return null;throw o}return o}}function b$2(e,t=0){return (Wd()||cv)(re$3(e),t)}function g(e,t){return b$2(e,hn$2(t))}function hn$2(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function uv(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Fa(e){let t=[];for(let n=0;n<e.length;n++){let r=re$3(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m$2(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=lv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(b$2(o,i));}else t.push(b$2(r));}return t}function lv(e){return e[av]}function Bt$1(e,t){let n=e.hasOwnProperty(Fr);return n?e[Fr]:null}function qd(e,t,n){if(e.length!==t.length)return false;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return false}return true}function Zd(e){return e.flat(Number.POSITIVE_INFINITY)}function Mi$3(e,t){e.forEach(n=>Array.isArray(n)?Mi$3(n,t):t(n));}function Xa(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Ur(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Yd(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Qd(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else {for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--;}e[t]=n,e[t+1]=r;}}function Ni$3(e,t,n){let r=qn$3(e,t);return r>=0?e[r|1]=n:(r=~r,Qd(e,r,t,n)),r}function xi$2(e,t){let n=qn$3(e,t);if(n>=0)return e[n|1]}function qn$3(e,t){return dv(e,t,1)}function dv(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1;}return ~(o<<n)}var Ht$1={},ie$2=[],It$2=new T$4(""),$r=new T$4("",-1),Ja=new T$4(""),Wn$3=class Wn{get(t,n=pn$2){if(n===pn$2){let o=Gd("",-201);throw o.name="\u0275NotFound",o}return n}};function wt$3(e){return {\u0275providers:e}}function Kd(e){return wt$3([{provide:It$2,multi:true,useValue:e}])}function Xd(...e){return {\u0275providers:ec(true,e),\u0275fromNgModule:true}}function ec(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return Mi$3(t,s=>{let a=s;vi$3(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Jd(o,i),n}function Jd(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];tc(o,i=>{t(i,r);});}}function vi$3(e,t,n,r){if(e=re$3(e),!e)return false;let o=null,i=Ra(e),s=!i&&Et$2(e);if(!i&&!s){let c=e.ngModule;if(i=Ra(c),i)o=c;else return false}else {if(s&&!s.standalone)return false;o=e;}let a=r.has(o);if(s){if(a)return false;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)vi$3(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Mi$3(i.imports,l=>{vi$3(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Jd(u,t);}if(!a){let u=Bt$1(o)||(()=>new o);t({provide:o,useFactory:u,deps:ie$2},o),t({provide:Ja,useValue:o,multi:true},o),t({provide:It$2,useValue:()=>b$2(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;tc(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function tc(e,t){for(let n of e)za(n)&&(n=n.\u0275providers),Array.isArray(n)?tc(n,t):t(n);}var fv=k$2({provide:String,useValue:k$2});function ef(e){return e!==null&&typeof e=="object"&&fv in e}function pv(e){return !!(e&&e.useExisting)}function hv(e){return !!(e&&e.useFactory)}function gn$2(e){return typeof e=="function"}function tf(e){return !!e.useClass}var zr=new T$4(""),mi$3={},jd={},Aa;function Zn$3(){return Aa===void 0&&(Aa=new Wn$3),Aa}var pe$5=class pe{},mn$2=class mn extends pe$5{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,La(t,s=>this.processProvider(s)),this.records.set($r,Gn$3(void 0,this)),o.has("environment")&&this.records.set(pe$5,Gn$3(void 0,this));let i=this.records.get(zr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ja,ie$2,{self:true}));}retrieve(t,n){let r=hn$2(n)||0;try{return this.get(t,pn$2,r)}catch(o){if(zn$3(o))return o;throw o}}destroy(){kr(this),this._destroyed=true;let t=I(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),I(t);}}onDestroy(t){return kr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){kr(this);let n=Ke$3(this),r=fe$5(void 0);try{return t()}finally{Ke$3(n),fe$5(r);}}get(t,n=pn$2,r){if(kr(this),t.hasOwnProperty(Ld))return t[Ld](this);let o=hn$2(r),s=Ke$3(this),a=fe$5(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Dv(t)&&Hr(t);l&&this.injectableDefInScope(l)?u=Gn$3(Pa(t),mi$3):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Zn$3():this.parent;return n=o&8&&n===pn$2?null:n,c.get(t,n)}catch(c){let u=iv(c);throw u===-200||u===-201?new m$2(u,null):c}finally{fe$5(a),Ke$3(s);}}resolveInjectorInitializers(){let t=I(null),n=Ke$3(this),r=fe$5(void 0);try{let i=this.get(It$2,ie$2,{self:!0});for(let s of i)s();}finally{Ke$3(n),fe$5(r),I(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=re$3(t);let n=gn$2(t)?t:re$3(t&&t.provide),r=mv(t);if(!gn$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=Gn$3(void 0,mi$3,true),o.factory=()=>Fa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=I(null);try{if(n.value===jd)throw Qa("");return n.value===mi$3&&(n.value=jd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&vv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=re$3(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1);}};function Pa(e){let t=Hr(e),n=t!==null?t.factory:Bt$1(e);if(n!==null)return n;if(e instanceof T$4)throw new m$2(-204,false);if(e instanceof Function)return gv(e);throw new m$2(-204,false)}function gv(e){if(e.length>0)throw new m$2(-204,false);let n=nv(e);return n!==null?()=>n.factory(e):()=>new e}function mv(e){if(ef(e))return Gn$3(void 0,e.useValue);{let t=nc(e);return Gn$3(t,mi$3)}}function nc(e,t,n){let r;if(gn$2(e)){let o=re$3(e);return Bt$1(o)||Pa(o)}else if(ef(e))r=()=>re$3(e.useValue);else if(hv(e))r=()=>e.useFactory(...Fa(e.deps||[]));else if(pv(e))r=(o,i)=>b$2(re$3(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=re$3(e&&(e.useClass||e.provide));if(yv(e))r=()=>new o(...Fa(e.deps));else return Bt$1(o)||Pa(o)}return r}function kr(e){if(e.destroyed)throw new m$2(-205,false)}function Gn$3(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function yv(e){return !!e.deps}function vv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Dv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function La(e,t){for(let n of e)Array.isArray(n)?La(n,t):n&&za(n)?La(n.\u0275providers,t):t(n);}function Yn$3(e,t){let n;e instanceof mn$2?(kr(e),n=e):n=new ka$1(e);let o=Ke$3(n),i=fe$5(void 0);try{return t()}finally{Ke$3(o),fe$5(i);}}function nf(){return Wd()!==void 0||gi$3()!=null}var Be$3=0,E=1,S$2=2,te$4=3,Me$3=4,se$2=5,vn$2=6,Qn$3=7,Y$3=8,Je$3=9,Ve$2=10,L$3=11,Kn$3=12,rc=13,Ut$3=14,ae$3=15,$t$3=16,Dn$3=17,et=18,tt$1=19,oc=20,vt$3=21,Ai$3=22,Vt$1=23,De$3=24,En$3=25,nt$1=26,H$1=27,rf=1,ic=6,zt$1=7,Gr=8,In$3=9,W$4=10;function Ct$2(e){return Array.isArray(e)&&typeof e[rf]=="object"}function Ne$3(e){return Array.isArray(e)&&e[rf]===true}function sc(e){return (e.flags&4)!==0}function Tt$3(e){return e.componentOffset>-1}function Xn$3(e){return (e.flags&1)===1}function rt$2(e){return !!e.template}function Jn$2(e){return (e[S$2]&512)!==0}function wn$3(e){return (e[S$2]&256)===256}var ac="svg",of="math";function xe$3(e){for(;Array.isArray(e);)e=e[Be$3];return e}function cc(e,t){return xe$3(t[e])}function Ae$2(e,t){return xe$3(t[e.index])}function Ri$3(e,t){return e.data[t]}function Oi$2(e,t){return e[t]}function uc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function Re$3(e,t){let n=t[e];return Ct$2(n)?n:n[Be$3]}function sf(e){return (e[S$2]&4)===4}function ki$3(e){return (e[S$2]&128)===128}function af(e){return Ne$3(e[te$4])}function Ee$3(e,t){return t==null?null:e[t]}function lc(e){e[Dn$3]=0;}function dc(e){e[S$2]&1024||(e[S$2]|=1024,ki$3(e)&&Cn$3(e));}function cf(e,t){for(;e>0;)t=t[Ut$3],e--;return t}function Wr(e){return !!(e[S$2]&9216||e[De$3]?.dirty)}function Fi$3(e){e[Ve$2].changeDetectionScheduler?.notify(8),e[S$2]&64&&(e[S$2]|=1024),Wr(e)&&Cn$3(e);}function Cn$3(e){e[Ve$2].changeDetectionScheduler?.notify(0);let t=Dt$2(e);for(;t!==null&&!(t[S$2]&8192||(t[S$2]|=8192,!ki$3(t)));)t=Dt$2(t);}function Pi$3(e,t){if(wn$3(e))throw new m$2(911,false);e[vt$3]===null&&(e[vt$3]=[]),e[vt$3].push(t);}function uf(e,t){if(e[vt$3]===null)return;let n=e[vt$3].indexOf(t);n!==-1&&e[vt$3].splice(n,1);}function Dt$2(e){let t=e[te$4];return Ne$3(t)?t[te$4]:t}function fc(e){return e[Qn$3]??=[]}function pc(e){return e.cleanup??=[]}function lf(e,t,n,r){let o=fc(t);o.push(n),e.firstCreatePass&&pc(e).push(r,o.length-1);}var N$2={lFrame:Cf(null),bindingsEnabled:true,skipHydrationRootTNode:null};var ja=false;function df(){return N$2.lFrame.elementDepthCount}function ff(){N$2.lFrame.elementDepthCount++;}function hc(){N$2.lFrame.elementDepthCount--;}function Li$2(){return N$2.bindingsEnabled}function gc(){return N$2.skipHydrationRootTNode!==null}function mc(e){return N$2.skipHydrationRootTNode===e}function yc(){N$2.skipHydrationRootTNode=null;}function v$1(){return N$2.lFrame.lView}function j$4(){return N$2.lFrame.tView}function pf(e){return N$2.lFrame.contextLView=e,e[Y$3]}function hf(e){return N$2.lFrame.contextLView=null,e}function X$2(){let e=vc();for(;e!==null&&e.type===64;)e=e.parent;return e}function vc(){return N$2.lFrame.currentTNode}function gf(){let e=N$2.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function er$1(e,t){let n=N$2.lFrame;n.currentTNode=e,n.isParent=t;}function Dc(){return N$2.lFrame.isParent}function Ec(){N$2.lFrame.isParent=false;}function mf(){return N$2.lFrame.contextLView}function Ic(){return ja}function Pr(e){let t=ja;return ja=e,t}function Gt$1(){let e=N$2.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function qr(){return N$2.lFrame.bindingIndex}function yf(e){return N$2.lFrame.bindingIndex=e}function Wt$1(){return N$2.lFrame.bindingIndex++}function Tn$3(e){let t=N$2.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function vf(){return N$2.lFrame.inI18n}function Df(e,t){let n=N$2.lFrame;n.bindingIndex=n.bindingRootIndex=e,ji$1(t);}function Ef(){return N$2.lFrame.currentDirectiveIndex}function ji$1(e){N$2.lFrame.currentDirectiveIndex=e;}function If(e){let t=N$2.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Bi$2(){return N$2.lFrame.currentQueryIndex}function Zr(e){N$2.lFrame.currentQueryIndex=e;}function Ev(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[se$2]:null}function wc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Ev(i),o===null||(i=i[Ut$3],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=N$2.lFrame=wf();return r.currentTNode=t,r.lView=e,true}function Vi$2(e){let t=wf(),n=e[E];N$2.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function wf(){let e=N$2.lFrame,t=e===null?null:e.child;return t===null?Cf(e):t}function Cf(e){let t={currentTNode:null,isParent:true,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:false};return e!==null&&(e.child=t),t}function Tf(){let e=N$2.lFrame;return N$2.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Cc=Tf;function Hi$1(){let e=Tf();e.isParent=true,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 bf(e){return (N$2.lFrame.contextLView=cf(e,N$2.lFrame.contextLView))[Y$3]}function Ie$2(){return N$2.lFrame.selectedIndex}function qt$1(e){N$2.lFrame.selectedIndex=e;}function tr$1(){let e=N$2.lFrame;return Ri$3(e.tView,e.selectedIndex)}function Sf(){N$2.lFrame.currentNamespace=ac;}function _f(){Iv();}function Iv(){N$2.lFrame.currentNamespace=null;}function Tc(){return N$2.lFrame.currentNamespace}var Mf=true;function Ui$1(){return Mf}function Yr(e){Mf=e;}function Ba(e,t=null,n=null,r){let o=bc(e,t,n);return o.resolveInjectorInitializers(),o}function bc(e,t=null,n=null,r,o=new Set){let i=[n||ie$2,Xd(e)];return new mn$2(i,t||Zn$3(),null,o)}var he$4=class e{static THROW_IF_NOT_FOUND=pn$2;static NULL=new Wn$3;static create(t,n){if(Array.isArray(t))return Ba({name:""},n,t);{let r=t.name??"";return Ba({name:r},t.parent,t.providers)}}static \u0275prov=x({token:e,providedIn:"any",factory:()=>b$2($r)});static __NG_ELEMENT_ID__=-1},U$5=new T$4(""),we$2=(()=>{class e{static __NG_ELEMENT_ID__=wv;static __NG_ENV_ID__=n=>n}return e})(),Di$3=class Di extends we$2{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return wn$3(this._lView)}onDestroy(t){let n=this._lView;return Pi$3(n,t),()=>uf(n,t)}};function wv(){return new Di$3(v$1())}var Sc=false,Nf=new T$4(""),Zt$2=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Tr$1(false);debugTaskTracker=g(Nf,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new R$2(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),Va=class extends le$4{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,nf()&&(this.destroyRef=g(we$2,{optional:true})??void 0,this.pendingTasks=g(Zt$2,{optional:true})??void 0);}emit(t){let n=I(null);try{super.next(t);}finally{I(n);}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let 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)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ee$5&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n);}finally{r!==void 0&&this.pendingTasks?.remove(r);}});}}},yt$3=Va;function Ei$2(...e){}function _c(e){let t,n;function r(){e=Ei$2;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t);}catch(o){}}return t=setTimeout(()=>{e(),r();}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r();})),()=>r()}function xf(e){return queueMicrotask(()=>e()),()=>{e=Ei$2;}}var Mc="isAngularZone",Lr=Mc+"_ID",Cv=0,G$2=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new yt$3(false);onMicrotaskEmpty=new yt$3(false);onStable=new yt$3(false);onError=new yt$3(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=Sc}=t;if(typeof Zone>"u")throw new m$2(908,false);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=false,s.scheduleInRootZone=i,Sv(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Mc)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new m$2(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m$2(909,false)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Tv,Ei$2,Ei$2);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)}},Tv={};function Nc(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null);}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null));}finally{e.isStable=true;}}}function bv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){_c(()=>{e.callbackScheduled=false,Ha(e),e.isCheckStableRunning=true,Nc(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Ha(e);}function Sv(e){let t=()=>{bv(e);},n=Cv++;e._inner=e._inner.fork({name:"angular",properties:{[Mc]:true,[Lr]:n,[Lr+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(_v(c))return r.invokeTask(i,s,a,c);try{return Bd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Vd(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Bd(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Mv(c)&&t(),Vd(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ha(e),Nc(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask));},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),false)});}function Ha(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function Bd(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function Vd(e){e._nesting--,Nc(e);}var jr=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new yt$3;onMicrotaskEmpty=new yt$3;onStable=new yt$3;onError=new yt$3;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 _v(e){return Af(e,"__ignore_ng_zone__")}function Mv(e){return Af(e,"__scheduler_tick__")}function Af(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Se$2=class Se{_console=console;handleError(t){this._console.error("ERROR",t);}},ot$2=new T$4("",{factory:()=>{let e=g(G$2),t=g(pe$5),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Se$2),n.handleError(r));});}}}),Rf={provide:It$2,useValue:()=>{g(Se$2,{optional:true});},multi:true},Nv=new T$4("",{factory:()=>{let e=g(U$5).defaultView;if(!e)return;let t=g(ot$2),n=i=>{t(i.reason),i.preventDefault();},r=i=>{i.error?t(i.error):t(new Error(i.message,{cause:i})),i.preventDefault();},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r);};typeof Zone<"u"?Zone.root.run(o):o(),g(we$2).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n);});}});function xv(){return wt$3([Kd(()=>{g(Nv);})])}function $i$1(e,t){let [n,r,o]=Sa(e,t?.equal),i=n;i[q$1];return i.set=r,i.update=o,i.asReadonly=Qr.bind(i),i}function Qr(){let e=this[q$1];if(e.readonlyFn===void 0){let t=()=>this();t[q$1]=e,e.readonlyFn=t;}return e.readonlyFn}var Kr=new T$4("",{factory:()=>Av}),Av="ng";var zi$2=new T$4(""),Xr=new T$4("",{providedIn:"platform",factory:()=>"unknown"}),Rv=new T$4(""),Jr=new T$4("",{factory:()=>g(U$5).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var nr$1=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Ov}return e})();function Ov(){return new nr$1(v$1(),X$2())}var je$3=class je{},rr$1=new T$4("",{factory:()=>true});var Gi$1=new T$4(""),Wi$1=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new Ua})}return e})(),Ua=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t);}schedule(t){t.dirty&&this.dirtyEffectCount++;}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--);}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t);}flush(){for(;this.dirtyEffectCount>0;){let t=false;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0);}}flushQueue(t){let n=false;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=true,r.run());return n}},Ii$1=class Ii{[q$1];constructor(t){this[q$1]=t;}destroy(){this[q$1].destroy();}};function Of(e,t){let n=t?.injector??g(he$4),r=t?.manualCleanup!==true?n.get(we$2):null,o,i=n.get(nr$1,null,{optional:true}),s=n.get(je$3);return i!==null?(o=Pv(i.view,s,e),r instanceof Di$3&&r._lView===i.view&&(r=null)):o=Lv(e,n.get(Wi$1),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ii$1(o)}var kf=x$1(w$1({},_a),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Pr(false);try{Ma(this);}finally{Pr(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=I(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],I(e);}}}),kv=x$1(w$1({},kf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Lt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),Fv=x$1(w$1({},kf),{consumerMarkedDirty(){this.view[S$2]|=8192,Cn$3(this.view),this.notifier.notify(13);},destroy(){if(Lt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Vt$1]?.delete(this);}});function Pv(e,t,n){let r=Object.create(Fv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Ff(r,n),e[Vt$1]??=new Set,e[Vt$1].add(r),r.consumerMarkedDirty(r),r}function Lv(e,t,n){let r=Object.create(kv);return r.fn=Ff(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Ff(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function eo$1(e){return typeof e=="function"&&e[q$1]!==void 0}function qi$1(e){return eo$1(e)&&typeof e.set=="function"}var to$1=(()=>{class e{internalPendingTasks=g(Zt$2);scheduler=g(je$3);errorHandler=g(ot$2);add(){let n=this.internalPendingTasks.add();return ()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n));}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r);}catch(o){this.errorHandler(o),r();}}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function po$1(e){return {toString:e}.toString()}var O$2=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(O$2||{}),ns=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function Ep(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var Ip=null,wu=(()=>{Ip=Pf;let e=()=>Pf;return e.ngInherit=true,e})();function Zv(){return Ip}function Pf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qv),Yv}function Yv(){let e=wp(this),t=e?.current;if(t){let n=e.previous;if(n===Ht$1)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function Qv(e,t,n,r,o){let i=this.declaredInputs[r],s=wp(e)||Kv(e,{previous:Ht$1,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ns(u&&u.currentValue,n,c===Ht$1),Ep(e,t,o,n);}var Hc="__ngSimpleChanges__";function wp(e){return Object.hasOwn(e,Hc)&&e[Hc]||null}function Kv(e,t){return e[Hc]=t}var Lf=[];var F$4=function(e,t=null,n){for(let r=0;r<Lf.length;r++){let o=Lf[r];o(e,t,n);}};function Xv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Zv()(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s);}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i));}function Cp(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l);}}function Xi$1(e,t,n){Tp(e,t,3,n);}function Ji$1(e,t,n,r){(e[S$2]&3)===n&&Tp(e,t,n,r);}function xc(e,t){let n=e[S$2];(n&3)===t&&(n&=16383,n+=1,e[S$2]=n);}function Tp(e,t,n,r){let o=r!==void 0?e[Dn$3]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Dn$3]+=65536),(a<i||i==-1)&&(Jv(e,n,t,c),e[Dn$3]=(e[Dn$3]&4294901760)+c+2),c++;}function jf(e,t){F$4(O$2.LifecycleHookStart,e,t);let n=I(null);try{t.call(e);}finally{I(n),F$4(O$2.LifecycleHookEnd,e,t);}}function Jv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[S$2]>>14<e[Dn$3]>>16&&(e[S$2]&3)===t&&(e[S$2]+=16384,jf(a,i)):jf(a,i);}var ir$1=-1,Sn$3=class Sn{factory;name;injectImpl;resolving=false;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r;}};function eD(e){return (e.flags&8)!==0}function tD(e){return (e.flags&16)!==0}function nD(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i);}else {let i=o,s=n[++r];rD(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function bp(e){return e===3||e===4||e===6}function rD(e){return e.charCodeAt(0)===64}function sr$1(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else {let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Bf(e,n,o,null,t[++r]):Bf(e,n,o,null,null));}}return e}function Bf(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++;}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o);}function Sp(e){return e!==ir$1}function rs(e){return e&32767}function oD(e){return e>>16}function os(e,t){let n=oD(e),r=t;for(;n>0;)r=r[Ut$3],n--;return r}var Uc=true;function is(e){let t=Uc;return Uc=e,t}var iD=256,_p=iD-1,Mp=5,sD=0,it$3={};function aD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(yn$2)&&(r=n[yn$2]),r==null&&(r=n[yn$2]=sD++);let o=r&_p,i=1<<o;t.data[e+(o>>Mp)]|=i;}function ss(e,t){let n=Np(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,Ac(r.data,e),Ac(t,null),Ac(r.blueprint,null));let o=Cu(e,t),i=e.injectorIndex;if(Sp(o)){let s=rs(o),a=os(o,t),c=a[E].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Ac(e,t){e.push(0,0,0,0,0,0,0,0,t);}function Np(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Cu(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Fp(o),r===null)return ir$1;if(n++,o=o[Ut$3],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ir$1}function $c(e,t,n){aD(e,t,n);}function cD(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(bp(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else {if(i===t)return n[o+1];o=o+2;}}}return null}function xp(e,t,n){if(n&8||e!==void 0)return e;_i$3();}function Ap(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Je$3],i=fe$5(void 0);try{return o?o.get(t,r,n&8):Ka(t,r,n&8)}finally{fe$5(i);}}return xp(r,t,n)}function Rp(e,t,n,r=0,o){if(e!==null){if(t[S$2]&2048&&!(r&2)){let s=fD(e,t,n,r,it$3);if(s!==it$3)return s}let i=Op(e,t,n,r,it$3);if(i!==it$3)return i}return Ap(t,n,r,o)}function Op(e,t,n,r,o){let i=lD(n);if(typeof i=="function"){if(!wc(t,e,r))return r&1?xp(o,n,r):Ap(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))_i$3(n);else return s}finally{Cc();}}else if(typeof i=="number"){let s=null,a=Np(e,t),c=ir$1,u=r&1?t[ae$3][se$2]:null;for((a===-1||r&4)&&(c=a===-1?Cu(e,t):t[a+8],c===ir$1||!Hf(r,false)?a=-1:(s=t[E],a=rs(c),t=os(c,t)));a!==-1;){let l=t[E];if(Vf(i,a,l.data)){let d=uD(a,t,n,s,r,u);if(d!==it$3)return d}c=t[a+8],c!==ir$1&&Hf(r,t[E].data[a+8]===u)&&Vf(i,a,t)?(s=l,a=rs(c),t=os(c,t)):a=-1;}}return o}function uD(e,t,n,r,o,i){let s=t[E],a=s.data[e+8],c=r==null?Tt$3(a)&&Uc:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=es(a,s,n,c,u);return l!==null?so$1(t,s,l,a,o):it$3}function es(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:u;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&rt$2(f)&&f.type===n)return c}return null}function so$1(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Sn$3){let a=i;if(a.resolving)throw Qa();let c=is(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?fe$5(a.injectImpl):null;wc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Xv(n,s[n],t);}finally{d!==null&&fe$5(d),is(c),a.resolving=false,Cc();}}return i}function lD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(yn$2)?e[yn$2]:void 0;return typeof t=="number"?t>=0?t&_p:dD:t}function Vf(e,t,n){let r=1<<e;return !!(n[t+(e>>Mp)]&r)}function Hf(e,t){return !(e&2)&&!(e&1&&t)}var Yt$2=class Yt{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return Rp(this._tNode,this._lView,t,hn$2(r),n)}};function dD(){return new Yt$2(X$2(),v$1())}function kp(e){return po$1(()=>{let t=e.prototype.constructor,n=t[Fr]||zc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Fr]||zc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function zc(e){return $a(e)?()=>{let t=zc(re$3(e));return t&&t()}:Bt$1(e)}function fD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S$2]&2048&&!Jn$2(s);){let a=Op(i,s,n,r|2,it$3);if(a!==it$3)return a;let c=i.parent;if(!c){let u=s[oc];if(u){let l=u.get(n,it$3,r&-5);if(l!==it$3)return l}c=Fp(s),s=s[Ut$3];}i=c;}return o}function Fp(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[se$2]:null}function Tu(e){return cD(X$2(),e)}function Ce$5(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function pD(){return pr$1(X$2(),v$1())}function pr$1(e,t){return new Rn$3(Ae$2(e,t))}var Rn$3=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=pD}return e})();function Pp(e){return e instanceof Rn$3?e.nativeElement:e}function hD(){return this._results[Symbol.iterator]()}var as=class{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new le$4}constructor(t=false){this._emitDistinctChangesOnly=t;}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t);}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=false;let r=Zd(t);(this._changesDetected=!qd(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0]);}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this);}onDirty(t){this._onDirty=t;}setDirty(){this.dirty=true,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=hD};function Lp(e){return (e.flags&128)===128}var bu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(bu||{}),jp=new Map,gD=0;function mD(){return gD++}function yD(e){jp.set(e[tt$1],e);}function Gc(e){jp.delete(e[tt$1]);}var Uf="__ngContext__";function ar$1(e,t){Ct$2(t)?(e[Uf]=t[tt$1],yD(t)):e[Uf]=t;}function Bp(e){return Hp(e[Kn$3])}function Vp(e){return Hp(e[Me$3])}function Hp(e){for(;e!==null&&!Ne$3(e);)e=e[Me$3];return e}var Wc;function Su(e){Wc=e;}function _u(){if(Wc!==void 0)return Wc;if(typeof document<"u")return document;throw new m$2(210,false)}var Up="r";var $p="di";var vD=new T$4(""),zp=false,Gp=new T$4("",{factory:()=>zp});var Wp=new T$4("");var $f=new WeakMap;function DD(e,t){if(e==null||typeof e!="object")return;let n=$f.get(e);n||(n=new WeakSet,$f.set(e,n)),n.add(t);}function ws$1(e){return (e.flags&32)===32}var wD=()=>null;function qp(e,t,n=false){return wD()}function Zp(e,t){let n=e.contentQueries;if(n!==null){let r=I(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Zr(i),a.contentQueries(2,t[s],s);}}}finally{I(r);}}}function qc(e,t,n){Zr(0);let r=I(null);try{t(e,n);}finally{I(r);}}function Mu(e,t,n){if(sc(t)){let r=I(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s);}}}finally{I(r);}}}var $e$4=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})($e$4||{});var Zi$1;function CD(){if(Zi$1===void 0&&(Zi$1=null,_e$4.trustedTypes))try{Zi$1=_e$4.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Zi$1}function Cs$1(e){return CD()?.createHTML(e)||e}var Yi$1;function Yp(){if(Yi$1===void 0&&(Yi$1=null,_e$4.trustedTypes))try{Yi$1=_e$4.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Yi$1}function zf(e){return Yp()?.createHTML(e)||e}function Gf(e){return Yp()?.createScriptURL(e)||e}var bt$3=class bt{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${wi$3})`}},Zc=class extends bt$3{getTypeName(){return "HTML"}},Yc=class extends bt$3{getTypeName(){return "Style"}},Qc=class extends bt$3{getTypeName(){return "Script"}},Kc=class extends bt$3{getTypeName(){return "URL"}},Xc=class extends bt$3{getTypeName(){return "ResourceURL"}};function Te$1(e){return e instanceof bt$3?e.changingThisBreaksApplicationSecurity:e}function at$3(e,t){let n=Qp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${wi$3})`)}return n===t}function Qp(e){return e instanceof bt$3&&e.getTypeName()||null}function Nu(e){return new Zc(e)}function xu(e){return new Yc(e)}function Au(e){return new Qc(e)}function Ru(e){return new Kc(e)}function Ou(e){return new Xc(e)}function TD(e){let t=new eu(e);return bD()?new Jc(t):t}var Jc=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Cs$1(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},eu=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Cs$1(t),n}};function bD(){try{return !!new window.DOMParser().parseFromString(Cs$1(""),"text/html")}catch(e){return false}}var SD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ho$1(e){return e=String(e),e.match(SD)?e:"unsafe:"+e}function St$2(e){let t={};for(let n of e.split(","))t[n]=true;return t}function go$1(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Kp=St$2("area,br,col,hr,img,wbr"),Xp=St$2("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Jp=St$2("rp,rt"),_D=go$1(Jp,Xp),MD=go$1(Xp,St$2("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")),ND=go$1(Jp,St$2("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")),Wf=go$1(Kp,MD,ND,_D),eh=St$2("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xD=St$2("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"),AD=St$2("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"),RD=go$1(eh,xD,AD),OD=St$2("script,style,template"),tu=class{sanitizedSomething=false;buf=[];sanitizeChildren(t){let n=t.firstChild,r=true,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=true,r&&n.firstChild){o.push(n),n=PD(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=FD(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=qf(t).toLowerCase();if(!Wf.hasOwnProperty(n))return this.sanitizedSomething=true,!OD.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!RD.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;eh[a]&&(c=ho$1(c)),this.buf.push(" ",s,'="',Zf(c),'"');}return this.buf.push(">"),true}endElement(t){let n=qf(t).toLowerCase();Wf.hasOwnProperty(n)&&!Kp.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(Zf(t));}};function kD(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function FD(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw th(t);return t}function PD(e){let t=e.firstChild;if(t&&kD(e,t))throw th(t);return t}function qf(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function th(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var LD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jD=/([^\#-~ |!])/g;function Zf(e){return e.replace(/&/g,"&").replace(LD,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(jD,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Qi$1;function Ts$1(e,t){let n=null;try{Qi$1=Qi$1||TD(e);let r=t?String(t):"";n=Qi$1.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Qi$1.getInertBodyElement(r);}while(r!==i);let a=new tu().sanitizeChildren(Yf(n)||n);return Cs$1(a)}finally{if(n){let r=Yf(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function Yf(e){return "content"in e&&BD(e)?e.content:null}function BD(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var VD=/^>|^->|<!--|-->|--!>|<!-$/g,HD=/(<|>)/g,UD="\u200B$1\u200B";function $D(e){return e.replace(VD,t=>t.replace(HD,UD))}function zD(e,t){return e.createText(t)}function GD(e,t,n){e.setValue(t,n);}function WD(e,t){return e.createComment($D(t))}function nh(e,t,n){return e.createElement(t,n)}function cs(e,t,n,r,o){e.insertBefore(t,n,r,o);}function rh(e,t,n){e.appendChild(t,n);}function Qf(e,t,n,r,o){r!==null?cs(e,t,n,r,o):rh(e,t,n);}function oh(e,t,n,r){e.removeChild(null,t,n,r);}function qD(e,t,n){e.setAttribute(t,"style",n);}function ZD(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function ih(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&nD(e,t,r),o!==null&&ZD(e,t,o),i!==null&&qD(e,t,i);}var Oe$1=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(Oe$1||{});function YD(e){let t=ku();return t?zf(t.sanitize(Oe$1.HTML,e)||""):at$3(e,"HTML")?zf(Te$1(e)):Ts$1(_u(),Z$1(e))}function sh(e){let t=ku();return t?t.sanitize(Oe$1.URL,e)||"":at$3(e,"URL")?Te$1(e):ho$1(Z$1(e))}function ah(e){let t=ku();if(t)return Gf(t.sanitize(Oe$1.RESOURCE_URL,e)||"");if(at$3(e,"ResourceURL"))return Gf(Te$1(e));throw new m$2(904,false)}var QD={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function KD(e,t){return QD[e.toLowerCase()]?.[t.toLowerCase()]===true?ah:sh}function XD(e,t,n){return KD(t,n)(e)}function ku(){let e=v$1();return e&&e[Ve$2].sanitizer}function JD(e){return e instanceof Function?e():e}function eE(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1;}}var ch="ng-template";function tE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&eE(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(Fu(e))return false;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return true}return false}function Fu(e){return e.type===4&&e.value!==ch}function nE(e,t,n){let r=e.type===4&&!n?ch:e.value;return t===r}function rE(e,t,n){let r=4,o=e.attrs,i=o!==null?sE(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!He$2(r)&&!He$2(c))return false;if(s&&He$2(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!nE(e,c,n)||c===""&&t.length===1){if(He$2(r))return false;s=true;}}else if(r&8){if(o===null||!tE(e,o,c,n)){if(He$2(r))return false;s=true;}}else {let u=t[++a],l=oE(c,o,Fu(e),n);if(l===-1){if(He$2(r))return false;s=true;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(He$2(r))return false;s=true;}}}}return He$2(r)||s}function He$2(e){return (e&1)===0}function oE(e,t,n,r){if(t===null)return -1;let o=0;if(r||!n){let i=false;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=true;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else {if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2;}return -1}else return aE(t,e)}function uh(e,t,n=false){for(let r=0;r<t.length;r++)if(rE(e,t[r],n))return true;return false}function iE(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function sE(e){for(let t=0;t<e.length;t++){let n=e[t];if(bp(n))return t}return e.length}function aE(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return -1;if(r===t)return n;n++;}return -1}function cE(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return true}}return false}function Kf(e,t){return e?":not("+t.trim()+")":t}function uE(e){let t=e[0],n=1,r=2,o="",i=false;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]";}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!He$2(s)&&(t+=Kf(i,o),o=""),r=s,i=i||!He$2(r);n++;}return o!==""&&(t+=Kf(i,o)),t}function lE(e){return e.map(uE).join(",")}function dE(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else {if(!He$2(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var Q$1={},st$1=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(st$1||{}),fE;function Pu(e,t){return fE(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var nu=new WeakMap;function lh(e){return e?e[Ut$3]??e:null}var ro$1=new WeakSet;function pE(e,t,n){let r=nu.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=lh(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:u}=r[a],l=c.parentNode;c===t?(r.splice(a,1),ro$1.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c)):l&&o&&l!==o&&(s===null||u===null||s===u)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c));}}function hE(e,t,n){let r=lh(n),o=nu.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):nu.set(e,[{el:t,declarationView:r}]);}var Qt$2=new Set,bs$1=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(bs$1||{}),ct$1=new T$4(""),Xf=new Set;function ut$2(e){Xf.has(e)||(Xf.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var Ss$1=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),Lu=[0,1,2,3],ju=(()=>{class e{ngZone=g(G$2);scheduler=g(je$3);errorHandler=g(Se$2,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g(ct$1,{optional:true});}execute(){let n=this.sequences.size>0;n&&F$4(O$2.AfterRenderHooksStart),this.executing=true;for(let r of Lu)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot));}catch(i){o.erroredOrDestroyed=true,this.errorHandler?.handleError(i);}this.executing=false;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&F$4(O$2.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[En$3]??=[]).push(n),Cn$3(r),r[S$2]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n);}addSequence(n){this.sequences.add(n),this.scheduler.notify(7);}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=true,n.pipelinedValue=void 0,n.once=true):(this.sequences.delete(n),this.deferredRegistrations.delete(n));}maybeTrace(n,r){return r?r.run(bs$1.AFTER_NEXT_RENDER,n):n()}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),ao$1=class ao{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[En$3];t&&(this.view[En$3]=t.filter(n=>n!==this));}};function gE(e,t){let n=t?.injector??g(he$4);return ut$2("NgAfterNextRender"),yE(e,n,t,true)}function mE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function yE(e,t,n,r){let o=t.get(Ss$1);o.impl??=t.get(ju);let i=t.get(ct$1,null,{optional:true}),s=n?.manualCleanup!==true?t.get(we$2):null,a=t.get(nr$1,null,{optional:true}),c=new ao$1(o.impl,mE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Bu=new T$4("",{factory:()=>{let e=g(pe$5),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function dh(e,t,n){let r=e.get(Bu);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e);}function vE(e,t){let n=e.get(Bu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function DE(e,t){let n=e.get(Bu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function EE(e,t){for(let[n,r]of t)dh(e,r.animateFns);}function Jf(e,t,n,r){let o=e?.[nt$1]?.enter;t!==null&&o&&o.has(n.index)&&EE(r,o);}function ep(e,t,n,r){try{n.get($r);}catch(s){return r(false)}let o=e?.[nt$1];o?.enter?.has(t.index)&&vE(n,o.enter.get(t.index).animateFns);let i=IE(e,t,o);if(i.size===0){let s=false;if(e){let a=[];_s$1(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&Qt$2.add(e[tt$1]),dh(n,()=>wE(e,t,o||void 0,i,r),o||void 0);}function IE(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[E].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function wE(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:u}=c();i.push(u);}n.detachedLeaveAnimationFns=void 0;}if(e&&_s$1(e,t,i),i.length>0){let s=n||e?.[nt$1];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),TE(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&Qt$2.delete(e[tt$1]),o(true);});}else e&&Qt$2.delete(e[tt$1]),o(false);}function _s$1(e,t,n){if(t.type&12){let o=e[t.index];if(Ne$3(o))for(let i=W$4;i<o.length;i++){let s=o[i];s[E].type===2&&CE(s,n);}}let r=t.child;for(;r;)_s$1(e,r,n),r=r.next;}function CE(e,t){let n=e[nt$1];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[E].firstChild;for(;r;)_s$1(e,r,t),r=r.next;}function TE(e,t,n){t.then(()=>{e[nt$1]?.running===t&&(e[nt$1].running=void 0,Qt$2.delete(e[tt$1])),n(true);});}function or$1(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;Ne$3(o)?c=o:Ct$2(o)&&(u=true,o=o[Be$3]);let l=xe$3(o);e===0&&r!==null?(Jf(a,r,i,n),s==null?rh(t,r,l):cs(t,r,l,s||null,true)):e===1&&r!==null?(Jf(a,r,i,n),cs(t,r,l,s||null,true),pE(i,l,a)):e===2?(a?.[nt$1]?.leave?.has(i.index)&&hE(i,l,a),ro$1.delete(l),ep(a,i,n,d=>{if(ro$1.has(l)){ro$1.delete(l);return}oh(t,l,u,d);})):e===3&&(ro$1.delete(l),ep(a,i,n,()=>{t.destroyNode(l);})),c!=null&&kE(t,e,n,c,i,r,s);}}function bE(e,t){fh(e,t),t[Be$3]=null,t[se$2]=null;}function SE(e,t,n,r,o,i){r[Be$3]=o,r[se$2]=t,Ns$1(e,r,n,1,o,i);}function fh(e,t){t[Ve$2].changeDetectionScheduler?.notify(9),Ns$1(e,t,t[L$3],2,null,null);}function _E(e){let t=e[Kn$3];if(!t)return Rc(e[E],e);for(;t;){let n=null;if(Ct$2(t))n=t[Kn$3];else {let r=t[W$4];r&&(n=r);}if(!n){for(;t&&!t[Me$3]&&t!==e;)Ct$2(t)&&Rc(t[E],t),t=t[te$4];t===null&&(t=e),Ct$2(t)&&Rc(t[E],t),n=t&&t[Me$3];}t=n;}}function Vu(e,t){let n=e[In$3],r=n.indexOf(t);n.splice(r,1);}function Ms$1(e,t){if(wn$3(t))return;let n=t[L$3];n.destroyNode&&Ns$1(e,t,n,3,null,null),_E(t);}function Rc(e,t){if(wn$3(t))return;let n=I(null);try{t[S$2]&=-129,t[S$2]|=256,t[De$3]&&Lt$2(t[De$3]),NE(e,t),ME(e,t),t[E].type===1&&t[L$3].destroy();let r=t[$t$3];if(r!==null&&Ne$3(t[te$4])){r!==t[te$4]&&Vu(r,t);let o=t[et];o!==null&&o.detachView(e);}Gc(t);}finally{I(n);}}function ME(e,t){let n=e.cleanup,r=t[Qn$3];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2;}else {let a=r[n[s+1]];n[s].call(a);}r!==null&&(t[Qn$3]=null);let o=t[vt$3];if(o!==null){t[vt$3]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[Vt$1];if(i!==null){t[Vt$1]=null;for(let s of i)s.destroy();}}function NE(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Sn$3)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];F$4(O$2.LifecycleHookStart,a,c);try{c.call(a);}finally{F$4(O$2.LifecycleHookEnd,a,c);}}else {F$4(O$2.LifecycleHookStart,o,i);try{i.call(o);}finally{F$4(O$2.LifecycleHookEnd,o,i);}}}}}function ph(e,t,n){return xE(e,t.parent,n)}function xE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Be$3];if(Tt$3(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===$e$4.None||o===$e$4.Emulated)return null}return Ae$2(r,n)}function hh(e,t,n){return RE(e,t,n)}function AE(e,t,n){return e.type&40?Ae$2(e,n):null}var RE=AE;function Hu(e,t,n,r){let o=ph(e,r,t),i=t[L$3],s=r.parent||t[se$2],a=hh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Qf(i,o,n[c],a,false);else Qf(i,o,n,a,false);}function oo$1(e,t){if(t!==null){let n=t.type;if(n&3)return Ae$2(t,e);if(n&4)return ru(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return oo$1(e,r);{let o=e[t.index];return Ne$3(o)?ru(-1,o):xe$3(o)}}else {if(n&128)return oo$1(e,t.next);if(n&32)return Pu(t,e)()||xe$3(e[t.index]);{let r=gh(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Dt$2(e[ae$3]);return oo$1(o,r)}else return oo$1(e,t.next)}}}return null}function gh(e,t){if(t!==null){let r=e[ae$3][se$2],o=t.projection;return r.projection[o]}return null}function ru(e,t){let n=W$4+e+1;if(n<t.length){let r=t[n],o=r[E].firstChild;if(o!==null)return oo$1(r,o)}return t[zt$1]}function Uu(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Je$3];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&ar$1(xe$3(c),r),n.flags|=2),!ws$1(n))if(u&8)Uu(e,t,n.child,r,o,i,false),or$1(t,e,a,o,c,n,i,r);else if(u&32){let l=Pu(n,r),d;for(;d=l();)or$1(t,e,a,o,d,n,i,r);or$1(t,e,a,o,c,n,i,r);}else u&16?mh(e,t,r,n,o,i):or$1(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function Ns$1(e,t,n,r,o,i){Uu(n,r,e.firstChild,t,o,i,false);}function OE(e,t,n){let r=t[L$3],o=ph(e,n,t),i=n.parent||t[se$2],s=hh(i,n,t);mh(r,0,t,n,o,s);}function mh(e,t,n,r,o,i){let s=n[ae$3],c=s[se$2].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];or$1(t,e,n[Je$3],o,l,r,i,n);}else {let u=c,l=s[te$4];Lp(r)&&(u.flags|=128),Uu(e,t,u,l,o,i,true);}}function kE(e,t,n,r,o,i,s){let a=r[zt$1],c=xe$3(r);a!==c&&or$1(t,e,n,i,a,o,s);for(let u=W$4;u<r.length;u++){let l=r[u];Ns$1(l[E],l,e,t,i,a);}}function FE(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:st$1.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=st$1.Important),e.setStyle(n,r,o,i));}}function $u(e,t,n,r,o,i,s,a,c,u,l){let d=H$1+r,p=d+o,f=PE(d,p),h=typeof u=="function"?u():u;return f[E]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:false,ssrId:l}}function PE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Q$1);return n}function LE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=$u(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function zu(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Be$3]=o,d[S$2]=r|4|128|8|64|1024,(u!==null||e&&e[S$2]&2048)&&(d[S$2]|=2048),lc(d),d[te$4]=d[Ut$3]=e,d[Y$3]=n,d[Ve$2]=s||e&&e[Ve$2],d[L$3]=a||e&&e[L$3],d[Je$3]=c||e&&e[Je$3]||null,d[se$2]=i,d[tt$1]=mD(),d[vn$2]=l,d[oc]=u,d[ae$3]=t.type==2?e[ae$3]:d,d}function jE(e,t,n){let r=Ae$2(t,e),o=LE(n),i=e[Ve$2].rendererFactory,s=Gu(e,zu(e,o,null,yh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function yh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function vh(e,t,n,r){if(n===0)return -1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Gu(e,t){return e[Kn$3]?e[rc][Me$3]=t:e[Kn$3]=t,e[rc]=t,t}function BE(e=1){Dh(j$4(),v$1(),Ie$2()+e);}function Dh(e,t,n,r){if((t[S$2]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Xi$1(t,i,n);}else {let i=e.preOrderHooks;i!==null&&Ji$1(t,i,0,n);}qt$1(n);}var xs$1=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(xs$1||{});function _n$3(e,t,n,r){let o=I(null);try{let[i,s,a]=e.inputs[n],c=null;(s&xs$1.SignalBased)!==0&&(c=t[i][q$1]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Ep(t,c,i,r);}finally{I(o);}}function Eh(e,t,n,r,o){let i=Ie$2(),s=r&2;try{qt$1(-1),s&&t.length>H$1&&Dh(e,t,H$1,!1);let a=s?O$2.TemplateUpdateStart:O$2.TemplateCreateStart;F$4(a,o,n),n(r,o);}finally{qt$1(i);let a=s?O$2.TemplateUpdateEnd:O$2.TemplateCreateEnd;F$4(a,o,n);}}function As$1(e,t,n){GE(e,t,n),(n.flags&64)===64&&WE(e,t,n);}function mo$1(e,t,n=Ae$2){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a;}}}function VE(e,t,n,r){let i=r.get(Gp,zp)||n===$e$4.ShadowDom||n===$e$4.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function $E(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Ih(e,t,n,r,o,i){let s=t[E];if(Yu(e,s,t,n,r)){Tt$3(e)&&zE(t,e.index);return}e.type&3&&(n=$E(n)),wh(e,t,n,r,o,i);}function wh(e,t,n,r,o,i){if(e.type&3){let s=Ae$2(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function zE(e,t){let n=Re$3(t,e);n[S$2]&16||(n[S$2]|=64);}function GE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Tt$3(n)&&jE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||ss(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=so$1(t,e,s,n);if(ar$1(c,t),i!==null&&QE(t,s-r,c,a,n,i),rt$2(a)){let u=Re$3(n.index,t);u[Y$3]=so$1(t,e,s,n);}}}function WE(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Ef();try{qt$1(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];ji$1(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&qE(c,u);}}finally{qt$1(-1),ji$1(s);}}function qE(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function Wu(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];uh(t,i.selectors,false)&&(r??=[],rt$2(i)?r.unshift(i):r.push(i));}return r}function ZE(e,t,n,r,o,i){let s=Ae$2(e,t);YE(t[L$3],s,i,e.value,n,r,o);}function YE(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?Z$1(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function QE(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];_n$3(r,n,c,u);}}function qu(e,t,n,r,o){let i=H$1+n,s=t[E],a=o(s,t,e,r,n);t[i]=a,er$1(e,true);let c=e.type===2;return c?(ih(t[L$3],a,e),(df()===0||Xn$3(e))&&ar$1(a,t),ff()):ar$1(a,t),Ui$1()&&(!c||!ws$1(e))&&Hu(s,t,a,e),e}function Zu(e){let t=e;return Dc()?Ec():(t=t.parent,er$1(t,false)),t}function KE(e,t){let n=e[Je$3];if(!n)return;let r;try{r=n.get(ot$2,null);}catch(o){r=null;}r?.(t);}function Yu(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=false;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];_n$3(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];_n$3(l,u,r,o),a=true;}return a}function XE(e,t,n,r,o,i){let s=null,a=null,c=null,u=false,l=e.directiveToIndex.get(r.type);if(typeof l=="number"?s=l:[s,a,c]=l,a!==null&&c!==null&&e.hostDirectiveInputs?.hasOwnProperty(o)){let d=e.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=t.data[f],y=d[p+1];_n$3(h,n[f],y,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(_n$3(r,n[s],o,i),u=true),u}function JE(e,t){let n=Re$3(t,e),r=n[E];eI(r,n);let o=n[Be$3];o!==null&&n[vn$2]===null&&(n[vn$2]=qp(o,n[Je$3])),F$4(O$2.ComponentStart);try{Qu(r,n,n[Y$3]);}finally{F$4(O$2.ComponentEnd,n[Y$3]);}}function eI(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function Qu(e,t,n){Vi$2(t);try{let r=e.viewQuery;r!==null&&qc(1,r,n);let o=e.template;o!==null&&Eh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[et]?.finishViewCreation(e),e.staticContentQueries&&Zp(e,t),e.staticViewQueries&&qc(2,e.viewQuery,n);let i=e.components;i!==null&&tI(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[S$2]&=-5,Hi$1();}}function tI(e,t){for(let n=0;n<t.length;n++)JE(e,t[n]);}function yo$1(e,t,n,r){let o=I(null);try{let i=t.tView,a=e[S$2]&4096?4096:16,c=zu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[$t$3]=u;let l=e[et];return l!==null&&(c[et]=l.createEmbeddedView(i)),Qu(i,c,n),c}finally{I(o);}}function cr$1(e,t){return !t||t.firstChild===null||Lp(e)}function co$1(e,t,n,r,o=false){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(xe$3(i)),Ne$3(i)&&Ch(i,r);let s=n.type;if(s&8)co$1(e,t,n.child,r);else if(s&32){let a=Pu(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=gh(t,n);if(Array.isArray(a))r.push(...a);else {let c=Dt$2(t[ae$3]);co$1(c[E],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Ch(e,t){for(let n=W$4;n<e.length;n++){let r=e[n],o=r[E].firstChild;o!==null&&co$1(r[E],r,o,t);}e[zt$1]!==e[Be$3]&&t.push(e[zt$1]);}function Th(e){if(e[En$3]!==null){for(let t of e[En$3])t.impl.addSequence(t);e[En$3].length=0;}}var bh=[];function nI(e){return e[De$3]??rI(e)}function rI(e){let t=bh.pop()??Object.create(iI);return t.lView=e,t}function oI(e){e.lView[De$3]!==e&&(e.lView=null,bh.push(e));}var iI=x$1(w$1({},Ft$2),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{Cn$3(e.lView);},consumerOnSignalRead(){this.lView[De$3]=this;}});function sI(e){let t=e[De$3]??Object.create(aI);return t.lView=e,t}var aI=x$1(w$1({},Ft$2),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Dt$2(e.lView);for(;t&&!Sh(t[E]);)t=Dt$2(t);t&&dc(t);},consumerOnSignalRead(){this.lView[De$3]=this;}});function Sh(e){return e.type!==2}function _h(e){if(e[Vt$1]===null)return;let t=true;for(;t;){let n=false;for(let r of e[Vt$1])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S$2]&8192);}}var cI=100;function Mh(e,t=0){let r=e[Ve$2].rendererFactory;r.begin?.();try{uI(e,t);}finally{r.end?.();}}function uI(e,t){let n=Ic();try{Pr(!0),ou(e,t);let r=0;for(;Wr(e);){if(r===cI)throw new m$2(103,!1);r++,ou(e,1);}}finally{Pr(n);}}function lI(e,t,n,r){if(wn$3(t))return;let o=t[S$2],i=false,s=false;Vi$2(t);let a=true,c=null,u=null;(Sh(e)?(u=nI(t),c=mt$4(u)):pi$3()===null?(a=false,u=sI(t),c=mt$4(u)):t[De$3]&&(Lt$2(t[De$3]),t[De$3]=null));try{lc(t),yf(e.bindingStartIndex),n!==null&&Eh(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Xi$1(t,f,null);}else {let f=e.preOrderHooks;f!==null&&Ji$1(t,f,0,null),xc(t,0);}if(s||dI(t),_h(t),Nh(t,0),e.contentQueries!==null&&Zp(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Xi$1(t,f);}else {let f=e.contentHooks;f!==null&&Ji$1(t,f,1),xc(t,1);}pI(e,t);let d=e.components;d!==null&&Ah(t,d,0);let p=e.viewQuery;if(p!==null&&qc(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Xi$1(t,f);}else {let f=e.viewHooks;f!==null&&Ji$1(t,f,2),xc(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ai$3]){for(let f of t[Ai$3])f();t[Ai$3]=null;}i||(Th(t),t[S$2]&=-73);}catch(l){throw Cn$3(t),l}finally{u!==null&&(Pt$3(u,c),a&&oI(u)),Hi$1();}}function Nh(e,t){for(let n=Bp(e);n!==null;n=Vp(n))for(let r=W$4;r<n.length;r++){let o=n[r];xh(o,t);}}function dI(e){for(let t=Bp(e);t!==null;t=Vp(t)){if(!(t[S$2]&2))continue;let n=t[In$3];for(let r=0;r<n.length;r++){let o=n[r];dc(o);}}}function fI(e,t,n){F$4(O$2.ComponentStart);let r=Re$3(t,e);try{xh(r,n);}finally{F$4(O$2.ComponentEnd,r[Y$3]);}}function xh(e,t){ki$3(e)&&ou(e,t);}function ou(e,t){let r=e[E],o=e[S$2],i=e[De$3],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Un$3(i)),s||=false,i&&(i.dirty=false),e[S$2]&=-9217,s)lI(r,e,r.template,e[Y$3]);else if(o&8192){let a=I(null);try{_h(e),Nh(e,1);let c=r.components;c!==null&&Ah(e,c,1),Th(e);}finally{I(a);}}}function Ah(e,t,n){for(let r=0;r<t.length;r++)fI(e,t[r],n);}function pI(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)qt$1(~o);else {let i=o,s=n[++r],a=n[++r];Df(s,i);let c=t[i];F$4(O$2.HostBindingsUpdateStart,c);try{a(2,c);}finally{F$4(O$2.HostBindingsUpdateEnd,c);}}}}finally{qt$1(-1);}}function Ku(e,t){let n=Ic()?64:1088;for(e[Ve$2].changeDetectionScheduler?.notify(t);e;){e[S$2]|=n;let r=Dt$2(e);if(Jn$2(e)&&!r)return e;e=r;}return null}function Rh(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Oh(e,t){let n=W$4+t;if(n<e.length)return e[n]}function vo$1(e,t,n,r=true){let o=t[E];if(hI(o,t,e,n),r){let s=ru(n,e),a=t[L$3],c=a.parentNode(e[zt$1]);c!==null&&SE(o,e[se$2],a,t,c,s);}let i=t[vn$2];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function kh(e,t){let n=uo$1(e,t);return n!==void 0&&Ms$1(n[E],n),n}function uo$1(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n];if(r){let o=r[$t$3];o!==null&&o!==e&&Vu(o,r),t>0&&(e[n-1][Me$3]=r[Me$3]);let i=Ur(e,W$4+t);bE(r[E],r);let s=i[et];s!==null&&s.detachView(i[E]),r[te$4]=null,r[Me$3]=null,r[S$2]&=-129;}return r}function hI(e,t,n,r){let o=W$4+r,i=n.length;r>0&&(n[o-1][Me$3]=t),r<i-W$4?(t[Me$3]=n[o],Xa(n,W$4+r,t)):(n.push(t),t[Me$3]=null),t[te$4]=n;let s=t[$t$3];s!==null&&n!==s&&Fh(s,t);let a=t[et];a!==null&&a.insertView(e),Fi$3(t),t[S$2]|=128;}function Fh(e,t){let n=e[In$3],r=t[te$4];if(Ct$2(r))e[S$2]|=2;else {let o=r[te$4][ae$3];t[ae$3]!==o&&(e[S$2]|=2);}n===null?e[In$3]=[t]:n.push(t);}var Kt$2=class Kt{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[E];return co$1(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[Y$3]}set context(t){this._lView[Y$3]=t;}get destroyed(){return wn$3(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[te$4];if(Ne$3(t)){let n=t[Gr],r=n?n.indexOf(this):-1;r>-1&&(uo$1(t,r),Ur(n,r));}this._attachedToViewContainer=false;}Ms$1(this._lView[E],this._lView);}onDestroy(t){Pi$3(this._lView,t);}markForCheck(){Ku(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[S$2]&=-129;}reattach(){Fi$3(this._lView),this._lView[S$2]|=128;}detectChanges(){this._lView[S$2]|=1024,Mh(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m$2(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Jn$2(this._lView),n=this._lView[$t$3];n!==null&&!t&&Vu(n,this._lView),fh(this._lView[E],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new m$2(902,false);this._appRef=t;let n=Jn$2(this._lView),r=this._lView[$t$3];r!==null&&!n&&Fh(r,this._lView),Fi$3(this._lView);}};var ur$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=gI;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o;}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=yo$1(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Kt$2(i)}}return e})();function gI(){return Rs$1(X$2(),v$1())}function Rs$1(e,t){return e.type&4?new ur$1(t,e,pr$1(e,t)):null}function hr$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=mI(e,t,n,r,o),vf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=gf();i.injectorIndex=s===null?-1:s.injectorIndex;}return er$1(i,true),i}function mI(e,t,n,r,o){let i=vc(),s=Dc(),a=s?i:i&&i.parent,c=e.data[t]=vI(e,a,n,t,r,o);return yI(e,c,i,s),c}function yI(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n));}function vI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return gc()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:Tc(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function DI(e){let t=e[ic]??[],r=e[te$4][L$3],o=[];for(let i of t)i.data[$p]!==void 0?o.push(i):EI(i,r);e[ic]=o;}function EI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Up];for(;n<o;){let i=r.nextSibling;oh(t,r,false),r=i,n++;}}}var II=()=>null,wI=()=>null;function us(e,t){return II()}function Ph(e,t,n){return wI()}var Lh=class{},Mn$4=class Mn{},Xu=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>CI()}return e})();function CI(){let e=v$1(),t=X$2(),n=Re$3(t.index,e);return (Ct$2(n)?n:e)[L$3]}var jh=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>null})}return e})();function Bh(e){return e.debugInfo?.className||e.type.name||null}var ts={},ls=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,ts,r);return o!==ts||n===ts?o:this.parentInjector.get(t,n,r)}};function Do$1(e,t,n){return e[t]=n}function TI(e,t){return e[t]}function ge$5(e,t,n){if(n===Q$1)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function lr$1(e,t,n,r){let o=ge$5(e,t,n);return ge$5(e,t+1,r)||o}function bI(e,t,n,r,o){let i=lr$1(e,t,n,r);return ge$5(e,t+2,o)||i}function Os$2(e,t,n,r,o,i){let s=lr$1(e,t,n,r);return lr$1(e,t+2,o,i)||s}function bn$2(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&DD(o,i);let s=Tt$3(e)?Re$3(e.index,t):t;Ku(s,5);let a=t[Y$3],c=np(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=np(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function np(e,t,n,r){let o=I(null);try{return F$4(O$2.OutputStart,t,n),n(r)!==!1}catch(i){return KE(e,i),false}finally{F$4(O$2.OutputEnd,t,n),I(o);}}function Ju(e,t,n,r,o,i,s,a){let c=Xn$3(e),u=false,l=null;if(!r&&c&&(l=_I(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=Ae$2(e,n),p=r?r(d):d;r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!SI(i)){let h=r?y=>r(xe$3(y[e.index])):e.index;Vh(h,t,n,i,a,f,false);}}return u}function SI(e){return e.startsWith("animation")||e.startsWith("transition")}function _I(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Qn$3],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function Vh(e,t,n,r,o,i,s){let a=t.firstCreatePass?pc(t):null,c=fc(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function rp(e,t,n,r,o){let i=null,s=null,a=null,c=false,u=e.directiveToIndex.get(n.type);if(typeof u=="number"?i=u:[i,s,a]=u,s!==null&&a!==null&&e.hostDirectiveOutputs?.hasOwnProperty(r)){let l=e.hostDirectiveOutputs[r];for(let d=0;d<l.length;d+=2){let p=l[d];if(p>=s&&p<=a)c=true,ds(e,t,p,l[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,ds(e,t,i,r,r,o)),c}function ds(e,t,n,r,o,i){let s=t[n],a=t[E],u=a.data[n].outputs[r],d=s[u].subscribe(i);Vh(e.index,a,t,o,i,d,true);}function MI(){NI();}function NI(){let e=v$1(),t=j$4(),n=X$2();if(t.firstCreatePass&&RI(t,n),n.controlDirectiveIndex===-1)return;ut$2("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new fs(e,t,n));}function xI(){AI();}function AI(){let e=v$1(),t=j$4(),n=tr$1();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new fs(e,t,n));}var fs=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096);}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return Ae$2(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];rp(this.tNode,this.lView,r,t,bn$2(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];rp(this.tNode,this.lView,r,n,bn$2(this.tNode,this.lView,t));}listenToDom(t,n){Ju(this.tNode,this.tView,this.lView,void 0,this.lView[L$3],t,n,bn$2(this.tNode,this.lView,n));}setInputOnDirectives(t,n){let r=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!r&&!o)return false;let i=false;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];_n$3(a,c,t,n),i=true;}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],u=this.tView.data[a],l=this.lView[a];_n$3(u,l,c,n),i=true;}return i}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";XE(this.tNode,this.tView,this.lView,n,r,t);}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return false;let n=this.tView.data[this.tNode.customControlIndex];return (n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===true}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=true;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=true;let i=op(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=true;}let s=op(i.directive);s!==null&&r.push(...s);}}}return n}};function op(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function RI(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}OI(e,t);}function OI(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(ip(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(ip(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return false;for(let a=0;a<i.length;a+=2){let c=i[a];for(let u=0;u<s.length;u+=2){let l=s[u];if(c===l)for(let d of t.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,h]=d;if(c>=f&&c<=h)return t.flags|=o,t.customControlIndex=p,true}}}return false};if(n("value",1024)||n("checked",2048))return}}function ip(e,t){return kI(e,t)&&FI(e,t+"Change")}function kI(e,t){return t in e.inputs}function FI(e,t){return t in e.outputs}var iu=Symbol("BINDING");var On$3=new T$4("");function ps(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Ci$3(o,a);else if(i==2){let c=a,u=t[++s];r=Ci$3(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function ze$2(e,t=0){let n=v$1();if(n===null)return b$2(e,t);let r=X$2();return Rp(r,n,re$3(e),t)}function PI(){let e="invalid";throw new Error(e)}function Hh(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}BI(e,t,n,a,i,c,u);}i!==null&&r!==null&&LI(n,r,i);}function LI(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new m$2(-301,false);r.push(t[o],i);}}function jI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function BI(e,t,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&rt$2(f)&&(c=f,jI(e,n,p)),$c(ss(n,t),e,f.type);}GI(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f);}let u=false,l=false,d=vh(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=sr$1(n.mergedAttrs,f.hostAttrs),HI(e,n,t,d,f),zI(d,f,o),s!==null&&s.has(f)){let[y,D]=s.get(f);n.directiveToIndex.set(f.type,[d,y+n.directiveStart,D+n.directiveStart]);}else (i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}VI(e,n,i);}function VI(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))sp(0,t,o,r),sp(1,t,o,r),cp(t,r,false);else {let i=n.get(o);ap(0,t,i,r),ap(1,t,i,r),cp(t,r,true);}}}function sp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Uh(t,i);}}function ap(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Uh(t,s);}}function Uh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function cp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Fu(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2;}e.initialInputs??=[],e.initialInputs.push(s);}function HI(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Bt$1(o.type)),s=new Sn$3(i,rt$2(o),ze$2,null);e.blueprint[r]=s,n[r]=s,UI(e,t,r,vh(e,n,o.hostVars,Q$1),o);}function UI(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;$I(s)!=a&&s.push(a),s.push(n,r,i);}}function $I(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function zI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;rt$2(t)&&(n[""]=e);}}function GI(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function el(e,t,n,r,o,i,s,a){let c=t[E],u=c.consts,l=Ee$3(u,s),d=hr$1(c,e,n,r,l);return Hh(c,t,d,Ee$3(u,a),o),d.mergedAttrs=sr$1(d.mergedAttrs,d.attrs),d.attrs!==null&&ps(d,d.attrs,false),d.mergedAttrs!==null&&ps(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function tl$1(e,t){Cp(e,t),sc(t)&&e.queries.elementEnd(t);}function WI(e,t,n,r,o,i){let s=t.consts,a=Ee$3(s,o),c=hr$1(t,e,n,r,a);if(c.mergedAttrs=sr$1(c.mergedAttrs,c.attrs),i!=null){let u=Ee$3(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&ps(c,c.attrs,false),c.mergedAttrs!==null&&ps(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var $h=typeof ShadowRoot<"u",qI=typeof Document<"u";function ZI(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&xs$1.SignalBased)!==0};return o&&(i.transform=o),i})}function YI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function QI(e,t,n){let r=t instanceof pe$5?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ls(n,r):n}function KI(e){let t=e.get(Mn$4,null);if(t===null)throw new m$2(407,false);let n=e.get(jh,null),r=e.get(je$3,null),o=e.get(ct$1,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function XI(e,t){let n=zh(e);return nh(t,n,n==="svg"?ac:n==="math"?of:null)}function JI(e){if(e?.toLowerCase()==="script")throw new m$2(905,false)}function zh(e){return (e.selectors[0][0]||"div").toLowerCase()}var Nn$3=class Nn{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=ZI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=YI(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=lE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){F$4(O$2.DynamicComponentStart);let a=I(null);try{let c=this.componentDef,u=QI(c,o||this.ngModule,t),l=KI(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Bh(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{I(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=ew(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?VE(u,o,a.encapsulation,n):XI(a,u);JI(l?.tagName);let d=n.get(On$3,null),p=tw(l,()=>n.get(U$5,null)??_u());d&&d.addHost(p);let f=s?.some(up)||i?.some(D=>typeof D!="function"&&D.bindings.some(up)),h=zu(null,c,null,512|yh(a),null,null,t,u,n,null,qp(l,n,true));d&&$h&&p instanceof ShadowRoot&&Pi$3(h,()=>{d.removeHost(p);}),h[H$1]=l,Vi$2(h);let y=null;try{let D=el(H$1,h,2,"#host",()=>c.directiveRegistry,!0,0);ih(u,l,D),ar$1(l,h),As$1(c,h,D),Mu(c,D,h),tl$1(c,D),r!==void 0&&rw(D,this.ngContentSelectors,r),y=Re$3(D.index,h),h[Y$3]=y[Y$3],Qu(c,h,null);}catch(D){throw y!==null&&Gc(y),Gc(h),D}finally{F$4(O$2.DynamicComponentEnd),Hi$1();}return new hs(this.componentType,h,!!f)}};function ew(e,t,n,r){let o=e?["ng-version","22.0.8"]:dE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[iu].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let p of d.bindings){a+=p[iu].requiredVars;let f=l+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p));}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,p=Ya(d);c.push(p);}return $u(0,null,nw(i,s),1,a,c,null,null,null,[o],null)}function tw(e,t){let n=e.getRootNode?.();return qI&&n instanceof Document?n.head:n&&$h&&n instanceof ShadowRoot?n:t().head}function nw(e,t){return !e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update();}}function up(e){let t=e[iu].kind;return t==="input"||t==="twoWay"}var hs=class extends Lh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Ri$3(n[E],H$1),this.location=pr$1(this._tNode,n),this.instance=Re$3(this._tNode.index,n)[Y$3],this.hostView=this.changeDetectorRef=new Kt$2(n,void 0),this.componentType=t;}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;Yu(r,o[E],o,t,n);this.previousInputValues.set(t,n);let s=Re$3(r.index,o);Ku(s,1);}get injector(){return new Yt$2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function rw(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null);}}var gr$1=(()=>{class e{static __NG_ELEMENT_ID__=ow}return e})();function ow(){let e=X$2();return Gh(e,v$1())}var su=class e extends gr$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return pr$1(this._hostTNode,this._hostLView)}get injector(){return new Yt$2(this._hostTNode,this._hostLView)}get parentInjector(){let t=Cu(this._hostTNode,this._hostLView);if(Sp(t)){let n=os(t,this._hostLView),r=rs(t),o=n[E].data[r+8];return new Yt$2(o,n)}else return new Yt$2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=lp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-W$4}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=us(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,cr$1(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,u=n||{};c=u.index,r=u.injector,o=u.projectableNodes,i=u.environmentInjector||u.ngModuleRef,s=u.directives,a=u.bindings;let l=new Nn$3(Et$2(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let _=this.parentInjector.get(pe$5,null);_&&(i=_);}let p=Et$2(l.componentType??{}),f=us(this._lContainer,p?.id??null),h=null,y=l.create(d,o,h,i,s,a);return this.insertImpl(y.hostView,c,cr$1(this._hostTNode,f)),y}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(af(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[te$4],u=new e(c,c[se$2],c[te$4]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return vo$1(s,o,i,r),t.attachToViewContainerRef(),Xa(Oc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=lp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=uo$1(this._lContainer,n);r&&(Ur(Oc(this._lContainer),n),Ms$1(r[E],r));}detach(t){let n=this._adjustIndex(t,-1),r=uo$1(this._lContainer,n);return r&&Ur(Oc(this._lContainer),n)!=null?new Kt$2(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function lp(e){return e[Gr]}function Oc(e){return e[Gr]||(e[Gr]=[])}function Gh(e,t){let n,r=t[e.index];return Ne$3(r)?n=r:(n=Rh(r,t,null,e),t[e.index]=n,Gu(t,n)),sw(n,t,e,r),new su(n,e,t)}function iw(e,t){let n=e[L$3],r=n.createComment(""),o=Ae$2(t,e),i=n.parentNode(o);return cs(n,i,r,n.nextSibling(o),false),r}var sw=uw;function uw(e,t,n,r){if(e[zt$1])return;let o;n.type&8?o=xe$3(r):o=iw(t,n),e[zt$1]=o;}var au=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},cu=class e{queries;constructor(t=[]){this.queries=t;}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone());}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t);}detachView(t){this.dirtyQueriesWithMatches(t);}finishViewCreation(t){this.dirtyQueriesWithMatches(t);}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)rl(t,n).matches!==null&&this.queries[n].setDirty();}},gs=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=hw(t):this.predicate=t;}},uu=class e{queries;constructor(t=[]){this.queries=t;}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n);}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t);}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i]);}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n);}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t);}},lu=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=false;_declarationNodeIndex;_appliesToNextNode=true;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n;}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n);}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=false);}template(t,n){this.elementStart(t,n);}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=true,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,lw(n,i)),this.matchTNodeWithReadOption(t,n,es(n,t,i,false,false));}else r===ur$1?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,es(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Rn$3||o===gr$1||o===ur$1&&n.type&4)this.addMatch(n.index,-2);else {let i=es(n,t,o,false,false);i!==null&&this.addMatch(n.index,i);}else this.addMatch(n.index,r);}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n);}};function lw(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function dw(e,t){return e.type&11?pr$1(e,t):e.type&4?Rs$1(e,t):null}function fw(e,t,n,r){return n===-1?dw(t,e):n===-2?pw(e,t,r):so$1(e,e[E],n,t)}function pw(e,t,n){if(n===Rn$3)return pr$1(t,e);if(n===ur$1)return Rs$1(t,e);if(n===gr$1)return Gh(t,e)}function Wh(e,t,n,r){let o=t[et].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else {let l=i[u];a.push(fw(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function du(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Wh(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else {let u=i[a+1],l=t[-c];for(let d=W$4;d<l.length;d++){let p=l[d];p[$t$3]===p[te$4]&&du(p[E],p,u,r);}if(l[In$3]!==null){let d=l[In$3];for(let p=0;p<d.length;p++){let f=d[p];du(f[E],f,u,r);}}}}}return r}function nl(e,t){return e[et].queries[t].queryList}function qh(e,t,n){let r=new as((n&4)===4);return lf(e,t,r,r.destroy),(t[et]??=new cu).queries.push(new au(r))-1}function Zh(e,t,n){let r=j$4();return r.firstCreatePass&&(Qh(r,new gs(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),qh(r,v$1(),t)}function Yh(e,t,n,r){let o=j$4();if(o.firstCreatePass){let i=X$2();Qh(o,new gs(t,n,r),i.index),gw(o,e),(n&2)===2&&(o.staticContentQueries=true);}return qh(o,v$1(),n)}function hw(e){return e.split(",").map(t=>t.trim())}function Qh(e,t,n){e.queries===null&&(e.queries=new uu),e.queries.track(new lu(t,n));}function gw(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t);}function rl(e,t){return e.queries.getByIndex(t)}function Kh(e,t){let n=e[E],r=rl(n,t);return r.crossesNgTemplate?du(n,e,t,[]):Wh(n,e,r,t)}function ol(e,t,n){let r,o=Rr$1(()=>{r._dirtyCounter();let i=mw(r,e);if(t&&i===void 0)throw new m$2(-951,false);return i});return r=o[q$1],r._dirtyCounter=$i$1(0),r._flatValue=void 0,o}function il(e){return ol(true,false)}function sl(e){return ol(true,true)}function Xh(e){return ol(false,false)}function Jh(e,t){let n=e[q$1];n._lView=v$1(),n._queryIndex=t,n._queryList=nl(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function mw(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[S$2]&4)return t?void 0:ie$2;let o=nl(n,r),i=Kh(n,r);return o.reset(i,Pp),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function ks$1(e){return !!e&&typeof e.then=="function"}function al(e){return !!e&&typeof e.subscribe=="function"}var xn$3=class xn{},eg=class{};var ms=class extends xn$3{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Ud(t);this._bootstrapComponents=JD(i.bootstrap),this._r3Injector=bc(t,n,[{provide:xn$3,useValue:this},...r],Br(t),new Set(["environment"])),o&&this.resolveInjectorInitializers();}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType);}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null;}onDestroy(t){this.destroyCbs.push(t);}},ys=class extends eg{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new ms(this.moduleType,t,[])}};var lo$1=class lo extends xn$3{injector;instance=null;constructor(t){super();let n=new mn$2([...t.providers,{provide:xn$3,useValue:this}],t.parent||Zn$3(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function tg(e,t,n=null){return new lo$1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var yw=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n;}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=ec(false,n.type),o=r.length>0?tg([r],this._injector,""):null;this.cachedInjectors.set(n,o);}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy();}finally{this.cachedInjectors.clear();}}static \u0275prov=x({token:e,providedIn:"environment",factory:()=>new e(b$2(pe$5))})}return e})();function vw(e){return po$1(()=>{let t=ng(e),n=x$1(w$1({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==bu.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(yw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||$e$4.Emulated,styles:e.styles||ie$2,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&ut$2("NgStandalone"),rg(n);let r=e.dependencies;return n.directiveDefs=dp(r,Dw),n.pipeDefs=dp(r,$d),n.id=ww(n),n})}function Dw(e){return Et$2(e)||Ya(e)}function Fs$1(e){return po$1(()=>({type:e.type,bootstrap:e.bootstrap||ie$2,declarations:e.declarations||ie$2,imports:e.imports||ie$2,exports:e.exports||ie$2,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ew(e,t){if(e==null)return Ht$1;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=xs$1.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function Iw(e){if(e==null)return Ht$1;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function cl(e){return po$1(()=>{let t=ng(e);return rg(t),t})}function mr$1(e){return {type:e.type,name:e.name,factory:null,pure:e.pure!==false,standalone:e.standalone??true,onDestroy:e.type.prototype.ngOnDestroy||null}}function ng(e){let t={};return {type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Ht$1,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||ie$2,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:Ew(e.inputs,t),outputs:Iw(e.outputs),debugInfo:null}}function rg(e){e.features?.forEach(t=>t(e));}function dp(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i);}return r}:null}function ww(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var ul=new T$4("");function Cw(e){return wt$3([{provide:ul,multi:true,useValue:e}])}var ll=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=g(ul,{optional:true})??[];injector=g(he$4);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Yn$3(this.injector,o);if(ks$1(i))n.push(i);else if(al(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c});});n.push(s);}}let r=()=>{this.done=true,this.resolve();};Promise.all(n).then(()=>{r();}).catch(o=>{this.reject(o);}),n.length===0&&r(),this.initialized=true;}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();function Tw(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function bw(e){return Object.getPrototypeOf(e.prototype).constructor}function og(e){let t=bw(e.type),n=true,r=[e];for(;t;){let o;if(rt$2(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new m$2(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=kc(e.inputs),s.declaredInputs=kc(e.declaredInputs),s.outputs=kc(e.outputs);let a=o.hostBindings;a&&xw(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Mw(e,c),u&&Nw(e,u),Sw(e,o),Hd(e.outputs,o.outputs),rt$2(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation);}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===og&&(n=false);}}t=Object.getPrototypeOf(t);}_w(r);}function Sw(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n]);}}function _w(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=sr$1(o.hostAttrs,n=sr$1(n,o.hostAttrs));}}function kc(e){return e===Ht$1?{}:e===ie$2?[]:e}function Mw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function Nw(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function xw(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function ig(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=sr$1(e.mergedAttrs,e.attrs);let l=e.tView=$u(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e));}a&&(e.flags|=a),er$1(e,false);let c=Rw(n,t);Ui$1()&&Hu(n,t,c,e),ar$1(c,t);let u=Rh(c,t,c,e);t[r+H$1]=u,Gu(t,u);}function Aw(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$1,p;return t.firstCreatePass?(p=hr$1(t,d,4,s||null,a||null),Hh(t,e,p,Ee$3(t.consts,u),Wu),Cp(t,p)):p=t.data[d],ig(p,e,t,n,r,o,i,c),Xn$3(p)&&As$1(t,e,p),u!=null&&mo$1(e,p,l),p}function dr$1(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$1,p;if(t.firstCreatePass){if(p=hr$1(t,d,4,s||null,a||null),u!=null){let f=Ee$3(t.consts,u);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1);}}else p=t.data[d];return ig(p,e,t,n,r,o,i,c),u!=null&&mo$1(e,p,l),p}function sg(e,t,n,r,o,i,s,a){let c=v$1(),u=j$4(),l=Ee$3(u.consts,i);return Aw(c,u,e,t,n,r,o,l,void 0,s,a),sg}function ag(e,t,n,r,o,i,s,a){let c=v$1(),u=j$4(),l=Ee$3(u.consts,i);return dr$1(c,u,e,t,n,r,o,l,void 0,s,a),ag}var Rw=Ow;function Ow(e,t,n,r){return Yr(true),t[L$3].createComment("")}var cg=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var dl=new T$4("");var fl=new T$4("");function ug(){ba(()=>{let e="";throw new m$2(600,e)});}var kw=10;var yr$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g(ot$2);afterRenderManager=g(Ss$1);zonelessEnabled=g(rr$1);rootEffectScheduler=g(Wi$1);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new le$4;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(Zt$2);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ne$3(n=>!n))}constructor(){g(ct$1,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g(pe$5);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=he$4.NULL){return this._injector.get(G$2).run(()=>{if(F$4(O$2.BootstrapComponentStart),!this._injector.get(ll).done){let _="";throw new m$2(405,_)}let a=Et$2(n),c=this._injector.get(xn$3),u=new Nn$3(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=Fw(r),f=l||u.selector,h=u.create(o,[],f,c.injector,d,p),y=h.location.nativeElement,D=h.injector.get(dl,null);return D?.registerApplication(y),h.onDestroy(()=>{this.detachView(h.hostView),io$1(this.components,h),D?.unregisterApplication(y);}),this._loadComponent(h),F$4(O$2.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){F$4(O$2.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(bs$1.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw F$4(O$2.ChangeDetectionEnd),new m$2(101,false);let n=I(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,I(n),this.afterTick.next(),F$4(O$2.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Mn$4,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<kw;){F$4(O$2.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{F$4(O$2.ChangeDetectionSyncEnd);}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=false;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Wr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Mh(o,i),n=true;}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews();}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Wr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8;}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this);}detachView(n){let r=n;io$1(this._views,r),r.detachFromAppRef();}_loadComponent(n){this.attachView(n.hostView);try{this.tick();}catch(o){this.internalErrorHandler(o);}this.components.push(n),this._injector.get(fl,[]).forEach(o=>o(n));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy());}finally{this._destroyed=true,this._views=[],this._destroyListeners=[];}}onDestroy(n){return this._destroyListeners.push(n),()=>io$1(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m$2(406,false);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy();}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();function Fw(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function io$1(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function lg(e,t,n,r){let o=v$1(),i=Wt$1();if(ge$5(o,i,t)){j$4();let a=tr$1();ZE(a,o,e,t,n,r);}return lg}function Pw(){return v$1()[ae$3][Y$3]}var fu=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s);}else this.attach(r,i);}move(t,n){this.attach(n,this.detach(t));}};function Fc(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Lw(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){I(r);let u=t.length-1;for(I(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Fc(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[u],y=Fc(a,f,u,h,n);if(y!==0){y<0&&e.updateValue(a,h),a--,u--;continue}let D=n(s,l),_=n(a,f),$=n(s,d);if(Object.is($,_)){let be=n(u,h);Object.is(be,D)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new vs$1,i??=pp(e,s,a,n),pu(e,o,s,$))e.updateValue(s,d),s++,a++;else if(i.has($))o.set(D,e.detach(s)),a--;else {let be=e.create(s,t[s]);e.attach(s,be),s++,a++;}}for(;s<=u;)fp(e,o,n,s,t[s]),s++;}else if(t!=null){I(r);let u=t[Symbol.iterator]();I(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Fc(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new vs$1,i??=pp(e,s,a,n);let h=n(s,p);if(pu(e,o,s,h))e.updateValue(s,p),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,p)),s++,a++,l=u.next();else {let y=n(s,d);o.set(y,e.detach(s)),a--;}}}for(;!l.done;)fp(e,o,n,e.length,l.value),l=u.next();}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u);});}function pu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function fp(e,t,n,r,o){if(pu(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function pp(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var vs$1=class vs{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return false;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),true}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n);}else this.kvMap.set(t,n);}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n);}}};function jw(e,t,n,r,o,i,s,a){ut$2("NgControlFlow");let c=v$1(),u=j$4(),l=Ee$3(u.consts,i);return dr$1(c,u,e,t,n,r,o,l,256,s,a),pl}function pl(e,t,n,r,o,i,s,a){ut$2("NgControlFlow");let c=v$1(),u=j$4(),l=Ee$3(u.consts,i);return dr$1(c,u,e,t,n,r,o,l,512,s,a),pl}function Bw(e,t){ut$2("NgControlFlow");let n=v$1(),r=Wt$1(),o=n[r]!==Q$1?n[r]:-1,i=o!==-1?Ds$1(n,H$1+o):void 0,s=0;if(ge$5(n,r,e)){let a=I(null);try{if(i!==void 0&&kh(i,s),e!==-1){let c=H$1+e,u=Ds$1(n,c),l=yu(n[E],c),d=Ph(u,l,n),p=yo$1(n,l,t,{dehydratedView:d});vo$1(u,p,s,cr$1(l,d));}}finally{I(a);}}else if(i!==void 0){let a=Oh(i,s);a!==void 0&&(a[Y$3]=t);}}var hu=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-W$4}};function Vw(e){return e}function Hw(e,t){return t}var gu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function Uw(e,t,n,r,o,i,s,a,c,u,l,d,p){ut$2("NgControlFlow");let f=v$1(),h=j$4(),y=c!==void 0,D=v$1(),_=a?s.bind(D[ae$3][Y$3]):s,$=new gu(y,_);D[H$1+e]=$,dr$1(f,h,e+1,t,n,r,o,Ee$3(h.consts,i),256),y&&dr$1(f,h,e+2,c,u,l,d,Ee$3(h.consts,p),512);}var mu=class extends fu{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=false;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r;}get length(){return this.lContainer.length-W$4}at(t){return this.getLView(t)[Y$3].$implicit}attach(t,n){let r=n[vn$2];this.needsIndexUpdate||=t!==this.length,vo$1(this.lContainer,n,t,cr$1(this.templateTNode,r)),zw(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Gw(this.lContainer,t),Ww(this.lContainer,t)}create(t,n){let r=us(this.lContainer,this.templateTNode.tView.ssrId);return yo$1(this.hostLView,this.templateTNode,new hu(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Ms$1(t[E],t);}updateValue(t,n){this.getLView(t)[Y$3].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Y$3].$index=t;}getLView(t){return qw(this.lContainer,t)}};function $w(e){let t=I(null),n=Ie$2();try{let r=v$1(),o=r[E],i=r[n],s=n+1,a=Ds$1(r,s);if(i.liveCollection===void 0){let u=yu(o,s);i.liveCollection=new mu(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(Lw(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Wt$1(),l=c.length===0;if(ge$5(r,u,l)){let d=n+2,p=Ds$1(r,d);if(l){let f=yu(o,d),h=Ph(p,f,r),y=yo$1(r,f,void 0,{dehydratedView:h});vo$1(p,y,0,cr$1(f,h));}else o.firstUpdatePass&&DI(p),kh(p,0);}}}finally{I(t);}}function Ds$1(e,t){return e[t]}function zw(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[nt$1]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Je$3];DE(i,o),Qt$2.delete(r[tt$1]),o.detachedLeaveAnimationFns=void 0;}}function Gw(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[nt$1]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function Ww(e,t){return uo$1(e,t)}function qw(e,t){return Oh(e,t)}function yu(e,t){return Ri$3(e,t)}function dg(e,t,n){let r=v$1(),o=Wt$1();if(ge$5(r,o,t)){j$4();let s=tr$1();Ih(s,r,e,t,r[L$3],n);}return dg}function vu(e,t,n,r,o){Yu(t,e,n,o?"class":"style",r);}function Es$1(e,t,n,r){let o=v$1(),i=o[E],s=e+H$1,a=i.firstCreatePass?el(s,o,2,t,Wu,Li$2(),n,r):i.data[s];if(Tt$3(a)){let c=o[Ve$2].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Bh(u),()=>(hp(e,t,o,a,r),Es$1))}}return hp(e,t,o,a,r),Es$1}function hp(e,t,n,r,o){if(qu(r,n,e,t,hg),Xn$3(r)){let i=n[E];As$1(i,n,r),Mu(i,r,n);}o!=null&&mo$1(n,r);}function hl(){let e=j$4(),t=X$2(),n=Zu(t);return e.firstCreatePass&&tl$1(e,n),mc(n)&&yc(),hc(),n.classesWithoutHost!=null&&eD(n)&&vu(e,n,v$1(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&tD(n)&&vu(e,n,v$1(),n.stylesWithoutHost,false),hl}function fg(e,t,n,r){return Es$1(e,t,n,r),hl(),fg}function gl(e,t,n,r){let o=v$1(),i=o[E],s=e+H$1,a=i.firstCreatePass?WI(s,i,2,t,n,r):i.data[s];return qu(a,o,e,t,hg),r!=null&&mo$1(o,a),gl}function ml(){let e=X$2(),t=Zu(e);return mc(t)&&yc(),hc(),ml}function pg(e,t,n,r){return gl(e,t,n,r),ml(),pg}var hg=(e,t,n,r,o)=>(Yr(true),nh(t[L$3],r,Tc()));function yl(e,t,n){let r=v$1(),o=r[E],i=e+H$1,s=o.firstCreatePass?el(i,r,8,"ng-container",Wu,Li$2(),t,n):o.data[i];if(qu(s,r,e,"ng-container",Zw),Xn$3(s)){let a=r[E];As$1(a,r,s),Mu(a,s,r);}return n!=null&&mo$1(r,s),yl}function vl(){let e=j$4(),t=X$2(),n=Zu(t);return e.firstCreatePass&&tl$1(e,n),vl}function gg(e,t,n){return yl(e,t,n),vl(),gg}var Zw=(e,t,n,r,o)=>(Yr(true),WD(t[L$3],""));function Yw(){return v$1()}function mg(e,t,n){let r=v$1(),o=Wt$1();if(ge$5(r,o,t)){j$4();let s=tr$1();wh(s,r,e,t,r[L$3],n);}return mg}var no$1=void 0;function Qw(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Kw=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],no$1,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],no$1,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",no$1,no$1,no$1],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Qw],Pc=Object.create(null);function me$3(e){let t=Xw(e),n=gp(t);if(n)return n;let r=t.split("-")[0];if(n=gp(r),n)return n;if(r==="en")return Kw;throw new m$2(701,false)}function gp(e){if(!(e in Pc)){let t=_e$4.ng&&_e$4.ng.common&&_e$4.ng.common.locales&&_e$4.ng.common.locales[e];return t!==void 0&&(Pc[e]=t),t}return Pc[e]}var K$4={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,ExtraData:21};function Xw(e){return e.toLowerCase().replace(/_/g,"-")}var Eo$1="en-US";function yg(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function vg(e,t,n){let r=v$1(),o=j$4(),i=X$2();return Eg(o,r,r[L$3],i,e,t,n),vg}function Dg(e,t,n){let r=v$1(),o=j$4(),i=X$2();return (i.type&3||n)&&Ju(i,o,r,n,r[L$3],e,t,bn$2(i,r,t)),Dg}function Eg(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=bn$2(r,t,i),Ju(r,e,t,s,n,o,i,c)&&(a=false)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let p=l[d],f=l[d+1];c??=bn$2(r,t,i),ds(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=bn$2(r,t,i),ds(r,t,d,o,o,c);}}function eC(e=1){return bf(e)}function tC(e,t){let n=null,r=iE(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?uh(e,i,true):cE(r,i))return o}return n}function nC(e){let t=v$1()[ae$3][se$2];if(!t.projection){let n=e?e.length:1,r=t.projection=Yd(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?tC(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function rC(e,t=0,n,r,o,i){let s=v$1(),a=j$4(),c=null;let u=hr$1(a,H$1+e,16,null,null);u.projection===null&&(u.projection=t),Ec();let d=!s[vn$2]||gc();s[ae$3][se$2].projection[u.projection]===null&&c!==null?oC(s,a,c):d&&!ws$1(u)&&OE(a,s,u);}function oC(e,t,n){let r=H$1+n,o=t.data[r],i=e[r],s=us(i,o.tView.ssrId),a=yo$1(e,o,void 0,{dehydratedView:s});vo$1(i,a,0,cr$1(o,s));}function Ig(e,t,n,r){return Yh(e,t,n,r),Ig}function wg(e,t,n){return Zh(e,t,n),wg}function iC(e){let t=v$1(),n=j$4(),r=Bi$2();Zr(r+1);let o=rl(n,r);if(e.dirty&&sf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Kh(t,r);e.reset(i,Pp),e.notifyOnChanges();}return true}return false}function sC(){return nl(v$1(),Bi$2())}function Cg(e,t,n,r,o){return Jh(t,Yh(e,n,r,o)),Cg}function Tg(e,t,n,r){return Jh(e,Zh(t,n,r)),Tg}function aC(e=1){Zr(Bi$2()+e);}function cC(e){let t=mf();return Oi$2(t,H$1+e)}function Ki$1(e,t){return e<<17|t<<2}function An$3(e){return e>>17&32767}function uC(e){return (e&2)==2}function lC(e,t){return e&131071|t<<17}function Du(e){return e|2}function fr$1(e){return (e&131068)>>2}function Lc(e,t){return e&-131069|t<<2}function dC(e){return (e&1)===1}function Eu(e){return e|1}function fC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=An$3(s),c=fr$1(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||qn$3(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=An$3(e[a+1]);e[r+1]=Ki$1(p,a),p!==0&&(e[p+1]=Lc(e[p+1],r)),e[a+1]=lC(e[a+1],r);}else e[r+1]=Ki$1(a,0),a!==0&&(e[a+1]=Lc(e[a+1],r)),a=r;else e[r+1]=Ki$1(c,0),a===0?a=r:e[c+1]=Lc(e[c+1],r),c=r;u&&(e[r+1]=Du(e[r+1])),mp(e,l,r,true),mp(e,l,r,false),pC(t,l,e,r,i),s=Ki$1(a,c),i?t.classBindings=s:t.styleBindings=s;}function pC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&qn$3(i,t)>=0&&(n[r+1]=Eu(n[r+1]));}function mp(e,t,n,r){let o=e[n+1],i=t===null,s=r?An$3(o):fr$1(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];hC(c,t)&&(a=true,e[s+1]=r?Eu(u):Du(u)),s=r?An$3(u):fr$1(u);}a&&(e[n+1]=r?Du(o):Eu(o));}function hC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?qn$3(e,t)>=0:false}var Ue$2={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function gC(e){return e.substring(Ue$2.key,Ue$2.keyEnd)}function mC(e){return yC(e),bg(e,Sg(e,0,Ue$2.textEnd))}function bg(e,t){let n=Ue$2.textEnd;return n===t?-1:(t=Ue$2.keyEnd=vC(e,Ue$2.key=t,n),Sg(e,t,n))}function yC(e){Ue$2.key=0,Ue$2.keyEnd=0,Ue$2.value=0,Ue$2.valueEnd=0,Ue$2.textEnd=e.length;}function Sg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function vC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function _g(e,t,n){return Ng(e,t,n,false),_g}function Mg(e,t){return Ng(e,t,null,true),Mg}function DC(e){IC(_C,EC,e,true);}function EC(e,t){for(let n=mC(t);n>=0;n=bg(t,n))Ni$3(e,gC(t),true);}function Ng(e,t,n,r){let o=v$1(),i=j$4(),s=Tn$3(2);if(i.firstUpdatePass&&Ag(i,e,s,r),t!==Q$1&&ge$5(o,s,t)){let a=i.data[Ie$2()];Rg(i,a,o,o[L$3],e,o[s+1]=NC(t,n),r,s);}}function IC(e,t,n,r){let o=j$4(),i=Tn$3(2);o.firstUpdatePass&&Ag(o,null,i,r);let s=v$1();if(n!==Q$1&&ge$5(s,i,n)){let a=o.data[Ie$2()];if(Og(a,r)&&!xg(o,i)){let c=a.classesWithoutHost;c!==null&&(n=Ci$3(c,n||"")),vu(o,a,s,n,r);}else MC(o,a,s,s[L$3],s[i+1],s[i+1]=SC(e,t,n),r,i);}}function xg(e,t){return t>=e.expandoStartIndex}function Ag(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ie$2()],s=xg(e,n);Og(i,r)&&t===null&&!s&&(t=false),t=wC(o,i,t,r),fC(o,i,t,n,s,r);}}function wC(e,t,n,r){let o=If(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=jc(null,e,t,n,r),n=fo$1(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=jc(o,e,t,n,r),i===null){let c=CC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=jc(null,e,t,c[1],r),c=fo$1(c,t.attrs,r),TC(e,t,r,c));}else i=bC(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function CC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(fr$1(r)!==0)return e[An$3(r)]}function TC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[An$3(o)]=r;}function bC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=fo$1(r,s,n);}return fo$1(r,t.attrs,n)}function jc(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=fo$1(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function fo$1(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Ni$3(e,s,n?true:t[++i]));}return e===void 0?null:e}function SC(e,t,n){if(n==null||n==="")return ie$2;let r=[],o=Te$1(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],true);else if(o instanceof Set)for(let i of o)e(r,i,true);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function _C(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Ni$3(e,r,n);}function MC(e,t,n,r,o,i,s,a){o===Q$1&&(o=ie$2);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=u<i.length?i[u+1]:void 0,h=null,y;l===d?(c+=2,u+=2,p!==f&&(h=d,y=f)):d===null||l!==null&&l<d?(c+=2,h=l):(u+=2,h=d,y=f),h!==null&&Rg(e,t,n,r,h,y,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function Rg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=dC(u)?yp(c,t,n,o,fr$1(u),s):void 0;if(!Is$1(l)){Is$1(i)||uC(u)&&(i=yp(c,null,n,o,a,s));let d=cc(Ie$2(),n);FE(r,s,d,o,i);}}function yp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,p=n[o+1];p===Q$1&&(p=d?ie$2:void 0);let f=d?xi$2(p,r):l===r?p:void 0;if(u&&!Is$1(f)&&(f=xi$2(c,r)),Is$1(f)&&(a=f,s))return a;let h=e[o+1];o=s?An$3(h):fr$1(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=xi$2(c,r));}return a}function Is$1(e){return e!==void 0}function NC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Br(Te$1(e)))),e}function Og(e,t){return (e.flags&(t?8:16))!==0}function xC(e,t=""){let n=v$1(),r=j$4(),o=e+H$1,i=r.firstCreatePass?hr$1(r,o,1,t,null):r.data[o],s=AC(r,n,i,t);n[o]=s,Ui$1()&&Hu(r,n,s,i),er$1(i,false);}var AC=(e,t,n,r)=>(Yr(true),zD(t[L$3],r));function kg(e,t,n,r=""){return ge$5(e,Wt$1(),n)?t+Z$1(n)+r:Q$1}function RC(e,t,n,r,o,i=""){let s=qr(),a=lr$1(e,s,n,o);return Tn$3(2),a?t+Z$1(n)+r+Z$1(o)+i:Q$1}function OC(e,t,n,r,o,i,s,a,c,u=""){let l=qr(),d=Os$2(e,l,n,o,s,c);return Tn$3(4),d?t+Z$1(n)+r+Z$1(o)+i+Z$1(s)+a+Z$1(c)+u:Q$1}function kC(e,t,n,r,o,i,s,a,c,u,l,d=""){let p=qr(),f=Os$2(e,p,n,o,s,c);return f=ge$5(e,p+4,l)||f,Tn$3(5),f?t+Z$1(n)+r+Z$1(o)+i+Z$1(s)+a+Z$1(c)+u+Z$1(l)+d:Q$1}function FC(e,t,n,r,o,i,s,a,c,u,l,d,p,f=""){let h=qr(),y=Os$2(e,h,n,o,s,c);return y=lr$1(e,h+4,l,p)||y,Tn$3(6),y?t+Z$1(n)+r+Z$1(o)+i+Z$1(s)+a+Z$1(c)+u+Z$1(l)+d+Z$1(p)+f:Q$1}function Fg(e){return Dl("",e),Fg}function Dl(e,t,n){let r=v$1(),o=kg(r,e,t,n);return o!==Q$1&&Io$1(r,Ie$2(),o),Dl}function Pg(e,t,n,r,o){let i=v$1(),s=RC(i,e,t,n,r,o);return s!==Q$1&&Io$1(i,Ie$2(),s),Pg}function Lg(e,t,n,r,o,i,s,a,c){let u=v$1(),l=OC(u,e,t,n,r,o,i,s,a,c);return l!==Q$1&&Io$1(u,Ie$2(),l),Lg}function jg(e,t,n,r,o,i,s,a,c,u,l){let d=v$1(),p=kC(d,e,t,n,r,o,i,s,a,c,u,l);return p!==Q$1&&Io$1(d,Ie$2(),p),jg}function Bg(e,t,n,r,o,i,s,a,c,u,l,d,p){let f=v$1(),h=FC(f,e,t,n,r,o,i,s,a,c,u,l,d,p);return h!==Q$1&&Io$1(f,Ie$2(),h),Bg}function Io$1(e,t,n){let r=cc(t,e);GD(e[L$3],r,n);}function Vg(e,t,n){qi$1(t)&&(t=t());let r=v$1(),o=Wt$1();if(ge$5(r,o,t)){j$4();let s=tr$1();Ih(s,r,e,t,r[L$3],n);}return Vg}function PC(e,t){let n=qi$1(e);return n&&e.set(t),n}function Hg(e,t){let n=v$1(),r=j$4(),o=X$2();return Eg(r,n,n[L$3],o,e,t),Hg}function LC(e,t,n=""){return kg(v$1(),e,t,n)}function vp(e,t,n){let r=j$4();r.firstCreatePass&&Ug(t,r.data,r.blueprint,rt$2(e),n);}function Ug(e,t,n,r,o){if(e=re$3(e),Array.isArray(e))for(let i=0;i<e.length;i++)Ug(e[i],t,n,r,o);else {let i=j$4(),s=v$1(),a=X$2(),c=gn$2(e)?e:re$3(e.provide),u=nc(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(gn$2(e)||!e.multi){let f=new Sn$3(u,o,ze$2,null),h=Vc(c,t,l+p,d);h===-1?($c(ss(a,s),i,c),Bc(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(f),s.push(f)):(n[h]=f,s[h]=f);}else {let f=Vc(c,t,l+p,d),h=Vc(c,t,l,l+p),y=f>=0&&n[f],D=h>=0&&n[h];if(!y){$c(ss(a,s),i,c);let _=VC(jC,n.length,o,r,u);D&&(n[h].providerFactory=_),Bc(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(_),s.push(_);}else {let _=$g(n[f],u,r);Bc(i,e,f>-1?f:h,_);}r&&D&&n[h].componentProviders++;}}}function Bc(e,t,n,r){let o=gn$2(t),i=tf(t);if(o||i){let c=(i?re$3(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c);}else u.push(n,c);}}}function $g(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Vc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function jC(e,t,n,r,o){return Iu(this.multi,[])}function Iu(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function VC(e,t,n,r,o,i){let s=new Sn$3(e,n,ze$2,null);return s.multi=[],s.index=t,s.componentProviders=0,$g(s,o,r&&!n),s}function HC(e,t){return n=>{n.providersResolver=(r,o)=>vp(r,o?o(e):e,false);}}function UC(e,t){let n=Gt$1()+e,r=v$1();return r[n]===Q$1?Do$1(r,n,t()):TI(r,n)}function $C(e,t,n){return zg(v$1(),Gt$1(),e,t,n)}function zC(e,t,n,r){return Gg(v$1(),Gt$1(),e,t,n,r)}function GC(e,t,n,r,o){return qC(v$1(),Gt$1(),e,t,n,r,o)}function WC(e,t,n,r,o,i,s){return ZC(v$1(),Gt$1(),e,t,n,r,o,i)}function Ps$1(e,t){let n=e[t];return n===Q$1?void 0:n}function zg(e,t,n,r,o,i){let s=t+n;return ge$5(e,s,o)?Do$1(e,s+1,i?r.call(i,o):r(o)):Ps$1(e,s+1)}function Gg(e,t,n,r,o,i,s){let a=t+n;return lr$1(e,a,o,i)?Do$1(e,a+2,s?r.call(s,o,i):r(o,i)):Ps$1(e,a+2)}function qC(e,t,n,r,o,i,s,a){let c=t+n;return bI(e,c,o,i,s)?Do$1(e,c+3,r(o,i,s)):Ps$1(e,c+3)}function ZC(e,t,n,r,o,i,s,a,c){let u=t+n;return Os$2(e,u,o,i,s,a)?Do$1(e,u+4,r(o,i,s,a)):Ps$1(e,u+4)}function YC(e,t){let n=j$4(),r,o=e+H$1;n.firstCreatePass?(r=QC(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Bt$1(r.type)),a=fe$5(ze$2);try{let c=is(!1),u=i();return is(c),uc(n,v$1(),o,u),u}finally{fe$5(a);}}function QC(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function KC(e,t,n){let r=e+H$1,o=v$1(),i=Oi$2(o,r);return Wg(o,r)?zg(o,Gt$1(),t,i.transform,n,i):i.transform(n)}function XC(e,t,n,r){let o=e+H$1,i=v$1(),s=Oi$2(i,o);return Wg(i,o)?Gg(i,Gt$1(),t,s.transform,n,r,s):s.transform(n,r)}function Wg(e,t){return e[E].data[t].pure}function JC(e,t){return Rs$1(e,t)}var qg=(()=>{class e{applicationErrorHandler=g(ot$2);appRef=g(yr$1);taskService=g(Zt$2);ngZone=g(G$2);zonelessEnabled=g(rr$1);tracing=g(ct$1,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new ee$5;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Lr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(Gi$1,{optional:true})??false);cancelScheduledCallback=null;useMicrotaskScheduler=false;runningTick=false;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n);})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup();}));}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=true,queueMicrotask(()=>{this.useMicrotaskScheduler=false,this.taskService.remove(n);});});}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8;}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?xf:_c;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()));}shouldScheduleTick(){return !(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Lr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(r){this.applicationErrorHandler(r);}finally{this.taskService.remove(n),this.cleanup();}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=false,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n);}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();function Zg(){return [{provide:je$3,useExisting:qg},{provide:G$2,useClass:jr},{provide:rr$1,useValue:true}]}var eT=(()=>{class e{compileModuleSync(n){return new ys(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();function tT(){return typeof $localize<"u"&&$localize.locale||Eo$1}var vr$1=new T$4("",{factory:()=>g(vr$1,{optional:true,skipSelf:true})||tT()});var wo$1=class wo{destroyed=false;listeners=null;errorHandler=g(Se$2,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=g(we$2);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new m$2(953,false);return (this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=true,this.listeners[n]=null):this.listeners.splice(n,1));}}}emit(t){if(this.destroyed){console.warn(Xe(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=I(null);try{for(let r of this.listeners)try{r!==null&&r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{this.hasNullListeners&&(this.hasNullListeners=false,this.listeners&&nT(this.listeners)),I(n),this.isEmitting=false;}}};function nT(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function rT(e,t){return Rr$1(e,t?.equal)}function Co$1(e){return Pd(e)}var oT=e=>e;function iT(e,t){if(typeof e=="function"){let n=xa(e,oT,t?.equal);return Yg(n)}else {let n=xa(e.source,e.computation,e.equal);return Yg(n,e.debugName)}}function Yg(e,t){let n=e[q$1],r=e;return r.set=o=>kd(n,o),r.update=o=>Fd(n,o),r.asReadonly=Qr.bind(e),r}var js$1=Symbol("InputSignalNode#UNSET"),om=x$1(w$1({},Or),{transformFn:void 0,applyValueToInputSignal(e,t){jt$2(e,t);}});function im(e,t){let n=Object.create(om);n.value=e,n.transformFn=t?.transform;function r(){if(gt$3(n),n.value===js$1){let o=null;throw new m$2(-950,o)}return n.value}return r[q$1]=n,r}var Qg=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>Tu(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function NB(e){return vT(e)?e.default:e}function vT(e){return e&&typeof e=="object"&&"default"in e}function xB(e){return new wo$1}function Kg(e,t){return im(e,t)}function DT(e){return im(js$1,e)}var AB=(Kg.required=DT,Kg);function sm(e,t){let n=Object.create(om),r=new wo$1;n.value=e;function o(){return gt$3(n),Xg(n.value),n.value}return o[q$1]=n,o.asReadonly=Qr.bind(o),o.set=i=>{n.equal(n.value,i)||(jt$2(n,i),r.emit(i));},o.update=i=>{Xg(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function Xg(e){if(e===js$1)throw new m$2(952,false)}function Jg(e,t){return sm(e)}function ET(e){return sm(js$1)}var RB=(Jg.required=ET,Jg);function em(e,t){return il()}function IT(e,t){return sl()}var OB=(em.required=IT,em);function kB(e,t){return Xh()}function tm(e,t){return il()}function wT(e,t){return sl()}var FB=(tm.required=wT,tm);var am=(()=>{class e{static __NG_ELEMENT_ID__=TT}return e})();function TT(e){return bT(X$2(),v$1(),(e&16)===16)}function bT(e,t,n){if(Tt$3(e)&&!n){let r=Re$3(e.index,t);return new Kt$2(r,r)}else if(e.type&175){let r=t[ae$3];return new Kt$2(r,t)}return null}var ST=(()=>{class e{zone=g(G$2);changeDetectionScheduler=g(je$3);applicationRef=g(yr$1);applicationErrorHandler=g(ot$2);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick();}catch(n){this.applicationErrorHandler(n);}});}}));}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})(),_T=new T$4("",{factory:()=>false});function MT({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new G$2(x$1(w$1({},cm()),{scheduleInRootZone:t})),[{provide:rr$1,useValue:false},{provide:G$2,useFactory:e},{provide:It$2,multi:true,useFactory:()=>{let n=g(ST,{optional:true});return ()=>n.initialize()}},{provide:It$2,multi:true,useFactory:()=>{let n=g(NT);return ()=>{n.initialize();}}},{provide:Gi$1,useValue:t??Sc}]}function LB(e){let t=e?.scheduleInRootZone,n=MT({ngZoneFactory:()=>{let r=cm(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&ut$2("NgZone_CoalesceEvent"),new G$2(r)},scheduleInRootZone:t});return wt$3([{provide:_T,useValue:true},n])}function cm(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var NT=(()=>{class e{subscription=new ee$5;initialized=false;zone=g(G$2);pendingTasks=g(Zt$2);initialize(){if(this.initialized)return;this.initialized=true;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(()=>{G$2.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G$2.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();var Il=new T$4(""),xT=new T$4("");function To$1(e){return !e.moduleRef}function AT(e){let t=To$1(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G$2);return n.run(()=>{To$1(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ot$2),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),To$1(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Il);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Il);s.add(i),e.moduleRef.onDestroy(()=>{io$1(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return OT(r,n,()=>{let i=t.get(Zt$2),s=i.add(),a=t.get(ll);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(vr$1,Eo$1);if(yg(c||Eo$1),!t.get(xT,!0))return To$1(e)?t.get(yr$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(To$1(e)){let l=t.get(yr$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return RT?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var RT;function OT(e,t,n){try{let r=n();return ks$1(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Ls$1=null;function kT(e=[],t){return he$4.create({name:t,providers:[{provide:zr,useValue:"platform"},{provide:Il,useValue:new Set([()=>Ls$1=null])},...e]})}function FT(e=[]){if(Ls$1)return Ls$1;let t=kT(e);return Ls$1=t,ug(),PT(t),t}function PT(e){let t=e.get(zi$2,null);Yn$3(e,()=>{t?.forEach(n=>n());});}function um(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;F$4(O$2.BootstrapApplicationStart);try{let i=o?.injector??FT(r),s=[Zg(),Rf,...n||[]],a=new lo$1({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return AT({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{F$4(O$2.BootstrapApplicationEnd);}}function LT(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function jT(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var El=Symbol("NOT_SET"),lm=new Set,BT=x$1(w$1({},Or),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:El,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=true;}this.sequence.scheduler.notify(7);},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=false,this.value!==El&&!Un$3(this))return this.signal;try{for(let o of this.cleanup??lm)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=mt$4(this),r;try{r=this.userFn.apply(null,t);}finally{Pt$3(this,n);}return (this.value===El||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),wl=class extends ao$1{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(t,n,r,o,i,s=null){super(t,[void 0,void 0,void 0,void 0],r,false,i.get(we$2),s),this.scheduler=o;for(let a of Lu){let c=n[a];if(c===void 0)continue;let u=Object.create(BT);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(gt$3(u),u.value),u.signal[q$1]=u,u.registerCleanupFn=l=>(u.cleanup??=new Set).add(l),this.nodes[a]=u,this.hooks[a]=l=>u.phaseFn(l);}}afterRun(){super.afterRun(),this.lastPhase=null;}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??lm)n();}finally{Lt$2(t);}}};function jB(e,t){let n=g(he$4),r=n.get(je$3),o=n.get(Ss$1),i=n.get(ct$1,null,{optional:true});o.impl??=n.get(ju);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(nr$1,null,{optional:true}),c=new wl(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function BB(e,t){let n=Et$2(e),r=t.elementInjector||Zn$3();return new Nn$3(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function VB(e){let t=Et$2(e);if(!t)return null;let n=new Nn$3(t);return {get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var dm=null;function _t$4(){return dm}function Cl(e){dm??=e;}var bo$1=class bo{},Xt$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>g(fm),providedIn:"platform"})}return e})(),VT=new T$4(""),fm=(()=>{class e extends Xt$1{_location;_history;_doc=g(U$5);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return _t$4().getBaseHref(this._doc)}onPopState(n){let r=_t$4().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=_t$4().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,false),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n;}pushState(n,r,o){this._history.pushState(n,r,o);}replaceState(n,r,o){this._history.replaceState(n,r,o);}forward(){this._history.forward();}back(){this._history.back();}historyGo(n=0){this._history.go(n);}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Bs$1(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function pm(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Ge$3(e){return e&&e[0]!=="?"?`?${e}`:e}var Dr$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>g(gm),providedIn:"root"})}return e})(),Vs$1=new T$4(""),gm=(()=>{class e extends Dr$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(U$5).location?.origin??"";}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n));}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Bs$1(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+Ge$3(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$3(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$3(i));this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static \u0275fac=function(r){return new(r||e)(b$2(Xt$1),b$2(Vs$1,8))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var mm=(()=>{class e{_subject=new le$4;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=$T(pm(hm(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(true),pop:true,state:o.state,type:o.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(n=false){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Ge$3(r))}normalize(n){return e.stripTrailingSlash(UT(this._basePath,hm(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ge$3(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ge$3(r)),o);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(n=0){this._locationStrategy.historyGo?.(n);}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state);}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r));}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Ge$3;static joinWithSlash=Bs$1;static stripTrailingSlash=pm;static \u0275fac=function(r){return new(r||e)(b$2(Dr$1))};static \u0275prov=x({token:e,factory:()=>HT(),providedIn:"root"})}return e})();function HT(){return new mm(b$2(Dr$1))}function UT(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function hm(e){return e.replace(/\/index\.html$/,"")}function $T(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var zT=(()=>{class e extends Dr$1{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,r!=null&&(this._baseHref=r);}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n));}getBaseHref(){return this._baseHref}path(n=false){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Bs$1(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$3(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ge$3(i))||this._platformLocation.pathname;this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static \u0275fac=function(r){return new(r||e)(b$2(Xt$1),b$2(Vs$1,8))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();var Nl=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Nl||{});var ce$1=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(ce$1||{}),B$2=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(B$2||{}),ye$4=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(ye$4||{}),ve$3={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function Dm(e){return me$3(e)[K$4.LocaleId]}function Em(e,t,n){let r=me$3(e),o=[r[K$4.DayPeriodsFormat],r[K$4.DayPeriodsStandalone]],i=ke$4(o,t);return ke$4(i,n)}function Im(e,t,n){let r=me$3(e),o=[r[K$4.DaysFormat],r[K$4.DaysStandalone]],i=ke$4(o,t);return ke$4(i,n)}function wm(e,t,n){let r=me$3(e),o=[r[K$4.MonthsFormat],r[K$4.MonthsStandalone]],i=ke$4(o,t);return ke$4(i,n)}function Cm(e,t){let r=me$3(e)[K$4.Eras];return ke$4(r,t)}function So$1(e,t){let n=me$3(e);return ke$4(n[K$4.DateFormat],t)}function _o$1(e,t){let n=me$3(e);return ke$4(n[K$4.TimeFormat],t)}function Mo$2(e,t){let r=me$3(e)[K$4.DateTimeFormat];return ke$4(r,t)}function lt$2(e,t){let n=me$3(e),r=n[K$4.NumberSymbols][t];if(typeof r>"u"){if(t===ve$3.CurrencyDecimal)return n[K$4.NumberSymbols][ve$3.Decimal];if(t===ve$3.CurrencyGroup)return n[K$4.NumberSymbols][ve$3.Group]}return r}function Tm(e,t){return me$3(e)[K$4.NumberFormats][t]}function bm(e){if(!e[K$4.ExtraData])throw new m$2(2303,false)}function Sm(e){let t=me$3(e);return bm(t),(t[K$4.ExtraData][2]||[]).map(r=>typeof r=="string"?Tl(r):[Tl(r[0]),Tl(r[1])])}function _m(e,t,n){let r=me$3(e);bm(r);let o=[r[K$4.ExtraData][0],r[K$4.ExtraData][1]],i=ke$4(o,t)||[];return ke$4(i,n)||[]}function ke$4(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new m$2(2304,false)}function Tl(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var GT=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Hs$1=Object.create(null),WT=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,qT=256;function Mm(e,t,n,r){let o=rb(e);ZT(t),t=Mt$2(n,t)||t;let s=[],a;for(;t;)if(a=WT.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l;}else {s.push(t);break}let c=o.getTimezoneOffset();r&&(c=xm(r,c),o=nb(o,r));let u="";return s.forEach(l=>{let d=eb(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function ZT(e){if(e.length>qT)throw new m$2(2300,false)}function Ws$1(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Mt$2(e,t){let n=Dm(e);if(Hs$1[n]??=Object.create(null),Hs$1[n][t])return Hs$1[n][t];let r="";switch(t){case "shortDate":r=So$1(e,ye$4.Short);break;case "mediumDate":r=So$1(e,ye$4.Medium);break;case "longDate":r=So$1(e,ye$4.Long);break;case "fullDate":r=So$1(e,ye$4.Full);break;case "shortTime":r=_o$1(e,ye$4.Short);break;case "mediumTime":r=_o$1(e,ye$4.Medium);break;case "longTime":r=_o$1(e,ye$4.Long);break;case "fullTime":r=_o$1(e,ye$4.Full);break;case "short":let o=Mt$2(e,"shortTime"),i=Mt$2(e,"shortDate");r=Us$1(Mo$2(e,ye$4.Short),[o,i]);break;case "medium":let s=Mt$2(e,"mediumTime"),a=Mt$2(e,"mediumDate");r=Us$1(Mo$2(e,ye$4.Medium),[s,a]);break;case "long":let c=Mt$2(e,"longTime"),u=Mt$2(e,"longDate");r=Us$1(Mo$2(e,ye$4.Long),[c,u]);break;case "full":let l=Mt$2(e,"fullTime"),d=Mt$2(e,"fullDate");r=Us$1(Mo$2(e,ye$4.Full),[l,d]);break}return r&&(Hs$1[n][t]=r),r}function Us$1(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function We$2(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function YT(e,t){return We$2(e,3).substring(0,t)}function J$2(e,t,n=0,r=false,o=false){return function(i,s){let a=QT(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return YT(a,t);let c=lt$2(s,ve$3.MinusSign);return We$2(a,t,c,r,o)}}function QT(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new m$2(2301,false)}}function V$2(e,t,n=ce$1.Format,r=false){return function(o,i){return KT(o,i,e,t,n,r)}}function KT(e,t,n,r,o,i){switch(n){case 2:return wm(t,o,r)[e.getMonth()];case 1:return Im(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Sm(t),l=_m(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,y=s>=f.hours&&a>=f.minutes,D=s<h.hours||s===h.hours&&a<h.minutes;if(f.hours<h.hours){if(y&&D)return true}else if(y||D)return true}else if(p.hours===s&&p.minutes===a)return true;return false});if(d!==-1)return l[d]}return Em(t,o,r)[s<12?0:1];case 3:return Cm(t,r)[e.getFullYear()<=0?0:1];default:throw new m$2(2302,false)}}function $s$1(e){return function(t,n,r){let o=-1*r,i=lt$2(n,ve$3.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+We$2(s,2,i)+We$2(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+We$2(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+We$2(s,2,i)+":"+We$2(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+We$2(s,2,i)+":"+We$2(Math.abs(o%60),2,i);default:throw new m$2(2310,false)}}}var XT=0,Gs$1=4;function JT(e){let t=Ws$1(e,XT,1).getDay();return Ws$1(e,0,1+(t<=Gs$1?Gs$1:Gs$1+7)-t)}function Nm(e){let t=e.getDay(),n=t===0?-3:Gs$1-t;return Ws$1(e.getFullYear(),e.getMonth(),e.getDate()+n)}function bl(e,t=false){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7);}else {let i=Nm(n),s=JT(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return We$2(o,e,lt$2(r,ve$3.MinusSign))}}function zs$1(e,t=false){return function(n,r){let i=Nm(n).getFullYear();return We$2(i,e,lt$2(r,ve$3.MinusSign),t)}}var Sl=Object.create(null);function eb(e){if(Sl[e])return Sl[e];let t;switch(e){case "G":case "GG":case "GGG":t=V$2(3,B$2.Abbreviated);break;case "GGGG":t=V$2(3,B$2.Wide);break;case "GGGGG":t=V$2(3,B$2.Narrow);break;case "y":t=J$2(0,1,0,false,true);break;case "yy":t=J$2(0,2,0,true,true);break;case "yyy":t=J$2(0,3,0,false,true);break;case "yyyy":t=J$2(0,4,0,false,true);break;case "Y":t=zs$1(1);break;case "YY":t=zs$1(2,true);break;case "YYY":t=zs$1(3);break;case "YYYY":t=zs$1(4);break;case "M":case "L":t=J$2(1,1,1);break;case "MM":case "LL":t=J$2(1,2,1);break;case "MMM":t=V$2(2,B$2.Abbreviated);break;case "MMMM":t=V$2(2,B$2.Wide);break;case "MMMMM":t=V$2(2,B$2.Narrow);break;case "LLL":t=V$2(2,B$2.Abbreviated,ce$1.Standalone);break;case "LLLL":t=V$2(2,B$2.Wide,ce$1.Standalone);break;case "LLLLL":t=V$2(2,B$2.Narrow,ce$1.Standalone);break;case "w":t=bl(1);break;case "ww":t=bl(2);break;case "W":t=bl(1,true);break;case "d":t=J$2(2,1);break;case "dd":t=J$2(2,2);break;case "c":case "cc":t=J$2(7,1);break;case "ccc":t=V$2(1,B$2.Abbreviated,ce$1.Standalone);break;case "cccc":t=V$2(1,B$2.Wide,ce$1.Standalone);break;case "ccccc":t=V$2(1,B$2.Narrow,ce$1.Standalone);break;case "cccccc":t=V$2(1,B$2.Short,ce$1.Standalone);break;case "E":case "EE":case "EEE":t=V$2(1,B$2.Abbreviated);break;case "EEEE":t=V$2(1,B$2.Wide);break;case "EEEEE":t=V$2(1,B$2.Narrow);break;case "EEEEEE":t=V$2(1,B$2.Short);break;case "a":case "aa":case "aaa":t=V$2(0,B$2.Abbreviated);break;case "aaaa":t=V$2(0,B$2.Wide);break;case "aaaaa":t=V$2(0,B$2.Narrow);break;case "b":case "bb":case "bbb":t=V$2(0,B$2.Abbreviated,ce$1.Standalone,true);break;case "bbbb":t=V$2(0,B$2.Wide,ce$1.Standalone,true);break;case "bbbbb":t=V$2(0,B$2.Narrow,ce$1.Standalone,true);break;case "B":case "BB":case "BBB":t=V$2(0,B$2.Abbreviated,ce$1.Format,true);break;case "BBBB":t=V$2(0,B$2.Wide,ce$1.Format,true);break;case "BBBBB":t=V$2(0,B$2.Narrow,ce$1.Format,true);break;case "h":t=J$2(3,1,-12);break;case "hh":t=J$2(3,2,-12);break;case "H":t=J$2(3,1);break;case "HH":t=J$2(3,2);break;case "m":t=J$2(4,1);break;case "mm":t=J$2(4,2);break;case "s":t=J$2(5,1);break;case "ss":t=J$2(5,2);break;case "S":t=J$2(6,1);break;case "SS":t=J$2(6,2);break;case "SSS":t=J$2(6,3);break;case "Z":case "ZZ":case "ZZZ":t=$s$1(0);break;case "ZZZZZ":t=$s$1(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=$s$1(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=$s$1(2);break;default:return null}return Sl[e]=t,t}function xm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function tb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function nb(e,t,n){let o=e.getTimezoneOffset(),i=xm(t,o);return tb(e,-1*(i-o))}function rb(e){if(ym(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Ws$1(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(GT))return ob(r)}let t=new Date(e);if(!ym(t))throw new m$2(2311,false);return t}function ob(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function ym(e){return e instanceof Date&&!isNaN(e.valueOf())}var ib=/^(\d+)?\.((\d+)(-(\d+))?)?$/,vm=22,qs$2=".",No$1="0",sb=";",ab=",",_l="#";function cb(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=lt$2(n,ve$3.Infinity);else {let u=db(e);s&&(u=lb(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let $=i.match(ib);if($===null)throw new m$2(2306,false);let be=$[1],qe=$[3],At=$[5];be!=null&&(l=Ml(be)),qe!=null&&(d=Ml(qe)),At!=null?p=Ml(At):qe!=null&&d>p&&(p=d);let Fe=100;if(l>Fe||d>Fe||p>Fe)throw new m$2(2306,false)}fb(u,d,p);let f=u.digits,h=u.integerLen,y=u.exponent,D=[];for(c=f.every($=>!$);h<l;h++)f.unshift(0);for(;h<0;h++)f.unshift(0);h>0?D=f.splice(h,f.length):(D=f,f=[0]);let _=[];for(f.length>=t.lgSize&&_.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)_.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&_.unshift(f.join("")),a=_.join(lt$2(n,r)),D.length&&(a+=lt$2(n,o)+D.join("")),y&&(a+=lt$2(n,ve$3.Exponential)+"+"+y);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function Am(e,t,n){let r=Tm(t,Nl.Decimal),o=ub(r,lt$2(t,ve$3.MinusSign));return cb(e,o,t,ve$3.Group,ve$3.Decimal,n)}function ub(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(sb),o=r[0],i=r[1],s=o.indexOf(qs$2)!==-1?o.split(qs$2):[o.substring(0,o.lastIndexOf(No$1)+1),o.substring(o.lastIndexOf(No$1)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(_l));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===No$1?n.minFrac=n.maxFrac=l+1:d===_l?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(ab);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){let l=o.length-n.posPre.length-n.posSuf.length,d=i.indexOf(_l);n.negPre=i.substring(0,d).replace(/'/g,""),n.negSuf=i.slice(d+l).replace(/'/g,"");}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function lb(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function db(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(qs$2))>-1&&(t=t.replace(qs$2,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===No$1;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===No$1;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>vm&&(r=r.splice(0,vm-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function fb(e,t,n){if(t>n)throw new m$2(2307,false);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0;}else {o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0;}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++;}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=t+e.integerLen,l=r.reduceRight(function(d,p,f,h){return p=p+d,h[f]=p<10?p:p-10,c&&(h[f]===0&&f>=u?h.pop():c=false),p>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function Ml(e){let t=parseInt(e);if(isNaN(t))throw new m$2(2305,false);return t}var pb=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g(he$4);constructor(n){this._viewContainerRef=n;}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return !!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):false,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(ze$2(gr$1))};static \u0275dir=cl({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[wu]})}return e})();function xl(e,t){return new m$2(2100,false)}var hb=(()=>{class e{transform(n){return n==null?null:(gb(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=mr$1({name:"lowercase",type:e,pure:true})}return e})();function gb(e,t){if(typeof t!="string")throw xl()}var mb="mediumDate",Rm=new T$4(""),Om=new T$4(""),yb=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o;}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??mb,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Mm(n,s,i||this.locale,a)}catch(s){throw xl(e,s.message)}}static \u0275fac=function(r){return new(r||e)(ze$2(vr$1,16),ze$2(Rm,24),ze$2(Om,24))};static \u0275pipe=mr$1({name:"date",type:e,pure:true})}return e})();var vb=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=mr$1({name:"json",type:e,pure:false})}return e})();var Db=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!Eb(n))return null;o||=this._locale;try{let i=Ib(n);return Am(i,o,r)}catch(i){throw xl(e,i.message)}}static \u0275fac=function(r){return new(r||e)(ze$2(vr$1,16))};static \u0275pipe=mr$1({name:"number",type:e,pure:true})}return e})();function Eb(e){return !(e==null||e===""||e!==e)}function Ib(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new m$2(2309,false);return e}function xo$1(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Rl="browser";function l2(e){return e===Rl}var d2=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new Al(g(U$5),window)})}return e})(),Al=class{document;window;offset=()=>[0,0];constructor(t,n){this.document=t,this.window=n;}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t;}getScrollPosition(){return [this.window.scrollX,this.window.scrollY]}scrollToPosition(t,n){this.window.scrollTo(x$1(w$1({},n),{left:t[0],top:t[1]}));}scrollToAnchor(t,n){let r=bb(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch(n){console.warn(Xe(2400,false));}}scrollToElement(t,n){let r=t.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(x$1(w$1({},n),{left:o-s[0],top:i-s[1]}));}};function bb(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${CSS.escape(t)}"]`);if(s)return s}o=r.nextNode();}}return null}var Ao$1=class Ao{_doc;constructor(t){this._doc=t;}manager},Zs$1=(()=>{class e extends Ao$1{constructor(n){super(n);}supports(n){return true}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(b$2(U$5))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Ks$1=new T$4(""),Pl=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this;});let o=n.filter(s=>!(s instanceof Zs$1));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Zs$1);i&&this._plugins.push(i);}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}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 m$2(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(b$2(Ks$1),b$2(G$2))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Ol$1="ng-app-id";function km(e){for(let t of e)t.remove();}function Fm(e,t){let n=t.createElement("style");return n.textContent=e,n}function Sb(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Ol$1}="${t}"],link[${Ol$1}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(Ol$1),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]});return true}function Fl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Ll=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,Sb(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Fm);r?.forEach(o=>this.addUsage(o,this.external,Fl));}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external));}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))});}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(km(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])km(n);this.hosts.clear();}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Fm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Fl(r,this.doc)));}}removeHost(n){this.hosts.delete(n);for(let r of [...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o;}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(b$2(U$5),b$2(Kr),b$2(Jr,8),b$2(Xr))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),kl={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"},jl=/%COMP%/g;var Lm="%COMP%",_b=`_nghost-${Lm}`,Mb=`_ngcontent-${Lm}`,Nb=true,xb=new T$4("",{factory:()=>Nb});function Ab(e){return Mb.replace(jl,e)}function Rb(e){return _b.replace(jl,e)}function jm(e,t){return t.map(n=>n.replace(jl,e))}var Bl=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new Ro$1(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Qs$1?o.applyToHost(n):o instanceof Oo$1&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case $e$4.Emulated:i=new Qs$1(c,u,r,this.appId,l,s,a,d);break;case $e$4.ShadowDom:return new Ys$1(c,n,r,s,a,this.nonce,d,u);case $e$4.ExperimentalIsolatedShadowDom:return new Ys$1(c,n,r,s,a,this.nonce,d);default:i=new Oo$1(c,u,r,l,s,a,d);break}o.set(r.id,i);}return i}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(n){this.rendererByCompId.delete(n);}static \u0275fac=function(r){return new(r||e)(b$2(Pl),b$2(On$3),b$2(Kr),b$2(xb),b$2(U$5),b$2(G$2),b$2(Jr),b$2(ct$1,8))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Ro$1=class Ro{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o;}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(kl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Pm(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(Pm(t)?t.content:t).insertBefore(n,r);}removeChild(t,n){n.remove();}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new m$2(-5104,false);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;let i=kl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=kl[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&(st$1.DashCase|st$1.Important)?t.style.setProperty(n,r,o&st$1.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&st$1.DashCase?t.style.removeProperty(n):t.style[n]="";}setProperty(t,n,r){t!=null&&(t[n]=r);}setValue(t,n){t.nodeValue=n;}listen(t,n,r,o){if(typeof t=="string"&&(t=_t$4().getGlobalEventTarget(this.doc,t),!t))throw new m$2(-5102,false);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===false&&n.preventDefault();}}};function Pm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ys$1=class Ys extends Ro$1{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=jm(r.id,u);for(let d of u){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=d,this.shadowRoot.appendChild(p);}let l=r.getExternalStyles?.();if(l)for(let d of l){let p=Fl(d,o);s&&p.setAttribute("nonce",s),this.shadowRoot.appendChild(p);}}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&&this.sharedStylesHost.removeHost(this.shadowRoot);}},Oo$1=class Oo extends Ro$1{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?jm(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Qt$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},Qs$1=class Qs extends Oo$1{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=Ab(u),this.hostAttr=Rb(u);}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"");}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Xs$1=class e extends bo$1{supportsDOMEvents=true;static makeCurrent(){Cl(new e);}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o);}}dispatchEvent(t,n){t.dispatchEvent(n);}remove(t){t.remove();}createElement(t,n){return n=n||this.getDefaultDocument(),n.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 n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Ob();return n==null?null:kb(n)}resetBaseElement(){ko$1=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return xo$1(document.cookie,t)}},ko$1=null;function Ob(){return ko$1=ko$1||document.head.querySelector("base"),ko$1?ko$1.getAttribute("href"):null}function kb(e){return new URL(e,document.baseURI).pathname}var Bm=["alt","control","meta","shift"],Fb={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Pb={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Vm=(()=>{class e extends Ao$1{constructor(n){super(n);}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_t$4().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Bm.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".");}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=Fb[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?false:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Bm.forEach(s=>{if(s!==o){let a=Pb[s];a(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 n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(b$2(U$5))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function Lb(e,t,n){return B$3(this,null,function*(){let r=w$1({rootComponent:e},jb(t,n));return um(r)})}function jb(e,t){return {platformRef:t?.platformRef,appProviders:[...$b,...e?.providers??[]],platformProviders:Ub}}function Bb(){Xs$1.makeCurrent();}function Vb(){return new Se$2}function Hb(){return Su(document),document}var Ub=[{provide:Xr,useValue:Rl},{provide:zi$2,useValue:Bb,multi:true},{provide:U$5,useFactory:Hb}];var $b=[{provide:zr,useValue:"root"},{provide:Se$2,useFactory:Vb},{provide:Ks$1,useClass:Zs$1,multi:true},{provide:Ks$1,useClass:Vm,multi:true},Bl,{provide:On$3,useClass:Ll},{provide:Ll,useExisting:On$3},Pl,{provide:Mn$4,useExisting:Bl},[]];var xt$2=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
5
|
+
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i);}});}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(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();let 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 e?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){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case "a":case "s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case "d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else {let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s);}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n]);}setHeaderEntries(t,n){let 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)));}};var ea$1=class ea{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()}},ta$1=class ta{encodeKey(t){return Hm(t)}encodeValue(t){return Hm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function zb(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[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}var Gb=/%(\d[a-f0-9])/gi,Wb={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Hm(e){return encodeURIComponent(e).replace(Gb,(t,n)=>Wb[n]??t)}function Js$1(e){return `${e}`}var Nt$3=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ta$1,t.fromString){if(t.fromObject)throw new m$2(2805,false);this.map=zb(t.fromString,this.encoder);}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Js$1):[Js$1(r)];this.map.set(n,o);})):this.map=null;}has(t){return this.init(),this.map.has(t)}get(t){this.init();let 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){let n=[];return Object.keys(t).forEach(r=>{let 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=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case "a":case "s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Js$1(t.value)),this.map.set(t.param,n);break;case "d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Js$1(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param);}else {this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null);}};function qb(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function Um(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function $m(e){return typeof Blob<"u"&&e instanceof Blob}function zm(e){return typeof FormData<"u"&&e instanceof FormData}function Zb(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Vl="Content-Type",Gm="Accept",qm="text/plain",Zm="application/json",Yb=`${Zm}, ${qm}, */*`,Er$1=class e{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(qb(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new m$2(2822,"");this.timeout=i.timeout;}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache;}if(this.headers??=new xt$2,this.context??=new ea$1,!this.params)this.params=new Nt$3,this.urlWithParams=n;else {let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else {let a=n,c="",u=n.indexOf("#");u!==-1&&(c=n.substring(u),a=n.substring(0,u));let l=a.indexOf("?"),d=l===-1?"?":l<a.length-1?"&":"";this.urlWithParams=a+d+s+c;}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Um(this.body)||$m(this.body)||zm(this.body)||Zb(this.body)?this.body:this.body instanceof Nt$3?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||zm(this.body)?null:$m(this.body)?this.body.type||null:Um(this.body)?null:typeof this.body=="string"?qm:this.body instanceof Nt$3?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Zm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,p=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,h=t.transferCache??this.transferCache,y=t.timeout??this.timeout,D=t.body!==void 0?t.body:this.body,_=t.withCredentials??this.withCredentials,$=t.reportProgress??this.reportProgress,be=t.reportUploadProgress??this.reportUploadProgress,qe=t.reportDownloadProgress??this.reportDownloadProgress,At=t.headers||this.headers,Fe=t.params||this.params,Po=t.context??this.context;return t.setHeaders!==void 0&&(At=Object.keys(t.setHeaders).reduce((Pn,Jt)=>Pn.set(Jt,t.setHeaders[Jt]),At)),t.setParams&&(Fe=Object.keys(t.setParams).reduce((Pn,Jt)=>Pn.set(Jt,t.setParams[Jt]),Fe)),new e(n,r,D,{params:Fe,headers:At,context:Po,reportProgress:$,reportUploadProgress:be,reportDownloadProgress:qe,responseType:o,withCredentials:_,transferCache:h,keepalive:i,cache:a,priority:s,timeout:y,mode:c,redirect:u,credentials:l,referrer:d,integrity:p,referrerPolicy:f})}},Ir$1=(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})(Ir$1||{}),wr$1=class wr{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new xt$2,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300;}},na$1=class e extends wr$1{constructor(t={}){super(t);}type=Ir$1.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Fo$1=class e extends wr$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=Ir$1.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},Fn$3=class Fn extends wr$1{name="HttpErrorResponse";message;error;ok=false;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null;}},Qb=200;var Kb=/^\)\]\}',?\n/,Ym=new T$4("",{factory:()=>null}),ra$1=(()=>{class e{fetchImpl=g(Ul,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=g(G$2);destroyRef=g(we$2);maxResponseSize=g(Ym);handle(n){return new R$2(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then($l,s=>r.error(new Fn$3({error:s})));let i;return n.timeout&&(i=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"));},n.timeout))),()=>{i!==void 0&&clearTimeout(i),o.abort();}})}doRequest(n,r,o){return B$3(this,null,function*(){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,w$1({signal:r},i)));Xb(D),o.next({type:Ir$1.Sent}),s=yield D;}catch(D){o.error(new Fn$3({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let a=new xt$2(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,p=n.reportProgress||n.reportDownloadProgress;if(p&&o.next(new na$1({headers:a,status:l,statusText:c,url:u})),s.body){let D=s.headers.get("content-length"),_=D!==null?Number(D):NaN;this.maxResponseSize!==null&&Number.isFinite(_)&&_>this.maxResponseSize&&Wm(this.maxResponseSize);let $=[],be=s.body.getReader(),qe=0,At,Fe,Po=typeof Zone<"u"&&Zone.current,Pn=false;if(yield this.ngZone.runOutsideAngular(()=>B$3(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield be.cancel(),Pn=true;break}let{done:Cr,value:ia}=yield be.read();if(Cr)break;if($.push(ia),qe+=ia.length,this.maxResponseSize!==null&&qe>this.maxResponseSize&&(yield be.cancel(),Wm(this.maxResponseSize)),p){Fe=n.responseType==="text"?(Fe??"")+(At??=new TextDecoder).decode(ia,{stream:true}):void 0;let Wl=()=>o.next({type:Ir$1.DownloadProgress,total:Number.isFinite(_)?_:void 0,loaded:qe,partialText:Fe});Po?Po.run(Wl):Wl();}}})),Pn){o.complete();return}let Jt=this.concatChunks($,qe);try{let Cr=s.headers.get(Vl)??"";d=this.parseBody(n,Jt,Cr,l);}catch(Cr){o.error(new Fn$3({error:Cr,headers:new xt$2(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?Qb:0);let f=l>=200&&l<300,h=s.redirected,y=s.type;f?(o.next(new Fo$1({body:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:y})),o.complete()):o.error(new Fn$3({error:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:y}));})}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(Kb,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case "text":return new TextDecoder().decode(r);case "blob":return new Blob([r],{type:o});case "arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new m$2(2824,false);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(Gm)||(r[Gm]=Yb),!n.headers.has(Vl)){let i=n.detectContentTypeHeader();i!==null&&(r[Vl]=i);}return {body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})(),Ul=class{};function $l(){}function Xb(e){e.then($l,$l);}function Wm(e){throw new m$2(-2825,false)}function Jb(e,t){return t(e)}function eS(e,t,n){return (r,o)=>Yn$3(n,()=>t(r,i=>e(i,o)))}var Qm=new T$4("",{factory:()=>[]}),Km=new T$4(""),Xm=new T$4("",{factory:()=>true});var zl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$2(ra$1),o},providedIn:"root"})}return e})();var oa$1=(()=>{class e{backend;injector;chain=null;pendingTasks=g(to$1);contributeToStability=g(Xm);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Qm),...this.injector.get(Km,[])]));this.chain=o.reduceRight((i,s)=>eS(i,s,this.injector),Jb);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return Co$1(()=>r(n,i=>this.backend.handle(i))).pipe(ui$3(o))}else return Co$1(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(b$2(zl),b$2(pe$5))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Gl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$2(oa$1),o},providedIn:"root"})}return e})();function Hl(e,t){return w$1({body:t},e)}var Jm=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof Er$1)i=n;else {let c;o.headers instanceof xt$2?c=o.headers:c=new xt$2(o.headers);let u;o.params&&(o.params instanceof Nt$3?u=o.params:u=new Nt$3({fromObject:o.params})),i=new Er$1(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout});}let s=br$1(i).pipe(di$3(c=>this.handler.handle(c)));if(n instanceof Er$1||o.observe==="events")return s;let a=s.pipe(Ot$1(c=>c instanceof Fo$1));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(ne$3(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new m$2(2806,false);return c.body}));case "blob":return a.pipe(ne$3(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new m$2(2807,false);return c.body}));case "text":return a.pipe(ne$3(c=>{if(c.body!==null&&typeof c.body!="string")throw new m$2(2808,false);return c.body}));default:return a.pipe(ne$3(c=>c.body))}case "response":return a;default:throw new m$2(2809,false)}}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 Nt$3().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,Hl(o,r))}post(n,r,o={}){return this.request("POST",n,Hl(o,r))}put(n,r,o={}){return this.request("PUT",n,Hl(o,r))}static \u0275fac=function(r){return new(r||e)(b$2(Gl))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var tS=new T$4("",{factory:()=>true}),nS="XSRF-TOKEN",rS=new T$4("",{factory:()=>nS}),oS="X-XSRF-TOKEN",iS=new T$4("",{factory:()=>oS}),sS=(()=>{class e{cookieName=g(rS);doc=g(U$5);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=xo$1(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})(),ey=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$2(sS),o},providedIn:"root"})}return e})();function aS(e,t){if(!g(tS)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=g(Xt$1).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch(o){return t(e)}let n=g(ey).getToken(),r=g(iS);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function cS(...e){let t=[Jm,ra$1,oa$1,{provide:Gl,useExisting:oa$1},{provide:zl,useFactory:()=>g(ra$1)},{provide:Qm,useValue:aS,multi:true}];for(let n of e)t.push(...n.\u0275providers);return wt$3(t)}var jH=(()=>{class e{_doc;constructor(n){this._doc=n;}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||"";}static \u0275fac=function(r){return new(r||e)(b$2(U$5))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var uS=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$2(lS),o},providedIn:"root"})}return e})(),lS=(()=>{class e extends uS{_doc=g(U$5);sanitize(n,r){if(r==null)return null;switch(n){case Oe$1.NONE:return r;case Oe$1.HTML:return at$3(r,"HTML")?Te$1(r):Ts$1(this._doc,String(r)).toString();case Oe$1.STYLE:return at$3(r,"Style")?Te$1(r):r;case Oe$1.SCRIPT:if(at$3(r,"Script"))return Te$1(r);throw new m$2(5200,false);case Oe$1.URL:return at$3(r,"URL")?Te$1(r):ho$1(String(r));case Oe$1.RESOURCE_URL:if(at$3(r,"ResourceURL"))return Te$1(r);throw new m$2(-5201,false);default:throw new m$2(5202,false)}}bypassSecurityTrustHtml(n){return Nu(n)}bypassSecurityTrustStyle(n){return xu(n)}bypassSecurityTrustScript(n){return Au(n)}bypassSecurityTrustUrl(n){return Ru(n)}bypassSecurityTrustResourceUrl(n){return Ou(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();var y=class{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:x,apiKeys:n,basePath:r,credentials:p,encodeParam:o,encoder:t,password:e,username:s,withCredentials:c}={}){n&&(this.apiKeys=n),s!==void 0&&(this.username=s),e!==void 0&&(this.password=e),x!==void 0&&(this.accessToken=x),r!==void 0&&(this.basePath=r),c!==void 0&&(this.withCredentials=c),t&&(this.encoder=t),this.encodeParam=o??(a=>this.defaultEncodeParam(a)),this.credentials=p??{};}selectHeaderContentType(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}selectHeaderAccept(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}isJsonMime(x){let n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return x!==null&&(n.test(x)||x.toLowerCase()==="application/json-patch+json")}lookupCredential(x){let n=this.credentials[x];return typeof n=="function"?n():n}addCredentialToHeaders(x,n,r,p){let o=this.lookupCredential(x);return o?r.set(n,(p??"")+o):r}addCredentialToQuery(x,n,r){let p=this.lookupCredential(x);return p?r.set(n,p):r}defaultEncodeParam(x){let n=x.dataFormat==="date-time"&&x.value instanceof Date?x.value.toISOString():x.value;return encodeURIComponent(String(n))}};var P$1=new T$4("basePath");var B$1=class B{encodeKey(x){return encodeURIComponent(x)}encodeValue(x){return encodeURIComponent(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}};var j$3=class j{basePath="http://localhost:18124";defaultHeaders=new xt$2;configuration;encoder;constructor(x,n){if(this.configuration=n||new y,typeof this.configuration.basePath!="string"){let r=Array.isArray(x)?x[0]:void 0;r!=null&&(x=r),typeof x!="string"&&(x=this.basePath),this.configuration.basePath=x;}this.encoder=this.configuration.encoder||new B$1;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,r,p=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,p?r:void 0,p):this.addToHttpParamsRecursive(x,n,r)}addToHttpParamsRecursive(x,n,r,p=false){if(n==null)return x;if(typeof n=="object"){if(r!=null)return p?Object.keys(n).reduce((o,t)=>o.append(`${r}[${t}]`,n[t]),x):x.append(r,JSON.stringify(n));if(Array.isArray(n))n.forEach(o=>x=this.addToHttpParamsRecursive(x,o,r));else if(n instanceof Date)if(r!=null)x=x.append(r,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(o=>{let t=r?`${r}.${o}`:o;x=this.addToHttpParamsRecursive(x,n[o],t);});return x}else if(r!=null)return x.append(r,n);throw Error("key may not be null if value is not object or array")}};var U$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter agentConfig was null or undefined when calling createAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/agent-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}disableAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}enableAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}exportAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/agent-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getDefinitionAgentConfig(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling getDefinitionAgentConfig.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,r,"withUserOverlay"),s=this.addToHttpParams(s,p,"namespaceId");let c=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(c=c.set("Accept",a));let d=e?.context??new ea$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/definition`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$1(w$1({context:d,params:s,responseType:l},m?{withCredentials:m}:{}),{headers:c,observe:o,transferCache:i,reportProgress:t}))}listByParentAgentConfig(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAgentConfig.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"withDisabled");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/agent-configs/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,r="body",p=false,o){let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"withDisabled");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=o?.context??new ea$1,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/agent-configs/platform",{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:p}))}searchAgentConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter agentConfigSearchRequest was null or undefined when calling searchAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/agent-configs/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateAgentConfig(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAgentConfig.");if(r==null)throw new Error("Required parameter agentConfig was null or undefined when calling updateAgentConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var N$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getAgentConfigDefaults(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/agent-configs/defaults",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var k$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createAiModel(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter aiModel was null or undefined when calling createAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/ai-models",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteAiModel(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdAiModel(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsAiModel(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/ai-models/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByNamespaceIdAiModel(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listByNamespaceIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-namespaceId/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByParentAiModel(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listPlatformLevelAiModel(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/ai-models/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateAiModel(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiModel.");if(r==null)throw new Error("Required parameter aiModel was null or undefined when calling updateAiModel.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var F$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createAiProvider(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter aiProvider was null or undefined when calling createAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteAiProvider(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdAiProvider(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsAiProvider(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/ai-providers/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listAiProvider(n,r,p="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}updateAiProvider(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiProvider.");if(r==null)throw new Error("Required parameter aiProvider was null or undefined when calling updateAiProvider.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var D$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;addMessageCase(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling addMessageCase.");if(r==null)throw new Error("Required parameter addMessageRequest was null or undefined when calling addMessageCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messages`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}countUnreadCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling countUnreadCase.");let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=o?.context??new ea$1,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/cases/unread-count",{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:p}))}createCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter _case was null or undefined when calling createCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/cases",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/cases/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}interruptCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling interruptCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/interrupt`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}killCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling killCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/kill`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByParentCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByUserCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter userId was null or undefined when calling listByUserCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/${this.configuration.encodeParam({name:"userId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByUserExternalIdCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling listByUserExternalIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/external/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByUserInNamespaceCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter listByUserInNamespaceRequest was null or undefined when calling listByUserInNamespaceCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/cases/by-user/in-namespace",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listMineByParentCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listMineByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/mine`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}markCaseRead(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling markCaseRead.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/read`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}reopenCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling reopenCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reopen`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}setModelCase(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling setModelCase.");if(r==null)throw new Error("Required parameter caseModelRequest was null or undefined when calling setModelCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/model`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}setReasoningEffortCase(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling setReasoningEffortCase.");if(r==null)throw new Error("Required parameter caseReasoningEffortRequest was null or undefined when calling setReasoningEffortCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reasoning-effort`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}starCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling starCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("put",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}unstarCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling unstarCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateCase(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateCase.");if(r==null)throw new Error("Required parameter _case was null or undefined when calling updateCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var W$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;listEffectiveConfiguration(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/admin/configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var G$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createIntegrationConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter integrationConfig was null or undefined when calling createIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteIntegrationConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}exportIntegrationConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdIntegrationConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsIntegrationConfig(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/integration-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listIntegrationConfig(n,r,p="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateIntegrationConfig.");if(r==null)throw new Error("Required parameter integrationConfig was null or undefined when calling updateIntegrationConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getTypeIntegrationType(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter type was null or undefined when calling getTypeIntegrationType.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-types/${this.configuration.encodeParam({name:"type",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listTypesIntegrationType(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/integration-types",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var J$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createNamespace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespace was null or undefined when calling createNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteNamespace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deployAgentsNamespace(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling deployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/deploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}getByIdNamespace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsNamespace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listAllNamespace(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/namespaces",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsNamespace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}undeployAgentsNamespace(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling undeployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling undeployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/undeploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}updateNamespace(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateNamespace.");if(r==null)throw new Error("Required parameter namespace was null or undefined when calling updateNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var L$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}removeAssociationNamespaceGit(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling removeAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}setAssociationNamespaceGit(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling setAssociationNamespaceGit.");if(r==null)throw new Error("Required parameter namespaceGitRequest was null or undefined when calling setAssociationNamespaceGit.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByAgentUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByAgentUsageRecord.");if(p==null)throw new Error("Required parameter to was null or undefined when calling aggregateByAgentUsageRecord.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,p,"to");let c=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(c=c.set("Accept",a));let d=e?.context??new ea$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="blob");let f="/api/usage-records/aggregate/by-agent",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$1(w$1({context:d,params:s,responseType:l},m?{withCredentials:m}:{}),{headers:c,observe:o,transferCache:i,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling aggregateByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}aggregateByCaseTreeUsageRecord(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter rootCaseId was null or undefined when calling aggregateByCaseTreeUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case-tree/${this.configuration.encodeParam({name:"rootCaseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}aggregateByModelUsageRecord(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByModelUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByModelUsageRecord.");if(p==null)throw new Error("Required parameter to was null or undefined when calling aggregateByModelUsageRecord.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,p,"to");let c=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(c=c.set("Accept",a));let d=e?.context??new ea$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="blob");let f="/api/usage-records/aggregate/by-model",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$1(w$1({context:d,params:s,responseType:l},m?{withCredentials:m}:{}),{headers:c,observe:o,transferCache:i,reportProgress:t}))}aggregateByUserUsageRecord(n,r,p,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter userId was null or undefined when calling aggregateByUserUsageRecord.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByUserUsageRecord.");if(p==null)throw new Error("Required parameter from was null or undefined when calling aggregateByUserUsageRecord.");if(o==null)throw new Error("Required parameter to was null or undefined when calling aggregateByUserUsageRecord.");let c=new Nt$3({encoder:this.encoder});c=this.addToHttpParams(c,n,"userId"),c=this.addToHttpParams(c,r,"namespaceId"),c=this.addToHttpParams(c,p,"from"),c=this.addToHttpParams(c,o,"to");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new ea$1,l=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b="/api/usage-records/aggregate/by-user",{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$1(w$1({context:i,params:c,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}listByCaseIdUsageRecord(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var qe$2=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(qe$2||{});var Me$2=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(Me$2||{});var $e$3=(n=>(n.ENVIRONMENT="ENVIRONMENT",n.PROPERTY="PROPERTY",n))($e$3||{});var Be$2=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Be$2||{});var Ue$1=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))(Ue$1||{});var K$3=class C{http=g(Jm);config=g(y);exportAsYaml(x){let n=`${this.config.basePath}/api/agent-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Q=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(Q||{});var z$1=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(z$1||{});var Ne$2=Q,ke$3=z$1;var Fe$2={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},De$2={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var X$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;connectAuthSetting(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling connectAuthSetting.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/connect`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}createAuthSetting(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling createAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteAuthSetting(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdAuthSetting(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsAuthSetting(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/auth-settings/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getConnectionAuthSetting(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling getConnectionAuthSetting.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/connection`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}listAuthSetting(n,r,p="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}resetMyCredentialAuthSetting(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling resetMyCredentialAuthSetting.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/credential`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}updateAuthSetting(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAuthSetting.");if(r==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling updateAuthSetting.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsCaseEventRest(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/case-events/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByCaseCaseEventRest(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var ee$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getMembersCaseMembership(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersCaseMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateMembersCaseMembership(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersCaseMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersCaseMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var te$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;changesCaseWorkspace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling changesCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/changes`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}diffCaseWorkspace(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling diffCaseWorkspace.");if(r==null)throw new Error("Required parameter path was null or undefined when calling diffCaseWorkspace.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/diff`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}getCaseWorkspace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listCaseWorkspace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspaces`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}refreshCaseWorkspace(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling refreshCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/refresh`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}retryCaseWorkspace(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling retryCaseWorkspace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/retry`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;applyConfigChange(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling applyConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling applyConfigChange.");if(p==null)throw new Error("Required parameter configChangeApplyRequest was null or undefined when calling applyConfigChange.");let s=this.defaultHeaders,c=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=e?.context??new ea$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let f="json";c&&(c.startsWith("text")?f="text":this.configuration.isJsonMime(c)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/apply`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$1(w$1({context:a,body:p,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}rejectConfigChange(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling rejectConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling rejectConfigChange.");let s=this.defaultHeaders,c=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(s=s.set("Accept",c));let a=e?.context??new ea$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let f="json";c&&(c.startsWith("text")?f="text":this.configuration.isJsonMime(c)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reject`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$1(w$1({context:a,body:p,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}viewConfigChange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling viewConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling viewConfigChange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var oe$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,r,p,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling browseCaseFilesExchange.");let c=new Nt$3({encoder:this.encoder});c=this.addToHttpParams(c,r,"path"),c=this.addToHttpParams(c,p,"page"),c=this.addToHttpParams(c,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new ea$1,l=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$1(w$1({context:i,params:c,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}browseNamespaceFilesExchange(n,r,p,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling browseNamespaceFilesExchange.");let c=new Nt$3({encoder:this.encoder});c=this.addToHttpParams(c,r,"path"),c=this.addToHttpParams(c,p,"page"),c=this.addToHttpParams(c,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new ea$1,l=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$1(w$1({context:i,params:c,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}deleteCaseFileExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling deleteCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteCaseFileExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deleteNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteNamespaceFileExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling downloadCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadCaseFileExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling downloadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadNamespaceFileExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getCaseFileContentExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getNamespaceFileContentExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getNamespaceFileContentExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}uploadCaseFileExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling uploadCaseFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadCaseFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),l,f=false;f=i,f?l=new FormData:l=new Nt$3({encoder:this.encoder}),r!==void 0&&(l=l.append("file",r)||l);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:O,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${O}${E}`,x$1(w$1({context:c,body:l,responseType:m},S?{withCredentials:S}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}uploadNamespaceFileExchange(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling uploadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadNamespaceFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),l,f=false;f=i,f?l=new FormData:l=new Nt$3({encoder:this.encoder}),r!==void 0&&(l=l.append("file",r)||l);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:O,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${O}${E}`,x$1(w$1({context:c,body:l,responseType:m},S?{withCredentials:S}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createFeedback(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter feedbackInput was null or undefined when calling createFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/feedbacks",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByCaseEventFeedback(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseEventId was null or undefined when calling listByCaseEventFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-case-event/${this.configuration.encodeParam({name:"caseEventId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByCaseFeedback(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var ae$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getGitWorkspacesConfiguration(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/git-workspaces-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var se$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersNamespaceMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateMembersNamespaceMembership(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersNamespaceMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersNamespaceMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;grantAdmin(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}grantMember(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}revokeAdmin(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}revokeMember(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}updateRolesByExternalId(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter syncUserRolesRequest was null or undefined when calling updateRolesByExternalId.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces/update-roles-by-external-id",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter oAuthCallbackRequest was null or undefined when calling handleCallbackOAuthCallback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/oauth/callback",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var pe$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;debugAllPlugins(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins/debug",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}debugPlugin(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling debugPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/debug`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getAllPlugins(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}getPlugin(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling getPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}reloadAllAgentsPlugin(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins/reload-agents",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}reloadPlugin(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling reloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/reload`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}startPlugin(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling startPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/start`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}stopPlugin(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling stopPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/stop`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}unloadPlugin(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling unloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}uploadPlugin(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins/upload",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var le$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter prompt was null or undefined when calling createPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deletePrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deletePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}exportPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}resolveEffectivePrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter promptEffectiveRequest was null or undefined when calling resolveEffectivePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}searchPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter promptSearchRequest was null or undefined when calling searchPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}translateBatchPrompt(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter languageCode was null or undefined when calling translateBatchPrompt.");if(r==null)throw new Error("Required parameter promptBatchTranslateRequest was null or undefined when calling translateBatchPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/prompts/translations/${this.configuration.encodeParam({name:"languageCode",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}translatePrompt(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling translatePrompt.");if(r==null)throw new Error("Required parameter languageCode was null or undefined when calling translatePrompt.");if(p==null)throw new Error("Required parameter promptTranslateRequest was null or undefined when calling translatePrompt.");let s=this.defaultHeaders,c=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=e?.context??new ea$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let f="json";c&&(c.startsWith("text")?f="text":this.configuration.isJsonMime(c)?f="json":f="blob");let b=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/translations/${this.configuration.encodeParam({name:"languageCode",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$1(w$1({context:a,body:p,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updatePrompt.");if(r==null)throw new Error("Required parameter prompt was null or undefined when calling updatePrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var de$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;continueCostRunRunCost(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling continueCostRunRunCost.");if(r==null)throw new Error("Required parameter continueCostRequest was null or undefined when calling continueCostRunRunCost.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/continue`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}getRunCost(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}stopCostRunRunCost(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling stopCostRunRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/stop`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var be$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling createScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/scheduled-prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}disableScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}enableScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/scheduled-prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}resolveEffectiveScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter scheduledPromptEffectiveRequest was null or undefined when calling resolveEffectiveScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/scheduled-prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}searchScheduledPrompt(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter scheduledPromptSearchRequest was null or undefined when calling searchScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/scheduled-prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateScheduledPrompt(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateScheduledPrompt.");if(r==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling updateScheduledPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var fe$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter skill was null or undefined when calling createSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/skills",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/skills/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByParentSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listEffectiveSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listEffectiveSkill.");let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=o?.context??new ea$1,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/skills/effective",{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:p}))}listPlatformSkill(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/skills/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateSkill(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateSkill.");if(r==null)throw new Error("Required parameter skill was null or undefined when calling updateSkill.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;streamCaseInvalidationsNamespaceCaseInvalidationSse(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseInvalidationsNamespaceCaseInvalidationSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/case-invalidation`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}streamCaseListUpdatesNamespaceCaseListUpdateSse(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseListUpdatesNamespaceCaseListUpdateSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/case-list-updates`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}streamEventsCaseEventSse(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling streamEventsCaseEventSse.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"includePreviousEvents");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/events`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}streamMyEventsGlobalCaseEventSse(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/cases/events/mine",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;invokeToolInvoke(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter toolInvokeRequest was null or undefined when calling invokeToolInvoke.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/tools/invoke",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listToolInvoke(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listToolInvoke.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l="/api/tools",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var ge$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getUsageConfiguration(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/usage-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ce$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createUser(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter user was null or undefined when calling createUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteUser(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdUser(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsUser(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getGroupsByExternalIdsUser(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter groupsByExternalIdsRequest was null or undefined when calling getGroupsByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users/groups-by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getMeUser(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/users/me",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listAllUser(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/users",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsUser(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}revokeNamespaceAccessByExternalIdUser(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/users/by-external-id/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling revokeNamespaceAccessUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessUser.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ea$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}updateUser(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateUser.");if(r==null)throw new Error("Required parameter user was null or undefined when calling updateUser.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var He$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createUserGroup(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter userGroupCreateRequest was null or undefined when calling createUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/user-groups",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteUserGroup(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling deleteUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}findByNamespaceIdUserGroup(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling findByNamespaceIdUserGroup.");let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=o?.context??new ea$1,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/user-groups",{basePath:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:p}))}getByIdUserGroup(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getByIdUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getMembersUserGroup(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getMembersUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ea$1,c=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateUserGroup(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling updateUserGroup.");if(r==null)throw new Error("Required parameter userGroupUpdateRequest was null or undefined when calling updateUserGroup.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ea$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var xe$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;capabilityVoiceMessage(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ea$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/voice-messages/capability",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}postVoiceMessage(n,r,p,o,t,e,s="body",c=false,a){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling postVoiceMessage.");if(r==null)throw new Error("Required parameter audio was null or undefined when calling postVoiceMessage.");let d=new Nt$3({encoder:this.encoder});d=this.addToHttpParams(d,p,"answerToEventId"),d=this.addToHttpParams(d,o,"durationMs");let i=this.defaultHeaders,l=a?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);l!==void 0&&(i=i.set("Accept",l));let f=a?.context??new ea$1,b=a?.transferCache??true,m=["multipart/form-data"],E=this.canConsumeForm(m),O,S=false;S=E,S?O=new FormData:O=new Nt$3({encoder:this.encoder}),t!==void 0&&(O=O.append("answerToEventId",t)||O),r!==void 0&&(O=O.append("audio",r)||O),e!==void 0&&(O=O.append("durationMs",e)||O);let $="json";l&&(l.startsWith("text")?$="text":this.configuration.isJsonMime(l)?$="json":$="blob");let Oe=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/voice-messages`,{basePath:Se,withCredentials:we}=this.configuration;return this.httpClient.request("post",`${Se}${Oe}`,x$1(w$1({context:f,body:O,params:d,responseType:$},we?{withCredentials:we}:{}),{headers:i,observe:s,transferCache:b,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$2(Jm),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var We$1=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(We$1||{});var Ge$2=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(Ge$2||{});var _e$3=(t=>(t.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(_e$3||{});var Je$2=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))(Je$2||{}),Le$1=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(Le$1||{});var Ye$1=(p=>(p.FREE_TEXT="FREE_TEXT",p.SINGLE_CHOICE="SINGLE_CHOICE",p.OPEN_CHOICE="OPEN_CHOICE",p.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",p))(Ye$1||{});function Ol(C){return wt$3([typeof C=="string"?{provide:P$1,useValue:C}:{provide:y,useValue:new y(w$1({},C))}])}(class C{config=g(y);zone=g(G$2);connect(x){let n=`${this.config.basePath}/api/cases/${x}/events`;return new R$2(r=>{let p=this.zone.runOutsideAngular(()=>new EventSource(n)),o=t=>{try{let e=JSON.parse(t.data);this.zone.run(()=>r.next(e));}catch(e){this.zone.run(()=>r.error(new Error(`Failed to parse SSE event: ${e}`)));}};return p.addEventListener("case-event",o),p.onerror=()=>{},()=>p.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var Ee$2="namespace-case-list-updated";(class C{config=g(y);zone=g(G$2);connect(x){let n=`${this.config.basePath}/api/namespaces/${encodeURIComponent(x)}/case-list-updates`;return new R$2(r=>{let p=this.zone.runOutsideAngular(()=>new EventSource(n));return p.onopen=()=>this.zone.run(()=>r.next("connected")),p.addEventListener(Ee$2,()=>this.zone.run(()=>r.next("updated"))),p.onerror=()=>{},()=>p.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C{config=g(y);zone=g(G$2);connect(x){let n=`${this.config.basePath}/api/namespaces/${x}/case-invalidation`;return new R$2(r=>{let p=this.zone.runOutsideAngular(()=>new EventSource(n));return p.onopen=()=>this.zone.run(()=>r.next("connected")),p.addEventListener("namespace-case-invalidation",()=>this.zone.run(()=>r.next("invalidated"))),p.onerror=()=>{},()=>p.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var ve$2=class C{http=g(Jm);config=g(y);exportAsYaml(x){let n=`${this.config.basePath}/api/integration-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Pe$1=class C{http=g(Jm);config=g(y);exportAsYaml(x){let n=`${this.config.basePath}/api/prompts/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var je$2=class C{http=g(Jm);config=g(y);invoke(x){let n=`${this.config.basePath}/api/tools/invoke`;return this.http.post(n,x)}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};
|
|
6
|
+
var b$1=class i{http=g(Jm);base="/api/setup";getStatus(){return this.http.get(`${this.base}/status`)}saveIdentity(e){return this.http.post(`${this.base}/identity`,{email:e})}browse(e,t=false){let r=new Nt$3;return e&&(r=r.set("path",e)),t&&(r=r.set("hidden","true")),this.http.get(`${this.base}/browse`,{params:r})}mkdir(e,t){return this.http.post(`${this.base}/mkdir`,{path:e,name:t})}apply(e){return this.http.post(`${this.base}/apply`,e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=x({token:i,factory:i.\u0275fac,providedIn:"root"})};var A$1=["email","providers","folder","progress"],ee$3=i=>i==="fresh"||i==="nofresh"?i:null,T$3=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,j$2=1500,U$3=8,O$1=2e4,m$1=(i,e,t)=>({key:i,label:e,state:t.state,percent:t.percent,message:t.message??(i==="java"?t.version:void 0)}),R$1=i=>{let e=[i?.agentos?`AgentOS ${i.agentos}`:null,i?.factory?`Factory ${i.factory}`:null].filter(t=>!!t);return e.length>0?`Downloading ${e.join(" and ")}`:"Downloading AgentOS"},f$1=(i,e)=>{if(i instanceof Fn$3){let t=i.error;if(t&&typeof t=="object"&&t.error)return t.error;if(i.status===0)return "Cannot reach the Coday server."}return e},V$1=class i{api=g(b$1);users=g(Ce$4);namespaces=g(J$1);aiProviders=g(F$3);destroyRef=g(we$2);status=$i$1(null);statusError=$i$1(null);step=$i$1("email");email=$i$1("");providers=$i$1([{id:"anthropic",enabled:false,apiKey:""},{id:"openai",enabled:false,apiKey:""},{id:"requesty",enabled:false,apiKey:""}]);folder=$i$1("");mode=$i$1("wizard");preview=$i$1(null);factoryGraceElapsed=$i$1(false);factoryGraceTimer=null;busy=$i$1(false);error=$i$1(null);profileEmail=$i$1("");needsEmail=$i$1(false);userKeys=$i$1([]);userKeysChecked=$i$1(false);userKeysCheck=null;me=null;emailValid=rT(()=>T$3.test(this.email().trim()));enabledProviders=rT(()=>this.providers().filter(e=>e.enabled));providersValid=rT(()=>{let e=this.enabledProviders();return e.length>0&&e.every(t=>t.apiKey.trim().length>=U$3)});needsUserKeys=rT(()=>this.userKeys().length>0);needsProfile=rT(()=>this.needsEmail()||this.needsUserKeys());userKeysValid=rT(()=>{let e=this.userKeys().filter(t=>t.apiKey.trim().length>0);return e.length>0&&e.every(t=>t.apiKey.trim().length>=U$3)});profileEmailValid=rT(()=>T$3.test(this.profileEmail().trim()));profileValid=rT(()=>(!this.needsEmail()||this.profileEmailValid())&&(!this.needsUserKeys()||this.userKeysValid()));folderValid=rT(()=>this.folder().startsWith("/")||/^[A-Za-z]:[\\/]/.test(this.folder()));stepIndex=rT(()=>A$1.indexOf(this.step()));checklist=rT(()=>{let e=this.status()?.steps;return e?[m$1("download",R$1(e.download.versions),e.download),m$1("java","Checking Java 25",e.java),m$1("agentos","Starting AgentOS",e.agentos),m$1("providers","Configuring your AI providers",e.providers),m$1("models","Registering the models",e.models),m$1("namespace","Creating your personal workspace",e.namespace),m$1("agent","Deploying the Coday agent",e.agent)]:[]});loadingChecklist=rT(()=>{let e=this.status()?.steps;return e?[m$1("download",R$1(e.download.versions),e.download),m$1("java","Checking Java 25",e.java),m$1("agentos","Starting AgentOS",e.agentos),...e.factory?[m$1("factory","Waiting for the Factory",e.factory)]:[]]:[]});loadingReady=rT(()=>{let e=this.status()?.steps;return !e||e.agentos.state!=="done"||this.status()?.mode==="managed"&&(!this.userKeysChecked()||this.needsProfile())?false:e.factory?e.factory.state==="done"||e.factory.state==="error"||this.factoryGraceElapsed():true});javaBlocked=rT(()=>this.status()?.steps.java.state==="blocked");ready=rT(()=>{let e=this.status();return !!e&&e.apply.status==="done"&&!!e.namespaceId});failed=rT(()=>this.status()?.apply.status==="error");emailLocked=rT(()=>!this.preview()&&(this.status()?.apply.status??"idle")!=="idle");namespaceId=rT(()=>this.status()?.namespaceId??null);poller=null;constructor(){this.destroyRef.onDestroy(()=>this.stopPolling());}setStatus(e){this.status.set(e),this.statusError.set(null),this.mode()==="loading"&&e.steps.agentos.state==="done"&&!this.factoryGraceTimer&&(this.factoryGraceTimer=setTimeout(()=>this.factoryGraceElapsed.set(true),O$1)),this.maybeCheckUserKeys();}refreshStatus(){return B$3(this,null,function*(){try{let e=yield gy(this.api.getStatus());return this.setStatus(e),e}catch(e){return this.statusError.set(f$1(e,"Cannot read the setup status.")),null}})}startPolling(){this.poller||(this.poller=an$2(0,j$2).pipe(Da(()=>this.api.getStatus().pipe(ha(()=>br$1(null))))).subscribe(e=>{e?this.setStatus(e):this.statusError.set("Lost contact with the Coday server, retrying...");}));}stopPolling(){this.poller?.unsubscribe(),this.poller=null,this.factoryGraceTimer&&clearTimeout(this.factoryGraceTimer),this.factoryGraceTimer=null;}init(e=null){return B$3(this,null,function*(){this.preview.set(e);let t=yield this.refreshStatus();if(!t)return;if(t.defaults?.sharedExchangePath&&!this.folder()&&this.folder.set(t.defaults.sharedExchangePath),t.identity&&!this.email()&&this.email.set(t.identity.email),this.startPolling(),!(e?e==="fresh":t.mode==="unmanaged"&&t.setupEnabled&&!t.setupDone)){this.mode.set("loading"),this.step.set("progress"),this.maybeCheckUserKeys();return}!e&&["running","error","done"].includes(t.apply.status)&&this.step.set("progress");})}back(){let e=this.stepIndex(),t=this.step()==="providers"&&this.emailLocked();e>0&&this.step()!=="progress"&&!t&&this.step.set(A$1[e-1]),this.error.set(null);}editAfterFailure(e){!this.failed()||this.step()!=="progress"||(this.error.set(e==="providers"&&!this.providersValid()?"Enter your API keys again: they are not kept when the page is reloaded.":null),this.step.set(e));}submitEmail(){return B$3(this,null,function*(){if(!(!this.emailValid()||this.busy())){if(this.error.set(null),this.preview()){this.step.set("providers");return}this.busy.set(true);try{yield gy(this.api.saveIdentity(this.email().trim())),yield this.refreshStatus(),this.step.set("providers");}catch(e){this.error.set(f$1(e,"Could not save your email."));}finally{this.busy.set(false);}}})}submitProviders(){this.providersValid()&&(this.error.set(null),this.step.set("folder"));}toggleProvider(e){this.providers.update(t=>{let r=t.find(a=>a.id===e);if(!r)return t;let s=t.map(a=>a.id===e?x$1(w$1({},a),{enabled:!a.enabled}):a);if(!r.enabled){let a=s.find(u=>u.id===e);return [...s.filter(u=>u.id!==e),a]}return s});}setApiKey(e,t){this.providers.update(r=>r.map(s=>s.id===e?x$1(w$1({},s),{apiKey:t}):s));}moveProvider(e,t){this.providers.update(r=>{let s=r.filter(p=>p.enabled),a=s.findIndex(p=>p.id===e),u=a+t;if(a<0||u<0||u>=s.length)return r;let o=[...s],[P]=o.splice(a,1);return o.splice(u,0,P),[...o,...r.filter(p=>!p.enabled)]});}moveProviderTo(e,t){e!==t&&this.providers.update(r=>{let s=r.filter(p=>p.enabled),a=s.findIndex(p=>p.id===e),u=s.findIndex(p=>p.id===t);if(a<0||u<0)return r;let o=[...s],[P]=o.splice(a,1);return o.splice(u,0,P),[...o,...r.filter(p=>!p.enabled)]});}rankOf(e){let t=this.enabledProviders().findIndex(r=>r.id===e);return t<0?null:t+1}browse(e,t=false){return gy(this.api.browse(e,t))}mkdir(e,t){return gy(this.api.mkdir(e,t))}selectFolder(e){this.folder.set(e);}submitFolderAndApply(){return B$3(this,null,function*(){if(!(!this.providersValid()||!this.folderValid()||this.busy())){if(this.error.set(null),this.preview()){this.step.set("progress");return}this.busy.set(true);try{yield gy(this.api.apply({providers:this.applyProviders(),sharedExchangePath:this.folder()})),this.step.set("progress"),this.startPolling();}catch(e){this.error.set(f$1(e,"Could not start the setup."));}finally{this.busy.set(false);}}})}retry(){return B$3(this,null,function*(){if(!this.providersValid()){this.step.set("providers"),this.error.set("Enter your API keys again: they are not kept when the page is reloaded.");return}yield this.submitFolderAndApply();})}maybeCheckUserKeys(){let e=this.status();this.mode()!=="loading"||this.preview()||e?.mode!=="managed"||e.steps.agentos.state==="done"&&this.checkUserKeys();}checkUserKeys(){return this.userKeysCheck??=this.loadProfileRequirements(),this.userKeysCheck}loadProfileRequirements(){return B$3(this,null,function*(){try{let[e,t,r]=yield Promise.all([gy(this.aiProviders.listAiProvider("none")),gy(this.aiProviders.listAiProvider("none","me")),gy(this.users.getMeUser())]);if(e.length===0)return;this.me=r,this.needsEmail.set(!r.email?.trim());let s=new Map(t.map(o=>[o.name.toLowerCase(),o])),a=new Set(e.map(o=>o.name.toLowerCase()));t.some(o=>!!o.apiKey&&a.has(o.name.toLowerCase()))||this.userKeys.set(e.map(o=>({name:o.name,apiType:o.apiType,apiKey:"",existingId:s.get(o.name.toLowerCase())?.id})));}catch(e){console.warn("Could not check the profile requirements of the platform",e);}finally{this.userKeysChecked.set(true);}})}setProfileEmail(e){this.profileEmail.set(e);}setUserKey(e,t){this.userKeys.update(r=>r.map(s=>s.name===e?x$1(w$1({},s),{apiKey:t}):s));}submitProfile(){return B$3(this,null,function*(){if(!(!this.profileValid()||this.busy())){this.error.set(null),this.busy.set(true);try{if(this.needsEmail()&&!(yield this.saveProfileEmail()))return;this.needsUserKeys()&&(yield this.saveUserKeys());}finally{this.busy.set(false);}}})}saveProfileEmail(){return B$3(this,null,function*(){try{let e=yield this.currentUser();return yield gy(this.users.updateUser(e.id,x$1(w$1({},e),{email:this.profileEmail().trim().toLowerCase()}))),this.needsEmail.set(!1),!0}catch(e){return console.warn("Could not save the email of the user",e),this.error.set(f$1(e,"Could not save your email.")),false}})}saveUserKeys(){return B$3(this,null,function*(){try{let e=yield this.currentUser(),t=[];for(let r of this.userKeys()){let s=r.apiKey.trim();if(!s)continue;let a={name:r.name,apiType:r.apiType,apiKey:s,userId:e.id};try{yield gy(r.existingId?this.aiProviders.updateAiProvider(r.existingId,a):this.aiProviders.createAiProvider(a));}catch(u){console.warn(`Could not save the key of ${r.name}`,u),t.push(r);}}this.userKeys.set(t),t.length>0&&this.error.set(`Could not save the key of ${t.map(r=>r.name).join(", ")}. Check it and try again.`);}catch(e){this.error.set(f$1(e,"Could not save your keys."));}})}currentUser(){return B$3(this,null,function*(){if(this.me??=yield gy(this.users.getMeUser()),!this.me.id)throw new Error("The current user has no id");return this.me})}applyProviders(){return this.enabledProviders().map((e,t)=>({id:e.id,apiKey:e.apiKey.trim(),rank:t+1}))}loadingTarget(){return B$3(this,null,function*(){let e=this.namespaceId()??(yield this.personalNamespaceId());return {path:"/home",queryParams:e?{ns:e}:{}}})}personalNamespaceId(){return B$3(this,null,function*(){try{let{externalId:e}=yield gy(this.users.getMeUser());if(!e)return null;let t=`user:${e}`;return (yield gy(this.namespaces.listByExternalIdsNamespace([t]))).find(s=>s.externalId===t)?.id??null}catch(e){return console.warn("Could not look up the personal namespace",e),null}})}landingCommands(){let e=this.namespaceId();return e?{path:"/home",queryParams:{ns:e}}:null}static \u0275fac=function(t){return new(t||i)};static \u0275prov=x({token:i,factory:i.\u0275fac,providedIn:"root"})};var de$3;try{de$3=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(i){de$3=false;}var v=(()=>{class i{_platformId=g(Xr);isBrowser=this._platformId?l2(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||de$3)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function Ke$2(i,e=0){return Ze$1(i)?Number(i):arguments.length===2?e:0}function Ze$1(i){return !isNaN(parseFloat(i))&&!isNaN(Number(i))}function N(i){return i instanceof Rn$3?i.nativeElement:i}var qn$2=new T$4("cdk-dir-doc",{providedIn:"root",factory:()=>g(U$5)}),Qn$2=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Ge$1(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Qn$2.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var mt$3=(()=>{class i{get value(){return this.valueSignal()}valueSignal=$i$1("ltr");change=new yt$3;constructor(){let t=g(qn$2,{optional:true});if(t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(Ge$1(n||o||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var W$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Fs$1({type:i});static \u0275inj=Vr({})}return i})();var F$2=(function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i})(F$2||{}),It$1,Y$1;function Tt$2(){if(Y$1==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Y$1=false,Y$1;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Y$1=true;else {let i=Element.prototype.scrollTo;i?Y$1=!/\{\s*\[native code\]\s*\}/.test(i.toString()):Y$1=false;}}return Y$1}function it$2(){if(typeof document!="object"||!document)return F$2.NORMAL;if(It$1==null){let i=document.createElement("div"),e=i.style;i.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",i.appendChild(t),document.body.appendChild(i),It$1=F$2.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,It$1=i.scrollLeft===0?F$2.NEGATED:F$2.INVERTED),i.remove();}return It$1}var ti$2=20,Pt$2=(()=>{class i{_ngZone=g(G$2);_platform=g(v);_renderer=g(Mn$4).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new le$4;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)));}deregister(t){let n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=ti$2){return this._platform.isBrowser?new R$2(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(Ry(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):br$1()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete();}ancestorScrolled(t,n){let o=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(Ot$1(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((o,r)=>{this._targetContainsElement(r,t)&&n.push(r);}),n}_targetContainsElement(t,n){let o=N(n),r=t.getElementRef().nativeElement;do if(o==r)return true;while(o=o.parentElement);return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),Mo$1=(()=>{class i{elementRef=g(Rn$3);scrollDispatcher=g(Pt$2);ngZone=g(G$2);dir=g(mt$3,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new le$4;_renderer=g(Xu);_cleanupScroll;_elementScrolled=new le$4;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this);}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete();}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),o&&it$2()!=F$2.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),it$2()==F$2.INVERTED?t.left=t.right:it$2()==F$2.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t);}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;Tt$2()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left));}measureScrollOffset(t){let n="left",o="right",r=this.elementRef.nativeElement;if(t=="top")return r.scrollTop;if(t=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return t=="start"?t=a?o:n:t=="end"&&(t=a?n:o),a&&it$2()==F$2.INVERTED?t==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&it$2()==F$2.NEGATED?t==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:t==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||i)};static \u0275dir=cl({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return i})(),ei$2=20,ht$3=(()=>{class i{_platform=g(v);_listeners;_viewportSize=null;_change=new le$4;_document=g(U$5);constructor(){let t=g(G$2),n=g(Mn$4).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return {top:t.top,left:t.left,bottom:t.top+o,right:t.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,n=this._getWindow(),o=t.documentElement,r=o.getBoundingClientRect(),a=-r.top||t.body?.scrollTop||n.scrollY||o.scrollTop||0,l=-r.left||t.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return {top:a,left:l}}change(t=ei$2){return t>0?this._change.pipe(Ry(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0};}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var $e$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Fs$1({type:i});static \u0275inj=Vr({})}return i})(),ue$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Fs$1({type:i});static \u0275inj=Vr({imports:[W$2,$e$2,W$2,$e$2]})}return i})();var Je$1=new Map,pt$3=class i{_appId=g(Kr);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(e,t=false){this._appId!=="ng"&&(e+=this._appId);let n=Je$1.get(e);return n===void 0?n=0:n++,Je$1.set(e,n),`${e}${t?i._infix+"-":""}${n}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})};var ft$3=class ft{_attachedHost=null;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach());}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e;}},me$2=class me extends ft$3{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,n,o,r,a){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.projectableNodes=o,this.bindings=r||null,this.directives=a||null;}},Ft$1=class Ft extends ft$3{templateRef;viewContainerRef;context;injector;constructor(e,t,n,o){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n,this.injector=o;}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},he$3=class he extends ft$3{element;constructor(e){super(),this.element=e instanceof Rn$3?e.nativeElement:e;}},Nt$2=class Nt{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof me$2)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ft$1)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof he$3)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=true;}setDisposeFn(e){this._disposeFn=e;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}},Lt$1=class Lt extends Nt$2{outletElement;_appRef;_defaultInjector;constructor(e,t,n){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=n;}attachComponentPortal(e){let t;if(e.viewContainerRef){let n=e.injector||e.viewContainerRef.injector,o=n.get(xn$3,null,{optional:true})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let n=this._appRef,o=e.injector||this._defaultInjector||he$4.NULL,r=o.get(pe$5,n.injector);t=BB(e.component,{elementInjector:o,environmentInjector:r,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),n.attachView(t.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(n);o!==-1&&t.remove(o);}),this._attachedPortal=e,n}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var jo$1=(()=>{class i extends Nt$2{_moduleRef=g(xn$3,{optional:true});_document=g(U$5);_viewContainerRef=g(gr$1);_isInitialized=false;_attachedRef=null;get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null);}attached=new yt$3;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let n=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=n.createComponent(t.component,{index:n.length,injector:t.injector||n.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=t=>{let n=t.element;n.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o);});};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=(()=>{let t;return function(o){return (t||(t=kp(i)))(o||i)}})();static \u0275dir=cl({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[og]})}return i})(),tn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Fs$1({type:i});static \u0275inj=Vr({})}return i})();function en$1(i,...e){return e.length?e.some(t=>i[t]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var pe$3;function nn$1(){if(pe$3==null){let i=typeof document<"u"?document.head:null;pe$3=!!(i&&(i.createShadowRoot||i.attachShadow));}return pe$3}function fe$3(i){if(nn$1()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ni$2(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let e=i.shadowRoot.activeElement;if(e===i)break;i=e;}return i}function D(i){if(i.composedPath)try{return i.composedPath()[0]}catch(e){}return i.target}function be$2(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Bt=new WeakMap,L$1=(()=>{class i{_appRef;_injector=g(he$4);_environmentInjector=g(pe$5);load(t){let n=this._appRef=this._appRef||this._injector.get(yr$1),o=Bt.get(n);o||(o={loaders:new Set,refs:[]},Bt.set(n,o),n.onDestroy(()=>{Bt.get(n)?.refs.forEach(r=>r.destroy()),Bt.delete(n);})),o.loaders.has(t)||(o.loaders.add(t),o.refs.push(BB(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function b(i){return i==null?"":typeof i=="string"?i:`${i}px`}function ot$1(i){return Array.isArray(i)?i:[i]}var on$1=Tt$2();function un$1(i){return new zt(i.get(ht$3),i.get(U$5))}var zt=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=false;_document;constructor(e,t){this._viewportRuler=e,this._document=t;}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=b(-this._previousScrollPosition.left),e.style.top=b(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=true;}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,n=e.style,o=t.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=false,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),on$1&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),on$1&&(n.scrollBehavior=r,o.scrollBehavior=a);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,n=this._viewportRuler.getViewportSize();return t.scrollHeight>n.height||t.scrollWidth>n.width}};function mn$1(i,e){return new Vt(i.get(Pt$2),i.get(G$2),i.get(ht$3),e)}var Vt=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,n,o){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=o;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Ot$1(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition();})):this._scrollSubscription=e.subscribe(this._detach);}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach());}};var bt$2=class bt{enable(){}disable(){}attach(){}};function _e$2(i,e){return e.some(t=>{let n=i.bottom<t.top,o=i.top>t.bottom,r=i.right<t.left,a=i.left>t.right;return n||o||r||a})}function rn$1(i,e){return e.some(t=>{let n=i.top<t.top,o=i.bottom>t.bottom,r=i.left<t.left,a=i.right>t.right;return n||o||r||a})}function hn$1(i,e){return new jt$1(i.get(Pt$2),i.get(ht$3),i.get(G$2),e)}var jt$1=class jt{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,n,o){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=o;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();_e$2(t,[{width:n,height:o,bottom:o,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},pn$1=(()=>{class i{_injector=g(he$4);noop=()=>new bt$2;close=t=>mn$1(this._injector,t);block=()=>un$1(this._injector);reposition=t=>hn$1(this._injector,t);static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),Ht=class{positionStrategy;scrollStrategy=new bt$2;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(e){if(e){let t=Object.keys(e);for(let n of t)e[n]!==void 0&&(this[n]=e[n]);}}};var Ut$2=class Ut{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var fn$1=(()=>{class i{_attachedOverlays=[];_document=g(U$5);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,n,o){return o.observers.length<1?false:t.eventPredicate?t.eventPredicate(n):true}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),bn$1=(()=>{class i extends fn$1{_ngZone=g(G$2);_renderer=g(Mn$4).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=true);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=false);}_keydownListener=t=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,t,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(t));break}}};static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),_n$2=(()=>{class i extends fn$1{_platform=g(v);_ngZone=g(G$2);_renderer=g(Mn$4).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let n=this._document.body,o={capture:true},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=t=>{this._pointerDownEventTarget=D(t);};_clickListener=t=>{let n=D(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let l=r[a],d=l._outsidePointerEvents;if(!(!l.hasAttached()||!this.canReceiveEvent(l,t,d))){if(an$1(l.overlayElement,n)||an$1(l.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>d.next(t)):d.next(t);}}};static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function an$1(i,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,n=e;for(;n;){if(n===i)return true;n=t&&n instanceof ShadowRoot?n.host:n.parentNode;}return false}var gn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=vw({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
|
|
7
7
|
pointer-events: none;
|
|
8
8
|
top: 0;
|
|
9
9
|
left: 0;
|
|
@@ -142,7 +142,7 @@ var b$1=class i{http=g(Xm);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
142
142
|
position: fixed;
|
|
143
143
|
z-index: auto;
|
|
144
144
|
}
|
|
145
|
-
`],encapsulation:2})}return i})(),vn$1=(()=>{class i{_platform=g(v);_containerElement;_document=g(U$5);_styleLoader=g(L$1);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||be$2()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove();}let n=this._document.createElement("div");n.classList.add(t),be$2()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n;}_loadStyles(){this._styleLoader.load(gn$1);}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),ge$3=class ge{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,n,o){this._renderer=t,this._ngZone=n,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",o);}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing");});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();}};function ve$1(i){return i&&i.nodeType===1}var Wt=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new le$4;_attachments=new le$4;_detachments=new le$4;_positionStrategy;_scrollStrategy;_locationChanges=ee$5.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new le$4;_outsidePointerEvents=new le$4;_afterNextRenderRef;constructor(e,t,n,o,r,a,l,d,u,c=false,m,C){this._portalOutlet=e,this._host=t,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=l,this._location=d,this._outsideClickDispatcher=u,this._animationsDisabled=c,this._injector=m,this._renderer=C,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy;}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(e){if(this._disposed)return null;this._attachHost();let t=this._portalOutlet.attach(e);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=gE(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(true),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,true),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(false),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){if(this._disposed)return;let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=true;}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()));}updateSize(e){this._config=w$1(w$1({},this._config),e),this._updateElementSize();}setDirection(e){this._config=x$1(w$1({},this._config),{direction:e}),this._updateElementDirection();}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,true);}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,false);}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=b(this._config.width),e.height=b(this._config.height),e.minWidth=b(this._config.minWidth),e.minHeight=b(this._config.minHeight),e.maxWidth=b(this._config.maxWidth),e.maxHeight=b(this._config.maxHeight);}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none";}_attachHost(){if(!this._host.parentElement){let e=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;ve$1(e)?e.after(this._host):e?.type==="parent"?e.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch(e){}}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new ge$3(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t);}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,true),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e));}):this._backdropRef.element.classList.add(e);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(e,t,n){let o=ot$1(t||[]).filter(r=>!!r);o.length&&(n?e.classList.add(...o):e.classList.remove(...o));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=gE(()=>{e=!0,this._detachContent();},{injector:this._injector});}catch(t){if(e)throw t;this._detachContent();}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent();}),this._detachContentMutationObserver.observe(this._pane,{childList:true}));}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,false),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent());}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect();}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.();}},sn$1="cdk-overlay-connected-position-bounding-box",ii$2=/([A-Za-z%]+)$/;function yn$1(i,e){return new Yt$1(e,i.get(ht$3),i.get(U$5),i.get(v),i.get(vn$1))}var Yt$1=class Yt{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=false;_lastBoundingBoxSize={width:0,height:0};_isPushed=false;_canPush=true;_growAfterOpen=false;_hasFlexibleDimensions=true;_positionLocked=false;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=false;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new le$4;_resizeSubscription=ee$5.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,n,o,r){this._viewportRuler=t,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(e);}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(sn$1),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=false,this._isInitialRender=true,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=true,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let e=this._originRect,t=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let l of this._preferredPositions){let d=this._getOriginPoint(e,o,l),u=this._getOverlayPoint(d,t,l),c=this._getOverlayFit(u,t,n,l);if(c.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(l,d);return}if(this._canFitWithFlexibleDimensions(c,u,n)){r.push({position:l,origin:d,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(d,l)});continue}(!a||a.overlayFit.visibleArea<c.visibleArea)&&(a={overlayFit:c,overlayPoint:u,originPoint:d,position:l,overlayRect:t});}if(r.length){let l=null,d=-1;for(let u of r){let c=u.boundingBoxRect.width*u.boundingBoxRect.height*(u.position.weight||1);c>d&&(d=c,l=u);}this._isPushed=false,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&X(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(sn$1),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=true);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;e?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(e,this._getOriginPoint(this._originRect,this._containerRect,e))):this.apply();}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=true){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=true){return this._growAfterOpen=e,this}withPush(e=true){return this._canPush=e,this}withLockedPosition(e=true){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}withPopoverLocation(e){return this._popoverLocation=e,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof An$3?this._origin.nativeElement:ve$1(this._origin)?this._origin:null}_getOriginPoint(e,t,n){let o;if(n.originX=="center")o=e.left+e.width/2;else {let a=this._isRtl()?e.right:e.left,l=this._isRtl()?e.left:e.right;o=n.originX=="start"?a:l;}t.left<0&&(o-=t.left);let r;return n.originY=="center"?r=e.top+e.height/2:r=n.originY=="top"?e.top:e.bottom,t.top<0&&(r-=t.top),{x:o,y:r}}_getOverlayPoint(e,t,n){let o;n.overlayX=="center"?o=-t.width/2:n.overlayX==="start"?o=this._isRtl()?-t.width:0:o=this._isRtl()?0:-t.width;let r;return n.overlayY=="center"?r=-t.height/2:r=n.overlayY=="top"?0:-t.height,{x:e.x+o,y:e.y+r}}_getOverlayFit(e,t,n,o){let r=cn$1(t),{x:a,y:l}=e,d=this._getOffset(o,"x"),u=this._getOffset(o,"y");d&&(a+=d),u&&(l+=u);let c=0-a,m=a+r.width-n.width,C=0-l,S=l+r.height-n.height,w=this._subtractOverflows(r.width,c,m),y=this._subtractOverflows(r.height,C,S),V=w*y;return {visibleArea:V,isCompletelyWithinViewport:r.width*r.height===V,fitsInViewportVertically:y===r.height,fitsInViewportHorizontally:w==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let o=n.bottom-t.y,r=n.right-t.x,a=ln(this._overlayRef.getConfig().minHeight),l=ln(this._overlayRef.getConfig().minWidth),d=e.fitsInViewportVertically||a!=null&&a<=o,u=e.fitsInViewportHorizontally||l!=null&&l<=r;return d&&u}return false}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return {x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let o=cn$1(t),r=this._viewportRect,a=Math.max(e.x+o.width-r.width,0),l=Math.max(e.y+o.height-r.height,0),d=Math.max(r.top-n.top-e.y,0),u=Math.max(r.left-n.left-e.x,0),c=0,m=0;return o.width<=r.width?c=u||-a:c=e.x<this._getViewportMarginStart()?r.left-n.left-e.x:0,o.height<=r.height?m=d||-l:m=e.y<this._getViewportMarginTop()?r.top-n.top-e.y:0,this._previousPushAmount={x:c,y:m},{x:e.x+c,y:e.y+m}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!oi$2(this._lastScrollVisibility,n)){let o=new Ut$2(e,n);this._positionChanges.next(o);}this._lastScrollVisibility=n;}this._lastPosition=e,this._isInitialRender=false;}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,o=e.overlayY;e.overlayX==="center"?n="center":this._isRtl()?n=e.overlayX==="start"?"right":"left":n=e.overlayX==="start"?"left":"right";for(let r=0;r<t.length;r++)t[r].style.transformOrigin=`${n} ${o}`;}_calculateBoundingBoxRect(e,t){let n=this._viewportRect,o=this._isRtl(),r,a,l;if(t.overlayY==="top")a=e.y,r=n.height-a+this._getViewportMarginBottom();else if(t.overlayY==="bottom")l=n.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),r=n.height-l+this._getViewportMarginTop();else {let S=Math.min(n.bottom-e.y+n.top,e.y),w=this._lastBoundingBoxSize.height;r=S*2,a=e.y-S,r>w&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-w/2);}let d=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,u=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,c,m,C;if(u)C=n.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),c=e.x-this._getViewportMarginStart();else if(d)m=e.x,c=n.right-e.x-this._getViewportMarginEnd();else {let S=Math.min(n.right-e.x+n.left,e.x),w=this._lastBoundingBoxSize.width;c=S*2,m=e.x-S,c>w&&!this._isInitialRender&&!this._growAfterOpen&&(m=e.x-w/2);}return {top:a,left:m,bottom:l,right:C,width:c,height:r}}_setBoundingBoxStyles(e,t){let n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else {let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=b(n.width),o.height=b(n.height),o.top=b(n.top)||"auto",o.bottom=b(n.bottom)||"auto",o.left=b(n.left)||"auto",o.right=b(n.right)||"auto",t.overlayX==="center"?o.alignItems="center":o.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?o.justifyContent="center":o.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=b(r)),a&&(o.maxWidth=b(a));}this._lastBoundingBoxSize=n,X(this._boundingBox.style,o);}_resetBoundingBoxStyles(){X(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){X(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let c=this._viewportRuler.getViewportScrollPosition();X(n,this._getExactOverlayY(t,e,c)),X(n,this._getExactOverlayX(t,e,c));}else n.position="static";let l="",d=this._getOffset(t,"x"),u=this._getOffset(t,"y");d&&(l+=`translateX(${d}px) `),u&&(l+=`translateY(${u}px)`),n.transform=l.trim(),a.maxHeight&&(o?n.maxHeight=b(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=b(a.maxWidth):r&&(n.maxWidth="")),X(this._pane.style,n);}_getExactOverlayY(e,t,n){let o={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),e.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`;}else o.top=b(r.y);return o}_getExactOverlayX(e,t,n){let o={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=e.overlayX==="end"?"left":"right":a=e.overlayX==="end"?"right":"left",a==="right"){let l=this._document.documentElement.clientWidth;o.right=`${l-(r.x+this._overlayRect.width)}px`;}else o.left=b(r.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:rn$1(e,n),isOriginOutsideView:_e$2(e,n),isOverlayClipped:rn$1(t,n),isOverlayOutsideView:_e$2(t,n)}}_subtractOverflows(e,...t){return t.reduce((n,o)=>n-Math.max(o,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return {top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+e-this._getViewportMarginEnd(),bottom:n.top+t-this._getViewportMarginBottom(),width:e-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return !this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&ot$1(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t));});}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e);}),this._appliedPanelClasses=[]);}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let e=this._origin;if(e instanceof An$3)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,n=e.height||0;return {top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}_getContainerRect(){let e=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();e&&(t.style.display="block");let n=t.getBoundingClientRect();return e&&(t.style.display=""),n}};function X(i,e){for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function ln(i){if(typeof i!="number"&&i!=null){let[e,t]=i.split(ii$2);return !t||t==="px"?parseFloat(e):null}return i||null}function cn$1(i){return {top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function oi$2(i,e){return i===e?true:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var dn$2="cdk-global-overlay-wrapper";function wn$2(i){return new Xt}var Xt=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=false;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(dn$2),this._isDisposed=false;}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:l}=n,d=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!l||l==="100%"||l==="100vh"),c=this._xPosition,m=this._xOffset,C=this._overlayRef.getConfig().direction==="rtl",S="",w="",y="";d?y="flex-start":c==="center"?(y="center",C?w=m:S=m):C?c==="left"||c==="end"?(y="flex-end",S=m):(c==="right"||c==="start")&&(y="flex-start",w=m):c==="left"||c==="start"?(y="flex-start",S=m):(c==="right"||c==="end")&&(y="flex-end",w=m),e.position=this._cssPosition,e.marginLeft=d?"0":S,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=d?"0":w,t.justifyContent=y,t.alignItems=u?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(dn$2),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},xn$2=(()=>{class i{_injector=g(he$4);global(){return wn$2()}flexibleConnectedTo(t){return yn$1(this._injector,t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),En$2=new T$4("OVERLAY_DEFAULT_CONFIG");function Cn$2(i,e){i.get(L$1).load(gn$1);let t=i.get(vn$1),n=i.get(U$5),o=i.get(pt$3),r=i.get(mr$1),a=i.get(mt$3),l=i.get(Yu,null,{optional:true})||i.get(_n$3).createRenderer(null,null),d=new Ht(e),u=i.get(En$2,null,{optional:true})?.usePopover??true;d.direction=d.direction||a.value,!n.body||!("showPopover"in n.body)?d.usePopover=false:d.usePopover=e?.usePopover??u;let c=n.createElement("div"),m=n.createElement("div");c.id=o.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),m.appendChild(c),d.usePopover&&(m.setAttribute("popover","manual"),m.classList.add("cdk-overlay-popover"));let C=d.usePopover?d.positionStrategy?.getPopoverInsertionPoint?.():null;return ve$1(C)?C.after(m):C?.type==="parent"?C.element.appendChild(m):t.getContainerElement().appendChild(m),new Wt(new Lt$1(c,r,i),m,c,d,i.get(G$2),i.get(bn$1),n,i.get(gm),i.get(_n$2),e?.disableAnimations??i.get(Rv,null,{optional:true})==="NoopAnimations",i.get(pe$5),l)}var Sn$2=(()=>{class i{scrollStrategies=g(pn$1);_positionBuilder=g(xn$2);_injector=g(he$4);create(t){return Cn$2(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var ri$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Os$2({type:i});static \u0275inj=Br({providers:[Sn$2],imports:[W$2,tn$1,ue$2,ue$2]})}return i})();var kn$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=yw({type:i,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden {
|
|
145
|
+
`],encapsulation:2})}return i})(),vn$1=(()=>{class i{_platform=g(v);_containerElement;_document=g(U$5);_styleLoader=g(L$1);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||be$2()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove();}let n=this._document.createElement("div");n.classList.add(t),be$2()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n;}_loadStyles(){this._styleLoader.load(gn$1);}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),ge$3=class ge{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,n,o){this._renderer=t,this._ngZone=n,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",o);}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing");});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();}};function ve$1(i){return i&&i.nodeType===1}var Wt=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new le$4;_attachments=new le$4;_detachments=new le$4;_positionStrategy;_scrollStrategy;_locationChanges=ee$5.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new le$4;_outsidePointerEvents=new le$4;_afterNextRenderRef;constructor(e,t,n,o,r,a,l,d,u,c=false,m,C){this._portalOutlet=e,this._host=t,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=l,this._location=d,this._outsideClickDispatcher=u,this._animationsDisabled=c,this._injector=m,this._renderer=C,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy;}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(e){if(this._disposed)return null;this._attachHost();let t=this._portalOutlet.attach(e);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=gE(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(true),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,true),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(false),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){if(this._disposed)return;let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=true;}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()));}updateSize(e){this._config=w$1(w$1({},this._config),e),this._updateElementSize();}setDirection(e){this._config=x$1(w$1({},this._config),{direction:e}),this._updateElementDirection();}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,true);}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,false);}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=b(this._config.width),e.height=b(this._config.height),e.minWidth=b(this._config.minWidth),e.minHeight=b(this._config.minHeight),e.maxWidth=b(this._config.maxWidth),e.maxHeight=b(this._config.maxHeight);}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none";}_attachHost(){if(!this._host.parentElement){let e=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;ve$1(e)?e.after(this._host):e?.type==="parent"?e.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch(e){}}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new ge$3(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t);}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,true),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e));}):this._backdropRef.element.classList.add(e);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(e,t,n){let o=ot$1(t||[]).filter(r=>!!r);o.length&&(n?e.classList.add(...o):e.classList.remove(...o));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=gE(()=>{e=!0,this._detachContent();},{injector:this._injector});}catch(t){if(e)throw t;this._detachContent();}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent();}),this._detachContentMutationObserver.observe(this._pane,{childList:true}));}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,false),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent());}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect();}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.();}},sn$1="cdk-overlay-connected-position-bounding-box",ii$2=/([A-Za-z%]+)$/;function yn$1(i,e){return new Yt$1(e,i.get(ht$3),i.get(U$5),i.get(v),i.get(vn$1))}var Yt$1=class Yt{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=false;_lastBoundingBoxSize={width:0,height:0};_isPushed=false;_canPush=true;_growAfterOpen=false;_hasFlexibleDimensions=true;_positionLocked=false;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=false;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new le$4;_resizeSubscription=ee$5.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,n,o,r){this._viewportRuler=t,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(e);}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(sn$1),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=false,this._isInitialRender=true,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=true,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let e=this._originRect,t=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let l of this._preferredPositions){let d=this._getOriginPoint(e,o,l),u=this._getOverlayPoint(d,t,l),c=this._getOverlayFit(u,t,n,l);if(c.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(l,d);return}if(this._canFitWithFlexibleDimensions(c,u,n)){r.push({position:l,origin:d,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(d,l)});continue}(!a||a.overlayFit.visibleArea<c.visibleArea)&&(a={overlayFit:c,overlayPoint:u,originPoint:d,position:l,overlayRect:t});}if(r.length){let l=null,d=-1;for(let u of r){let c=u.boundingBoxRect.width*u.boundingBoxRect.height*(u.position.weight||1);c>d&&(d=c,l=u);}this._isPushed=false,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&X(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(sn$1),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=true);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;e?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(e,this._getOriginPoint(this._originRect,this._containerRect,e))):this.apply();}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=true){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=true){return this._growAfterOpen=e,this}withPush(e=true){return this._canPush=e,this}withLockedPosition(e=true){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}withPopoverLocation(e){return this._popoverLocation=e,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof Rn$3?this._origin.nativeElement:ve$1(this._origin)?this._origin:null}_getOriginPoint(e,t,n){let o;if(n.originX=="center")o=e.left+e.width/2;else {let a=this._isRtl()?e.right:e.left,l=this._isRtl()?e.left:e.right;o=n.originX=="start"?a:l;}t.left<0&&(o-=t.left);let r;return n.originY=="center"?r=e.top+e.height/2:r=n.originY=="top"?e.top:e.bottom,t.top<0&&(r-=t.top),{x:o,y:r}}_getOverlayPoint(e,t,n){let o;n.overlayX=="center"?o=-t.width/2:n.overlayX==="start"?o=this._isRtl()?-t.width:0:o=this._isRtl()?0:-t.width;let r;return n.overlayY=="center"?r=-t.height/2:r=n.overlayY=="top"?0:-t.height,{x:e.x+o,y:e.y+r}}_getOverlayFit(e,t,n,o){let r=cn$1(t),{x:a,y:l}=e,d=this._getOffset(o,"x"),u=this._getOffset(o,"y");d&&(a+=d),u&&(l+=u);let c=0-a,m=a+r.width-n.width,C=0-l,S=l+r.height-n.height,w=this._subtractOverflows(r.width,c,m),y=this._subtractOverflows(r.height,C,S),V=w*y;return {visibleArea:V,isCompletelyWithinViewport:r.width*r.height===V,fitsInViewportVertically:y===r.height,fitsInViewportHorizontally:w==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let o=n.bottom-t.y,r=n.right-t.x,a=ln(this._overlayRef.getConfig().minHeight),l=ln(this._overlayRef.getConfig().minWidth),d=e.fitsInViewportVertically||a!=null&&a<=o,u=e.fitsInViewportHorizontally||l!=null&&l<=r;return d&&u}return false}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return {x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let o=cn$1(t),r=this._viewportRect,a=Math.max(e.x+o.width-r.width,0),l=Math.max(e.y+o.height-r.height,0),d=Math.max(r.top-n.top-e.y,0),u=Math.max(r.left-n.left-e.x,0),c=0,m=0;return o.width<=r.width?c=u||-a:c=e.x<this._getViewportMarginStart()?r.left-n.left-e.x:0,o.height<=r.height?m=d||-l:m=e.y<this._getViewportMarginTop()?r.top-n.top-e.y:0,this._previousPushAmount={x:c,y:m},{x:e.x+c,y:e.y+m}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!oi$2(this._lastScrollVisibility,n)){let o=new Ut$2(e,n);this._positionChanges.next(o);}this._lastScrollVisibility=n;}this._lastPosition=e,this._isInitialRender=false;}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,o=e.overlayY;e.overlayX==="center"?n="center":this._isRtl()?n=e.overlayX==="start"?"right":"left":n=e.overlayX==="start"?"left":"right";for(let r=0;r<t.length;r++)t[r].style.transformOrigin=`${n} ${o}`;}_calculateBoundingBoxRect(e,t){let n=this._viewportRect,o=this._isRtl(),r,a,l;if(t.overlayY==="top")a=e.y,r=n.height-a+this._getViewportMarginBottom();else if(t.overlayY==="bottom")l=n.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),r=n.height-l+this._getViewportMarginTop();else {let S=Math.min(n.bottom-e.y+n.top,e.y),w=this._lastBoundingBoxSize.height;r=S*2,a=e.y-S,r>w&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-w/2);}let d=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,u=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,c,m,C;if(u)C=n.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),c=e.x-this._getViewportMarginStart();else if(d)m=e.x,c=n.right-e.x-this._getViewportMarginEnd();else {let S=Math.min(n.right-e.x+n.left,e.x),w=this._lastBoundingBoxSize.width;c=S*2,m=e.x-S,c>w&&!this._isInitialRender&&!this._growAfterOpen&&(m=e.x-w/2);}return {top:a,left:m,bottom:l,right:C,width:c,height:r}}_setBoundingBoxStyles(e,t){let n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else {let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=b(n.width),o.height=b(n.height),o.top=b(n.top)||"auto",o.bottom=b(n.bottom)||"auto",o.left=b(n.left)||"auto",o.right=b(n.right)||"auto",t.overlayX==="center"?o.alignItems="center":o.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?o.justifyContent="center":o.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=b(r)),a&&(o.maxWidth=b(a));}this._lastBoundingBoxSize=n,X(this._boundingBox.style,o);}_resetBoundingBoxStyles(){X(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){X(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let c=this._viewportRuler.getViewportScrollPosition();X(n,this._getExactOverlayY(t,e,c)),X(n,this._getExactOverlayX(t,e,c));}else n.position="static";let l="",d=this._getOffset(t,"x"),u=this._getOffset(t,"y");d&&(l+=`translateX(${d}px) `),u&&(l+=`translateY(${u}px)`),n.transform=l.trim(),a.maxHeight&&(o?n.maxHeight=b(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=b(a.maxWidth):r&&(n.maxWidth="")),X(this._pane.style,n);}_getExactOverlayY(e,t,n){let o={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),e.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`;}else o.top=b(r.y);return o}_getExactOverlayX(e,t,n){let o={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=e.overlayX==="end"?"left":"right":a=e.overlayX==="end"?"right":"left",a==="right"){let l=this._document.documentElement.clientWidth;o.right=`${l-(r.x+this._overlayRect.width)}px`;}else o.left=b(r.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:rn$1(e,n),isOriginOutsideView:_e$2(e,n),isOverlayClipped:rn$1(t,n),isOverlayOutsideView:_e$2(t,n)}}_subtractOverflows(e,...t){return t.reduce((n,o)=>n-Math.max(o,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return {top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+e-this._getViewportMarginEnd(),bottom:n.top+t-this._getViewportMarginBottom(),width:e-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return !this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&ot$1(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t));});}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e);}),this._appliedPanelClasses=[]);}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let e=this._origin;if(e instanceof Rn$3)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,n=e.height||0;return {top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}_getContainerRect(){let e=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();e&&(t.style.display="block");let n=t.getBoundingClientRect();return e&&(t.style.display=""),n}};function X(i,e){for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function ln(i){if(typeof i!="number"&&i!=null){let[e,t]=i.split(ii$2);return !t||t==="px"?parseFloat(e):null}return i||null}function cn$1(i){return {top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function oi$2(i,e){return i===e?true:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var dn$2="cdk-global-overlay-wrapper";function wn$2(i){return new Xt}var Xt=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=false;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(dn$2),this._isDisposed=false;}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:l}=n,d=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!l||l==="100%"||l==="100vh"),c=this._xPosition,m=this._xOffset,C=this._overlayRef.getConfig().direction==="rtl",S="",w="",y="";d?y="flex-start":c==="center"?(y="center",C?w=m:S=m):C?c==="left"||c==="end"?(y="flex-end",S=m):(c==="right"||c==="start")&&(y="flex-start",w=m):c==="left"||c==="start"?(y="flex-start",S=m):(c==="right"||c==="end")&&(y="flex-end",w=m),e.position=this._cssPosition,e.marginLeft=d?"0":S,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=d?"0":w,t.justifyContent=y,t.alignItems=u?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(dn$2),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},xn$2=(()=>{class i{_injector=g(he$4);global(){return wn$2()}flexibleConnectedTo(t){return yn$1(this._injector,t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),En$2=new T$4("OVERLAY_DEFAULT_CONFIG");function Cn$2(i,e){i.get(L$1).load(gn$1);let t=i.get(vn$1),n=i.get(U$5),o=i.get(pt$3),r=i.get(yr$1),a=i.get(mt$3),l=i.get(Xu,null,{optional:true})||i.get(Mn$4).createRenderer(null,null),d=new Ht(e),u=i.get(En$2,null,{optional:true})?.usePopover??true;d.direction=d.direction||a.value,!n.body||!("showPopover"in n.body)?d.usePopover=false:d.usePopover=e?.usePopover??u;let c=n.createElement("div"),m=n.createElement("div");c.id=o.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),m.appendChild(c),d.usePopover&&(m.setAttribute("popover","manual"),m.classList.add("cdk-overlay-popover"));let C=d.usePopover?d.positionStrategy?.getPopoverInsertionPoint?.():null;return ve$1(C)?C.after(m):C?.type==="parent"?C.element.appendChild(m):t.getContainerElement().appendChild(m),new Wt(new Lt$1(c,r,i),m,c,d,i.get(G$2),i.get(bn$1),n,i.get(mm),i.get(_n$2),e?.disableAnimations??i.get(Rv,null,{optional:true})==="NoopAnimations",i.get(pe$5),l)}var Sn$2=(()=>{class i{scrollStrategies=g(pn$1);_positionBuilder=g(xn$2);_injector=g(he$4);create(t){return Cn$2(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var ri$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Fs$1({type:i});static \u0275inj=Vr({providers:[Sn$2],imports:[W$2,tn$1,ue$2,ue$2]})}return i})();var kn$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=vw({type:i,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden {
|
|
146
146
|
border: 0;
|
|
147
147
|
clip: rect(0 0 0 0);
|
|
148
148
|
height: 1px;
|
|
@@ -161,7 +161,7 @@ var b$1=class i{http=g(Xm);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
161
161
|
left: auto;
|
|
162
162
|
right: 0;
|
|
163
163
|
}
|
|
164
|
-
`],encapsulation:2})}return i})(),Kt$1;function ai$2(){if(Kt$1===void 0&&(Kt$1=null,typeof window<"u")){let i=window;if(i.trustedTypes!==void 0)try{Kt$1=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e});}catch(e){console.error(e);}}return Kt$1}function si$2(i){return ai$2()?.createHTML(i)||i}function Rn$2(i,e,t){let n=t.sanitize(Oe$1.HTML,e);i.innerHTML=si$2(n||"");}var Dn$2=new Set,K$2,Zt$1=(()=>{class i{_platform=g(v);_nonce=g(Xr,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ci$2;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&li$2(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function li$2(i,e){if(!Dn$2.has(i))try{K$2||(K$2=document.createElement("style"),e&&K$2.setAttribute("nonce",e),K$2.setAttribute("type","text/css"),document.head.appendChild(K$2)),K$2.sheet&&(K$2.sheet.insertRule(`@media ${i.replace(/[{}]/g,"")} {body{ }}`,0),Dn$2.add(i));}catch(t){console.error(t);}}function ci$2(i){return {matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var di$2=(()=>{class i{_mediaMatcher=g(Zt$1);_zone=g(G$2);_queries=new Map;_destroySubject=new le$4;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return On$2(ot$1(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=On$2(ot$1(t)).map(a=>this._registerQuery(a).observable),r=wy(o);return r=kt$1(r.pipe(an$2(1)),r.pipe(hd(1),pd(0))),r.pipe(ne$3(a=>{let l={matches:false,breakpoints:{}};return a.forEach(({matches:d,query:u})=>{l.matches=l.matches||d,l.breakpoints[u]=d;}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),r={observable:new R$2(a=>{let l=d=>this._zone.run(()=>a.next(d));return n.addListener(l),()=>{n.removeListener(l);}}).pipe(md(n),ne$3(({matches:a})=>({query:t,matches:a})),Cd(this._destroySubject)),mql:n};return this._queries.set(t,r),r}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function On$2(i){return i.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}function _t$3(i){return i.buttons===0||i.detail===0}function gt$2(i){let e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return !!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var vt$2;function An$2(){if(vt$2==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>vt$2=!0}));}finally{vt$2=vt$2||false;}return vt$2}function rt$1(i){return An$2()?i:!!i.capture}var Mn$3=new T$4("cdk-input-modality-detector-options"),In$2={ignoreKeys:[18,17,224,91,16]},Tn$2=650,ye$3={passive:true,capture:true},Pn$2=(()=>{class i{_platform=g(v);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Cr$1(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(n=>n===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=D(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<Tn$2||(this._modality.next(_t$3(t)?"keyboard":"mouse"),this._mostRecentTarget=D(t));};_onTouchstart=t=>{if(gt$2(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=D(t);};constructor(){let t=g(G$2),n=g(U$5),o=g(Mn$3,{optional:true});if(this._options=w$1(w$1({},In$2),o),this.modalityDetected=this._modality.pipe(hd(1)),this.modalityChanged=this.modalityDetected.pipe(Id()),this._platform.isBrowser){let r=g(_n$3).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,ye$3),r.listen(n,"mousedown",this._onMousedown,ye$3),r.listen(n,"touchstart",this._onTouchstart,ye$3)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),yt$2=(function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i})(yt$2||{}),Fn$2=new T$4("cdk-focus-monitor-default-options"),Gt=rt$1({passive:true,capture:true}),we$1=(()=>{class i{_ngZone=g(G$2);_platform=g(v);_inputModalityDetector=g(Pn$2);_origin=null;_lastFocusOrigin=null;_windowFocused=false;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=false;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=true,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=false);};_document=g(U$5);_stopInputModalityDetector=new le$4;constructor(){let t=g(Fn$2,{optional:true});this._detectionMode=t?.detectionMode||yt$2.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let n=D(t);for(let o=n;o;o=o.parentElement)t.type==="focus"?this._onFocus(t,o):this._onBlur(t,o);};monitor(t,n=false){let o=N(t);if(!this._platform.isBrowser||o.nodeType!==1)return Tr$1();let r=fe$3(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=true),a.subject;let l={checkChildren:n,subject:new le$4,rootNode:r};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let n=N(t),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o));}focusVia(t,n,o){let r=N(t),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([l,d])=>this._originChanged(l,n,d)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o));}ngOnDestroy(){this._elementInfo.forEach((t,n)=>this.stopMonitoring(n));}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===yt$2.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,n){t.classList.toggle("cdk-focused",!!n),t.classList.toggle("cdk-touch-focused",n==="touch"),t.classList.toggle("cdk-keyboard-focused",n==="keyboard"),t.classList.toggle("cdk-mouse-focused",n==="mouse"),t.classList.toggle("cdk-program-focused",n==="program");}_setOrigin(t,n=false){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&n,this._detectionMode===yt$2.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?Tn$2:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o);}});}_onFocus(t,n){let o=this._elementInfo.get(n),r=D(t);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o);}_onBlur(t,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null));}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n));}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let n=t.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Gt),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Gt);}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Cd(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,true);}));}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Gt),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Gt),this._rootNodeFocusListenerCount.delete(n));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(t,n,o){this._setClasses(t,n),this._emitOrigin(o,n),this._lastFocusOrigin=n;}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((o,r)=>{(r===t||o.checkChildren&&r.contains(t))&&n.push([r,o]);}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return false;let r=t.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(n))return true}return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var Ln$2=(()=>{class i{_platform=g(v);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return mi$2(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return false;let n=ui$2(yi$2(t));if(n&&(Nn$2(n)===-1||!this.isVisible(n)))return false;let o=t.nodeName.toLowerCase(),r=Nn$2(t);return t.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!gi$2(t)?false:o==="audio"?t.hasAttribute("controls")?r!==-1:false:o==="video"?r===-1?false:r!==null?true:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return vi$2(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function ui$2(i){try{return i.frameElement}catch(e){return null}}function mi$2(i){return !!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function hi$2(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function pi$2(i){return bi$2(i)&&i.type=="hidden"}function fi$2(i){return _i$2(i)&&i.hasAttribute("href")}function bi$2(i){return i.nodeName.toLowerCase()=="input"}function _i$2(i){return i.nodeName.toLowerCase()=="a"}function Bn$2(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return false;let e=i.getAttribute("tabindex");return !!(e&&!isNaN(parseInt(e,10)))}function Nn$2(i){if(!Bn$2(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function gi$2(i){let e=i.nodeName.toLowerCase(),t=e==="input"&&i.type;return t==="text"||t==="password"||e==="select"||e==="textarea"}function vi$2(i){return pi$2(i)?false:hi$2(i)||fi$2(i)||i.hasAttribute("contenteditable")||Bn$2(i)}function yi$2(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var $t$2=class $t{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_enabled=true;constructor(e,t,n,o,r=false,a){this._element=e,this._checker=t,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors();}destroy(){let e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=false;}attachAnchors(){return this._hasAttached?true:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener));}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=true),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)));})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)));})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)));})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(e),!!n}return t.focus(e),true}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){let t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=0;n<t.length;n++){let o=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(o)return o}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=t.length-1;n>=0;n--){let o=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(o)return o}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex");}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_executeOnStable(e){gE(e,{injector:this._injector});}},wi$2=(()=>{class i{_checker=g(Ln$2);_ngZone=g(G$2);_document=g(U$5);_injector=g(he$4);constructor(){g(L$1).load(kn$2);}create(t,n=false){return new $t$2(t,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var zn$2=new T$4("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),Vn$2=new T$4("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),xi$1=0,Ei$1=(()=>{class i{_ngZone=g(G$2);_defaultOptions=g(Vn$2,{optional:true});_liveElement;_document=g(U$5);_sanitizer=g(oS);_previousTimeout;_currentPromise;_currentResolve;constructor(){let t=g(zn$2,{optional:true});this._liveElement=t||this._createLiveElement();}announce(t,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!t||typeof t=="string"?this._liveElement.textContent=t:Rn$2(this._liveElement,t,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="");}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;}_createLiveElement(){let t="cdk-live-announcer-element",n=this._document.getElementsByClassName(t),o=this._document.createElement("div");for(let r=0;r<n.length;r++)n[r].remove();return o.classList.add(t),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id=`cdk-live-announcer-${xi$1++}`,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(t){let n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<n.length;o++){let r=n[o],a=r.getAttribute("aria-owns");a?a.indexOf(t)===-1&&r.setAttribute("aria-owns",a+" "+t):r.setAttribute("aria-owns",t);}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function Ea(i){return i!=null&&`${i}`!="false"}var ka={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)"};var Ci$2=new T$4("MATERIAL_ANIMATIONS"),jn$2=null;function Si$2(){return g(Ci$2,{optional:true})?.animationsDisabled||g(Rv,{optional:true})==="NoopAnimations"?"di-disabled":(jn$2??=g(Zt$1).matchMedia("(prefers-reduced-motion)").matches,jn$2?"reduced-motion":"enabled")}function at$2(){return Si$2()!=="enabled"}var ki$2=200,qt=class{_letterKeyStream=new le$4;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new le$4;selectedItem=this._selectedItem;constructor(e,t){let n=typeof t?.debounceInterval=="number"?t.debounceInterval:ki$2;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(e),this._setupKeyHandler(n);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e;}setItems(e){this._items=e;}handleKey(e){let t=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t));}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[];}_setupKeyHandler(e){this._letterKeyStream.pipe(yd(t=>this._pressedLetters.push(t)),pd(e),Ot$1(()=>this._pressedLetters.length>0),ne$3(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let n=1;n<this._items.length+1;n++){let o=(this._selectedItemIndex+n)%this._items.length,r=this._items[o];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(t)===0){this._selectedItem.next(r);break}}this._pressedLetters=[];});}};var Qt$1=class Qt{_items;_activeItemIndex=Ui$1(-1);_activeItem=Ui$1(null);_wrap=false;_typeaheadSubscription=ee$5.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=e=>e.disabled;constructor(e,t){this._items=e,e instanceof ss?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Jr(e)&&(this._effectRef=Af(()=>this._itemsChanged(e()),{injector:t}));}tabOut=new le$4;change=new le$4;skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=true){return this._wrap=e,this}withVerticalOrientation(e=true){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new qt(t,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n);}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=true){return this._homeAndEnd=e,this}withPageUpDown(e=true,t=10){return this._pageUpAndDown={enabled:e,delta:t},this}setActiveItem(e){let t=this._activeItem();this.updateActiveItem(e),this._activeItem()!==t&&this.change.next(this._activeItemIndex());}onKeydown(e){let t=e.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!e[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(t){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(o||en$1(e,"shiftKey"))&&this._typeahead?.handleKey(e);return}this._typeahead?.reset(),e.preventDefault();}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return !!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1);}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1);}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1);}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1);}updateActiveItem(e){let t=this._getItemsArray(),n=typeof e=="number"?e:t.indexOf(e),o=t[n];this._activeItem.set(o??null),this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n);}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete();}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e);}_setActiveInWrapMode(e){let t=this._getItemsArray();for(let n=1;n<=t.length;n++){let o=(this._activeItemIndex()+e*n+t.length)%t.length,r=t[o];if(!this._skipPredicateFn(r)){this.setActiveItem(o);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex()+e,e);}_setActiveItemByIndex(e,t){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=t,!n[e])return;this.setActiveItem(e);}}_getItemsArray(){return Jr(this._items)?this._items():this._items instanceof ss?this._items.toArray():this._items}_itemsChanged(e){this._typeahead?.setItems(e);let t=this._activeItem();if(t){let n=e.indexOf(t);n>-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n));}}};var xe$1=class xe extends Qt$1{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin);}};var T$2=(function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i})(T$2||{}),Ee$1=class Ee{_renderer;element;config;_animationForciblyDisabledThroughCss;state=T$2.HIDDEN;constructor(e,t,n,o=false){this._renderer=e,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=o;}fadeOut(){this._renderer.fadeOutRipple(this);}},Hn$2=rt$1({passive:true,capture:true}),Ce$3=class Ce{_events=new Map;addHandler(e,t,n,o){let r=this._events.get(t);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]));}else this._events.set(t,new Map([[n,new Set([o])]])),e.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,Hn$2);});}removeHandler(e,t,n){let o=this._events.get(e);if(!o)return;let r=o.get(t);r&&(r.delete(n),r.size===0&&o.delete(t),o.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,Hn$2)));}_delegateEventHandler=e=>{let t=D(e);t&&this._events.get(e.type)?.forEach((n,o)=>{(o===t||o.contains(t))&&n.forEach(r=>r.handleEvent(e));});}},wt$2={enterDuration:225,exitDuration:150},Ri$2=800,Un$2=rt$1({passive:true,capture:true}),Wn$2=["mousedown","touchstart"],Yn$2=["mouseup","mouseleave","touchend","touchcancel"],Di$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=yw({type:i,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple {
|
|
164
|
+
`],encapsulation:2})}return i})(),Kt$1;function ai$2(){if(Kt$1===void 0&&(Kt$1=null,typeof window<"u")){let i=window;if(i.trustedTypes!==void 0)try{Kt$1=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e});}catch(e){console.error(e);}}return Kt$1}function si$2(i){return ai$2()?.createHTML(i)||i}function Rn$2(i,e,t){let n=t.sanitize(Oe$1.HTML,e);i.innerHTML=si$2(n||"");}var Dn$2=new Set,K$2,Zt$1=(()=>{class i{_platform=g(v);_nonce=g(Jr,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ci$2;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&li$2(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function li$2(i,e){if(!Dn$2.has(i))try{K$2||(K$2=document.createElement("style"),e&&K$2.setAttribute("nonce",e),K$2.setAttribute("type","text/css"),document.head.appendChild(K$2)),K$2.sheet&&(K$2.sheet.insertRule(`@media ${i.replace(/[{}]/g,"")} {body{ }}`,0),Dn$2.add(i));}catch(t){console.error(t);}}function ci$2(i){return {matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var di$2=(()=>{class i{_mediaMatcher=g(Zt$1);_zone=g(G$2);_queries=new Map;_destroySubject=new le$4;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return On$2(ot$1(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=On$2(ot$1(t)).map(a=>this._registerQuery(a).observable),r=Cy(o);return r=kt$1(r.pipe(cn$2(1)),r.pipe(gd(1),hd(0))),r.pipe(ne$3(a=>{let l={matches:false,breakpoints:{}};return a.forEach(({matches:d,query:u})=>{l.matches=l.matches||d,l.breakpoints[u]=d;}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),r={observable:new R$2(a=>{let l=d=>this._zone.run(()=>a.next(d));return n.addListener(l),()=>{n.removeListener(l);}}).pipe(yd(n),ne$3(({matches:a})=>({query:t,matches:a})),bd(this._destroySubject)),mql:n};return this._queries.set(t,r),r}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function On$2(i){return i.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}function _t$3(i){return i.buttons===0||i.detail===0}function gt$2(i){let e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return !!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var vt$2;function An$2(){if(vt$2==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>vt$2=!0}));}finally{vt$2=vt$2||false;}return vt$2}function rt$1(i){return An$2()?i:!!i.capture}var Mn$3=new T$4("cdk-input-modality-detector-options"),In$2={ignoreKeys:[18,17,224,91,16]},Tn$2=650,ye$3={passive:true,capture:true},Pn$2=(()=>{class i{_platform=g(v);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Tr$1(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(n=>n===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=D(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<Tn$2||(this._modality.next(_t$3(t)?"keyboard":"mouse"),this._mostRecentTarget=D(t));};_onTouchstart=t=>{if(gt$2(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=D(t);};constructor(){let t=g(G$2),n=g(U$5),o=g(Mn$3,{optional:true});if(this._options=w$1(w$1({},In$2),o),this.modalityDetected=this._modality.pipe(gd(1)),this.modalityChanged=this.modalityDetected.pipe(Cd()),this._platform.isBrowser){let r=g(Mn$4).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,ye$3),r.listen(n,"mousedown",this._onMousedown,ye$3),r.listen(n,"touchstart",this._onTouchstart,ye$3)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),yt$2=(function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i})(yt$2||{}),Fn$2=new T$4("cdk-focus-monitor-default-options"),Gt=rt$1({passive:true,capture:true}),we$1=(()=>{class i{_ngZone=g(G$2);_platform=g(v);_inputModalityDetector=g(Pn$2);_origin=null;_lastFocusOrigin=null;_windowFocused=false;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=false;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=true,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=false);};_document=g(U$5);_stopInputModalityDetector=new le$4;constructor(){let t=g(Fn$2,{optional:true});this._detectionMode=t?.detectionMode||yt$2.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let n=D(t);for(let o=n;o;o=o.parentElement)t.type==="focus"?this._onFocus(t,o):this._onBlur(t,o);};monitor(t,n=false){let o=N(t);if(!this._platform.isBrowser||o.nodeType!==1)return br$1();let r=fe$3(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=true),a.subject;let l={checkChildren:n,subject:new le$4,rootNode:r};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let n=N(t),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o));}focusVia(t,n,o){let r=N(t),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([l,d])=>this._originChanged(l,n,d)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o));}ngOnDestroy(){this._elementInfo.forEach((t,n)=>this.stopMonitoring(n));}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===yt$2.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,n){t.classList.toggle("cdk-focused",!!n),t.classList.toggle("cdk-touch-focused",n==="touch"),t.classList.toggle("cdk-keyboard-focused",n==="keyboard"),t.classList.toggle("cdk-mouse-focused",n==="mouse"),t.classList.toggle("cdk-program-focused",n==="program");}_setOrigin(t,n=false){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&n,this._detectionMode===yt$2.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?Tn$2:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o);}});}_onFocus(t,n){let o=this._elementInfo.get(n),r=D(t);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o);}_onBlur(t,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null));}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n));}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let n=t.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Gt),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Gt);}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(bd(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,true);}));}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Gt),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Gt),this._rootNodeFocusListenerCount.delete(n));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(t,n,o){this._setClasses(t,n),this._emitOrigin(o,n),this._lastFocusOrigin=n;}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((o,r)=>{(r===t||o.checkChildren&&r.contains(t))&&n.push([r,o]);}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return false;let r=t.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(n))return true}return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var Ln$2=(()=>{class i{_platform=g(v);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return mi$2(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return false;let n=ui$2(yi$2(t));if(n&&(Nn$2(n)===-1||!this.isVisible(n)))return false;let o=t.nodeName.toLowerCase(),r=Nn$2(t);return t.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!gi$2(t)?false:o==="audio"?t.hasAttribute("controls")?r!==-1:false:o==="video"?r===-1?false:r!==null?true:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return vi$2(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function ui$2(i){try{return i.frameElement}catch(e){return null}}function mi$2(i){return !!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function hi$2(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function pi$2(i){return bi$2(i)&&i.type=="hidden"}function fi$2(i){return _i$2(i)&&i.hasAttribute("href")}function bi$2(i){return i.nodeName.toLowerCase()=="input"}function _i$2(i){return i.nodeName.toLowerCase()=="a"}function Bn$2(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return false;let e=i.getAttribute("tabindex");return !!(e&&!isNaN(parseInt(e,10)))}function Nn$2(i){if(!Bn$2(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function gi$2(i){let e=i.nodeName.toLowerCase(),t=e==="input"&&i.type;return t==="text"||t==="password"||e==="select"||e==="textarea"}function vi$2(i){return pi$2(i)?false:hi$2(i)||fi$2(i)||i.hasAttribute("contenteditable")||Bn$2(i)}function yi$2(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var $t$2=class $t{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_enabled=true;constructor(e,t,n,o,r=false,a){this._element=e,this._checker=t,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors();}destroy(){let e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=false;}attachAnchors(){return this._hasAttached?true:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener));}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=true),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)));})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)));})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)));})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(e),!!n}return t.focus(e),true}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){let t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=0;n<t.length;n++){let o=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(o)return o}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=t.length-1;n>=0;n--){let o=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(o)return o}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex");}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_executeOnStable(e){gE(e,{injector:this._injector});}},wi$2=(()=>{class i{_checker=g(Ln$2);_ngZone=g(G$2);_document=g(U$5);_injector=g(he$4);constructor(){g(L$1).load(kn$2);}create(t,n=false){return new $t$2(t,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var zn$2=new T$4("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),Vn$2=new T$4("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),xi$1=0,Ei$1=(()=>{class i{_ngZone=g(G$2);_defaultOptions=g(Vn$2,{optional:true});_liveElement;_document=g(U$5);_sanitizer=g(uS);_previousTimeout;_currentPromise;_currentResolve;constructor(){let t=g(zn$2,{optional:true});this._liveElement=t||this._createLiveElement();}announce(t,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!t||typeof t=="string"?this._liveElement.textContent=t:Rn$2(this._liveElement,t,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="");}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;}_createLiveElement(){let t="cdk-live-announcer-element",n=this._document.getElementsByClassName(t),o=this._document.createElement("div");for(let r=0;r<n.length;r++)n[r].remove();return o.classList.add(t),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id=`cdk-live-announcer-${xi$1++}`,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(t){let n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<n.length;o++){let r=n[o],a=r.getAttribute("aria-owns");a?a.indexOf(t)===-1&&r.setAttribute("aria-owns",a+" "+t):r.setAttribute("aria-owns",t);}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function Ea(i){return i!=null&&`${i}`!="false"}var ka={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)"};var Ci$2=new T$4("MATERIAL_ANIMATIONS"),jn$2=null;function Si$2(){return g(Ci$2,{optional:true})?.animationsDisabled||g(Rv,{optional:true})==="NoopAnimations"?"di-disabled":(jn$2??=g(Zt$1).matchMedia("(prefers-reduced-motion)").matches,jn$2?"reduced-motion":"enabled")}function at$2(){return Si$2()!=="enabled"}var ki$2=200,qt=class{_letterKeyStream=new le$4;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new le$4;selectedItem=this._selectedItem;constructor(e,t){let n=typeof t?.debounceInterval=="number"?t.debounceInterval:ki$2;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(e),this._setupKeyHandler(n);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e;}setItems(e){this._items=e;}handleKey(e){let t=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t));}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[];}_setupKeyHandler(e){this._letterKeyStream.pipe(vd(t=>this._pressedLetters.push(t)),hd(e),Ot$1(()=>this._pressedLetters.length>0),ne$3(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let n=1;n<this._items.length+1;n++){let o=(this._selectedItemIndex+n)%this._items.length,r=this._items[o];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(t)===0){this._selectedItem.next(r);break}}this._pressedLetters=[];});}};var Qt$1=class Qt{_items;_activeItemIndex=$i$1(-1);_activeItem=$i$1(null);_wrap=false;_typeaheadSubscription=ee$5.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=e=>e.disabled;constructor(e,t){this._items=e,e instanceof as?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):eo$1(e)&&(this._effectRef=Of(()=>this._itemsChanged(e()),{injector:t}));}tabOut=new le$4;change=new le$4;skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=true){return this._wrap=e,this}withVerticalOrientation(e=true){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new qt(t,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n);}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=true){return this._homeAndEnd=e,this}withPageUpDown(e=true,t=10){return this._pageUpAndDown={enabled:e,delta:t},this}setActiveItem(e){let t=this._activeItem();this.updateActiveItem(e),this._activeItem()!==t&&this.change.next(this._activeItemIndex());}onKeydown(e){let t=e.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!e[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(t){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(o||en$1(e,"shiftKey"))&&this._typeahead?.handleKey(e);return}this._typeahead?.reset(),e.preventDefault();}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return !!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1);}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1);}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1);}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1);}updateActiveItem(e){let t=this._getItemsArray(),n=typeof e=="number"?e:t.indexOf(e),o=t[n];this._activeItem.set(o??null),this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n);}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete();}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e);}_setActiveInWrapMode(e){let t=this._getItemsArray();for(let n=1;n<=t.length;n++){let o=(this._activeItemIndex()+e*n+t.length)%t.length,r=t[o];if(!this._skipPredicateFn(r)){this.setActiveItem(o);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex()+e,e);}_setActiveItemByIndex(e,t){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=t,!n[e])return;this.setActiveItem(e);}}_getItemsArray(){return eo$1(this._items)?this._items():this._items instanceof as?this._items.toArray():this._items}_itemsChanged(e){this._typeahead?.setItems(e);let t=this._activeItem();if(t){let n=e.indexOf(t);n>-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n));}}};var xe$1=class xe extends Qt$1{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin);}};var T$2=(function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i})(T$2||{}),Ee$1=class Ee{_renderer;element;config;_animationForciblyDisabledThroughCss;state=T$2.HIDDEN;constructor(e,t,n,o=false){this._renderer=e,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=o;}fadeOut(){this._renderer.fadeOutRipple(this);}},Hn$2=rt$1({passive:true,capture:true}),Ce$3=class Ce{_events=new Map;addHandler(e,t,n,o){let r=this._events.get(t);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]));}else this._events.set(t,new Map([[n,new Set([o])]])),e.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,Hn$2);});}removeHandler(e,t,n){let o=this._events.get(e);if(!o)return;let r=o.get(t);r&&(r.delete(n),r.size===0&&o.delete(t),o.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,Hn$2)));}_delegateEventHandler=e=>{let t=D(e);t&&this._events.get(e.type)?.forEach((n,o)=>{(o===t||o.contains(t))&&n.forEach(r=>r.handleEvent(e));});}},wt$2={enterDuration:225,exitDuration:150},Ri$2=800,Un$2=rt$1({passive:true,capture:true}),Wn$2=["mousedown","touchstart"],Yn$2=["mouseup","mouseleave","touchend","touchcancel"],Di$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=vw({type:i,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple {
|
|
165
165
|
overflow: hidden;
|
|
166
166
|
position: relative;
|
|
167
167
|
}
|
|
@@ -189,7 +189,7 @@ var b$1=class i{http=g(Xm);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
189
189
|
.cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element {
|
|
190
190
|
display: none;
|
|
191
191
|
}
|
|
192
|
-
`],encapsulation:2})}return i})(),xt$1=class i{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new Ce$3;constructor(e,t,n,o,r){this._target=e,this._ngZone=t,this._platform=o,o.isBrowser&&(this._containerElement=N(n)),r&&r.get(L$1).load(Di$2);}fadeInRipple(e,t,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=w$1(w$1({},wt$2),n.animation);n.centered&&(e=o.left+o.width/2,t=o.top+o.height/2);let a=n.radius||Oi$1(e,t,o),l=e-o.left,d=t-o.top,u=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${l-a}px`,c.style.top=`${d-a}px`,c.style.height=`${a*2}px`,c.style.width=`${a*2}px`,n.color!=null&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(c);let m=window.getComputedStyle(c),C=m.transitionProperty,S=m.transitionDuration,w=C==="none"||S==="0s"||S==="0s, 0s"||o.width===0&&o.height===0,y=new Ee$1(this,c,n,w);c.style.transform="scale3d(1, 1, 1)",y.state=T$2.FADING_IN,n.persistent||(this._mostRecentTransientRipple=y);let V=null;return !w&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Oe=()=>{V&&(V.fallbackTimer=null),clearTimeout(Ae),this._finishRippleTransition(y);},te=()=>this._destroyRipple(y),Ae=setTimeout(te,u+100);c.addEventListener("transitionend",Oe),c.addEventListener("transitioncancel",te),V={onTransitionEnd:Oe,onTransitionCancel:te,fallbackTimer:Ae};}),this._activeRipples.set(y,V),(w||!u)&&this._finishRippleTransition(y),y}fadeOutRipple(e){if(e.state===T$2.FADING_OUT||e.state===T$2.HIDDEN)return;let t=e.element,n=w$1(w$1({},wt$2),e.config.animation);t.style.transitionDuration=`${n.exitDuration}ms`,t.style.opacity="0",e.state=T$2.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e);}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut();});}setupTriggerEvents(e){let t=N(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Wn$2.forEach(n=>{i._eventManager.addHandler(this._ngZone,n,t,this);}));}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Yn$2.forEach(t=>{this._triggerElement.addEventListener(t,this,Un$2);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(e){e.state===T$2.FADING_IN?this._startFadeOutTransition(e):e.state===T$2.FADING_OUT&&this._destroyRipple(e);}_startFadeOutTransition(e){let t=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=T$2.VISIBLE,!n&&(!t||!this._isPointerDown)&&e.fadeOut();}_destroyRipple(e){let t=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=T$2.HIDDEN,t!==null&&(e.element.removeEventListener("transitionend",t.onTransitionEnd),e.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),e.element.remove();}_onMousedown(e){let t=_t$3(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Ri$2;!this._target.rippleDisabled&&!t&&!n&&(this._isPointerDown=true,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig));}_onTouchStart(e){if(!this._target.rippleDisabled&&!gt$2(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let t=e.changedTouches;if(t)for(let n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(e=>{let t=e.state===T$2.VISIBLE||e.config.terminateOnPointerUp&&e.state===T$2.FADING_IN;!e.config.persistent&&t&&e.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(Wn$2.forEach(t=>i._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&(Yn$2.forEach(t=>e.removeEventListener(t,this,Un$2)),this._pointerUpEventsRegistered=false));}};function Oi$1(i,e,t){let n=Math.max(Math.abs(i-t.left),Math.abs(i-t.right)),o=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(n*n+o*o)}var Se$1=new T$4("mat-ripple-global-options"),Os$1=(()=>{class i{_elementRef=g(
|
|
192
|
+
`],encapsulation:2})}return i})(),xt$1=class i{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new Ce$3;constructor(e,t,n,o,r){this._target=e,this._ngZone=t,this._platform=o,o.isBrowser&&(this._containerElement=N(n)),r&&r.get(L$1).load(Di$2);}fadeInRipple(e,t,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=w$1(w$1({},wt$2),n.animation);n.centered&&(e=o.left+o.width/2,t=o.top+o.height/2);let a=n.radius||Oi$1(e,t,o),l=e-o.left,d=t-o.top,u=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${l-a}px`,c.style.top=`${d-a}px`,c.style.height=`${a*2}px`,c.style.width=`${a*2}px`,n.color!=null&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(c);let m=window.getComputedStyle(c),C=m.transitionProperty,S=m.transitionDuration,w=C==="none"||S==="0s"||S==="0s, 0s"||o.width===0&&o.height===0,y=new Ee$1(this,c,n,w);c.style.transform="scale3d(1, 1, 1)",y.state=T$2.FADING_IN,n.persistent||(this._mostRecentTransientRipple=y);let V=null;return !w&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Oe=()=>{V&&(V.fallbackTimer=null),clearTimeout(Ae),this._finishRippleTransition(y);},te=()=>this._destroyRipple(y),Ae=setTimeout(te,u+100);c.addEventListener("transitionend",Oe),c.addEventListener("transitioncancel",te),V={onTransitionEnd:Oe,onTransitionCancel:te,fallbackTimer:Ae};}),this._activeRipples.set(y,V),(w||!u)&&this._finishRippleTransition(y),y}fadeOutRipple(e){if(e.state===T$2.FADING_OUT||e.state===T$2.HIDDEN)return;let t=e.element,n=w$1(w$1({},wt$2),e.config.animation);t.style.transitionDuration=`${n.exitDuration}ms`,t.style.opacity="0",e.state=T$2.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e);}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut();});}setupTriggerEvents(e){let t=N(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Wn$2.forEach(n=>{i._eventManager.addHandler(this._ngZone,n,t,this);}));}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Yn$2.forEach(t=>{this._triggerElement.addEventListener(t,this,Un$2);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(e){e.state===T$2.FADING_IN?this._startFadeOutTransition(e):e.state===T$2.FADING_OUT&&this._destroyRipple(e);}_startFadeOutTransition(e){let t=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=T$2.VISIBLE,!n&&(!t||!this._isPointerDown)&&e.fadeOut();}_destroyRipple(e){let t=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=T$2.HIDDEN,t!==null&&(e.element.removeEventListener("transitionend",t.onTransitionEnd),e.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),e.element.remove();}_onMousedown(e){let t=_t$3(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Ri$2;!this._target.rippleDisabled&&!t&&!n&&(this._isPointerDown=true,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig));}_onTouchStart(e){if(!this._target.rippleDisabled&&!gt$2(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let t=e.changedTouches;if(t)for(let n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(e=>{let t=e.state===T$2.VISIBLE||e.config.terminateOnPointerUp&&e.state===T$2.FADING_IN;!e.config.persistent&&t&&e.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(Wn$2.forEach(t=>i._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&(Yn$2.forEach(t=>e.removeEventListener(t,this,Un$2)),this._pointerUpEventsRegistered=false));}};function Oi$1(i,e,t){let n=Math.max(Math.abs(i-t.left),Math.abs(i-t.right)),o=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(n*n+o*o)}var Se$1=new T$4("mat-ripple-global-options"),Os$1=(()=>{class i{_elementRef=g(Rn$3);_animationsDisabled=at$2();color;unbounded=false;centered=false;radius=0;animation;get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled();}_disabled=false;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=false;constructor(){let t=g(G$2),n=g(v),o=g(Se$1,{optional:true}),r=g(he$4);this._globalOptions=o||{},this._rippleRenderer=new xt$1(this,t,this._elementRef,n,r);}ngOnInit(){this._isInitialized=true,this._setupTriggerEventsIfEnabled();}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents();}fadeOutAll(){this._rippleRenderer.fadeOutAll();}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent();}get rippleConfig(){return {centered:this.centered,radius:this.radius,color:this.color,animation:w$1(w$1(w$1({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger);}launch(t,n=0,o){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,n,w$1(w$1({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,w$1(w$1({},this.rippleConfig),t))}static \u0275fac=function(n){return new(n||i)};static \u0275dir=cl({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&Mg("mat-ripple-unbounded",o.unbounded);},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return i})();var Ai$2={capture:true},Mi$2=["focus","mousedown","mouseenter","touchstart"],ke$2="mat-ripple-loader-uninitialized",Re$2="mat-ripple-loader-class-name",Xn$2="mat-ripple-loader-centered",Jt$1="mat-ripple-loader-disabled",Kn$2=(()=>{class i{_document=g(U$5);_animationsDisabled=at$2();_globalRippleOptions=g(Se$1,{optional:true});_platform=g(v);_ngZone=g(G$2);_injector=g(he$4);_eventCleanups;_hosts=new Map;constructor(){let t=g(Mn$4).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>Mi$2.map(n=>t.listen(this._document,n,this._onInteraction,Ai$2)));}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);this._eventCleanups.forEach(n=>n());}configureRipple(t,n){t.setAttribute(ke$2,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(Re$2))&&t.setAttribute(Re$2,n.className||""),n.centered&&t.setAttribute(Xn$2,""),n.disabled&&t.setAttribute(Jt$1,"");}setDisabled(t,n){let o=this._hosts.get(t);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=true,o.renderer.setupTriggerEvents(t))):n?t.setAttribute(Jt$1,""):t.removeAttribute(Jt$1);}_onInteraction=t=>{let n=D(t);if(n instanceof HTMLElement){let o=n.closest(`[${ke$2}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o);}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",t.getAttribute(Re$2)),t.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??wt$2.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??wt$2.exitDuration,l={rippleDisabled:this._animationsDisabled||o?.disabled||t.hasAttribute(Jt$1),rippleConfig:{centered:t.hasAttribute(Xn$2),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},d=new xt$1(l,this._ngZone,n,this._platform,this._injector),u=!l.rippleDisabled;u&&d.setupTriggerEvents(t),this._hosts.set(t,{target:l,renderer:d,hasSetUpEvents:u}),t.removeAttribute(ke$2);}destroyRipple(t){let n=this._hosts.get(t);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(t));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var Zn$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=vw({type:i,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator {
|
|
193
193
|
position: relative;
|
|
194
194
|
}
|
|
195
195
|
.mat-focus-indicator::before {
|
|
@@ -216,7 +216,7 @@ var b$1=class i{http=g(Xm);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
216
216
|
--mat-focus-indicator-fallback-border-style: none;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
`],encapsulation:2})}return i})();var Ii=["*",[["","progressIndicator",""]]],Ti$2=["*","[progressIndicator]"];function Pi$2(i,e){i&1&&(
|
|
219
|
+
`],encapsulation:2})}return i})();var Ii=["*",[["","progressIndicator",""]]],Ti$2=["*","[progressIndicator]"];function Pi$2(i,e){i&1&&(gl(0,"div",1),rC(1,1),ml());}var Fi$2=new T$4("MAT_BUTTON_CONFIG");function Gn$2(i){return i==null?void 0:jT(i)}var De$1=(()=>{class i{_elementRef=g(Rn$3);_ngZone=g(G$2);_animationsDisabled=at$2();_config=g(Fi$2,{optional:true});_focusMonitor=g(we$1);_cleanupClick;_renderer=g(Xu);_rippleLoader=g(Kn$2);_isAnchor;_isFab=false;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled();}_disableRipple=false;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled();}_disabled=false;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(t){this.tabIndex=t;}showProgress=AB(false,{transform:LT});constructor(){g(L$1).load(Zn$2);let t=this._elementRef.nativeElement;this._isAnchor=t.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??false,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"});}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,true),this._isAnchor&&this._setupAsAnchor();}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n);}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?true:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:true}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled);}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation());}));}static \u0275fac=function(n){return new(n||i)};static \u0275dir=cl({type:i,hostAttrs:[1,"mat-mdc-button-base"],hostVars:15,hostBindings:function(n,o){n&2&&(lg("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),DC(o.color?"mat-"+o.color:""),Mg("mat-mdc-button-progress-indicator-shown",o.showProgress())("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled));},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",LT],disabled:[2,"disabled","disabled",LT],ariaDisabled:[2,"aria-disabled","ariaDisabled",LT],disabledInteractive:[2,"disabledInteractive","disabledInteractive",LT],tabIndex:[2,"tabIndex","tabIndex",Gn$2],_tabindex:[2,"tabindex","_tabindex",Gn$2],showProgress:[1,"showProgress"]}})}return i})(),Ni$2=(()=>{class i extends De$1{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:true});}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=vw({type:i,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[og],ngContentSelectors:Ti$2,decls:5,vars:1,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(nC(Ii),pg(0,"span",0),rC(1),jw(2,Pi$2,2,0,"div",1),pg(3,"span",2)(4,"span",3)),n&2&&(BE(2),Bw(o.showProgress()?2:-1));},styles:[`.mat-mdc-icon-button {
|
|
220
220
|
-webkit-user-select: none;
|
|
221
221
|
user-select: none;
|
|
222
222
|
display: inline-block;
|
|
@@ -364,7 +364,7 @@ var b$1=class i{http=g(Xm);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
364
364
|
outline: solid 1px;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
`],encapsulation:2})}return i})();var qs$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=
|
|
367
|
+
`],encapsulation:2})}return i})();var qs$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Fs$1({type:i});static \u0275inj=Vr({imports:[W$2]})}return i})();var Li$1=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]],[["","progressIndicator",""]]],Bi$1=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]","[progressIndicator]"];function zi$1(i,e){i&1&&(gl(0,"div",2),rC(1,3),ml());}var $n$2=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),tl=(()=>{class i extends De$1{get appearance(){return this._appearance}set appearance(t){this.setAppearance(t||this._config?.defaultAppearance||"text");}_appearance=null;constructor(){super();let t=Vi$1(this._elementRef.nativeElement);t&&this.setAppearance(t);}setAppearance(t){if(t===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?$n$2.get(this._appearance):null,r=$n$2.get(t);o&&n.remove(...o),n.add(...r),this._appearance=t;}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=vw({type:i,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[og],ngContentSelectors:Bi$1,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(nC(Li$1),pg(0,"span",0),rC(1),gl(2,"span",1),rC(3,1),ml(),rC(4,2),jw(5,zi$1,2,0,"div",2),pg(6,"span",3)(7,"span",4)),n&2&&(Mg("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab),BE(5),Bw(o.showProgress()?5:-1));},styles:[`.mat-mdc-button-base {
|
|
368
368
|
text-decoration: none;
|
|
369
369
|
}
|
|
370
370
|
.mat-mdc-button-base .mat-icon {
|
|
@@ -929,14 +929,14 @@ var b$1=class i{http=g(Xm);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
929
929
|
outline: solid 1px;
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
|
-
`],encapsulation:2})}return i})();function Vi$1(i){return i.hasAttribute("mat-raised-button")?"elevated":i.hasAttribute("mat-stroked-button")?"outlined":i.hasAttribute("mat-flat-button")?"filled":i.hasAttribute("mat-button")?"text":null}function Jt(i,o){}var f=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var ht$2=(()=>{class i extends Nt$2{_elementRef=g(
|
|
932
|
+
`],encapsulation:2})}return i})();function Vi$1(i){return i.hasAttribute("mat-raised-button")?"elevated":i.hasAttribute("mat-stroked-button")?"outlined":i.hasAttribute("mat-flat-button")?"filled":i.hasAttribute("mat-button")?"text":null}function Jt(i,o){}var f=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var ht$2=(()=>{class i extends Nt$2{_elementRef=g(Rn$3);_focusTrapFactory=g(wi$2);_config;_interactivityChecker=g(Ln$2);_ngZone=g(G$2);_focusMonitor=g(we$1);_renderer=g(Xu);_changeDetectorRef=g(am);_injector=g(he$4);_platform=g(v);_document=g(U$5);_portalOutlet;_focusTrapped=new le$4;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=g(f,{optional:true})||new f,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(t){let e=this._ariaLabelledByQueue.indexOf(t);e>-1&&(this._ariaLabelledByQueue.splice(e,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),e}attachTemplatePortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),e}attachDomPortal=t=>{this._portalOutlet.hasAttached();let e=this._portalOutlet.attachDomPortal(t);return this._contentAttached(),e};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(t,e){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{a(),s(),t.removeAttribute("tabindex");},a=this._renderer.listen(t,"blur",n),s=this._renderer.listen(t,"mousedown",n);})),t.focus(e);}_focusByCssSelector(t,e){let n=this._elementRef.nativeElement.querySelector(t);n&&this._forceFocus(n,e);}_trapFocus(t){this._isDestroyed||gE(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||e.focus(t);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(t)||this._focusDialogContainer(t);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',t);break;default:this._focusByCssSelector(this._config.autoFocus,t);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let t=this._config.restoreFocus,e=null;if(typeof t=="string"?e=this._document.querySelector(t):typeof t=="boolean"?e=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(e=t),this._config.restoreFocus&&e&&typeof e.focus=="function"){let n=ni$2(),a=this._elementRef.nativeElement;(!n||n===this._document.body||n===a||a.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(t){this._elementRef.nativeElement.focus?.(t);}_containsFocus(){let t=this._elementRef.nativeElement,e=ni$2();return t===e||t.contains(e)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ni$2()));}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=vw({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,n){if(e&1&&wg(jo$1,7),e&2){let a;iC(a=sC())&&(n._portalOutlet=a.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,n){e&2&&lg("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null);},features:[og],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){e&1&&sg(0,Jt,0,0,"ng-template",0);},dependencies:[jo$1],styles:[`.cdk-dialog-container {
|
|
933
933
|
display: block;
|
|
934
934
|
width: 100%;
|
|
935
935
|
height: 100%;
|
|
936
936
|
min-height: inherit;
|
|
937
937
|
max-height: inherit;
|
|
938
938
|
}
|
|
939
|
-
`],encapsulation:2,changeDetection:1})}return i})(),L=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new le$4;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(o,t){this.overlayRef=o,this.config=t,this.disableClose=t.disableClose,this.backdropClick=o.backdropClick(),this.keydownEvents=o.keydownEvents(),this.outsidePointerEvents=o.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(e=>{e.keyCode===27&&!this.disableClose&&!en$1(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}));}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.();}),this._detachSubscription=o.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==false&&this.close();});}close(o,t){if(this._canClose(o)){let e=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),e.next(o),e.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(o="",t=""){return this.overlayRef.updateSize({width:o,height:t}),this}addPanelClass(o){return this.overlayRef.addPanelClass(o),this}removePanelClass(o){return this.overlayRef.removePanelClass(o),this}_canClose(o){let t=this.config;return !!this.containerInstance&&(!t.closePredicate||t.closePredicate(o,t,this.componentInstance))}},te$2=new T$4("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=g(he$4);return ()=>un$1(i)}}),ee$2=new T$4("DialogData"),ne$1=new T$4("DefaultDialogConfig");function ie$1(i){let o=Ui$1(i),t=new yt$3;return {valueSignal:o,get value(){return o()},change:t,ngOnDestroy(){t.complete();}}}var Qt=(()=>{class i{_injector=g(he$4);_defaultOptions=g(ne$1,{optional:true});_parentDialog=g(i,{optional:true,skipSelf:true});_overlayContainer=g(vn$1);_idGenerator=g(pt$3);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new le$4;_afterOpenedAtThisLevel=new le$4;_ariaHiddenElements=new Map;_scrollStrategy=g(te$2);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Ay(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(md(void 0)));open(t,e){let n=this._defaultOptions||new f;e=w$1(w$1({},n),e),e.id=e.id||this._idGenerator.getId("cdk-dialog-"),e.id&&this.getDialogById(e.id);let a=this._getOverlayConfig(e),s=Cn$2(this._injector,a),l=new L(s,e),c=this._attachContainer(s,l,e);if(l.containerInstance=c,!this.openDialogs.length){let O=this._overlayContainer.getContainerElement();c._focusTrapped?c._focusTrapped.pipe(an$2(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(O);}):this._hideNonDialogContentFromAssistiveTechnology(O);}return this._attachDialogContent(t,l,c,e),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,true)),this.afterOpened.next(l),l}closeAll(){mt$2(this.openDialogs,t=>t.close());}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){mt$2(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===false&&this._removeOpenDialog(t,false);}),mt$2(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(t){let e=new Ht({positionStrategy:t.positionStrategy||wn$2().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation,disableAnimations:t.disableAnimations});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachContainer(t,e,n){let a=n.injector||n.viewContainerRef?.injector,s=[{provide:f,useValue:n},{provide:L,useValue:e},{provide:Wt,useValue:t}],l;n.container?typeof n.container=="function"?l=n.container:(l=n.container.type,s.push(...n.container.providers(n))):l=ht$2;let c=new me$2(l,n.viewContainerRef,he$4.create({parent:a||this._injector,providers:s}));return t.attach(c).instance}_attachDialogContent(t,e,n,a){if(t instanceof ur$1){let s=this._createInjector(a,e,n,void 0),l={$implicit:a.data,dialogRef:e};a.templateContext&&(l=w$1(w$1({},l),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),n.attachTemplatePortal(new Ft$1(t,null,l,s));}else {let s=this._createInjector(a,e,n,this._injector),l=n.attachComponentPortal(new me$2(t,a.viewContainerRef,s,null,a.bindings));e.componentRef=l,e.componentInstance=l.instance;}}_createInjector(t,e,n,a){let s=t.injector||t.viewContainerRef?.injector,l=[{provide:ee$2,useValue:t.data},{provide:L,useValue:e}];return t.providers&&(typeof t.providers=="function"?l.push(...t.providers(e,t,n)):l.push(...t.providers)),t.direction&&(!s||!s.get(mt$3,null,{optional:true}))&&l.push({provide:mt$3,useValue:ie$1(t.direction)}),he$4.create({parent:s||a,providers:l})}_removeOpenDialog(t,e){let n=this.openDialogs.indexOf(t);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,s)=>{a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),e&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(t){if(t.parentElement){let e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let a=e[n];a!==t&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&!a.hasAttribute("popover")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function mt$2(i,o){let t=i.length;for(;t--;)o(i[t]);}function ae$1(i,o){}var at$1=class at{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;delayFocusTrap=true;scrollStrategy;closeOnNavigation=true;enterAnimationDuration;exitAnimationDuration;bindings},ut$1="mdc-dialog--open",Zt="mdc-dialog--opening",Ut$1="mdc-dialog--closing",oe$1=150,se=75,re$2=(()=>{class i extends ht$2{_animationStateChanged=new yt$3;_animationsEnabled=!at$2();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Yt(this._config.enterAnimationDuration)??oe$1:0;_exitAnimationDuration=this._animationsEnabled?Yt(this._config.exitAnimationDuration)??se:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty($t$1,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Zt,ut$1)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(ut$1),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(ut$1),this._animationsEnabled?(this._hostElement.style.setProperty($t$1,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ut$1)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck();}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration);};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration});};_clearAnimationClasses(){this._hostElement.classList.remove(Zt,Ut$1);}_waitForAnimationToComplete(t,e){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(e,t);}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t();});}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus();}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t});}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(t){let e=super.attachComponentPortal(t);return e.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),e}static \u0275fac=(()=>{let t;return function(n){return (t||(t=Rp(i)))(n||i)}})();static \u0275cmp=yw({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(e,n){e&2&&(hg("id",n._config.id),cg("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Sg("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0));},features:[ng],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(e,n){e&1&&(Ds$1(0,"div",0)(1,"div",1),og(2,ae$1,0,0,"ng-template",2),pl()());},dependencies:[jo$1],styles:[`.mat-mdc-dialog-container {
|
|
939
|
+
`],encapsulation:2,changeDetection:1})}return i})(),L=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new le$4;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(o,t){this.overlayRef=o,this.config=t,this.disableClose=t.disableClose,this.backdropClick=o.backdropClick(),this.keydownEvents=o.keydownEvents(),this.outsidePointerEvents=o.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(e=>{e.keyCode===27&&!this.disableClose&&!en$1(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}));}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.();}),this._detachSubscription=o.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==false&&this.close();});}close(o,t){if(this._canClose(o)){let e=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),e.next(o),e.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(o="",t=""){return this.overlayRef.updateSize({width:o,height:t}),this}addPanelClass(o){return this.overlayRef.addPanelClass(o),this}removePanelClass(o){return this.overlayRef.removePanelClass(o),this}_canClose(o){let t=this.config;return !!this.containerInstance&&(!t.closePredicate||t.closePredicate(o,t,this.componentInstance))}},te$2=new T$4("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=g(he$4);return ()=>un$1(i)}}),ee$2=new T$4("DialogData"),ne$1=new T$4("DefaultDialogConfig");function ie$1(i){let o=$i$1(i),t=new yt$3;return {valueSignal:o,get value(){return o()},change:t,ngOnDestroy(){t.complete();}}}var Qt=(()=>{class i{_injector=g(he$4);_defaultOptions=g(ne$1,{optional:true});_parentDialog=g(i,{optional:true,skipSelf:true});_overlayContainer=g(vn$1);_idGenerator=g(pt$3);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new le$4;_afterOpenedAtThisLevel=new le$4;_ariaHiddenElements=new Map;_scrollStrategy=g(te$2);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Ay(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(yd(void 0)));open(t,e){let n=this._defaultOptions||new f;e=w$1(w$1({},n),e),e.id=e.id||this._idGenerator.getId("cdk-dialog-"),e.id&&this.getDialogById(e.id);let a=this._getOverlayConfig(e),s=Cn$2(this._injector,a),l=new L(s,e),c=this._attachContainer(s,l,e);if(l.containerInstance=c,!this.openDialogs.length){let O=this._overlayContainer.getContainerElement();c._focusTrapped?c._focusTrapped.pipe(cn$2(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(O);}):this._hideNonDialogContentFromAssistiveTechnology(O);}return this._attachDialogContent(t,l,c,e),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,true)),this.afterOpened.next(l),l}closeAll(){mt$2(this.openDialogs,t=>t.close());}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){mt$2(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===false&&this._removeOpenDialog(t,false);}),mt$2(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(t){let e=new Ht({positionStrategy:t.positionStrategy||wn$2().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation,disableAnimations:t.disableAnimations});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachContainer(t,e,n){let a=n.injector||n.viewContainerRef?.injector,s=[{provide:f,useValue:n},{provide:L,useValue:e},{provide:Wt,useValue:t}],l;n.container?typeof n.container=="function"?l=n.container:(l=n.container.type,s.push(...n.container.providers(n))):l=ht$2;let c=new me$2(l,n.viewContainerRef,he$4.create({parent:a||this._injector,providers:s}));return t.attach(c).instance}_attachDialogContent(t,e,n,a){if(t instanceof ur$1){let s=this._createInjector(a,e,n,void 0),l={$implicit:a.data,dialogRef:e};a.templateContext&&(l=w$1(w$1({},l),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),n.attachTemplatePortal(new Ft$1(t,null,l,s));}else {let s=this._createInjector(a,e,n,this._injector),l=n.attachComponentPortal(new me$2(t,a.viewContainerRef,s,null,a.bindings));e.componentRef=l,e.componentInstance=l.instance;}}_createInjector(t,e,n,a){let s=t.injector||t.viewContainerRef?.injector,l=[{provide:ee$2,useValue:t.data},{provide:L,useValue:e}];return t.providers&&(typeof t.providers=="function"?l.push(...t.providers(e,t,n)):l.push(...t.providers)),t.direction&&(!s||!s.get(mt$3,null,{optional:true}))&&l.push({provide:mt$3,useValue:ie$1(t.direction)}),he$4.create({parent:s||a,providers:l})}_removeOpenDialog(t,e){let n=this.openDialogs.indexOf(t);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,s)=>{a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),e&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(t){if(t.parentElement){let e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let a=e[n];a!==t&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&!a.hasAttribute("popover")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function mt$2(i,o){let t=i.length;for(;t--;)o(i[t]);}function ae$1(i,o){}var at$1=class at{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;delayFocusTrap=true;scrollStrategy;closeOnNavigation=true;enterAnimationDuration;exitAnimationDuration;bindings},ut$1="mdc-dialog--open",Zt="mdc-dialog--opening",Ut$1="mdc-dialog--closing",oe$1=150,se=75,re$2=(()=>{class i extends ht$2{_animationStateChanged=new yt$3;_animationsEnabled=!at$2();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Yt(this._config.enterAnimationDuration)??oe$1:0;_exitAnimationDuration=this._animationsEnabled?Yt(this._config.exitAnimationDuration)??se:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty($t$1,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Zt,ut$1)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(ut$1),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(ut$1),this._animationsEnabled?(this._hostElement.style.setProperty($t$1,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ut$1)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck();}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration);};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration});};_clearAnimationClasses(){this._hostElement.classList.remove(Zt,Ut$1);}_waitForAnimationToComplete(t,e){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(e,t);}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t();});}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus();}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t});}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(t){let e=super.attachComponentPortal(t);return e.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),e}static \u0275fac=(()=>{let t;return function(n){return (t||(t=kp(i)))(n||i)}})();static \u0275cmp=vw({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(e,n){e&2&&(mg("id",n._config.id),lg("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Mg("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0));},features:[og],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(e,n){e&1&&(Es$1(0,"div",0)(1,"div",1),sg(2,ae$1,0,0,"ng-template",2),hl()());},dependencies:[jo$1],styles:[`.mat-mdc-dialog-container {
|
|
940
940
|
width: 100%;
|
|
941
941
|
height: 100%;
|
|
942
942
|
display: block;
|
|
@@ -1125,15 +1125,15 @@ var b$1=class i{http=g(Xm);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
1125
1125
|
.mat-mdc-dialog-component-host {
|
|
1126
1126
|
display: contents;
|
|
1127
1127
|
}
|
|
1128
|
-
`],encapsulation:2,changeDetection:1})}return i})(),$t$1="--mat-dialog-transition-duration";function Yt(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?Ke$2(i.substring(0,i.length-2)):i.endsWith("s")?Ke$2(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var it$1=(function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i})(it$1||{}),pt$2=class pt{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new
|
|
1129
|
-
`),BE(),
|
|
1128
|
+
`],encapsulation:2,changeDetection:1})}return i})(),$t$1="--mat-dialog-transition-duration";function Yt(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?Ke$2(i.substring(0,i.length-2)):i.endsWith("s")?Ke$2(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var it$1=(function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i})(it$1||{}),pt$2=class pt{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Nr$1(1);_beforeClosed=new Nr$1(1);_result;_closeFallbackTimeout;_state=it$1.OPEN;_closeInteractionType;constructor(o,t,e){this._ref=o,this._config=t,this._containerInstance=e,this.disableClose=t.disableClose,this.id=o.id,o.addPanelClass("mat-mdc-dialog-panel"),e._animationStateChanged.pipe(Ot$1(n=>n.state==="opened"),cn$2(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),e._animationStateChanged.pipe(Ot$1(n=>n.state==="closed"),cn$2(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),o.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),Sy(this.backdropClick(),this.keydownEvents().pipe(Ot$1(n=>n.keyCode===27&&!this.disableClose&&!en$1(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),le$2(this,n.type==="keydown"?"keyboard":"mouse"));});}close(o){let t=this._config.closePredicate;t&&!t(o,this._config,this.componentInstance)||(this._result=o,this._containerInstance._animationStateChanged.pipe(Ot$1(e=>e.state==="closing"),cn$2(1)).subscribe(e=>{this._beforeClosed.next(o),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100);}),this._state=it$1.CLOSING,this._containerInstance._startExitAnimation());}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(o){let t=this._ref.config.positionStrategy;return o&&(o.left||o.right)?o.left?t.left(o.left):t.right(o.right):t.centerHorizontally(),o&&(o.top||o.bottom)?o.top?t.top(o.top):t.bottom(o.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(o="",t=""){return this._ref.updateSize(o,t),this}addPanelClass(o){return this._ref.addPanelClass(o),this}removePanelClass(o){return this._ref.removePanelClass(o),this}getState(){return this._state}_finishDialogClose(){this._state=it$1.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function le$2(i,o,t){return i._closeInteractionType=o,i.close(t)}var ce=new T$4("MatMdcDialogData"),de$2=new T$4("mat-mdc-dialog-default-options"),me$1=new T$4("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=g(he$4);return ()=>un$1(i)}}),dn$1=(()=>{class i{_defaultOptions=g(de$2,{optional:true});_scrollStrategy=g(me$1);_parentDialog=g(i,{optional:true,skipSelf:true});_idGenerator=g(pt$3);_injector=g(he$4);_dialog=g(Qt);_animationsDisabled=at$2();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new le$4;_afterOpenedAtThisLevel=new le$4;dialogConfigClass=at$1;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Ay(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(yd(void 0)));constructor(){this._dialogRefConstructor=pt$2,this._dialogContainerType=re$2,this._dialogDataToken=ce;}open(t,e){let n;e=w$1(w$1({},this._defaultOptions||new at$1),e),e.id=e.id||this._idGenerator.getId("mat-mdc-dialog-"),e.scrollStrategy=e.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(t,x$1(w$1({},e),{positionStrategy:wn$2(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||e.enterAnimationDuration?.toLocaleString()==="0"||e.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:e},{provide:f,useValue:e}]},templateContext:()=>({dialogRef:n}),providers:(s,l,c)=>(n=new this._dialogRefConstructor(s,e,c),n.updatePosition(e?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=a.componentRef,n.componentInstance=a.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(n);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next());}),n}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close();}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function he$2(i,o){if(i&1){let t=Yw();Es$1(0,"div",1)(1,"button",2),vg("click",function(){pf(t);let n=eC();return hf(n.action())}),xC(2),hl()();}if(i&2){let t=eC();BE(2),Dl(" ",t.data.action," ");}}var ue$1=["label"];function pe$2(i,o){}var fe$2=Math.pow(2,31)-1,j$1=class j{_overlayRef;instance;containerInstance;_afterDismissed=new le$4;_afterOpened=new le$4;_onAction=new le$4;_durationTimeoutId;_dismissedByAction=false;constructor(o,t){this._overlayRef=t,this.containerInstance=o,o._onExit.subscribe(()=>this._finishDismiss());}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId);}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=true,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId);}closeWithAction(){this.dismissWithAction();}_dismissAfter(o){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(o,fe$2));}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete());}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=false;}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Kt=new T$4("MatSnackBarData"),S$1=class S{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},_e$1=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=cl({type:i,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return i})(),ge$2=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=cl({type:i,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return i})(),be$1=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=cl({type:i,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return i})(),ve=(()=>{class i{snackBarRef=g(j$1);data=g(Kt);action(){this.snackBarRef.dismissWithAction();}get hasAction(){return !!this.data.action}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=vw({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(e,n){e&1&&(Es$1(0,"div",0),xC(1),hl(),jw(2,he$2,3,1,"div",1)),e&2&&(BE(),Dl(" ",n.data.message,`
|
|
1129
|
+
`),BE(),Bw(n.hasAction?2:-1));},dependencies:[tl,_e$1,ge$2,be$1],styles:[`.mat-mdc-simple-snack-bar {
|
|
1130
1130
|
display: flex;
|
|
1131
1131
|
}
|
|
1132
1132
|
.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label {
|
|
1133
1133
|
max-height: 50vh;
|
|
1134
1134
|
overflow: auto;
|
|
1135
1135
|
}
|
|
1136
|
-
`],encapsulation:2})}return i})(),ft$2="_mat-snack-bar-enter",_t$2="_mat-snack-bar-exit",ye$2=(()=>{class i extends Nt$2{_ngZone=g(G$2);_elementRef=g(
|
|
1136
|
+
`],encapsulation:2})}return i})(),ft$2="_mat-snack-bar-enter",_t$2="_mat-snack-bar-exit",ye$2=(()=>{class i extends Nt$2{_ngZone=g(G$2);_elementRef=g(Rn$3);_changeDetectorRef=g(am);_platform=g(v);_animationsDisabled=at$2();snackBarConfig=g(S$1);_document=g(U$5);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=g(he$4);_announceDelay=150;_announceTimeoutId;_destroyed=false;_portalOutlet;_onAnnounce=new le$4;_onExit=new le$4;_onEnter=new le$4;_animationState="void";_live;_label;_role;_liveElementId=g(pt$3).getId("mat-snack-bar-container-live-");constructor(){super();let t=this.snackBarConfig;t.politeness==="assertive"&&!t.announcementMessage?this._live="assertive":t.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"));}attachComponentPortal(t){this._assertNotAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),e}attachTemplatePortal(t){this._assertNotAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),e}attachDomPortal=t=>{this._assertNotAttached();let e=this._portalOutlet.attachDomPortal(t);return this._afterPortalAttached(),e};onAnimationEnd(t){t===_t$2?this._completeExit():t===ft$2&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete();}));}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?gE(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(ft$2)));},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(ft$2);},200)));}exit(){return this._destroyed?br$1(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?gE(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(_t$2)));},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(_t$2),200));}),this._onExit)}ngOnDestroy(){this._destroyed=true,this._clearFromModals(),this._completeExit();}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete();});}_afterPortalAttached(){let t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(s=>t.classList.add(s)):t.classList.add(e)),this._exposeToModals();let n=this._label.nativeElement,a="mdc-snackbar__label";n.classList.toggle(a,!n.querySelector(`.${a}`));}_exposeToModals(){let t=this._liveElementId,e=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<e.length;n++){let a=e[n],s=a.getAttribute("aria-owns");this._trackedModals.add(a),s?s.indexOf(t)===-1&&a.setAttribute("aria-owns",s+" "+t):a.setAttribute("aria-owns",t);}}_clearFromModals(){this._trackedModals.forEach(t=>{let e=t.getAttribute("aria-owns");if(e){let n=e.replace(this._liveElementId,"").trim();n.length>0?t.setAttribute("aria-owns",n):t.removeAttribute("aria-owns");}}),this._trackedModals.clear();}_assertNotAttached(){this._portalOutlet.hasAttached();}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let t=this._elementRef.nativeElement,e=t.querySelector("[aria-hidden]"),n=t.querySelector("[aria-live]");if(e&&n){let a=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(a=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),a?.focus(),this._onAnnounce.next(),this._onAnnounce.complete();}},this._announceDelay);});}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=vw({type:i,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(e&1&&wg(jo$1,7)(ue$1,7),e&2){let a;iC(a=sC())&&(n._portalOutlet=a.first),iC(a=sC())&&(n._label=a.first);}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(e,n){e&1&&vg("animationend",function(s){return n.onAnimationEnd(s.animationName)})("animationcancel",function(s){return n.onAnimationEnd(s.animationName)}),e&2&&Mg("mat-snack-bar-container-enter",n._animationState==="visible")("mat-snack-bar-container-exit",n._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!n._animationsDisabled);},features:[og],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){e&1&&(Es$1(0,"div",1)(1,"div",2,0)(3,"div",3),sg(4,pe$2,0,0,"ng-template",4),hl(),fg(5,"div"),hl()()),e&2&&(BE(5),lg("aria-live",n._live)("role",n._role)("id",n._liveElementId));},dependencies:[jo$1],styles:[`@keyframes _mat-snack-bar-enter {
|
|
1137
1137
|
from {
|
|
1138
1138
|
transform: scale(0.8);
|
|
1139
1139
|
opacity: 0;
|
|
@@ -1249,5 +1249,5 @@ var b$1=class i{http=g(Xm);base="/api/setup";getStatus(){return this.http.get(`$
|
|
|
1249
1249
|
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element {
|
|
1250
1250
|
opacity: 0.1;
|
|
1251
1251
|
}
|
|
1252
|
-
`],encapsulation:2,changeDetection:1})}return i})(),Ce$2=new T$4("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new S$1}),Mn$2=(()=>{class i{_live=g(Ei$1);_injector=g(he$4);_breakpointObserver=g(di$2);_parentSnackBar=g(i,{optional:true,skipSelf:true});_defaultConfig=g(Ce$2);_animationsDisabled=at$2();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=ve;snackBarContainerComponent=ye$2;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t;}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){let a=w$1(w$1({},this._defaultConfig),n);return a.data={message:t,action:e},a.announcementMessage===t&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss();}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss();}_attachSnackBarContainer(t,e){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=he$4.create({parent:n||this._injector,providers:[{provide:S$1,useValue:e}]}),s=new me$2(this.snackBarContainerComponent,e.viewContainerRef,a),l=t.attach(s);return l.instance.snackBarConfig=e,l.instance}_attach(t,e){let n=w$1(w$1(w$1({},new S$1),this._defaultConfig),e),a=this._createOverlay(n),s=this._attachSnackBarContainer(a,n),l=new j$1(s,a);if(t instanceof ur$1){let c=new Ft$1(t,null,{$implicit:n.data,snackBarRef:l});l.instance=s.attachTemplatePortal(c);}else {let c=this._createInjector(n,l),O=new me$2(t,void 0,c),Xt=s.attachComponentPortal(O);l.instance=Xt.instance;}return this._breakpointObserver.observe(ka.HandsetPortrait).pipe(Cd(a.detachments())).subscribe(c=>{a.overlayElement.classList.toggle(this.handsetCssClass,c.matches);}),n.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness);}),this._animateSnackBar(l,n),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear();}),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter();}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter();}_createOverlay(t){let e=new Ht;e.direction=t.direction;let n=wn$2(this._injector),a=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!a||t.horizontalPosition==="end"&&a,l=!s&&t.horizontalPosition!=="center";return s?n.left("0"):l?n.right("0"):n.centerHorizontally(),t.verticalPosition==="top"?n.top("0"):n.bottom("0"),e.positionStrategy=n,e.disableAnimations=this._animationsDisabled,Cn$2(this._injector,e)}_createInjector(t,e){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector;return he$4.create({parent:n||this._injector,providers:[{provide:j$1,useValue:e},{provide:Kt,useValue:t.data}]})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function U$2(n){n||(n=g(Ie$2));let e=new R$2(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(Cd(e))}function T$1(n,e){let t=g(he$4),o=new Mr$1(1),c=Af(()=>{let r;try{r=n();}catch(i){wo$1(()=>o.error(i));return}wo$1(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(Ie$2).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F$1(n,e){let o=!e?.manualCleanup?e?.injector?.get(Ie$2)??g(Ie$2):null,c=h(e?.equal),r;e?.requireSync?r=Ui$1({kind:0},{equal:c}):r=Ui$1({kind:1,value:e?.initialValue},{equal:c});let i,v=n.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{r.set({kind:2,error:s}),i?.();},complete:()=>{i?.();}});if(e?.requireSync&&r().kind===0)throw new m$2(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),XC(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new m$2(601,false)}},{equal:e?.equal})}function h(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}var p="primary",Qe$1=Symbol("RouteTitle"),ir=class{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function he$1(t){return new ir(t)}function er(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function En$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return er(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !er(o,t.slice(0,o.length),c)||!er(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function gt$1(t){return new Promise((n,e)=>{t.pipe(By()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Ai$1(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!V(t[e],n[e]))return false;return true}function V(t,n){let e=t?or(t):void 0,r=n?or(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Tn$1(t[i],n[i]))return false;return true}function or(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Tn$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Ei(t){return t.length>0?t[t.length-1]:null}function fe$1(t){return _y(t)?t:Rs$1(t)?Ye$2(Promise.resolve(t)):Tr$1(t)}function Nn$1(t){return _y(t)?gt$1(t):Promise.resolve(t)}var Ti$1={exact:Dn$1,subset:_n$1},Mn$1={exact:Ni$1,subset:Mi$1,ignored:()=>true},Rr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ze$1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Sr(t,n,e){let r=t instanceof T?t:n.parseUrl(t);return XC(()=>ar(n.lastSuccessfulNavigation()?.finalUrl??new T,r,w$1(w$1({},ze$1),e)))}function ar(t,n,e){return Ti$1[e.paths](t.root,n.root,e.matrixParams)&&Mn$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ni$1(t,n){return V(t,n)}function Dn$1(t,n,e){if(!le$1(t.segments,n.segments)||!dt$1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!Dn$1(t.children[r],n.children[r],e))return false;return true}function Mi$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Tn$1(t[e],n[e]))}function _n$1(t,n,e){return Un$1(t,n,n.segments,e)}function Un$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!le$1(i,e)||n.hasChildren()||!dt$1(i,e,r))}else if(t.segments.length===e.length){if(!le$1(t.segments,e)||!dt$1(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!_n$1(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !le$1(t.segments,i)||!dt$1(t.segments,i,r)||!t.children[p]?false:Un$1(t.children[p],n,o,r)}}function dt$1(t,n,e){return n.every((r,i)=>Mn$1[e](t[i].parameters,r.parameters))}var T=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){return Ui.serialize(this)}},m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft$1(this)}},ee$1=class ee{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=he$1(this.parameters),this._parameterMap}toString(){return Pn$1(this)}};function Di$1(t,n){return le$1(t,n)&&t.every((e,r)=>V(e.parameters,n[r].parameters))}function le$1(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function _i$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)));}),e}var ne=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>new Y})}return t})(),Y=class{parse(n){let e=new cr(n);return new T(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${je$1(n.root,true)}`,r=Li(n.queryParams),i=typeof n.fragment=="string"?`#${Oi(n.fragment)}`:"";return `${e}${r}${i}`}},Ui=new Y;function ft$1(t){return t.segments.map(n=>Pn$1(n)).join("/")}function je$1(t,n){if(!t.hasChildren())return ft$1(t);if(n){let e=t.children[p]?je$1(t.children[p],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${je$1(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=_i$1(t,(r,i)=>i===p?[je$1(t.children[p],false)]:[`${i}:${je$1(r,false)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${ft$1(t)}/${e[0]}`:`${ft$1(t)}/(${e.join("//")})`}}function On$1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lt$1(t){return On$1(t).replace(/%3B/gi,";")}function Oi(t){return encodeURI(t)}function sr(t){return On$1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pt$1(t){return decodeURIComponent(t)}function Rn$1(t){return pt$1(t.replace(/\+/g,"%20"))}function Pn$1(t){return `${sr(t.path)}${Pi$1(t.parameters)}`}function Pi$1(t){return Object.entries(t).map(([n,e])=>`;${sr(n)}=${sr(e)}`).join("")}function Li(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${lt$1(e)}=${lt$1(i)}`).join("&"):`${lt$1(e)}=${lt$1(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ji=/^[^\/()?;#]+/;function tr(t){let n=t.match(ji);return n?n[0]:""}var xi=/^[^\/()?;=#]+/;function ki$1(t){let n=t.match(xi);return n?n[0]:""}var $i=/^[^=?&#]+/;function zi(t){let n=t.match($i);return n?n[0]:""}var Hi=/^[^&#]+/;function Fi$1(t){let n=t.match(Hi);return n?n[0]:""}var cr=class{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new m$2(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new m(e,r)),i}parseSegment(){let n=tr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new m$2(4009,false);return this.capture(n),new ee$1(pt$1(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ki$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=tr(this.remaining);i&&(r=i,this.capture(r));}n[pt$1(e)]=pt$1(r);}parseQueryParam(n){let e=zi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Fi$1(this.remaining);a&&(r=a,this.capture(r));}let i=Rn$1(e),o=Rn$1(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=tr(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new m$2(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p);let c=this.parseChildren(e+1);r[a??p]=Object.keys(c).length===1&&c[p]?c[p]:new m([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new m$2(4011,false)}};function Ln$1(t){return t.segments.length>0?new m([],{[p]:t}):t}function jn$1(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=jn$1(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m(t.segments,n);return qi(e)}function qi(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new m(t.segments.concat(n.segments),n.children)}return t}function te$1(t){return t instanceof T}function xn$1(t,n,e=null,r=null,i=new Y){let o=kn$1(t);return $n$1(o,n,e,r,i)}function kn$1(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Ln$1(r);return n??i}function $n$1(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return rr(o,o,o,e,r,i);let a=Bi(n);if(a.toRoot())return rr(o,o,new m([],{}),e,r,i);let c=Vi(a,o,t),s=c.processChildren?ke$1(c.segmentGroup,c.index,a.commands):Hn$1(c.segmentGroup,c.index,a.commands);return rr(o,c.segmentGroup,s,e,r,i)}function vt$1(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function He(t){return typeof t=="object"&&t!=null&&t.outlets}function Sn$1(t,n,e){t||="\u0275";let r=new T;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function rr(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(v=>Sn$1(u,v,o)):Sn$1(u,d,o);let c;t===n?c=e:c=zn$1(t,n,e);let s=Ln$1(jn$1(c));return new T(s,a,i)}function zn$1(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=zn$1(o,n,e);}),new m(t.segments,r)}var mt$1=class mt{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&vt$1(r[0]))throw new m$2(4003,false);let i=r.find(He);if(i&&i!==Ei(r))throw new m$2(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Bi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new mt$1(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new mt$1(e,n,r)}var Re$1=class Re{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Vi(t,n,e){if(t.isAbsolute)return new Re$1(n,true,0);if(!e)return new Re$1(n,false,NaN);if(e.parent===null)return new Re$1(e,true,0);let r=vt$1(t.commands[0])?0:1,i=e.segments.length-1+r;return Gi(e,i,t.numberOfDoubleDots)}function Gi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new m$2(4005,false);i=r.segments.length;}return new Re$1(r,false,i-o)}function Wi(t){return He(t[0])?t[0].outlets:{[p]:t}}function Hn$1(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return ke$1(t,n,e);let r=Qi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new m(t.segments.slice(r.pathIndex),t.children),ke$1(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?ur(t,n,e):r.match?ke$1(t,0,i):ur(t,n,e)}function ke$1(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=Wi(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ke$1(t.children[p],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Hn$1(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m(t.segments,i)}}function Qi(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(He(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!wn$1(s,u,a))return o;r+=2;}else {if(!wn$1(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function ur(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(He(o)){let s=Ki(o.outlets);return new m(r,s)}if(i===0&&vt$1(e[0])){let s=t.segments[n];r.push(new ee$1(s.path,Cn$1(e[0]))),i++;continue}let a=He(o)?o.outlets[p]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&vt$1(c)?(r.push(new ee$1(a,Cn$1(c))),i+=2):(r.push(new ee$1(a,{})),i++);}return new m(r,{})}function Ki(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=ur(new m([],{}),0,r));}),n}function Cn$1(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function wn$1(t,n,e){return t==e.path&&V(n,e.parameters)}var Se="imperative",S=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S||{}),O=class{id;url;constructor(n,e){this.id=n,this.url=e;}},re$1=class re extends O{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},P=class extends O{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},A=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(A||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),$$1=class $ extends O{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Fn$1(t){return t instanceof $$1&&(t.code===A.Redirect||t.code===A.SupersededByNewNavigation)}var G=class extends O{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},de$1=class de extends O{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fe$1=class Fe extends O{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yt$1=class yt extends O{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rt=class extends O{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},St$1=class St extends O{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ct$1=class Ct extends O{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wt$1=class wt{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},bt$1=class bt{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},It=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At$1=class At{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Et$1=class Et{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tt$1=class Tt{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},be=class{routerEvent;position;anchor;scrollBehavior;type=S.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ie$1=class Ie{},qe$1=class qe{},Ae$1=class Ae{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Yi(t){return !(t instanceof Ie$1)&&!(t instanceof Ae$1)&&!(t instanceof qe$1)}var Nt$1=class Nt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new pe$1(this.rootInjector);}},pe$1=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Nt$1(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(b$2(pe$5))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mt$1=class Mt{_root;constructor(n){this._root=n;}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=lr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=lr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=hr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return hr(n,this._root).map(e=>e.value)}};function lr(t,n){if(t===n.value)return n;for(let e of n.children){let r=lr(t,e);if(r)return r}return null}function hr(t,n){if(t===n.value)return [n];for(let e of n.children){let r=hr(t,e);if(r.length)return r.unshift(n),r}return []}var U$1=class U{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function ye$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Be$1=class Be extends Mt$1{snapshot;constructor(n,e){super(n),this.snapshot=e,wr(this,n);}toString(){return this.snapshot.toString()}};function qn$1(t,n){let e=Zi(t,n),r=new Cr$1([new ee$1("",{})]),i=new Cr$1({}),o=new Cr$1({}),a=new Cr$1({}),c=new Cr$1(""),s=new W$1(r,i,a,c,o,p,t,e.root);return s.snapshot=e.root,new Be$1(new U$1(s,[]),e)}function Zi(t,n){let e={},r={},i={},a=new Ee([],e,i,"",r,p,t,null,{},n);return new Ve$1("",new U$1(a,[]))}var W$1=class W{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(ne$3(u=>u[Qe$1]))??Tr$1(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o;}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ne$3(n=>he$1(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ne$3(n=>he$1(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Ji="always";function Cr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:w$1(w$1({},n.params),t.params),data:w$1(w$1({},n.data),t.data),resolve:w$1(w$1(w$1(w$1({},t.data),n.data),i?.data),t._resolvedData)}:r={params:w$1({},t.params),data:w$1({},t.data),resolve:w$1(w$1({},t.data),t._resolvedData??{})},i&&Vn$1(i)&&(r.resolve[Qe$1]=i.title),r}var Ee=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Qe$1]}constructor(n,e,r,i,o,a,c,s,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=d;}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=he$1(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},Ve$1=class Ve extends Mt$1{url;constructor(n,e){super(e),this.url=n,wr(this,e);}toString(){return Bn$1(this._root)}};function wr(t,n){n.value._routerState=t,n.children.forEach(e=>wr(t,e));}function Bn$1(t){let n=t.children.length>0?` { ${t.children.map(Bn$1).join(", ")} } `:"";return `${t.value}${n}`}function nr(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,V(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),V(n.params,e.params)||t.paramsSubject.next(e.params),Ai$1(n.url,e.url)||t.urlSubject.next(e.url),V(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function dr(t,n){let e=V(t.params,n.params)&&Di$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||dr(t.parent,n.parent))}function Vn$1(t){return typeof t.title=="string"||t.title===null}var Gn$1=new T$4(""),br=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new yt$3;deactivateEvents=new yt$3;attachEvents=new yt$3;detachEvents=new yt$3;routerOutletData=_B();parentContexts=g(pe$1);location=g(hr$1);changeDetector=g(sm);inputBinder=g(Ke$1,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new m$2(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$2(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$2(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new m$2(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new fr(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=al({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Du]})}return t})(),fr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===W$1?this.route:n===pe$1?this.childContexts:n===Gn$1?this.outletData:this.parent.get(n,e)}},Ke$1=new T$4(""),Wn$1=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=wy([this.options.queryParams?r.queryParams:Tr$1({}),r.params,r.data]).pipe(fa(([o,a,c],s)=>(c=w$1(w$1(w$1({},o),a),c),s===0?Tr$1(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=PB(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let d=o[u];(d!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,d);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){FI();};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),Ir=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=yw({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&lg(0,"router-outlet");},dependencies:[br],encapsulation:2,changeDetection:1})}return t})();function Ar(t){let n=t.children&&t.children.map(Ar),e=n?x$1(w$1({},t),{children:n}):w$1({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Ir),e}function Xi(t,n,e){let r=new Set,i=Ge(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new Be$1(i,n)}}function Ge(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=eo(t,n,e,r);return new U$1(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>Ge(t,s,void 0,r)),c}}let i=to(n.value);r.add(i);let o=n.children.map(a=>Ge(t,a,void 0,r));return new U$1(i,o)}}function eo(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Ge(t,i,o,r);return Ge(t,i,void 0,r)})}function to(t){return new W$1(new Cr$1(t.url),new Cr$1(t.params),new Cr$1(t.queryParams),new Cr$1(t.fragment),new Cr$1(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},Qn$1="ngNavigationCancelingError";function Dt$1(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=te$1(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Kn$1(false,A.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Kn$1(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[Qn$1]=true,e.cancellationCode=n,e}function ro(t){return Yn$1(t)&&te$1(t.url)}function Yn$1(t){return !!t&&t[Qn$1]}var pr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),nr(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Tt$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new At$1(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(nr(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),nr(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},_t$1=class _t{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Ce$1=class Ce{component;route;constructor(n,e){this.component=n,this.route=e;}};function no(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function io(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Me$1(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!ev(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye$1(n);return t.children.forEach(a=>{oo(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>$e$1(c,e.getContext(a),i)),i}function oo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=ao(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new _t$1(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?xe(t,n,c?c.children:null,r,i):xe(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce$1(c.outlet.component,a));}else a&&$e$1(n,c,i),i.canActivateChecks.push(new _t$1(r)),o.component?xe(t,null,c?c.children:null,r,i):xe(t,null,e,r,i);return i}function ao(t,n,e){if(typeof e=="function")return Zn$3(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !le$1(t.url,n.url);case "pathParamsOrQueryParamsChange":return !le$1(t.url,n.url)||!V(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !dr(t,n)||!V(t.queryParams,n.queryParams);default:return !dr(t,n)}}function $e$1(t,n,e){let r=ye$1(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?$e$1(a,n.children.getContext(o),e):$e$1(a,null,e):$e$1(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce$1(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce$1(null,i)):e.canDeactivateChecks.push(new Ce$1(null,i));}function Ye(t){return typeof t=="function"}function so(t){return typeof t=="boolean"}function co(t){return t&&Ye(t.canLoad)}function uo(t){return t&&Ye(t.canActivate)}function lo(t){return t&&Ye(t.canActivateChild)}function ho(t){return t&&Ye(t.canDeactivate)}function fo(t){return t&&Ye(t.canMatch)}function Zn$1(t){return t instanceof on$2||t?.name==="EmptyError"}var ht$1=Symbol("INITIAL_VALUE");function Ne$1(){return fa(t=>wy(t.map(n=>n.pipe(an$2(1),md(ht$1)))).pipe(ne$3(n=>{for(let e of n)if(e!==true){if(e===ht$1)return ht$1;if(e===false||po(e))return e}return true}),Ot$1(n=>n!==ht$1),an$2(1)))}function po(t){return te$1(t)||t instanceof Te}function Jn$1(t){return t.aborted?Tr$1(void 0).pipe(an$2(1)):new R$2(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Xn$1(t){return Cd(Jn$1(t))}function go(t){return pt$4(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?Tr$1(x$1(w$1({},n),{guardsResult:true})):vo(o,e,r).pipe(pt$4(a=>a&&so(a)?mo(e,i,t):Tr$1(a)),ne$3(a=>x$1(w$1({},n),{guardsResult:a})))})}function vo(t,n,e){return Ye$2(t).pipe(pt$4(r=>wo(r.component,r.route,e,n)),By(r=>r!==true,true))}function mo(t,n,e){return Ye$2(n).pipe(li$3(r=>kt$1(Ro(r.route.parent,e),yo(r.route,e),Co(t,r.path),So(t,r.route))),By(r=>r!==true,true))}function yo(t,n){return t!==null&&n&&n(new Et$1(t)),Tr$1(true)}function Ro(t,n){return t!==null&&n&&n(new It(t)),Tr$1(true)}function So(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return Tr$1(true);let r=e.map(i=>Ay(()=>{let o=n._environmentInjector,a=Me$1(i,o),c=uo(a)?a.canActivate(n,t):Zn$3(o,()=>a(n,t));return fe$1(c).pipe(By())}));return Tr$1(r).pipe(Ne$1())}function Co(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>io(o)).filter(o=>o!==null).map(o=>Ay(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$1(c,s),d=lo(u)?u.canActivateChild(e,t):Zn$3(s,()=>u(e,t));return fe$1(d).pipe(By())});return Tr$1(a).pipe(Ne$1())}));return Tr$1(i).pipe(Ne$1())}function wo(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return Tr$1(true);let o=i.map(a=>{let c=n._environmentInjector,s=Me$1(a,c),u=ho(s)?s.canDeactivate(t,n,e,r):Zn$3(c,()=>s(t,n,e,r));return fe$1(u).pipe(By())});return Tr$1(o).pipe(Ne$1())}function bo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return Tr$1(true);let a=o.map(c=>{let s=Me$1(c,t),u=co(s)?s.canLoad(n,e):Zn$3(t,()=>s(n,e)),d=fe$1(u);return i?d.pipe(Xn$1(i)):d});return Tr$1(a).pipe(Ne$1(),ei$1(r))}function ei$1(t){return ry(yd(n=>{if(typeof n!="boolean")throw Dt$1(t,n)}),ne$3(n=>n===true))}function Io(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return Tr$1(true);let c=a.map(s=>{let u=Me$1(s,t),d=fo(u)?u.canMatch(n,e,i):Zn$3(t,()=>u(n,e,i));return fe$1(d).pipe(Xn$1(o))});return Tr$1(c).pipe(Ne$1(),ei$1(r))}var K$1=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},We=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Ao(t){throw new m$2(4e3,false)}function Eo(t){throw Kn$1(false,A.GuardRejected)}var gr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){return B$3(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw Ao(`${n.redirectTo}`);i=i.children[p];}})}applyRedirectCommands(n,e,r,i,o){return B$3(this,null,function*(){let a=yield To(e,i,o);if(a instanceof T)throw new We(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new We(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new T(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new m$2(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function To(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return gt$1(fe$1(Zn$3(e,()=>r(n))))}function No(t,n){return t.providers&&!t._injector&&(t._injector=Jh(t.providers,n,`Route: ${t.path}`)),t._injector??n}function H(t){return t.outlet||p}function Mo(t,n){let e=t.filter(r=>H(r)===n);return e.push(...t.filter(r=>H(r)!==n)),e}var vr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ti$1(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Do(t,n,e,r,i,o,a){let c=ri$1(t,n,e);if(!c.matched)return Tr$1(c);let s=ti$1(o(c));return r=No(n,r),Io(r,n,e,i,s,a).pipe(ne$3(u=>u===true?c:w$1({},vr)))}function ri$1(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?w$1({},vr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||En$1)(e,t,n);if(!i)return w$1({},vr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?w$1(w$1({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function bn(t,n,e,r,i){return e.length>0&&Oo(t,e,r,i)?{segmentGroup:new m(n,Uo(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&Po(t,e,r)?{segmentGroup:new m(t.segments,_o(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function _o(t,n,e,r){let i={};for(let o of e)if(Ot(t,n,o)&&!r[H(o)]){let a=new m([],{});i[H(o)]=a;}return w$1(w$1({},r),i)}function Uo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&H(r)!==p){let i=new m([],{});e[H(r)]=i;}return e}function Oo(t,n,e,r){return e.some(i=>!Ot(t,n,i)||!(H(i)!==p)?false:!(r!==void 0&&H(i)===r))}function Po(t,n,e){return e.some(r=>Ot(t,n,r))}function Ot(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function Lo(t,n,e){return n.length===0&&!t.children[e]}var mr=class{};function jo(t,n,e,r,i,o,a,c){return B$3(this,null,function*(){return new yr(t,n,e,r,i,a,o,c).recognize()})}var xo=31,yr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new gr(this.urlSerializer,this.urlTree);}noMatchError(n){return new m$2(4002,`'${n.segmentGroup}'`)}recognize(){return B$3(this,null,function*(){let n=bn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new U$1(r,e),o=new Ve$1("",i),a=xn$1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return B$3(this,null,function*(){let e=new Ee([],Object.freeze({}),Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof We)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof K$1?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return B$3(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof U$1?[a]:[]})}processChildren(n,e,r,i){return B$3(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],d=Mo(e,s),v=yield this.processSegmentGroup(n,d,u,s,i);a.push(...v);}let c=ni$1(a);return ko(c),c})}processSegment(n,e,r,i,o,a,c){return B$3(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof K$1||Zn$1(u))continue;throw u}if(Lo(r,i,o))return new mr;throw new K$1(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return B$3(this,null,function*(){if(H(r)!==a&&(a===p||!Ot(i,o,r)))throw new K$1(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new K$1(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return B$3(this,null,function*(){let{matched:s,parameters:u,consumedSegments:d,positionalParamSegments:v,remainingSegments:g}=ri$1(e,i,o);if(!s)throw new K$1(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xo&&(this.allowRedirects=false));let N=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let z=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,v,ti$1(N),n),oe=yield this.applyRedirects.lineralizeSegments(i,z);return this.processSegment(n,r,e,oe.concat(g),a,false,c)})}createSnapshot(n,e,r,i,o){let a=new Ee(r,i,Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,zo(e),H(e),e.component??e._loadedComponent??null,e,Ho(e),n),c=Cr(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}matchSegmentAgainstRoute(n,e,r,i,o,a){return B$3(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=ae=>this.createSnapshot(n,r,ae.consumedSegments,ae.parameters,a),s=yield gt$1(Do(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new K$1(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:N}=s,z=this.createSnapshot(n,r,g,v,a),{segmentGroup:oe,slicedSegments:De}=bn(e,g,N,u,o);if(De.length===0&&oe.hasChildren()){let ae=yield this.processChildren(d,u,oe,z);return new U$1(z,ae)}if(u.length===0&&De.length===0)return new U$1(z,[]);let zt=H(r)===o,Xe=yield this.processSegment(d,u,oe,De,zt?p:o,true,z);return new U$1(z,Xe instanceof U$1?[Xe]:[])})}getChildConfig(n,e,r){return B$3(this,null,function*(){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield gt$1(bo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Eo()}return {routes:[],injector:n}})}};function ko(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet));}function $o(t){let n=t.value.routeConfig;return n&&n.path===""}function ni$1(t){let n=[],e=new Set;for(let r of t){if(!$o(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=ni$1(r.children);n.push(new U$1(r.value,i));}return n.filter(r=>!e.has(r))}function zo(t){return t.data||{}}function Ho(t){return t.resolve||{}}function Fo(t,n,e,r,i,o,a){return pt$4(c=>B$3(null,null,function*(){let{state:s,tree:u}=yield jo(t,n,e,r,c.extractedUrl,i,o,a);return x$1(w$1({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function qo(t){return pt$4(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return Tr$1(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of ii$1(c))o.add(s);let a=0;return Ye$2(o).pipe(li$3(c=>i.has(c)?Bo(c,e,t):(c.data=Cr(c,c.parent,t).resolve,Tr$1(void 0))),yd(()=>a++),Vy(1),pt$4(c=>a===o.size?Tr$1(n):nn$2))})}function ii$1(t){let n=t.children.map(e=>ii$1(e)).flat();return [t,...n]}function Bo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Vn$1(r)&&(i[Qe$1]=r.title),Ay(()=>(t.data=Cr(t,t.parent,e).resolve,Vo(i,t,n).pipe(ne$3(o=>(t._resolvedData=o,t.data=w$1(w$1({},t.data),o),null)))))}function Vo(t,n,e){let r=or(t);if(r.length===0)return Tr$1({});let i={};return Ye$2(r).pipe(pt$4(o=>Go(t[o],n,e).pipe(By(),yd(a=>{if(a instanceof Te)throw Dt$1(new Y,a);i[o]=a;}))),Vy(1),ne$3(()=>i),da(o=>Zn$1(o)?nn$2:Sy(o)))}function Go(t,n,e){let r=n._environmentInjector,i=Me$1(t,r),o=i.resolve?i.resolve(n,e):Zn$3(r,()=>i(n,e));return fe$1(o)}function In$1(t){return fa(n=>{let e=t(n);return e?Ye$2(e).pipe(ne$3(()=>n)):Tr$1(n)})}var Er=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Qe$1]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(oi$1)})}return t})(),oi$1=(()=>{class t extends Er{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(b$2(kH))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ie=new T$4("",{factory:()=>({})}),ge$1=new T$4(""),Pt$1=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(YC);loadComponent(e,r){return B$3(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=B$3(this,null,function*(){try{let o=yield Nn$1(Zn$3(e,()=>r.loadComponent())),a=yield si$1(bB(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=B$3(this,null,function*(){try{let o=yield ai$1(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function ai$1(t,n,e,r){return B$3(this,null,function*(){let i=yield Nn$1(Zn$3(e,()=>t.loadChildren())),o=yield si$1(bB(i)),a;o instanceof Xh||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,d;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,d=a,s=c.get(ge$1,[],{optional:true,self:true}).flat()),{routes:s.map(Ar),injector:c,factory:d}})}function si$1(t){return B$3(this,null,function*(){return t})}var Lt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(Wo)})}return t})(),Wo=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),Tr=new T$4(""),Nr=new T$4("");function ci$1(t,n,e){let r=t.get(Nr),i=t.get(U$5);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u;}),c=i.startViewTransition(()=>(o(),Qo(t)));c.updateCallbackDone.catch(u=>{}),c.ready.catch(u=>{}),c.finished.catch(u=>{});let{onViewTransitionCreated:s}=r;return s&&Zn$3(t,()=>s({transition:c,from:n,to:e})),a}function Qo(t){return new Promise(n=>{gE({read:()=>setTimeout(n)},{injector:t});})}var ui$1=new T$4(""),Ko=()=>{},Mr=new T$4(""),jt=(()=>{class t{currentNavigation=Ui$1(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Ui$1(null);events=new le$4;transitionAbortWithErrorSubject=new le$4;configLoader=g(Pt$1);environmentInjector=g(pe$5);destroyRef=g(Ie$2);urlSerializer=g(ne);rootContexts=g(pe$1);location=g(gm);inputBindingEnabled=g(Ke$1,{optional:true})!==null;titleStrategy=g(Er);options=g(ie,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Ji;urlHandlingStrategy=g(Lt);createViewTransition=g(Tr,{optional:true});navigationErrorHandler=g(Mr,{optional:true});activatedRouteInjectorFeature=g(ui$1,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Tr$1(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new wt$1(i)),r=i=>this.events.next(new bt$1(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;wo$1(()=>{this.transitions?.next(x$1(w$1({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new Cr$1(null),this.transitions.pipe(Ot$1(r=>r!==null),fa(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return Tr$1(r).pipe(fa(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),nn$2;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?x$1(w$1({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&v!=="reload")return this.events.next(new G(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(false),nn$2;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Tr$1(s).pipe(fa(g=>(this.events.next(new re$1(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?nn$2:Promise.resolve(g))),Fo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),yd(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(N=>(N.finalUrl=g.urlAfterRedirects,N)),this.events.next(new qe$1);}),fa(g=>Ye$2(r.routesRecognizeHandler.deferredHandle??Tr$1(void 0)).pipe(ne$3(()=>g))),yd(()=>{let g=new Fe$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:N,source:z,restoredState:oe,extras:De}=s,zt=new re$1(g,this.urlSerializer.serialize(N),z,oe);this.events.next(zt);let Xe=qn$1(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=x$1(w$1({},s),{targetSnapshot:Xe,urlAfterRedirects:N,extras:x$1(w$1({},De),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(ae=>(ae.finalUrl=N,ae)),Tr$1(r)}else return this.events.next(new G(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(false),nn$2}),ne$3(s=>{let u=new yt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=x$1(w$1({},s),{guards:no(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),go(s=>this.events.next(s)),fa(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Dt$1(this.urlSerializer,s.guardsResult);let u=new Rt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return nn$2;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",A.GuardRejected),nn$2;if(s.guards.canActivateChecks.length===0)return Tr$1(s);let d=new St$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(d),!c())return nn$2;let v=false;return Tr$1(s).pipe(qo(this.paramsInheritanceStrategy),yd({next:()=>{v=true;let g=new Ct$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",A.NoDataFromResolver);}}))}),In$1(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let N=v._environmentInjector;g.push(this.configLoader.loadComponent(N,v.routeConfig).then(z=>{v.component=z;}));}for(let N of v.children)g.push(...u(N));return g},d=u(s.targetSnapshot.root);return d.length===0?Tr$1(s):Ye$2(Promise.all(d).then(()=>s))}),fa(s=>{let{newlyCreatedRoutes:u,state:d}=Xi(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=x$1(w$1({},s),{targetRouterState:d,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=d,v)),Tr$1(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),In$1(()=>this.afterPreactivation()),fa(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,d=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return d?Ye$2(d).pipe(ne$3(()=>r)):Tr$1(r)}),an$2(1),fa(s=>{i=false,this.events.next(new Ie$1);let u=r.beforeActivateHandler.deferredHandle;return u?Ye$2(u.then(()=>s)):Tr$1(s)}),yd(s=>{new pr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Ko,u)),this.lastSuccessfulNavigation.set(wo$1(this.currentNavigation)),this.events.next(new P(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Cd(Jn$1(a.signal).pipe(Ot$1(()=>!o&&i),yd(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",A.Aborted);}))),yd({complete:()=>{o=true;}}),Cd(this.transitionAbortWithErrorSubject.pipe(yd(s=>{throw s}))),ci$3(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),da(s=>{if(o=true,An$1(r),this.destroyed)return r.resolve(false),nn$2;if(Yn$1(s))this.events.next(new $$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),ro(s)?this.events.next(new Ae$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new de$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let d=Zn$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Te){let{message:v,cancellationCode:g}=Dt$1(this.urlSerializer,d);this.events.next(new $$1(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new Ae$1(d.redirectTo,d.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(d);}}return nn$2}))}))}cancelNavigationTransition(e,r,i){An$1(e);let o=new $$1(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=wo$1(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Yo(t){return t!==Se}function An$1(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var li$1=new T$4("");var hi$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(Zo)})}return t})(),Ut=class{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},Zo=(()=>{class t extends Ut{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),xt=(()=>{class t{urlSerializer=g(ne);options=g(ie,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g(gm);urlHandlingStrategy=g(Lt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new T;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof T?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=qn$1(null,g(pe$5));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(Jo)})}return t})(),Jo=(()=>{class t extends xt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof re$1?this.updateStateMemento():e instanceof G?this.commitTransition(r):e instanceof Fe$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie$1?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $$1&&!Fn$1(e)?this.restoreHistory(r):e instanceof de$1?this.restoreHistory(r,true):e instanceof P&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=w$1(w$1({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=w$1(w$1({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?w$1({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):w$1({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function kt(t,n){t.events.pipe(Ot$1(e=>e instanceof P||e instanceof $$1||e instanceof de$1||e instanceof G),ne$3(e=>e instanceof P||e instanceof G?0:(e instanceof $$1?e.code===A.Redirect||e.code===A.SupersededByNewNavigation:false)?2:1),Ot$1(e=>e!==2),an$2(1)).subscribe(()=>{n();});}var F=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=g(sg);stateManager=g(xt);options=g(ie,{optional:true})||{};pendingTasks=g(qt$1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(jt);urlSerializer=g(ne);location=g(gm);urlHandlingStrategy=g(Lt);injector=g(pe$5);_events=new le$4;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=g(hi$1);injectorCleanup=g(li$1,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(ge$1,{optional:true})?.flat()??[];componentInputBindingEnabled=!!g(Ke$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new ee$5;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=wo$1(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof $$1&&r.code!==A.Redirect&&r.code!==A.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof P)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=w$1({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Yo(i.source)},a);this.scheduleNavigation(c,Se,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Yi(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Se,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=x$1(w$1({},o),{browserUrl:e})),i){let u=w$1({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(ot$2)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return wo$1(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ar),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":d=w$1(w$1({},this.currentUrlTree.queryParams),o);break;case "preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null;}d!==null&&(d=this.removeEmptyProps(d));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=kn$1(g);}catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return $n$1(v,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=te$1(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se,null,r)}navigate(e,r={skipLocationChange:false}){return Xo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(Xe(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=w$1({},Rr):r===false?i=w$1({},ze$1):i=w$1(w$1({},ze$1),r),te$1(e))return ar(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ar(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let d=this.pendingTasks.add();return kt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Xo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new m$2(4008,false)}var ea=(()=>{class t{router=g(F);stateManager=g(xt);fragment=Ui$1("");queryParams=Ui$1({});path=Ui$1("");serializer=g(ne);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof P&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new T(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),$t=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g(new Yg("href"),{optional:true});reactiveHref=eT(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return wo$1(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return wo$1(this._target)}_target=Ui$1(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return wo$1(this._queryParams)}_queryParams=Ui$1(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return wo$1(this._fragment)}_fragment=Ui$1(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return wo$1(this._queryParamsHandling)}_queryParamsHandling=Ui$1(void 0);set state(e){this._state.set(e);}get state(){return wo$1(this._state)}_state=Ui$1(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return wo$1(this._info)}_info=Ui$1(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return wo$1(this._relativeTo)}_relativeTo=Ui$1(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return wo$1(this._preserveFragment)}_preserveFragment=Ui$1(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return wo$1(this._skipLocationChange)}_skipLocationChange=Ui$1(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return wo$1(this._replaceUrl)}_replaceUrl=Ui$1(false);browserUrl=_B(void 0);isAnchorElement;onChanges=new le$4;applicationErrorHandler=g(ot$2);options=g(ie,{optional:true});reactiveRouterState=g(ea);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=Ui$1(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te$1(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=w$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(d=>{this.applicationErrorHandler(d);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=XC(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:te$1(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return wo$1(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(ze$2(F),ze$2(W$1),Iu("tabindex"),ze$2(Yu),ze$2(An$3),ze$2(vr$1))};static \u0275dir=al({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&mg("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&cg("href",i.reactiveHref(),XD)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",RT],skipLocationChange:[2,"skipLocationChange","skipLocationChange",RT],replaceUrl:[2,"replaceUrl","replaceUrl",RT],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Du]})}return t})(),ta=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new yt$3;link=g($t,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof P&&this.update();});}ngAfterContentInit(){Tr$1(this.links.changes,Tr$1(null)).pipe(br$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Ye$2(e).pipe(br$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=ra(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?w$1({},Rr):w$1({},ze$1);return i=>{let o=i.urlTree;return o?wo$1(Sr(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(ze$2(F),ze$2(An$3),ze$2(Yu),ze$2(sm))};static \u0275dir=al({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Dg(o,$t,5),r&2){let a;oC(a=iC())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Du]})}return t})();function ra(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ze=class{};var di$1=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o;}setUpPreloading(){this.subscription=this.router.events.pipe(Ot$1(e=>e instanceof P),li$3(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Jh(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes));}return Ye$2(i).pipe(br$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return Tr$1(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ye$2(this.loader.loadChildren(e,r)):i=Tr$1(null);let o=i.pipe(pt$4(a=>a===null?Tr$1(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return Ye$2([o,a]).pipe(br$1())}else return o})}static \u0275fac=function(r){return new(r||t)(b$2(F),b$2(pe$5),b$2(Ze),b$2(Pt$1))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fi$1=new T$4(""),na=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se;restoredId=0;store={};isHydrating=g(vD,{optional:true})??false;urlSerializer=g(ne);zone=g(G$2);viewportScroller=g(a2);transitions=g(jt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g(mr$1).whenStable().then(()=>{this.isHydrating=false;});}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof re$1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof P?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof G&&e.code===we.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof be)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=wo$1(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B$3(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o);}),this.zone.run(()=>{this.transitions.events.next(new be(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){FI();};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})();function ia(t,...n){return wt$3([{provide:ge$1,multi:true,useValue:t},{provide:W$1,useFactory:pi$1},{provide:dl,multi:true,useFactory:gi$1},n.map(e=>e.\u0275providers)])}function pi$1(){return g(F).routerState.root}function Je(t,n){return {\u0275kind:t,\u0275providers:n}}function gi$1(){let t=g(he$4);return n=>{let e=t.get(mr$1);if(n!==e.components[0])return;let r=t.get(F),i=t.get(vi$1);t.get(_r)===1&&r.initialNavigation(),t.get(Ri$1,null,{optional:true})?.setUpPreloading(),t.get(fi$1,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var vi$1=new T$4("",{factory:()=>new le$4}),_r=new T$4("",{factory:()=>1});function mi$1(){let t=[{provide:zp,useValue:true},{provide:_r,useValue:0},ww(()=>{let n=g(he$4);return n.get(FT,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(F),o=n.get(vi$1);kt(i,()=>{r(true);}),n.get(jt).afterPreactivation=()=>(r(true),o.closed?Tr$1(void 0):o),i.initialNavigation();}))})];return Je(2,t)}function yi$1(){let t=[ww(()=>{g(F).setUpLocationChangeListener();}),{provide:_r,useValue:2}];return Je(3,t)}var Ri$1=new T$4("");function Si$1(t){return Je(0,[{provide:Ri$1,useExisting:di$1},{provide:Ze,useExisting:t}])}function Ci$1(t={}){return Je(8,[{provide:Ke$1,useFactory:()=>new Wn$1(t)}])}function wi$1(t){ut$2("NgRouterViewTransitions");let n=[{provide:Tr,useValue:ci$1},{provide:Nr,useValue:w$1({skipNextTransition:false},t)}];return Je(9,n)}var bi$1=[gm,{provide:ne,useClass:Y},F,pe$1,{provide:W$1,useFactory:pi$1},Pt$1],oa=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[bi$1,[],{provide:ge$1,multi:true,useValue:e},[],r?.errorHandler?{provide:Mr,useValue:r.errorHandler}:[],{provide:ie,useValue:r||{}},r?.useHash?sa():ca(),aa(),r?.preloadingStrategy?Si$1(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ua(r):[],r?.bindToComponentInputs?Ci$1(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?wi$1().\u0275providers:[],la()]}}static forChild(e){return {ngModule:t,providers:[{provide:ge$1,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Os$2({type:t});static \u0275inj=Br({})}return t})();function aa(){return {provide:fi$1,useFactory:()=>{let t=g(a2),n=g(ie);return n.scrollOffset&&t.setOffset(n.scrollOffset),new na(n)}}}function sa(){return {provide:vr$1,useClass:BT}}function ca(){return {provide:vr$1,useClass:hm}}function ua(t){return [t.initialNavigation==="disabled"?yi$1().\u0275providers:[],t.initialNavigation==="enabledBlocking"?mi$1().\u0275providers:[]]}var Dr=new T$4("");function la(){return [{provide:Dr,useFactory:gi$1},{provide:dl,multi:true,useExisting:Dr}]}
|
|
1253
|
-
var _=(function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i})(_||{}),K="*";function _s(i,e=null){return {type:_.Sequence,steps:i,options:e}}function tt(i){return {type:_.Style,styles:i,offset:null}}var $=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},re=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,s=0,n=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish();}),o.onDestroy(()=>{++s==r&&this._onDestroy();}),o.onStart(()=>{++n==r&&this._onStart();});}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let n=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(n);});}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},he="!";function Ss(i){return new m$2(3e3,false)}function wn(){return new m$2(3100,false)}function An(){return new m$2(3101,false)}function Pn(i){return new m$2(3001,false)}function Nn(i){return new m$2(3003,false)}function Cn(i){return new m$2(3004,false)}function vs(i,e){return new m$2(3005,false)}function Ts(){return new m$2(3006,false)}function bs(){return new m$2(3007,false)}function ws(i,e){return new m$2(3008,false)}function As(i){return new m$2(3002,false)}function Ps(i,e,t,s,n){return new m$2(3010,false)}function Ns(){return new m$2(3011,false)}function Cs(){return new m$2(3012,false)}function Ms(){return new m$2(3200,false)}function Ds(){return new m$2(3202,false)}function Fs(){return new m$2(3013,false)}function ks(i){return new m$2(3014,false)}function Rs(i){return new m$2(3015,false)}function Os(i){return new m$2(3016,false)}function Is(i,e){return new m$2(3404,false)}function Mn(i){return new m$2(3502,false)}function Ls(i){return new m$2(3503,false)}function zs(){return new m$2(3300,false)}function Ks(i){return new m$2(3504,false)}function qs(i){return new m$2(3301,false)}function Bs(i,e){return new m$2(3302,false)}function Qs(i){return new m$2(3303,false)}function Vs(i,e){return new m$2(3400,false)}function Us(i){return new m$2(3401,false)}function $s(i){return new m$2(3402,false)}function js(i,e){return new m$2(3505,false)}function j(i){switch(i.length){case 0:return new $;case 1:return i[0];default:return new re(i)}}function rt(i,e,t=new Map,s=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let u=l.get("offset"),h=u==o,c=h&&a||new Map;l.forEach((S,y)=>{let f=y,g=S;if(y!=="offset")switch(f=i.normalizePropertyName(f,n),g){case he:g=t.get(y);break;case K:g=s.get(y);break;default:g=i.normalizeStyleValue(y,f,g,n);break}c.set(f,g);}),h||r.push(c),a=c,o=u;}),n.length)throw Mn();return r}function Ae(i,e,t,s){switch(e){case "start":i.onStart(()=>s(t&&st(t,"start",i)));break;case "done":i.onDone(()=>s(t&&st(t,"done",i)));break;case "destroy":i.onDestroy(()=>s(t&&st(t,"destroy",i)));break}}function st(i,e,t){let s=t.totalTime,n=!!t.disabled,r=Pe(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,s??i.totalTime,n),o=i._data;return o!=null&&(r._data=o),r}function Pe(i,e,t,s,n="",r=0,o){return {element:i,triggerName:e,fromState:t,toState:s,phaseName:n,totalTime:r,disabled:!!o}}function k(i,e,t){let s=i.get(e);return s||i.set(e,s=t),s}function ot(i){let e=i.indexOf(":"),t=i.substring(1,e),s=i.slice(e+1);return [t,s]}var Dn=typeof document>"u"?null:document.documentElement;function Ne(i){let e=i.parentNode||i.host||null;return e===Dn?null:e}function Fn(i){return i.substring(1,6)=="ebkit"}var Z=null,Es=false;function Gs(i){Z||(Z=kn()||{},Es=Z.style?"WebkitAppearance"in Z.style:false);let e=true;return Z.style&&!Fn(i)&&(e=i in Z.style,!e&&Es&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Z.style)),e}function kn(){return typeof document<"u"?document.body:null}function at(i,e){for(;e;){if(e===i)return true;e=Ne(e);}return false}function lt(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let s=i.querySelector(e);return s?[s]:[]}var Rn=1e3,ut="{{",On="}}",ct="ng-enter",Ce="ng-leave",de="ng-trigger",fe=".ng-trigger",ht="ng-animating",Me=".ng-animating";function U(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:nt(parseFloat(e[1]),e[2])}function nt(i,e){return e==="s"?i*Rn:i}function me(i,e,t){return i.hasOwnProperty("duration")?i:Ln(i,e,t)}var In=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Ln(i,e,t){let s,n=0,r="";if(typeof i=="string"){let o=i.match(In);if(o===null)return e.push(Ss()),{duration:0,delay:0,easing:""};s=nt(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(n=nt(parseFloat(a),o[4]));let l=o[5];l&&(r=l);}else s=i;if(!t){let o=false,a=e.length;s<0&&(e.push(wn()),o=true),n<0&&(e.push(An()),o=true),o&&e.splice(a,0,Ss());}return {duration:s,delay:n,easing:r}}function xs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function q(i,e,t){e.forEach((s,n)=>{let r=De(n);t&&!t.has(n)&&t.set(n,i.style[r]),i.style[r]=s;});}function W(i,e){e.forEach((t,s)=>{let n=De(s);i.style[n]="";});}function oe(i){return Array.isArray(i)?i.length==1?i[0]:_s(i):i}function Ws(i,e,t){let s=e.params||{},n=dt(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(Pn());});}var it=new RegExp(`${ut}\\s*(.+?)\\s*${On}`,"g");function dt(i){let e=[];if(typeof i=="string"){let t;for(;t=it.exec(i);)e.push(t[1]);it.lastIndex=0;}return e}function ae(i,e,t){let s=`${i}`,n=s.replace(it,(r,o)=>{let a=e[o];return a==null&&(t.push(Nn()),a=""),a.toString()});return n==s?i:n}var zn=/-+([a-z0-9])/g;function De(i){return i.replace(zn,(...e)=>e[1].toUpperCase())}function Hs(i,e){return i===0||e===0}function Ys(i,e,t){if(t.size&&e.length){let s=e[0],n=[];if(t.forEach((r,o)=>{s.has(o)||n.push(o),s.set(o,r);}),n.length)for(let r=1;r<e.length;r++){let o=e[r];n.forEach(a=>o.set(a,Fe(i,a)));}}return e}function R(i,e,t){switch(e.type){case _.Trigger:return i.visitTrigger(e,t);case _.State:return i.visitState(e,t);case _.Transition:return i.visitTransition(e,t);case _.Sequence:return i.visitSequence(e,t);case _.Group:return i.visitGroup(e,t);case _.Animate:return i.visitAnimate(e,t);case _.Keyframes:return i.visitKeyframes(e,t);case _.Style:return i.visitStyle(e,t);case _.Reference:return i.visitReference(e,t);case _.AnimateChild:return i.visitAnimateChild(e,t);case _.AnimateRef:return i.visitAnimateRef(e,t);case _.Query:return i.visitQuery(e,t);case _.Stagger:return i.visitStagger(e,t);default:throw Cn(e.type)}}function Fe(i,e){return window.getComputedStyle(i)[e]}var Mt=(()=>{class i{validateStyleProperty(t){return Gs(t)}containsElement(t,s){return at(t,s)}getParentElement(t){return Ne(t)}query(t,s,n){return lt(t,s,n)}computeStyle(t,s,n){return n||""}animate(t,s,n,r,o,a=[],l){return new $(n,r)}static \u0275fac=function(s){return new(s||i)};static \u0275prov=x({token:i,factory:i.\u0275fac})}return i})(),ee=class{static NOOP=new Mt},te=class{};var Kn=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Le=class extends te{normalizePropertyName(e,t){return De(e)}normalizeStyleValue(e,t,s,n){let r="",o=s.toString().trim();if(Kn.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else {let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(vs());}return o+r}};var ze="*";function qn(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(s=>Bn(s,t,e)):t.push(i),t}function Bn(i,e,t){if(i[0]==":"){let l=Qn(i,t);if(typeof l=="function"){e.push(l);return}i=l;}let s=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(Rs()),e;let n=s[1],r=s[2],o=s[3];e.push(Xs(n,o));let a=n==ze&&o==ze;r[0]=="<"&&!a&&e.push(Xs(o,n));}function Qn(i,e){switch(i){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,s)=>parseFloat(s)>parseFloat(t);case ":decrement":return (t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(Os()),"* => *"}}var ke=new Set(["true","1"]),Re=new Set(["false","0"]);function Xs(i,e){let t=ke.has(i)||Re.has(i),s=ke.has(e)||Re.has(e);return (n,r)=>{let o=i==ze||i==n,a=e==ze||e==r;return !o&&t&&typeof n=="boolean"&&(o=n?ke.has(i):Re.has(i)),!a&&s&&typeof r=="boolean"&&(a=r?ke.has(e):Re.has(e)),o&&a}}var un=":self",Vn=new RegExp(`s*${un}s*,?`,"g");function cn(i,e,t,s){return new _t(i).build(e,t,s)}var Zs="",_t=class{_driver;constructor(e){this._driver=e;}build(e,t,s){let n=new St(t);return this._resetContextStyleTimingState(n),R(this,oe(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Zs,e.collectedStyles=new Map,e.collectedStyles.set(Zs,new Map),e.currentTime=0;}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Ts()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t));}),l.name=u;}else if(a.type==_.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,n+=l.depCount,o.push(l);}else t.errors.push(bs());}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:n,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=n||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{dt(l).forEach(u=>{o.hasOwnProperty(u)||r.add(u);});});}),r.size&&t.errors.push(ws(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,oe(e.animation),t),n=qn(e.expr,t.errors);return {type:_.Transition,matchers:n,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:J(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:J(e.options)}}visitGroup(e,t){let s=t.currentTime,n=0,r=e.steps.map(o=>{t.currentTime=s;let a=R(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:_.Group,steps:r,options:J(e.options)}}visitAnimate(e,t){let s=Gn(e.timings,t.errors);t.currentAnimateTimings=s;let n,r=e.styles?e.styles:tt({});if(r.type==_.Keyframes)n=this.visitKeyframes(r,t);else {let o=e.styles,a=false;if(!o){a=true;let u={};s.easing&&(u.easing=s.easing),o=tt(u);}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:n,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===K?s.push(a):t.errors.push(As()):s.push(new Map(Object.entries(a)));let r=false,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(ut)>=0){r=true;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),h=u.get(l),c=true;h&&(r!=n&&r>=h.startTime&&n<=h.endTime&&(t.errors.push(Ps(l,h.startTime,h.endTime)),c=false),r=h.startTime),c&&u.set(l,{startTime:r,endTime:n}),t.options&&Ws(a,t.options,t.errors);});});}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ns()),s;let n=1,r=0,o=[],a=false,l=false,u=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:jn(A.styles),N=0;return M!=null&&(r++,N=A.offset=M),l=l||N<0||N>1,a=a||N<u,u=N,o.push(N),A});l&&t.errors.push(Cs()),a&&t.errors.push(Ms());let c=e.steps.length,S=0;r>0&&r<c?t.errors.push(Ds()):r==0&&(S=n/(c-1));let y=c-1,f=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return h.forEach((w,A)=>{let M=S>0?A==y?1:S*A:o[A],N=M*T;t.currentTime=f+g.delay+N,g.duration=N,this._validateStyleAst(w,t),w.offset=M,s.styles.push(w);}),s}visitReference(e,t){return {type:_.Reference,animation:R(this,oe(e.animation),t),options:J(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:J(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:J(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=Un(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,k(t.collectedStyles,t.currentQuerySelector,new Map);let a=R(this,oe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:J(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Fs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:me(e.timings,t.errors,true);return {type:_.Stagger,animation:R(this,oe(e.animation),t),timings:s,options:null}}};function Un(i){let e=!!i.split(/\s*,\s*/).find(t=>t==un);return e&&(i=i.replace(Vn,"")),i=i.replace(/@\*/g,fe).replace(/@\w+/g,t=>fe+"-"+t.slice(1)).replace(/:animating/g,Me),[i,e]}function $n(i){return i?w$1({},i):null}var St=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e;}};function jn(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset");}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Gn(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=me(i,e).duration;return ft(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ft(0,0,"");return r.dynamic=true,r.strValue=t,r}let n=me(t,e);return ft(n.duration,n.delay,n.easing)}function J(i){return i?(i=w$1({},i),i.params&&(i.params=$n(i.params))):i={},i}function ft(i,e,t){return {duration:i,delay:e,easing:t}}function Dt(i,e,t,s,n,r,o=null,a=false){return {type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:s,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var ge=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},xn=1,Wn=":enter",Hn=new RegExp(Wn,"g"),Yn=":leave",Xn=new RegExp(Yn,"g");function hn(i,e,t,s,n,r=new Map,o=new Map,a,l,u=[]){return new Et().buildKeyframes(i,e,t,s,n,r,o,a,l,u)}var Et=class{buildKeyframes(e,t,s,n,r,o,a,l,u,h=[]){u=u||new ge;let c=new vt(e,t,u,n,r,h,[]);c.options=l;let S=l.delay?U(l.delay):0;c.currentTimeline.delayNextStep(S),c.currentTimeline.setStyles([o],null,c.errors,l),R(this,s,c);let y=c.timelines.filter(f=>f.containsAnimation());if(y.length&&a.size){let f;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,c.errors,l);}return y.length?y.map(f=>f.buildKeyframes()):[Dt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,n,n.options);r!=o&&t.transformIntoNewTimeline(o);}t.previousNode=e;}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,s){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:U(ae(r,n?.params??{},t.errors));s.delayNextStep(o);}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,o=s.duration!=null?U(s.duration):null,a=s.delay!=null?U(s.delay):null;return o!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,u.duration+u.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),R(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let s=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==_.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ke);let o=U(r.delay);n.delayNextStep(o);}e.steps.length&&(e.steps.forEach(o=>R(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let s=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?U(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),R(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),s.push(a.currentTimeline);}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,n=t.params?ae(s,t.params,t.errors):s;return me(n,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let s=t.currentAnimateTimings,n=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;a.forwardTime(u*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e;}visitQuery(e,t){let s=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?U(n.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ke);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((u,h)=>{t.currentQueryIndex=h;let c=t.createSubContext(e.options,u);r&&c.delayNextStep(r),u===t.element&&(l=c.currentTimeline),R(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let S=c.currentTimeline.currentTime;o=Math.max(o,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let s=t.parentContext,n=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case "reverse":l=a-l;break;case "full":l=s.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let c=h.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-c+(n.startTime-s.currentTimeline.startTime);}},Ke={},vt=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ke;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new qe(this._driver,t,0),a.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,n=this.options;s.duration!=null&&(n.duration=U(s.duration)),s.delay!=null&&(n.delay=U(s.delay));let r=s.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ae(r[a],o,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(n=>{s[n]=t[n];});}}return e}createSubContext(e=null,t,s){let n=t||this.element,r=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ke,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new Tt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,s,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(Hn,"."+this._enterClassName),e=e.replace(Xn,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),a.push(...u);}return !r&&a.length==0&&o.push(ks()),a}},qe=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return false;case 1:return this.hasCurrentStyleProperties();default:return true}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e;}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe));}forwardFrame(){this.duration+=xn,this._loadKeyframe();}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe();}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||K),this._currentKeyframe.set(t,K);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,s,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=Zn(e,this._globalTimelineStyles);for(let[a,l]of o){let u=ae(l,r,s);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??K),this._updateStyle(a,u);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e);}));}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t);}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let n=this._styleSummary.get(s);(!n||t.time>n.time)&&this._updateStyle(s,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let u=new Map([...this._backFill,...a]);u.forEach((h,c)=>{h===he?e.add(c):h===K&&t.add(c);}),s||u.set("offset",l/this.duration),n.push(u);});let r=[...e.values()],o=[...t.values()];if(s){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l];}return Dt(this.element,n,r,o,this.duration,this.startTime,this.easing,false)}},Tt=class extends qe{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,n,r,o,a=false){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",Js(a)),r.push(u);let h=e.length-1;for(let c=1;c<=h;c++){let S=new Map(e[c]),y=S.get("offset"),f=t+y*s;S.set("offset",Js(f/o)),r.push(S);}s=o,t=0,n="",e=r;}return Dt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,true)}};function Js(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Zn(i,e){let t=new Map,s;return i.forEach(n=>{if(n==="*"){s??=e.keys();for(let r of s)t.set(r,K);}else for(let[r,o]of n)t.set(r,o);}),t}function en(i,e,t,s,n,r,o,a,l,u,h,c,S){return {type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:c,errors:S}}var mt={},Be=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s;}match(e,t,s,n){return Jn(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,r,o,a,l,u,h){let c=[],S=this.ast.options&&this.ast.options.params||mt,y=a&&a.params||mt,f=this.buildStyles(s,y,c),g=l&&l.params||mt,T=this.buildStyles(n,g,c),w=new Set,A=new Map,M=new Map,N=n==="void",se={params:dn(g,S),delay:this.ast.options?.delay},Q=h?[]:hn(e,t,this.ast.animation,r,o,f,T,se,u,c),D=0;return Q.forEach(F=>{D=Math.max(F.duration+F.delay,D);}),c.length?en(t,this._triggerName,s,n,N,f,T,[],[],A,M,D,c):(Q.forEach(F=>{let H=F.element,ne=k(A,H,new Set);F.preStyleProps.forEach(Y=>ne.add(Y));let kt=k(M,H,new Set);F.postStyleProps.forEach(Y=>kt.add(Y)),H!==t&&w.add(H);}),en(t,this._triggerName,s,n,N,f,T,Q,[...w.values()],A,M,D))}};function Jn(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}function dn(i,e){let t=w$1({},e);return Object.entries(i).forEach(([s,n])=>{n!=null&&(t[s]=n);}),t}var bt=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s;}buildStyles(e,t){let s=new Map,n=dn(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=ae(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o);});}),s}};function ei(i,e,t){return new wt(i,e,t)}var wt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new bt(n.style,r,s));}),tn(this.states,"true","1"),tn(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Be(e,n,this.states));}),this.fallbackTransition=ti(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find(o=>o.match(e,t,s,n))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ti(i,e,t){let s=[(o,a)=>true],n={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:n,matchers:s,options:null,queryCount:0,depCount:0};return new Be(i,r,e)}function tn(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t));}var si=new ge,At=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s;}register(e,t){let s=[],n=[],r=cn(this._driver,t,s,n);if(s.length)throw Ls();this._animations.set(e,r);}_buildPlayer(e,t,s){let n=e.element,r=rt(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],true)}create(e,t,s={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=hn(this._driver,t,r,ct,Ce,new Map,new Map,s,si,n),o.forEach(h=>{let c=k(a,h.element,new Map);h.postStyleProps.forEach(S=>c.set(S,null));})):(n.push(zs()),o=[]),n.length)throw Ks();a.forEach((h,c)=>{h.forEach((S,y)=>{h.set(y,this._driver.computeStyle(c,y,K));});});let l=o.map(h=>{let c=a.get(h.element);return this._buildPlayer(h,new Map,c)}),u=j(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw qs();return t}listen(e,t,s,n){let r=Pe(t,"","","");return Ae(this._getPlayer(e),s,r,n),()=>{}}command(e,t,s,n){if(s=="register"){this.register(e,n[0]);return}if(s=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(s){case "play":r.play();break;case "pause":r.pause();break;case "reset":r.reset();break;case "restart":r.restart();break;case "finish":r.finish();break;case "init":r.init();break;case "setPosition":r.setPosition(parseFloat(n[0]));break;case "destroy":this.destroy(e);break}}},sn="ng-animate-queued",ni=".ng-animate-queued",pt="ng-animate-disabled",ii=".ng-animate-disabled",ri="ng-star-inserted",oi=".ng-star-inserted",ai=[],fn={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},li={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},B="__ng_removed",ye=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=ci(n),s){let r=e,{value:o}=r,a=y$1(r,["value"]);this.options=a;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(n=>{s[n]==null&&(s[n]=t[n]);});}}},pe="void",gt=new ye(pe),Pt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,z(t,this._hostClassName);}listen(e,t,s,n){if(!this._triggers.has(t))throw Bs();if(s==null||s.length==0)throw Qs();if(!hi(s))throw Vs();let r=k(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);let a=k(this._engine.statesByElement,e,new Map);return a.has(t)||(z(e,de),z(e,de+"-"+t),a.set(t,gt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t);});}}register(e,t){return this._triggers.has(e)?false:(this._triggers.set(e,t),true)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Us();return t}trigger(e,t,s,n=true){let r=this._getTrigger(t),o=new _e(this.id,t,e),a=this._engine.statesByElement.get(e);a||(z(e,de),z(e,de+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),u=new ye(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(t,u),l||(l=gt),!(u.value===pe)&&l.value===u.value){if(!mi(l.params,u.params)){let g=[],T=r.matchStyles(l.value,l.params,g),w=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{W(e,T),q(e,w);});}return}let S=k(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,u.value,e,u.params),f=false;if(!y){if(!n)return;y=r.fallbackTransition,f=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:o,isFallbackTransition:f}),f||(z(e,sn),o.onStart(()=>{le(e,sn);})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let w=T.indexOf(o);w>=0&&T.splice(w,1);}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(n=>n.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,fe,true);s.forEach(n=>{if(n[B])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,false,true)):this.clearElementCache(n);}),this._engine.afterFlushAnimationsDone(()=>s.forEach(n=>this.clearElementCache(n)));}triggerLeaveAnimation(e,t,s,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,u)=>{if(o.set(u,l.value),this._triggers.has(u)){let h=this.trigger(e,u,pe,n);h&&a.push(h);}}),a.length)return this._engine.markElementAsRemoved(this.id,e,true,t,o),s&&j(a).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,u=s.get(o)||gt,h=new ye(pe),c=new _e(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:h,player:c,isFallbackTransition:true});});}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let n=false;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)n=true;else {let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){n=true;break}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,false,t);else {let r=e[B];(!r||r===fn)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t));}}insertNode(e,t){z(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let n=s.player;if(n.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=Pe(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Ae(s.player,a.phase,l,a.callback);}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy();}):t.push(s);}),this._queue=[],t.sort((s,n)=>{let r=s.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},Nt=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s);});}),e}createNamespace(e,t){let s=new Pt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let o=false,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),o=true;break}a=this.driver.getParentElement(a);}o||s.unshift(e);}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,1),s.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let n of s.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r);}}return t}trigger(e,t,s,n){if(Oe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,n),true}return false}insertNode(e,t,s,n){if(!Oe(t))return;let r=t[B];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1);}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s);}n&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),z(e,pt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),le(e,pt));}removeNode(e,t,s){if(Oe(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,false,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s);}else this._onRemovalComplete(t,s);}markElementAsRemoved(e,t,s,n,r){this.collectedLeaveElements.push(t),t[B]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,s,n,r){return Oe(t)?this._fetchNamespace(e).listen(t,s,n,r):()=>{}}_buildInstruction(e,t,s,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,fe,true);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Me,true),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=true:s.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[B];if(t&&t.setForRemoval){if(e[B]=fn,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(pt)&&this.markElementAsDisabled(e,false),this.driver.query(e,ii,true).forEach(s=>{this.markElementAsDisabled(s,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,n)=>this._balanceNamespaceList(s,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++){let n=this.collectedEnterElements[s];z(n,ri);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let s=[];try{t=this._flushAnimations(s,e);}finally{for(let n=0;n<s.length;n++)s[n]();}}else for(let s=0;s<this.collectedLeaveElements.length;s++){let n=this.collectedLeaveElements[s];this.processLeaveNode(n);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(n=>n());}):s.forEach(n=>n());}}reportError(e){throw $s()}_flushAnimations(e,t){let s=new ge,n=[],r=new Map,o=[],a=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let m=this.driver.query(d,ni,true);for(let p=0;p<m.length;p++)h.add(m[p]);});let c=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=on(S,this.collectedEnterElements),f=new Map,g=0;y.forEach((d,m)=>{let p=ct+g++;f.set(m,p),d.forEach(E=>z(E,p));});let T=[],w=new Set,A=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let m=this.collectedLeaveElements[d],p=m[B];p&&p.setForRemoval&&(T.push(m),w.add(m),p.hasAnimation?this.driver.query(m,oi,true).forEach(E=>w.add(E)):A.add(m));}let M=new Map,N=on(S,Array.from(w));N.forEach((d,m)=>{let p=Ce+g++;M.set(m,p),d.forEach(E=>z(E,p));}),e.push(()=>{y.forEach((d,m)=>{let p=f.get(m);d.forEach(E=>le(E,p));}),N.forEach((d,m)=>{let p=M.get(m);d.forEach(E=>le(E,p));}),T.forEach(d=>{this.processLeaveNode(d);});});let se=[],Q=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let E=p.player,P=p.element;if(se.push(E),this.collectedEnterElements.length){let C=P[B];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let X=C.previousTriggersValues.get(p.triggerName),I=this.statesByElement.get(p.element);if(I&&I.has(p.triggerName)){let Se=I.get(p.triggerName);Se.value=X,I.set(p.triggerName,Se);}}E.destroy();return}}let V=!c||!this.driver.containsElement(c,P),O=M.get(P),G=f.get(P),b=this._buildInstruction(p,s,G,O,V);if(b.errors&&b.errors.length){Q.push(b);return}if(V){E.onStart(()=>W(P,b.fromStyles)),E.onDestroy(()=>q(P,b.toStyles)),n.push(E);return}if(p.isFallbackTransition){E.onStart(()=>W(P,b.fromStyles)),E.onDestroy(()=>q(P,b.toStyles)),n.push(E);return}let It=[];b.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||It.push(C);}),b.timelines=It,s.append(P,b.timelines);let bn={instruction:b,player:E,element:P};o.push(bn),b.queriedElements.forEach(C=>k(a,C,[]).push(E)),b.preStyleProps.forEach((C,X)=>{if(C.size){let I=l.get(X);I||l.set(X,I=new Set),C.forEach((Se,xe)=>I.add(xe));}}),b.postStyleProps.forEach((C,X)=>{let I=u.get(X);I||u.set(X,I=new Set),C.forEach((Se,xe)=>I.add(xe));});});if(Q.length){let d=[];Q.forEach(m=>{d.push(js(m.triggerName,m.errors));}),se.forEach(m=>m.destroy()),this.reportError(d);}let D=new Map,F=new Map;o.forEach(d=>{let m=d.element;s.has(m)&&(F.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D));}),n.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,false,d.namespaceId,d.triggerName,null).forEach(E=>{k(D,m,[]).push(E),E.destroy();});});let H=T.filter(d=>an(d,l,u)),ne=new Map;rn(ne,this.driver,A,u,K).forEach(d=>{an(d,l,u)&&H.push(d);});let Y=new Map;y.forEach((d,m)=>{rn(Y,this.driver,new Set(d),l,he);}),H.forEach(d=>{let m=ne.get(d),p=Y.get(d);ne.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]));});let Ge=[],Rt=[],Ot={};o.forEach(d=>{let{element:m,player:p,instruction:E}=d;if(s.has(m)){if(h.has(m)){p.onDestroy(()=>q(m,E.toStyles)),p.disabled=true,p.overrideTotalTime(E.totalTime),n.push(p);return}let P=Ot;if(F.size>1){let O=m,G=[];for(;O=O.parentNode;){let b=F.get(O);if(b){P=b;break}G.push(O);}G.forEach(b=>F.set(b,P));}let V=this._buildAnimation(p.namespaceId,E,D,r,Y,ne);if(p.setRealPlayer(V),P===Ot)Ge.push(p);else {let O=this.playersByElement.get(P);O&&O.length&&(p.parentPlayer=j(O)),n.push(p);}}else W(m,E.fromStyles),p.onDestroy(()=>q(m,E.toStyles)),Rt.push(p),h.has(m)&&n.push(p);}),Rt.forEach(d=>{let m=r.get(d.element);if(m&&m.length){let p=j(m);d.setRealPlayer(p);}}),n.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy();});for(let d=0;d<T.length;d++){let m=T[d],p=m[B];if(le(m,Ce),p&&p.hasAnimation)continue;let E=[];if(a.size){let V=a.get(m);V&&V.length&&E.push(...V);let O=this.driver.query(m,Me,true);for(let G=0;G<O.length;G++){let b=a.get(O[G]);b&&b.length&&E.push(...b);}}let P=E.filter(V=>!V.destroyed);P.length?di(this,m,P):this.processLeaveNode(m);}return T.length=0,Ge.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1);}),d.play();}),Ge}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,s,n,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a);}else {let a=this.playersByElement.get(e);if(a){let l=!r||r==pe;a.forEach(u=>{u.queued||!l&&u.triggerName!=n||o.push(u);});}}return (s||n)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let u=l.element,h=u!==r,c=k(s,u,[]);this._getPreviousPlayers(u,h,o,a,t.toState).forEach(y=>{let f=y.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),y.destroy(),c.push(y);});}W(r,t.fromStyles);}_buildAnimation(e,t,s,n,r,o){let a=t.triggerName,l=t.element,u=[],h=new Set,c=new Set,S=t.timelines.map(f=>{let g=f.element;h.add(g);let T=g[B];if(T&&T.removedBeforeQueried)return new $(f.duration,f.delay);let w=g!==l,A=fi((s.get(g)||ai).map(D=>D.getRealPlayer())).filter(D=>{let F=D;return F.element?F.element===g:false}),M=r.get(g),N=o.get(g),se=rt(this._normalizer,f.keyframes,M,N),Q=this._buildPlayer(f,se,A);if(f.subTimeline&&n&&c.add(g),w){let D=new _e(e,a,g);D.setRealPlayer(Q),u.push(D);}return Q});u.forEach(f=>{k(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>ui(this.playersByQueriedElement,f.element,f));}),h.forEach(f=>z(f,ht));let y=j(S);return y.onDestroy(()=>{h.forEach(f=>le(f,ht)),q(l,t.toStyles);}),c.forEach(f=>{k(n,f,[]).push(y);}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new $(e.duration,e.delay)}},_e=class{namespaceId;triggerName;element;_player=new $;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(n=>Ae(e,s,void 0,n));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(e.totalTime),this.queued=false);}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e;}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy());}_queueEvent(e,t){k(this._queuedCallbacks,e,[]).push(t);}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e);}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e);}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e);}init(){this._player.init();}hasStarted(){return this.queued?false:this._player.hasStarted()}play(){!this.queued&&this._player.play();}pause(){!this.queued&&this._player.pause();}restart(){!this.queued&&this._player.restart();}finish(){this._player.finish();}destroy(){this.destroyed=true,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(e){this.queued||this._player.setPosition(e);}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e);}};function ui(i,e,t){let s=i.get(e);if(s){if(s.length){let n=s.indexOf(t);s.splice(n,1);}s.length==0&&i.delete(e);}return s}function ci(i){return i??null}function Oe(i){return i&&i.nodeType===1}function hi(i){return i=="start"||i=="done"}function nn(i,e){let t=i.style.display;return i.style.display=e??"none",t}function rn(i,e,t,s,n){let r=[];t.forEach(l=>r.push(nn(l)));let o=[];s.forEach((l,u)=>{let h=new Map;l.forEach(c=>{let S=e.computeStyle(u,c,n);h.set(c,S),(!S||S.length==0)&&(u[B]=li,o.push(u));}),i.set(u,h);});let a=0;return t.forEach(l=>nn(l,r[a++])),o}function on(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,n=new Set(e),r=new Map;function o(a){if(!a)return s;let l=r.get(a);if(l)return l;let u=a.parentNode;return t.has(u)?l=u:n.has(u)?l=s:l=o(u),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a);}),t}function z(i,e){i.classList?.add(e);}function le(i,e){i.classList?.remove(e);}function di(i,e,t){j(t).onDone(()=>i.processLeaveNode(e));}function fi(i){let e=[];return mn(i,e),e}function mn(i,e){for(let t=0;t<i.length;t++){let s=i[t];s instanceof re?mn(s.players,e):e.push(s);}}function mi(i,e){let t=Object.keys(i),s=Object.keys(e);if(t.length!=s.length)return false;for(let n=0;n<t.length;n++){let r=t[n];if(!e.hasOwnProperty(r)||i[r]!==e[r])return false}return true}function an(i,e,t){let s=t.get(i);if(!s)return false;let n=e.get(i);return n?s.forEach(r=>n.add(r)):e.set(i,s),t.delete(i),true}var ue=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new Nt(e.body,t,s),this._timelineEngine=new At(e.body,t,s),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r);}registerTrigger(e,t,s,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],u=[],h=cn(this._driver,r,l,u);if(l.length)throw Is();a=ei(n,h,this._normalizer),this._triggerCache[o]=a;}this._transitionEngine.registerTrigger(t,n,a);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n);}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,s,n){if(s.charAt(0)=="@"){let[r,o]=ot(s),a=n;this._timelineEngine.command(r,t,o,a);}else this._transitionEngine.trigger(e,t,s,n);}listen(e,t,s,n,r){if(s.charAt(0)=="@"){let[o,a]=ot(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,n,r)}flush(e=-1){this._transitionEngine.flush(e);}get players(){return [...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e);}};function pi(i,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=yt(e[0]),e.length>1&&(s=yt(e[e.length-1]))):e instanceof Map&&(t=yt(e)),t||s?new gi(i,t,s):null}var gi=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,n){this._element=t,this._startStyles=s,this._endStyles=n;let r=i.initialStylesByElement.get(t);r||i.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3);}}return i})();function yt(i){let e=null;return i.forEach((t,s)=>{yi(s)&&(e=e||new Map,e.set(s,t));}),e}function yi(i){return i==="display"||i==="position"}var Qe=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let s=()=>this._onFinish();return t.addEventListener("finish",s),this.onDestroy(()=>{t.removeEventListener("finish",s);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s));}),t}_triggerWebAnimation(e,t,s){let n=this._convertKeyframesToObject(t);try{return e.animate(n,s)}catch(r){return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),e.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,n)=>{n!=="offset"&&e.set(n,this._finished?s:Fe(this.element,n));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},Ve=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return at(e,t)}getParentElement(e){return Ne(e)}query(e,t,s){return lt(e,t,s)}computeStyle(e,t,s){return Fe(e,t)}animate(e,t,s,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:s,delay:n,fill:a};r&&(l.easing=r);let u=new Map,h=o.filter(y=>y instanceof Qe);Hs(s,n)&&h.forEach(y=>{y.currentSnapshot.forEach((f,g)=>u.set(g,f));});let c=xs(t).map(y=>new Map(y));c=Ys(e,c,u);let S=pi(e,c);return new Qe(e,c,l,S)}};var Ie="@",pn="@.disabled",Ue=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=n;}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,false);}insertBefore(e,t,s,n=true){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n);}removeChild(e,t,s,n){if(n){this.delegate.removeChild(e,t,s,n);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,n){this.delegate.setAttribute(e,t,s,n);}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,s,n){this.delegate.setStyle(e,t,s,n);}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s);}setProperty(e,t,s){t.charAt(0)==Ie&&t==pn?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,s,n){return this.delegate.listen(e,t,s,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},Ct=class extends Ue{factory;constructor(e,t,s,n,r){super(t,s,n,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,s){t.charAt(0)==Ie?t.charAt(1)=="."&&t==pn?(s=s===void 0?true:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s);}listen(e,t,s,n){if(t.charAt(0)==Ie){let r=_i(e),o=t.slice(1),a="";return o.charAt(0)!=Ie&&([o,a]=Si(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,s,l);})}return this.delegate.listen(e,t,s,n)}};function _i(i){switch(i){case "body":return document.body;case "document":return document;case "window":return window;default:return i}}function Si(i){let e=i.indexOf("."),t=i.substring(0,e),s=i.slice(e+1);return [t,s]}var $e=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n);};}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,h=u.get(n);if(!h){let c=()=>u.delete(n);h=new Ue("",n,this.engine,c),u.set(n,h);}return h}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(r,o,e,u.name,u);};return t.data.animation.forEach(a),new Ct(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(s));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a);}),this._animationCallbacksBuffer=[];});}),n.push([t,s]);}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId);}),this.delegate.end&&this.delegate.end();}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var vi=(()=>{class i extends ue{constructor(t,s,n){super(t,s,n);}ngOnDestroy(){this.flush();}static \u0275fac=function(s){return new(s||i)(b$2(U$5),b$2(ee),b$2(te))};static \u0275prov=x({token:i,factory:i.\u0275fac})}return i})();function Ti(){return new Le}function bi(){return new $e(g(jl),g(ue),g(G$2))}var gn=[{provide:te,useFactory:Ti},{provide:ue,useClass:vi},{provide:_n$3,useFactory:bi}],wi=[{provide:ee,useFactory:()=>new Ve},{provide:Rv,useFactory:()=>"BrowserAnimations"},...gn];function yn(){return ut$2("NgEagerAnimations"),[...wi]}var Ai=i=>!!i&&i.mode==="unmanaged"&&i.setupEnabled&&!i.setupDone,Ft=false;var _n=()=>B$3(null,null,function*(){if(Ft)return true;let i=g(V$1),e=g(F),t=yield i.refreshStatus();return t?.setupDone&&(Ft=true),Ai(t)?e.parseUrl("/welcome"):true}),Sn=()=>B$3(null,null,function*(){return (yield g(V$1).refreshStatus())?.setupDone&&(Ft=true),true});var Pi=i=>i[0]?.path==="agentos"?{consumed:i}:null,Ni=(i,e)=>{let t=e.url.replace(/^\/agentos/,"");return g(F).parseUrl(t.startsWith("/")?t:`/${t}`)},En=[{matcher:Pi,canActivate:[Ni],children:[]},{path:"welcome",canActivate:[Sn],loadComponent:()=>import('./chunk-BxOB3DD8.js').then(i=>i.WelcomeComponent)},{path:"",pathMatch:"full",redirectTo:"welcome"},{path:"",canActivate:[_n],loadChildren:()=>import('./chunk-DJT7DUkW.js').then(function(n){return n.ad}).then(i=>i.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ci=5e3;function vn(t){return B$3(this,arguments,function*(i,e=Ci){yield hy(i.loadMe().pipe(Ny(e),da(s=>(console.warn("Failed to load current user",s),Tr$1(null)))),{defaultValue:null});})}function Mi(i){return ()=>B$3(null,null,function*(){let{UserStateService:e}=yield import('./chunk-DJT7DUkW.js').then(function(n){return n.ad});yield vn(i.get(e));})}function Di(i){return ()=>B$3(null,null,function*(){try{let{CompanionStateService:e,GlobalStreamService:t,TabCoordinatorService:s}=yield import('./chunk-DJT7DUkW.js').then(function(n){return n.ad});Zn$3(i,()=>{i.get(s).start();}),i.get(t).start(),i.get(e).startSse();}catch(e){console.warn("Failed to start the companion notification stream",e);}})}var Tn={providers:[xv(),OB({eventCoalescing:true}),ia(En),rS(),yn(),{provide:Ce$2,useValue:{duration:3e3}},{provide:cl,useFactory:Mi,deps:[he$4],multi:true},Ol({basePath:"/api/agentos"}),{provide:cl,useFactory:Di,deps:[he$4],multi:true},{provide:de$2,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};function Fi(i,e){i&1&&(Ds$1(0,"div",0),lg(1,"div",2),Ds$1(2,"p"),NC(3,"Loading Coday\u2026"),pl()());}function ki(i,e){if(i&1){let t=Zw();Ds$1(0,"div",1)(1,"p"),NC(2,"Coday could not load this page."),pl(),Ds$1(3,"button",3),mg("click",function(){df(t);let n=Jw();return ff(n.reload())}),NC(4,"Reload"),pl()();}}var Ri=i=>i instanceof re$1?"pending":i instanceof de$1?"failed":"idle",je=class i{title="client";phase=F$1(g(F).events.pipe(Ot$1(e=>e instanceof re$1||e instanceof P||e instanceof $$1||e instanceof de$1||e instanceof G),ne$3(Ri)),{initialValue:"pending"});reload(){window.location.reload();}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=yw({type:i,selectors:[["app-root"]],decls:3,vars:1,consts:[["role","status","aria-live","polite",1,"app-loader"],["role","alert",1,"app-loader","app-loader--error"],[1,"spinner"],["type","button",3,"click"]],template:function(t,s){if(t&1&&(Lw(0,Fi,4,0,"div",0)(1,ki,5,0,"div",1),lg(2,"router-outlet")),t&2){let n;jw((n=s.phase())==="pending"?0:n==="failed"?1:-1);}},dependencies:[oa,br],styles:[".app-loader[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:var(--color-bg);color:var(--color-text-secondary, #6e6e73);font-size:.9rem;opacity:0;pointer-events:none;animation:_ngcontent-%COMP%_app-loader-in .2s ease .3s forwards}.app-loader[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.app-loader--error[_ngcontent-%COMP%]{animation-delay:0ms;pointer-events:auto;color:var(--color-text)}.app-loader--error[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:6px 16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);cursor:pointer}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid var(--color-border, rgba(0, 0, 0, .1));border-top-color:var(--color-primary, #007aff);border-radius:50%;animation:_ngcontent-%COMP%_app-loader-spin .8s linear infinite}@keyframes _ngcontent-%COMP%_app-loader-in{to{opacity:1}}@keyframes _ngcontent-%COMP%_app-loader-spin{to{transform:rotate(360deg)}}"],changeDetection:1})};Rb(je,Tn).catch(i=>console.error(i));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(i=>console.error("[SW] Registration failed:",i));});export{Cr$1 as $,A$1 as A,B$3 as B,y as C,Ds$1 as D,J$1 as E,F,U$2 as G,Hw as H,Ie$2 as I,Jw as J,w$1 as K,Lw as L,x$1 as M,NC as N,Og as O,ug as P,mg as Q,NI as R,Sg as S,br as T,Ui$1 as U,V$1 as V,W$1 as W,XC as X,W$3 as Y,Zw as Z,_I as _,BE as a,An$3 as a$,$e$3 as a0,fa as a1,da as a2,nn$2 as a3,je$2 as a4,yd as a5,x as a6,kn$3 as a7,_$1 as a8,F$1 as a9,qe$2 as aA,se$1 as aB,T$1 as aC,$y as aD,X$1 as aE,sn$2 as aF,Ot$1 as aG,an$2 as aH,ve$2 as aI,be$3 as aJ,fe$4 as aK,ci$3 as aL,Y$2 as aM,hb as aN,Bg as aO,jg as aP,$C as aQ,UC as aR,qC as aS,FC as aT,D$1 as aU,hy as aV,L$2 as aW,Be$2 as aX,A$3 as aY,z$2 as aZ,He$1 as a_,Tr$1 as aa,le$4 as ab,Ty as ac,ne$3 as ad,Fw as ae,G$1 as af,U$4 as ag,ke$3 as ah,Ne$2 as ai,Fe$2 as aj,md as ak,De$2 as al,Bw as am,Me$2 as an,Vw as ao,F$3 as ap,k$1 as aq,Ue$1 as ar,kg as as,wy as at,$t as au,zC as av,WC as aw,YD as ax,N$1 as ay,K$3 as az,hl as b,hr$1 as b$,Yu as b0,al as b1,yt$3 as b2,aC as b3,Eg as b4,oC as b5,iC as b6,_B as b7,RT as b8,tC as b9,at$2 as bA,ss as bB,pt$3 as bC,xe$1 as bD,by as bE,en$1 as bF,ig as bG,VC as bH,Dg as bI,U$5 as bJ,we$1 as bK,L$1 as bL,Zn$2 as bM,Os$1 as bN,gt$2 as bO,_t$3 as bP,Ke$2 as bQ,Mo$1 as bR,ng as bS,_t$4 as bT,Ce$5 as bU,Oe$1 as bV,si$2 as bW,Sy as bX,va as bY,b$2 as bZ,Tf as b_,nC as ba,SB as bb,Ni$2 as bc,di$2 as bd,MB as be,NB as bf,wg as bg,sC as bh,pd as bi,Id as bj,T$4 as bk,Os$2 as bl,Br as bm,ze$2 as bn,Rp as bo,mr$1 as bp,sm as bq,gE as br,Ea as bs,Se$2 as bt,ee$5 as bu,Yg as bv,qs$1 as bw,ri$2 as bx,W$2 as by,$e$2 as bz,yg as c,FB as c$,mt$3 as c0,G$2 as c1,Cd as c2,Cn$2 as c3,Ht as c4,yn$1 as c5,Ft$1 as c6,FI as c7,wi$2 as c8,v as c9,ge$4 as cA,oe$2 as cB,Mn$2 as cC,We$1 as cD,pb as cE,kB as cF,Ge$2 as cG,Ny as cH,hd as cI,jy as cJ,Uy as cK,zy as cL,Hy as cM,xe$2 as cN,xB as cO,de$4 as cP,ky as cQ,ma as cR,ub as cS,Ye$1 as cT,ne$2 as cU,eT as cV,te$3 as cW,ae$2 as cX,_e$3 as cY,bf as cZ,pe$5 as c_,Ln$2 as ca,ha as cb,ht$3 as cc,Oy as cd,Rs$1 as ce,Ye$2 as cf,hn$1 as cg,Ci$3 as ch,Du as ci,Cw as cj,oS as ck,ur$1 as cl,m$2 as cm,cb as cn,og as co,pg as cp,ZC as cq,Ce$4 as cr,ta as cs,Ay as ct,pa as cu,Ly as cv,li$3 as cw,gr$1 as cx,le$3 as cy,Pe$1 as cz,gl as d,Je$2 as d0,Le$1 as d1,dn$1 as d2,fb as d3,R$2 as d4,Ee$2 as d5,ee$4 as d6,ce as d7,pt$2 as d8,PC as d9,Pg as da,Lg as db,AB as dc,Ig as dd,pe$4 as de,Fg as df,ee$3 as e,dg as f,g,he$4 as h,hg as i,jw as j,cg as k,lg as l,Uw as m,f$1 as n,HC as o,pl as p,Af as q,df as r,ff as s,oh as t,vC as u,vl as v,wo$1 as w,bg as x,yw as y,Xm as z};
|
|
1252
|
+
`],encapsulation:2,changeDetection:1})}return i})(),Ce$2=new T$4("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new S$1}),Mn$2=(()=>{class i{_live=g(Ei$1);_injector=g(he$4);_breakpointObserver=g(di$2);_parentSnackBar=g(i,{optional:true,skipSelf:true});_defaultConfig=g(Ce$2);_animationsDisabled=at$2();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=ve;snackBarContainerComponent=ye$2;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t;}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){let a=w$1(w$1({},this._defaultConfig),n);return a.data={message:t,action:e},a.announcementMessage===t&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss();}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss();}_attachSnackBarContainer(t,e){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=he$4.create({parent:n||this._injector,providers:[{provide:S$1,useValue:e}]}),s=new me$2(this.snackBarContainerComponent,e.viewContainerRef,a),l=t.attach(s);return l.instance.snackBarConfig=e,l.instance}_attach(t,e){let n=w$1(w$1(w$1({},new S$1),this._defaultConfig),e),a=this._createOverlay(n),s=this._attachSnackBarContainer(a,n),l=new j$1(s,a);if(t instanceof ur$1){let c=new Ft$1(t,null,{$implicit:n.data,snackBarRef:l});l.instance=s.attachTemplatePortal(c);}else {let c=this._createInjector(n,l),O=new me$2(t,void 0,c),Xt=s.attachComponentPortal(O);l.instance=Xt.instance;}return this._breakpointObserver.observe(ka.HandsetPortrait).pipe(bd(a.detachments())).subscribe(c=>{a.overlayElement.classList.toggle(this.handsetCssClass,c.matches);}),n.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness);}),this._animateSnackBar(l,n),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear();}),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter();}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter();}_createOverlay(t){let e=new Ht;e.direction=t.direction;let n=wn$2(this._injector),a=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!a||t.horizontalPosition==="end"&&a,l=!s&&t.horizontalPosition!=="center";return s?n.left("0"):l?n.right("0"):n.centerHorizontally(),t.verticalPosition==="top"?n.top("0"):n.bottom("0"),e.positionStrategy=n,e.disableAnimations=this._animationsDisabled,Cn$2(this._injector,e)}_createInjector(t,e){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector;return he$4.create({parent:n||this._injector,providers:[{provide:j$1,useValue:e},{provide:Kt,useValue:t.data}]})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function U$2(n){n||(n=g(we$2));let e=new R$2(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(bd(e))}function T$1(n,e){let t=g(he$4),o=new Nr$1(1),c=Of(()=>{let r;try{r=n();}catch(i){Co$1(()=>o.error(i));return}Co$1(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(we$2).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F$1(n,e){let o=!e?.manualCleanup?e?.injector?.get(we$2)??g(we$2):null,c=h(e?.equal),r;e?.requireSync?r=$i$1({kind:0},{equal:c}):r=$i$1({kind:1,value:e?.initialValue},{equal:c});let i,v=n.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{r.set({kind:2,error:s}),i?.();},complete:()=>{i?.();}});if(e?.requireSync&&r().kind===0)throw new m$2(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),rT(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new m$2(601,false)}},{equal:e?.equal})}function h(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}var p="primary",Qe$1=Symbol("RouteTitle"),ir=class{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function he$1(t){return new ir(t)}function er(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function En$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return er(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !er(o,t.slice(0,o.length),c)||!er(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function gt$1(t){return new Promise((n,e)=>{t.pipe(By()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Ai$1(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!V(t[e],n[e]))return false;return true}function V(t,n){let e=t?or(t):void 0,r=n?or(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Tn$1(t[i],n[i]))return false;return true}function or(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Tn$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Ei(t){return t.length>0?t[t.length-1]:null}function fe$1(t){return My(t)?t:ks$1(t)?Ye$2(Promise.resolve(t)):br$1(t)}function Nn$1(t){return My(t)?gt$1(t):Promise.resolve(t)}var Ti$1={exact:Dn$1,subset:_n$1},Mn$1={exact:Ni$1,subset:Mi$1,ignored:()=>true},Rr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ze$1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Sr(t,n,e){let r=t instanceof T?t:n.parseUrl(t);return rT(()=>ar(n.lastSuccessfulNavigation()?.finalUrl??new T,r,w$1(w$1({},ze$1),e)))}function ar(t,n,e){return Ti$1[e.paths](t.root,n.root,e.matrixParams)&&Mn$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ni$1(t,n){return V(t,n)}function Dn$1(t,n,e){if(!le$1(t.segments,n.segments)||!dt$1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!Dn$1(t.children[r],n.children[r],e))return false;return true}function Mi$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Tn$1(t[e],n[e]))}function _n$1(t,n,e){return Un$1(t,n,n.segments,e)}function Un$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!le$1(i,e)||n.hasChildren()||!dt$1(i,e,r))}else if(t.segments.length===e.length){if(!le$1(t.segments,e)||!dt$1(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!_n$1(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !le$1(t.segments,i)||!dt$1(t.segments,i,r)||!t.children[p]?false:Un$1(t.children[p],n,o,r)}}function dt$1(t,n,e){return n.every((r,i)=>Mn$1[e](t[i].parameters,r.parameters))}var T=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){return Ui.serialize(this)}},m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft$1(this)}},ee$1=class ee{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=he$1(this.parameters),this._parameterMap}toString(){return Pn$1(this)}};function Di$1(t,n){return le$1(t,n)&&t.every((e,r)=>V(e.parameters,n[r].parameters))}function le$1(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function _i$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)));}),e}var ne=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>new Y})}return t})(),Y=class{parse(n){let e=new cr(n);return new T(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${je$1(n.root,true)}`,r=Li(n.queryParams),i=typeof n.fragment=="string"?`#${Oi(n.fragment)}`:"";return `${e}${r}${i}`}},Ui=new Y;function ft$1(t){return t.segments.map(n=>Pn$1(n)).join("/")}function je$1(t,n){if(!t.hasChildren())return ft$1(t);if(n){let e=t.children[p]?je$1(t.children[p],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${je$1(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=_i$1(t,(r,i)=>i===p?[je$1(t.children[p],false)]:[`${i}:${je$1(r,false)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${ft$1(t)}/${e[0]}`:`${ft$1(t)}/(${e.join("//")})`}}function On$1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lt$1(t){return On$1(t).replace(/%3B/gi,";")}function Oi(t){return encodeURI(t)}function sr(t){return On$1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pt$1(t){return decodeURIComponent(t)}function Rn$1(t){return pt$1(t.replace(/\+/g,"%20"))}function Pn$1(t){return `${sr(t.path)}${Pi$1(t.parameters)}`}function Pi$1(t){return Object.entries(t).map(([n,e])=>`;${sr(n)}=${sr(e)}`).join("")}function Li(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${lt$1(e)}=${lt$1(i)}`).join("&"):`${lt$1(e)}=${lt$1(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ji=/^[^\/()?;#]+/;function tr(t){let n=t.match(ji);return n?n[0]:""}var xi=/^[^\/()?;=#]+/;function ki$1(t){let n=t.match(xi);return n?n[0]:""}var $i=/^[^=?&#]+/;function zi(t){let n=t.match($i);return n?n[0]:""}var Hi=/^[^&#]+/;function Fi$1(t){let n=t.match(Hi);return n?n[0]:""}var cr=class{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new m$2(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new m(e,r)),i}parseSegment(){let n=tr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new m$2(4009,false);return this.capture(n),new ee$1(pt$1(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ki$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=tr(this.remaining);i&&(r=i,this.capture(r));}n[pt$1(e)]=pt$1(r);}parseQueryParam(n){let e=zi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Fi$1(this.remaining);a&&(r=a,this.capture(r));}let i=Rn$1(e),o=Rn$1(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=tr(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new m$2(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p);let c=this.parseChildren(e+1);r[a??p]=Object.keys(c).length===1&&c[p]?c[p]:new m([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new m$2(4011,false)}};function Ln$1(t){return t.segments.length>0?new m([],{[p]:t}):t}function jn$1(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=jn$1(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m(t.segments,n);return qi(e)}function qi(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new m(t.segments.concat(n.segments),n.children)}return t}function te$1(t){return t instanceof T}function xn$1(t,n,e=null,r=null,i=new Y){let o=kn$1(t);return $n$1(o,n,e,r,i)}function kn$1(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Ln$1(r);return n??i}function $n$1(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return rr(o,o,o,e,r,i);let a=Bi(n);if(a.toRoot())return rr(o,o,new m([],{}),e,r,i);let c=Vi(a,o,t),s=c.processChildren?ke$1(c.segmentGroup,c.index,a.commands):Hn$1(c.segmentGroup,c.index,a.commands);return rr(o,c.segmentGroup,s,e,r,i)}function vt$1(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function He(t){return typeof t=="object"&&t!=null&&t.outlets}function Sn$1(t,n,e){t||="\u0275";let r=new T;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function rr(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(v=>Sn$1(u,v,o)):Sn$1(u,d,o);let c;t===n?c=e:c=zn$1(t,n,e);let s=Ln$1(jn$1(c));return new T(s,a,i)}function zn$1(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=zn$1(o,n,e);}),new m(t.segments,r)}var mt$1=class mt{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&vt$1(r[0]))throw new m$2(4003,false);let i=r.find(He);if(i&&i!==Ei(r))throw new m$2(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Bi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new mt$1(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new mt$1(e,n,r)}var Re$1=class Re{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Vi(t,n,e){if(t.isAbsolute)return new Re$1(n,true,0);if(!e)return new Re$1(n,false,NaN);if(e.parent===null)return new Re$1(e,true,0);let r=vt$1(t.commands[0])?0:1,i=e.segments.length-1+r;return Gi(e,i,t.numberOfDoubleDots)}function Gi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new m$2(4005,false);i=r.segments.length;}return new Re$1(r,false,i-o)}function Wi(t){return He(t[0])?t[0].outlets:{[p]:t}}function Hn$1(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return ke$1(t,n,e);let r=Qi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new m(t.segments.slice(r.pathIndex),t.children),ke$1(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?ur(t,n,e):r.match?ke$1(t,0,i):ur(t,n,e)}function ke$1(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=Wi(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ke$1(t.children[p],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Hn$1(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m(t.segments,i)}}function Qi(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(He(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!wn$1(s,u,a))return o;r+=2;}else {if(!wn$1(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function ur(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(He(o)){let s=Ki(o.outlets);return new m(r,s)}if(i===0&&vt$1(e[0])){let s=t.segments[n];r.push(new ee$1(s.path,Cn$1(e[0]))),i++;continue}let a=He(o)?o.outlets[p]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&vt$1(c)?(r.push(new ee$1(a,Cn$1(c))),i+=2):(r.push(new ee$1(a,{})),i++);}return new m(r,{})}function Ki(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=ur(new m([],{}),0,r));}),n}function Cn$1(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function wn$1(t,n,e){return t==e.path&&V(n,e.parameters)}var Se="imperative",S=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S||{}),O=class{id;url;constructor(n,e){this.id=n,this.url=e;}},re$1=class re extends O{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},P=class extends O{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},A=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(A||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),$$1=class $ extends O{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Fn$1(t){return t instanceof $$1&&(t.code===A.Redirect||t.code===A.SupersededByNewNavigation)}var G=class extends O{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},de$1=class de extends O{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fe$1=class Fe extends O{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yt$1=class yt extends O{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rt=class extends O{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},St$1=class St extends O{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ct$1=class Ct extends O{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wt$1=class wt{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},bt$1=class bt{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},It=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At$1=class At{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Et$1=class Et{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tt$1=class Tt{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},be=class{routerEvent;position;anchor;scrollBehavior;type=S.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ie$1=class Ie{},qe$1=class qe{},Ae$1=class Ae{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Yi(t){return !(t instanceof Ie$1)&&!(t instanceof Ae$1)&&!(t instanceof qe$1)}var Nt$1=class Nt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new pe$1(this.rootInjector);}},pe$1=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Nt$1(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(b$2(pe$5))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mt$1=class Mt{_root;constructor(n){this._root=n;}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=lr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=lr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=hr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return hr(n,this._root).map(e=>e.value)}};function lr(t,n){if(t===n.value)return n;for(let e of n.children){let r=lr(t,e);if(r)return r}return null}function hr(t,n){if(t===n.value)return [n];for(let e of n.children){let r=hr(t,e);if(r.length)return r.unshift(n),r}return []}var U$1=class U{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function ye$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Be$1=class Be extends Mt$1{snapshot;constructor(n,e){super(n),this.snapshot=e,wr(this,n);}toString(){return this.snapshot.toString()}};function qn$1(t,n){let e=Zi(t,n),r=new Tr$1([new ee$1("",{})]),i=new Tr$1({}),o=new Tr$1({}),a=new Tr$1({}),c=new Tr$1(""),s=new W$1(r,i,a,c,o,p,t,e.root);return s.snapshot=e.root,new Be$1(new U$1(s,[]),e)}function Zi(t,n){let e={},r={},i={},a=new Ee([],e,i,"",r,p,t,null,{},n);return new Ve$1("",new U$1(a,[]))}var W$1=class W{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(ne$3(u=>u[Qe$1]))??br$1(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o;}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ne$3(n=>he$1(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ne$3(n=>he$1(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Ji="always";function Cr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:w$1(w$1({},n.params),t.params),data:w$1(w$1({},n.data),t.data),resolve:w$1(w$1(w$1(w$1({},t.data),n.data),i?.data),t._resolvedData)}:r={params:w$1({},t.params),data:w$1({},t.data),resolve:w$1(w$1({},t.data),t._resolvedData??{})},i&&Vn$1(i)&&(r.resolve[Qe$1]=i.title),r}var Ee=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Qe$1]}constructor(n,e,r,i,o,a,c,s,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=d;}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=he$1(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},Ve$1=class Ve extends Mt$1{url;constructor(n,e){super(e),this.url=n,wr(this,e);}toString(){return Bn$1(this._root)}};function wr(t,n){n.value._routerState=t,n.children.forEach(e=>wr(t,e));}function Bn$1(t){let n=t.children.length>0?` { ${t.children.map(Bn$1).join(", ")} } `:"";return `${t.value}${n}`}function nr(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,V(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),V(n.params,e.params)||t.paramsSubject.next(e.params),Ai$1(n.url,e.url)||t.urlSubject.next(e.url),V(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function dr(t,n){let e=V(t.params,n.params)&&Di$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||dr(t.parent,n.parent))}function Vn$1(t){return typeof t.title=="string"||t.title===null}var Gn$1=new T$4(""),br=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new yt$3;deactivateEvents=new yt$3;attachEvents=new yt$3;detachEvents=new yt$3;routerOutletData=AB();parentContexts=g(pe$1);location=g(gr$1);changeDetector=g(am);inputBinder=g(Ke$1,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new m$2(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$2(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$2(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new m$2(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new fr(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=cl({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[wu]})}return t})(),fr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===W$1?this.route:n===pe$1?this.childContexts:n===Gn$1?this.outletData:this.parent.get(n,e)}},Ke$1=new T$4(""),Wn$1=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Cy([this.options.queryParams?r.queryParams:br$1({}),r.params,r.data]).pipe(ga(([o,a,c],s)=>(c=w$1(w$1(w$1({},o),a),c),s===0?br$1(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=VB(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let d=o[u];(d!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,d);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){PI();};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),Ir=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=vw({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&fg(0,"router-outlet");},dependencies:[br],encapsulation:2,changeDetection:1})}return t})();function Ar(t){let n=t.children&&t.children.map(Ar),e=n?x$1(w$1({},t),{children:n}):w$1({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Ir),e}function Xi(t,n,e){let r=new Set,i=Ge(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new Be$1(i,n)}}function Ge(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=eo(t,n,e,r);return new U$1(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>Ge(t,s,void 0,r)),c}}let i=to(n.value);r.add(i);let o=n.children.map(a=>Ge(t,a,void 0,r));return new U$1(i,o)}}function eo(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Ge(t,i,o,r);return Ge(t,i,void 0,r)})}function to(t){return new W$1(new Tr$1(t.url),new Tr$1(t.params),new Tr$1(t.queryParams),new Tr$1(t.fragment),new Tr$1(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},Qn$1="ngNavigationCancelingError";function Dt$1(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=te$1(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Kn$1(false,A.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Kn$1(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[Qn$1]=true,e.cancellationCode=n,e}function ro(t){return Yn$1(t)&&te$1(t.url)}function Yn$1(t){return !!t&&t[Qn$1]}var pr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),nr(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Tt$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new At$1(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(nr(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),nr(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},_t$1=class _t{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Ce$1=class Ce{component;route;constructor(n,e){this.component=n,this.route=e;}};function no(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function io(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Me$1(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!ev(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye$1(n);return t.children.forEach(a=>{oo(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>$e$1(c,e.getContext(a),i)),i}function oo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=ao(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new _t$1(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?xe(t,n,c?c.children:null,r,i):xe(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce$1(c.outlet.component,a));}else a&&$e$1(n,c,i),i.canActivateChecks.push(new _t$1(r)),o.component?xe(t,null,c?c.children:null,r,i):xe(t,null,e,r,i);return i}function ao(t,n,e){if(typeof e=="function")return Yn$3(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !le$1(t.url,n.url);case "pathParamsOrQueryParamsChange":return !le$1(t.url,n.url)||!V(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !dr(t,n)||!V(t.queryParams,n.queryParams);default:return !dr(t,n)}}function $e$1(t,n,e){let r=ye$1(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?$e$1(a,n.children.getContext(o),e):$e$1(a,null,e):$e$1(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce$1(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce$1(null,i)):e.canDeactivateChecks.push(new Ce$1(null,i));}function Ye(t){return typeof t=="function"}function so(t){return typeof t=="boolean"}function co(t){return t&&Ye(t.canLoad)}function uo(t){return t&&Ye(t.canActivate)}function lo(t){return t&&Ye(t.canActivateChild)}function ho(t){return t&&Ye(t.canDeactivate)}function fo(t){return t&&Ye(t.canMatch)}function Zn$1(t){return t instanceof sn$2||t?.name==="EmptyError"}var ht$1=Symbol("INITIAL_VALUE");function Ne$1(){return ga(t=>Cy(t.map(n=>n.pipe(cn$2(1),yd(ht$1)))).pipe(ne$3(n=>{for(let e of n)if(e!==true){if(e===ht$1)return ht$1;if(e===false||po(e))return e}return true}),Ot$1(n=>n!==ht$1),cn$2(1)))}function po(t){return te$1(t)||t instanceof Te}function Jn$1(t){return t.aborted?br$1(void 0).pipe(cn$2(1)):new R$2(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Xn$1(t){return bd(Jn$1(t))}function go(t){return pt$4(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?br$1(x$1(w$1({},n),{guardsResult:true})):vo(o,e,r).pipe(pt$4(a=>a&&so(a)?mo(e,i,t):br$1(a)),ne$3(a=>x$1(w$1({},n),{guardsResult:a})))})}function vo(t,n,e){return Ye$2(t).pipe(pt$4(r=>wo(r.component,r.route,e,n)),By(r=>r!==true,true))}function mo(t,n,e){return Ye$2(n).pipe(di$3(r=>kt$1(Ro(r.route.parent,e),yo(r.route,e),Co(t,r.path),So(t,r.route))),By(r=>r!==true,true))}function yo(t,n){return t!==null&&n&&n(new Et$1(t)),br$1(true)}function Ro(t,n){return t!==null&&n&&n(new It(t)),br$1(true)}function So(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return br$1(true);let r=e.map(i=>Ay(()=>{let o=n._environmentInjector,a=Me$1(i,o),c=uo(a)?a.canActivate(n,t):Yn$3(o,()=>a(n,t));return fe$1(c).pipe(By())}));return br$1(r).pipe(Ne$1())}function Co(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>io(o)).filter(o=>o!==null).map(o=>Ay(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$1(c,s),d=lo(u)?u.canActivateChild(e,t):Yn$3(s,()=>u(e,t));return fe$1(d).pipe(By())});return br$1(a).pipe(Ne$1())}));return br$1(i).pipe(Ne$1())}function wo(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return br$1(true);let o=i.map(a=>{let c=n._environmentInjector,s=Me$1(a,c),u=ho(s)?s.canDeactivate(t,n,e,r):Yn$3(c,()=>s(t,n,e,r));return fe$1(u).pipe(By())});return br$1(o).pipe(Ne$1())}function bo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return br$1(true);let a=o.map(c=>{let s=Me$1(c,t),u=co(s)?s.canLoad(n,e):Yn$3(t,()=>s(n,e)),d=fe$1(u);return i?d.pipe(Xn$1(i)):d});return br$1(a).pipe(Ne$1(),ei$1(r))}function ei$1(t){return oy(vd(n=>{if(typeof n!="boolean")throw Dt$1(t,n)}),ne$3(n=>n===true))}function Io(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return br$1(true);let c=a.map(s=>{let u=Me$1(s,t),d=fo(u)?u.canMatch(n,e,i):Yn$3(t,()=>u(n,e,i));return fe$1(d).pipe(Xn$1(o))});return br$1(c).pipe(Ne$1(),ei$1(r))}var K$1=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},We=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Ao(t){throw new m$2(4e3,false)}function Eo(t){throw Kn$1(false,A.GuardRejected)}var gr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){return B$3(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw Ao(`${n.redirectTo}`);i=i.children[p];}})}applyRedirectCommands(n,e,r,i,o){return B$3(this,null,function*(){let a=yield To(e,i,o);if(a instanceof T)throw new We(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new We(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new T(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new m$2(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function To(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return gt$1(fe$1(Yn$3(e,()=>r(n))))}function No(t,n){return t.providers&&!t._injector&&(t._injector=tg(t.providers,n,`Route: ${t.path}`)),t._injector??n}function H(t){return t.outlet||p}function Mo(t,n){let e=t.filter(r=>H(r)===n);return e.push(...t.filter(r=>H(r)!==n)),e}var vr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ti$1(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Do(t,n,e,r,i,o,a){let c=ri$1(t,n,e);if(!c.matched)return br$1(c);let s=ti$1(o(c));return r=No(n,r),Io(r,n,e,i,s,a).pipe(ne$3(u=>u===true?c:w$1({},vr)))}function ri$1(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?w$1({},vr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||En$1)(e,t,n);if(!i)return w$1({},vr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?w$1(w$1({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function bn(t,n,e,r,i){return e.length>0&&Oo(t,e,r,i)?{segmentGroup:new m(n,Uo(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&Po(t,e,r)?{segmentGroup:new m(t.segments,_o(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function _o(t,n,e,r){let i={};for(let o of e)if(Ot(t,n,o)&&!r[H(o)]){let a=new m([],{});i[H(o)]=a;}return w$1(w$1({},r),i)}function Uo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&H(r)!==p){let i=new m([],{});e[H(r)]=i;}return e}function Oo(t,n,e,r){return e.some(i=>!Ot(t,n,i)||!(H(i)!==p)?false:!(r!==void 0&&H(i)===r))}function Po(t,n,e){return e.some(r=>Ot(t,n,r))}function Ot(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function Lo(t,n,e){return n.length===0&&!t.children[e]}var mr=class{};function jo(t,n,e,r,i,o,a,c){return B$3(this,null,function*(){return new yr(t,n,e,r,i,a,o,c).recognize()})}var xo=31,yr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new gr(this.urlSerializer,this.urlTree);}noMatchError(n){return new m$2(4002,`'${n.segmentGroup}'`)}recognize(){return B$3(this,null,function*(){let n=bn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new U$1(r,e),o=new Ve$1("",i),a=xn$1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return B$3(this,null,function*(){let e=new Ee([],Object.freeze({}),Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof We)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof K$1?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return B$3(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof U$1?[a]:[]})}processChildren(n,e,r,i){return B$3(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],d=Mo(e,s),v=yield this.processSegmentGroup(n,d,u,s,i);a.push(...v);}let c=ni$1(a);return ko(c),c})}processSegment(n,e,r,i,o,a,c){return B$3(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof K$1||Zn$1(u))continue;throw u}if(Lo(r,i,o))return new mr;throw new K$1(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return B$3(this,null,function*(){if(H(r)!==a&&(a===p||!Ot(i,o,r)))throw new K$1(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new K$1(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return B$3(this,null,function*(){let{matched:s,parameters:u,consumedSegments:d,positionalParamSegments:v,remainingSegments:g}=ri$1(e,i,o);if(!s)throw new K$1(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xo&&(this.allowRedirects=false));let N=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let z=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,v,ti$1(N),n),oe=yield this.applyRedirects.lineralizeSegments(i,z);return this.processSegment(n,r,e,oe.concat(g),a,false,c)})}createSnapshot(n,e,r,i,o){let a=new Ee(r,i,Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,zo(e),H(e),e.component??e._loadedComponent??null,e,Ho(e),n),c=Cr(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}matchSegmentAgainstRoute(n,e,r,i,o,a){return B$3(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=ae=>this.createSnapshot(n,r,ae.consumedSegments,ae.parameters,a),s=yield gt$1(Do(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new K$1(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:N}=s,z=this.createSnapshot(n,r,g,v,a),{segmentGroup:oe,slicedSegments:De}=bn(e,g,N,u,o);if(De.length===0&&oe.hasChildren()){let ae=yield this.processChildren(d,u,oe,z);return new U$1(z,ae)}if(u.length===0&&De.length===0)return new U$1(z,[]);let zt=H(r)===o,Xe=yield this.processSegment(d,u,oe,De,zt?p:o,true,z);return new U$1(z,Xe instanceof U$1?[Xe]:[])})}getChildConfig(n,e,r){return B$3(this,null,function*(){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield gt$1(bo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Eo()}return {routes:[],injector:n}})}};function ko(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet));}function $o(t){let n=t.value.routeConfig;return n&&n.path===""}function ni$1(t){let n=[],e=new Set;for(let r of t){if(!$o(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=ni$1(r.children);n.push(new U$1(r.value,i));}return n.filter(r=>!e.has(r))}function zo(t){return t.data||{}}function Ho(t){return t.resolve||{}}function Fo(t,n,e,r,i,o,a){return pt$4(c=>B$3(null,null,function*(){let{state:s,tree:u}=yield jo(t,n,e,r,c.extractedUrl,i,o,a);return x$1(w$1({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function qo(t){return pt$4(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return br$1(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of ii$1(c))o.add(s);let a=0;return Ye$2(o).pipe(di$3(c=>i.has(c)?Bo(c,e,t):(c.data=Cr(c,c.parent,t).resolve,br$1(void 0))),vd(()=>a++),Vy(1),pt$4(c=>a===o.size?br$1(n):rn$2))})}function ii$1(t){let n=t.children.map(e=>ii$1(e)).flat();return [t,...n]}function Bo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Vn$1(r)&&(i[Qe$1]=r.title),Ay(()=>(t.data=Cr(t,t.parent,e).resolve,Vo(i,t,n).pipe(ne$3(o=>(t._resolvedData=o,t.data=w$1(w$1({},t.data),o),null)))))}function Vo(t,n,e){let r=or(t);if(r.length===0)return br$1({});let i={};return Ye$2(r).pipe(pt$4(o=>Go(t[o],n,e).pipe(By(),vd(a=>{if(a instanceof Te)throw Dt$1(new Y,a);i[o]=a;}))),Vy(1),ne$3(()=>i),ha(o=>Zn$1(o)?rn$2:_y(o)))}function Go(t,n,e){let r=n._environmentInjector,i=Me$1(t,r),o=i.resolve?i.resolve(n,e):Yn$3(r,()=>i(n,e));return fe$1(o)}function In$1(t){return ga(n=>{let e=t(n);return e?Ye$2(e).pipe(ne$3(()=>n)):br$1(n)})}var Er=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Qe$1]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(oi$1)})}return t})(),oi$1=(()=>{class t extends Er{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(b$2(jH))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ie=new T$4("",{factory:()=>({})}),ge$1=new T$4(""),Pt$1=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(eT);loadComponent(e,r){return B$3(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=B$3(this,null,function*(){try{let o=yield Nn$1(Yn$3(e,()=>r.loadComponent())),a=yield si$1(NB(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=B$3(this,null,function*(){try{let o=yield ai$1(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function ai$1(t,n,e,r){return B$3(this,null,function*(){let i=yield Nn$1(Yn$3(e,()=>t.loadChildren())),o=yield si$1(NB(i)),a;o instanceof eg||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,d;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,d=a,s=c.get(ge$1,[],{optional:true,self:true}).flat()),{routes:s.map(Ar),injector:c,factory:d}})}function si$1(t){return B$3(this,null,function*(){return t})}var Lt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(Wo)})}return t})(),Wo=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),Tr=new T$4(""),Nr=new T$4("");function ci$1(t,n,e){let r=t.get(Nr),i=t.get(U$5);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u;}),c=i.startViewTransition(()=>(o(),Qo(t)));c.updateCallbackDone.catch(u=>{}),c.ready.catch(u=>{}),c.finished.catch(u=>{});let{onViewTransitionCreated:s}=r;return s&&Yn$3(t,()=>s({transition:c,from:n,to:e})),a}function Qo(t){return new Promise(n=>{gE({read:()=>setTimeout(n)},{injector:t});})}var ui$1=new T$4(""),Ko=()=>{},Mr=new T$4(""),jt=(()=>{class t{currentNavigation=$i$1(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=$i$1(null);events=new le$4;transitionAbortWithErrorSubject=new le$4;configLoader=g(Pt$1);environmentInjector=g(pe$5);destroyRef=g(we$2);urlSerializer=g(ne);rootContexts=g(pe$1);location=g(mm);inputBindingEnabled=g(Ke$1,{optional:true})!==null;titleStrategy=g(Er);options=g(ie,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Ji;urlHandlingStrategy=g(Lt);createViewTransition=g(Tr,{optional:true});navigationErrorHandler=g(Mr,{optional:true});activatedRouteInjectorFeature=g(ui$1,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>br$1(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new wt$1(i)),r=i=>this.events.next(new bt$1(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;Co$1(()=>{this.transitions?.next(x$1(w$1({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new Tr$1(null),this.transitions.pipe(Ot$1(r=>r!==null),ga(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return br$1(r).pipe(ga(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),rn$2;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?x$1(w$1({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&v!=="reload")return this.events.next(new G(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(false),rn$2;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return br$1(s).pipe(ga(g=>(this.events.next(new re$1(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?rn$2:Promise.resolve(g))),Fo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),vd(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(N=>(N.finalUrl=g.urlAfterRedirects,N)),this.events.next(new qe$1);}),ga(g=>Ye$2(r.routesRecognizeHandler.deferredHandle??br$1(void 0)).pipe(ne$3(()=>g))),vd(()=>{let g=new Fe$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:N,source:z,restoredState:oe,extras:De}=s,zt=new re$1(g,this.urlSerializer.serialize(N),z,oe);this.events.next(zt);let Xe=qn$1(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=x$1(w$1({},s),{targetSnapshot:Xe,urlAfterRedirects:N,extras:x$1(w$1({},De),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(ae=>(ae.finalUrl=N,ae)),br$1(r)}else return this.events.next(new G(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(false),rn$2}),ne$3(s=>{let u=new yt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=x$1(w$1({},s),{guards:no(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),go(s=>this.events.next(s)),ga(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Dt$1(this.urlSerializer,s.guardsResult);let u=new Rt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return rn$2;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",A.GuardRejected),rn$2;if(s.guards.canActivateChecks.length===0)return br$1(s);let d=new St$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(d),!c())return rn$2;let v=false;return br$1(s).pipe(qo(this.paramsInheritanceStrategy),vd({next:()=>{v=true;let g=new Ct$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",A.NoDataFromResolver);}}))}),In$1(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let N=v._environmentInjector;g.push(this.configLoader.loadComponent(N,v.routeConfig).then(z=>{v.component=z;}));}for(let N of v.children)g.push(...u(N));return g},d=u(s.targetSnapshot.root);return d.length===0?br$1(s):Ye$2(Promise.all(d).then(()=>s))}),ga(s=>{let{newlyCreatedRoutes:u,state:d}=Xi(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=x$1(w$1({},s),{targetRouterState:d,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=d,v)),br$1(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),In$1(()=>this.afterPreactivation()),ga(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,d=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return d?Ye$2(d).pipe(ne$3(()=>r)):br$1(r)}),cn$2(1),ga(s=>{i=false,this.events.next(new Ie$1);let u=r.beforeActivateHandler.deferredHandle;return u?Ye$2(u.then(()=>s)):br$1(s)}),vd(s=>{new pr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Ko,u)),this.lastSuccessfulNavigation.set(Co$1(this.currentNavigation)),this.events.next(new P(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),bd(Jn$1(a.signal).pipe(Ot$1(()=>!o&&i),vd(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",A.Aborted);}))),vd({complete:()=>{o=true;}}),bd(this.transitionAbortWithErrorSubject.pipe(vd(s=>{throw s}))),ui$3(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),ha(s=>{if(o=true,An$1(r),this.destroyed)return r.resolve(false),rn$2;if(Yn$1(s))this.events.next(new $$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),ro(s)?this.events.next(new Ae$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new de$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let d=Yn$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Te){let{message:v,cancellationCode:g}=Dt$1(this.urlSerializer,d);this.events.next(new $$1(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new Ae$1(d.redirectTo,d.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(d);}}return rn$2}))}))}cancelNavigationTransition(e,r,i){An$1(e);let o=new $$1(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=Co$1(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Yo(t){return t!==Se}function An$1(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var li$1=new T$4("");var hi$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(Zo)})}return t})(),Ut=class{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},Zo=(()=>{class t extends Ut{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),xt=(()=>{class t{urlSerializer=g(ne);options=g(ie,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g(mm);urlHandlingStrategy=g(Lt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new T;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof T?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=qn$1(null,g(pe$5));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(Jo)})}return t})(),Jo=(()=>{class t extends xt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof re$1?this.updateStateMemento():e instanceof G?this.commitTransition(r):e instanceof Fe$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie$1?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $$1&&!Fn$1(e)?this.restoreHistory(r):e instanceof de$1?this.restoreHistory(r,true):e instanceof P&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=w$1(w$1({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=w$1(w$1({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?w$1({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):w$1({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function kt(t,n){t.events.pipe(Ot$1(e=>e instanceof P||e instanceof $$1||e instanceof de$1||e instanceof G),ne$3(e=>e instanceof P||e instanceof G?0:(e instanceof $$1?e.code===A.Redirect||e.code===A.SupersededByNewNavigation:false)?2:1),Ot$1(e=>e!==2),cn$2(1)).subscribe(()=>{n();});}var F=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=g(cg);stateManager=g(xt);options=g(ie,{optional:true})||{};pendingTasks=g(Zt$2);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(jt);urlSerializer=g(ne);location=g(mm);urlHandlingStrategy=g(Lt);injector=g(pe$5);_events=new le$4;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=g(hi$1);injectorCleanup=g(li$1,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(ge$1,{optional:true})?.flat()??[];componentInputBindingEnabled=!!g(Ke$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new ee$5;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=Co$1(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof $$1&&r.code!==A.Redirect&&r.code!==A.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof P)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=w$1({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Yo(i.source)},a);this.scheduleNavigation(c,Se,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Yi(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Se,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=x$1(w$1({},o),{browserUrl:e})),i){let u=w$1({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(ot$2)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Co$1(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ar),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":d=w$1(w$1({},this.currentUrlTree.queryParams),o);break;case "preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null;}d!==null&&(d=this.removeEmptyProps(d));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=kn$1(g);}catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return $n$1(v,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=te$1(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se,null,r)}navigate(e,r={skipLocationChange:false}){return Xo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(Xe(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=w$1({},Rr):r===false?i=w$1({},ze$1):i=w$1(w$1({},ze$1),r),te$1(e))return ar(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ar(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let d=this.pendingTasks.add();return kt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Xo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new m$2(4008,false)}var ea=(()=>{class t{router=g(F);stateManager=g(xt);fragment=$i$1("");queryParams=$i$1({});path=$i$1("");serializer=g(ne);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof P&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new T(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),$t=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g(new Qg("href"),{optional:true});reactiveHref=iT(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Co$1(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return Co$1(this._target)}_target=$i$1(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return Co$1(this._queryParams)}_queryParams=$i$1(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return Co$1(this._fragment)}_fragment=$i$1(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return Co$1(this._queryParamsHandling)}_queryParamsHandling=$i$1(void 0);set state(e){this._state.set(e);}get state(){return Co$1(this._state)}_state=$i$1(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return Co$1(this._info)}_info=$i$1(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return Co$1(this._relativeTo)}_relativeTo=$i$1(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return Co$1(this._preserveFragment)}_preserveFragment=$i$1(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return Co$1(this._skipLocationChange)}_skipLocationChange=$i$1(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return Co$1(this._replaceUrl)}_replaceUrl=$i$1(false);browserUrl=AB(void 0);isAnchorElement;onChanges=new le$4;applicationErrorHandler=g(ot$2);options=g(ie,{optional:true});reactiveRouterState=g(ea);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=$i$1(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te$1(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=w$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(d=>{this.applicationErrorHandler(d);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=rT(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:te$1(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return Co$1(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(ze$2(F),ze$2(W$1),Tu("tabindex"),ze$2(Xu),ze$2(Rn$3),ze$2(Dr$1))};static \u0275dir=cl({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&vg("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&lg("href",i.reactiveHref(),XD)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",LT],skipLocationChange:[2,"skipLocationChange","skipLocationChange",LT],replaceUrl:[2,"replaceUrl","replaceUrl",LT],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[wu]})}return t})(),ta=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new yt$3;link=g($t,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof P&&this.update();});}ngAfterContentInit(){br$1(this.links.changes,br$1(null)).pipe(Sr$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Ye$2(e).pipe(Sr$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=ra(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?w$1({},Rr):w$1({},ze$1);return i=>{let o=i.urlTree;return o?Co$1(Sr(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(ze$2(F),ze$2(Rn$3),ze$2(Xu),ze$2(am))};static \u0275dir=cl({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Ig(o,$t,5),r&2){let a;iC(a=sC())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[wu]})}return t})();function ra(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ze=class{};var di$1=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o;}setUpPreloading(){this.subscription=this.router.events.pipe(Ot$1(e=>e instanceof P),di$3(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=tg(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes));}return Ye$2(i).pipe(Sr$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return br$1(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ye$2(this.loader.loadChildren(e,r)):i=br$1(null);let o=i.pipe(pt$4(a=>a===null?br$1(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return Ye$2([o,a]).pipe(Sr$1())}else return o})}static \u0275fac=function(r){return new(r||t)(b$2(F),b$2(pe$5),b$2(Ze),b$2(Pt$1))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fi$1=new T$4(""),na=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se;restoredId=0;store={};isHydrating=g(vD,{optional:true})??false;urlSerializer=g(ne);zone=g(G$2);viewportScroller=g(d2);transitions=g(jt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g(yr$1).whenStable().then(()=>{this.isHydrating=false;});}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof re$1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof P?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof G&&e.code===we.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof be)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=Co$1(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B$3(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o);}),this.zone.run(()=>{this.transitions.events.next(new be(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){PI();};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})();function ia(t,...n){return wt$3([{provide:ge$1,multi:true,useValue:t},{provide:W$1,useFactory:pi$1},{provide:fl,multi:true,useFactory:gi$1},n.map(e=>e.\u0275providers)])}function pi$1(){return g(F).routerState.root}function Je(t,n){return {\u0275kind:t,\u0275providers:n}}function gi$1(){let t=g(he$4);return n=>{let e=t.get(yr$1);if(n!==e.components[0])return;let r=t.get(F),i=t.get(vi$1);t.get(_r)===1&&r.initialNavigation(),t.get(Ri$1,null,{optional:true})?.setUpPreloading(),t.get(fi$1,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var vi$1=new T$4("",{factory:()=>new le$4}),_r=new T$4("",{factory:()=>1});function mi$1(){let t=[{provide:Wp,useValue:true},{provide:_r,useValue:0},Cw(()=>{let n=g(he$4);return n.get(VT,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(F),o=n.get(vi$1);kt(i,()=>{r(true);}),n.get(jt).afterPreactivation=()=>(r(true),o.closed?br$1(void 0):o),i.initialNavigation();}))})];return Je(2,t)}function yi$1(){let t=[Cw(()=>{g(F).setUpLocationChangeListener();}),{provide:_r,useValue:2}];return Je(3,t)}var Ri$1=new T$4("");function Si$1(t){return Je(0,[{provide:Ri$1,useExisting:di$1},{provide:Ze,useExisting:t}])}function Ci$1(t={}){return Je(8,[{provide:Ke$1,useFactory:()=>new Wn$1(t)}])}function wi$1(t){ut$2("NgRouterViewTransitions");let n=[{provide:Tr,useValue:ci$1},{provide:Nr,useValue:w$1({skipNextTransition:false},t)}];return Je(9,n)}var bi$1=[mm,{provide:ne,useClass:Y},F,pe$1,{provide:W$1,useFactory:pi$1},Pt$1],oa=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[bi$1,[],{provide:ge$1,multi:true,useValue:e},[],r?.errorHandler?{provide:Mr,useValue:r.errorHandler}:[],{provide:ie,useValue:r||{}},r?.useHash?sa():ca(),aa(),r?.preloadingStrategy?Si$1(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ua(r):[],r?.bindToComponentInputs?Ci$1(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?wi$1().\u0275providers:[],la()]}}static forChild(e){return {ngModule:t,providers:[{provide:ge$1,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Fs$1({type:t});static \u0275inj=Vr({})}return t})();function aa(){return {provide:fi$1,useFactory:()=>{let t=g(d2),n=g(ie);return n.scrollOffset&&t.setOffset(n.scrollOffset),new na(n)}}}function sa(){return {provide:Dr$1,useClass:zT}}function ca(){return {provide:Dr$1,useClass:gm}}function ua(t){return [t.initialNavigation==="disabled"?yi$1().\u0275providers:[],t.initialNavigation==="enabledBlocking"?mi$1().\u0275providers:[]]}var Dr=new T$4("");function la(){return [{provide:Dr,useFactory:gi$1},{provide:fl,multi:true,useExisting:Dr}]}
|
|
1253
|
+
var _=(function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i})(_||{}),K="*";function _s(i,e=null){return {type:_.Sequence,steps:i,options:e}}function tt(i){return {type:_.Style,styles:i,offset:null}}var $=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},re=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,s=0,n=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish();}),o.onDestroy(()=>{++s==r&&this._onDestroy();}),o.onStart(()=>{++n==r&&this._onStart();});}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let n=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(n);});}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},he="!";function Ss(i){return new m$2(3e3,false)}function wn(){return new m$2(3100,false)}function An(){return new m$2(3101,false)}function Pn(i){return new m$2(3001,false)}function Nn(i){return new m$2(3003,false)}function Cn(i){return new m$2(3004,false)}function vs(i,e){return new m$2(3005,false)}function Ts(){return new m$2(3006,false)}function bs(){return new m$2(3007,false)}function ws(i,e){return new m$2(3008,false)}function As(i){return new m$2(3002,false)}function Ps(i,e,t,s,n){return new m$2(3010,false)}function Ns(){return new m$2(3011,false)}function Cs(){return new m$2(3012,false)}function Ms(){return new m$2(3200,false)}function Ds(){return new m$2(3202,false)}function Fs(){return new m$2(3013,false)}function ks(i){return new m$2(3014,false)}function Rs(i){return new m$2(3015,false)}function Os(i){return new m$2(3016,false)}function Is(i,e){return new m$2(3404,false)}function Mn(i){return new m$2(3502,false)}function Ls(i){return new m$2(3503,false)}function zs(){return new m$2(3300,false)}function Ks(i){return new m$2(3504,false)}function qs(i){return new m$2(3301,false)}function Bs(i,e){return new m$2(3302,false)}function Qs(i){return new m$2(3303,false)}function Vs(i,e){return new m$2(3400,false)}function Us(i){return new m$2(3401,false)}function $s(i){return new m$2(3402,false)}function js(i,e){return new m$2(3505,false)}function j(i){switch(i.length){case 0:return new $;case 1:return i[0];default:return new re(i)}}function rt(i,e,t=new Map,s=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let u=l.get("offset"),h=u==o,c=h&&a||new Map;l.forEach((S,y)=>{let f=y,g=S;if(y!=="offset")switch(f=i.normalizePropertyName(f,n),g){case he:g=t.get(y);break;case K:g=s.get(y);break;default:g=i.normalizeStyleValue(y,f,g,n);break}c.set(f,g);}),h||r.push(c),a=c,o=u;}),n.length)throw Mn();return r}function Ae(i,e,t,s){switch(e){case "start":i.onStart(()=>s(t&&st(t,"start",i)));break;case "done":i.onDone(()=>s(t&&st(t,"done",i)));break;case "destroy":i.onDestroy(()=>s(t&&st(t,"destroy",i)));break}}function st(i,e,t){let s=t.totalTime,n=!!t.disabled,r=Pe(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,s??i.totalTime,n),o=i._data;return o!=null&&(r._data=o),r}function Pe(i,e,t,s,n="",r=0,o){return {element:i,triggerName:e,fromState:t,toState:s,phaseName:n,totalTime:r,disabled:!!o}}function k(i,e,t){let s=i.get(e);return s||i.set(e,s=t),s}function ot(i){let e=i.indexOf(":"),t=i.substring(1,e),s=i.slice(e+1);return [t,s]}var Dn=typeof document>"u"?null:document.documentElement;function Ne(i){let e=i.parentNode||i.host||null;return e===Dn?null:e}function Fn(i){return i.substring(1,6)=="ebkit"}var Z=null,Es=false;function Gs(i){Z||(Z=kn()||{},Es=Z.style?"WebkitAppearance"in Z.style:false);let e=true;return Z.style&&!Fn(i)&&(e=i in Z.style,!e&&Es&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Z.style)),e}function kn(){return typeof document<"u"?document.body:null}function at(i,e){for(;e;){if(e===i)return true;e=Ne(e);}return false}function lt(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let s=i.querySelector(e);return s?[s]:[]}var Rn=1e3,ut="{{",On="}}",ct="ng-enter",Ce="ng-leave",de="ng-trigger",fe=".ng-trigger",ht="ng-animating",Me=".ng-animating";function U(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:nt(parseFloat(e[1]),e[2])}function nt(i,e){return e==="s"?i*Rn:i}function me(i,e,t){return i.hasOwnProperty("duration")?i:Ln(i,e,t)}var In=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Ln(i,e,t){let s,n=0,r="";if(typeof i=="string"){let o=i.match(In);if(o===null)return e.push(Ss()),{duration:0,delay:0,easing:""};s=nt(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(n=nt(parseFloat(a),o[4]));let l=o[5];l&&(r=l);}else s=i;if(!t){let o=false,a=e.length;s<0&&(e.push(wn()),o=true),n<0&&(e.push(An()),o=true),o&&e.splice(a,0,Ss());}return {duration:s,delay:n,easing:r}}function xs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function q(i,e,t){e.forEach((s,n)=>{let r=De(n);t&&!t.has(n)&&t.set(n,i.style[r]),i.style[r]=s;});}function W(i,e){e.forEach((t,s)=>{let n=De(s);i.style[n]="";});}function oe(i){return Array.isArray(i)?i.length==1?i[0]:_s(i):i}function Ws(i,e,t){let s=e.params||{},n=dt(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(Pn());});}var it=new RegExp(`${ut}\\s*(.+?)\\s*${On}`,"g");function dt(i){let e=[];if(typeof i=="string"){let t;for(;t=it.exec(i);)e.push(t[1]);it.lastIndex=0;}return e}function ae(i,e,t){let s=`${i}`,n=s.replace(it,(r,o)=>{let a=e[o];return a==null&&(t.push(Nn()),a=""),a.toString()});return n==s?i:n}var zn=/-+([a-z0-9])/g;function De(i){return i.replace(zn,(...e)=>e[1].toUpperCase())}function Hs(i,e){return i===0||e===0}function Ys(i,e,t){if(t.size&&e.length){let s=e[0],n=[];if(t.forEach((r,o)=>{s.has(o)||n.push(o),s.set(o,r);}),n.length)for(let r=1;r<e.length;r++){let o=e[r];n.forEach(a=>o.set(a,Fe(i,a)));}}return e}function R(i,e,t){switch(e.type){case _.Trigger:return i.visitTrigger(e,t);case _.State:return i.visitState(e,t);case _.Transition:return i.visitTransition(e,t);case _.Sequence:return i.visitSequence(e,t);case _.Group:return i.visitGroup(e,t);case _.Animate:return i.visitAnimate(e,t);case _.Keyframes:return i.visitKeyframes(e,t);case _.Style:return i.visitStyle(e,t);case _.Reference:return i.visitReference(e,t);case _.AnimateChild:return i.visitAnimateChild(e,t);case _.AnimateRef:return i.visitAnimateRef(e,t);case _.Query:return i.visitQuery(e,t);case _.Stagger:return i.visitStagger(e,t);default:throw Cn(e.type)}}function Fe(i,e){return window.getComputedStyle(i)[e]}var Mt=(()=>{class i{validateStyleProperty(t){return Gs(t)}containsElement(t,s){return at(t,s)}getParentElement(t){return Ne(t)}query(t,s,n){return lt(t,s,n)}computeStyle(t,s,n){return n||""}animate(t,s,n,r,o,a=[],l){return new $(n,r)}static \u0275fac=function(s){return new(s||i)};static \u0275prov=x({token:i,factory:i.\u0275fac})}return i})(),ee=class{static NOOP=new Mt},te=class{};var Kn=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Le=class extends te{normalizePropertyName(e,t){return De(e)}normalizeStyleValue(e,t,s,n){let r="",o=s.toString().trim();if(Kn.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else {let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(vs());}return o+r}};var ze="*";function qn(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(s=>Bn(s,t,e)):t.push(i),t}function Bn(i,e,t){if(i[0]==":"){let l=Qn(i,t);if(typeof l=="function"){e.push(l);return}i=l;}let s=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(Rs()),e;let n=s[1],r=s[2],o=s[3];e.push(Xs(n,o));let a=n==ze&&o==ze;r[0]=="<"&&!a&&e.push(Xs(o,n));}function Qn(i,e){switch(i){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,s)=>parseFloat(s)>parseFloat(t);case ":decrement":return (t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(Os()),"* => *"}}var ke=new Set(["true","1"]),Re=new Set(["false","0"]);function Xs(i,e){let t=ke.has(i)||Re.has(i),s=ke.has(e)||Re.has(e);return (n,r)=>{let o=i==ze||i==n,a=e==ze||e==r;return !o&&t&&typeof n=="boolean"&&(o=n?ke.has(i):Re.has(i)),!a&&s&&typeof r=="boolean"&&(a=r?ke.has(e):Re.has(e)),o&&a}}var un=":self",Vn=new RegExp(`s*${un}s*,?`,"g");function cn(i,e,t,s){return new _t(i).build(e,t,s)}var Zs="",_t=class{_driver;constructor(e){this._driver=e;}build(e,t,s){let n=new St(t);return this._resetContextStyleTimingState(n),R(this,oe(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Zs,e.collectedStyles=new Map,e.collectedStyles.set(Zs,new Map),e.currentTime=0;}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Ts()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t));}),l.name=u;}else if(a.type==_.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,n+=l.depCount,o.push(l);}else t.errors.push(bs());}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:n,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=n||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{dt(l).forEach(u=>{o.hasOwnProperty(u)||r.add(u);});});}),r.size&&t.errors.push(ws(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,oe(e.animation),t),n=qn(e.expr,t.errors);return {type:_.Transition,matchers:n,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:J(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:J(e.options)}}visitGroup(e,t){let s=t.currentTime,n=0,r=e.steps.map(o=>{t.currentTime=s;let a=R(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:_.Group,steps:r,options:J(e.options)}}visitAnimate(e,t){let s=Gn(e.timings,t.errors);t.currentAnimateTimings=s;let n,r=e.styles?e.styles:tt({});if(r.type==_.Keyframes)n=this.visitKeyframes(r,t);else {let o=e.styles,a=false;if(!o){a=true;let u={};s.easing&&(u.easing=s.easing),o=tt(u);}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:n,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===K?s.push(a):t.errors.push(As()):s.push(new Map(Object.entries(a)));let r=false,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(ut)>=0){r=true;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),h=u.get(l),c=true;h&&(r!=n&&r>=h.startTime&&n<=h.endTime&&(t.errors.push(Ps(l,h.startTime,h.endTime)),c=false),r=h.startTime),c&&u.set(l,{startTime:r,endTime:n}),t.options&&Ws(a,t.options,t.errors);});});}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ns()),s;let n=1,r=0,o=[],a=false,l=false,u=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:jn(A.styles),N=0;return M!=null&&(r++,N=A.offset=M),l=l||N<0||N>1,a=a||N<u,u=N,o.push(N),A});l&&t.errors.push(Cs()),a&&t.errors.push(Ms());let c=e.steps.length,S=0;r>0&&r<c?t.errors.push(Ds()):r==0&&(S=n/(c-1));let y=c-1,f=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return h.forEach((w,A)=>{let M=S>0?A==y?1:S*A:o[A],N=M*T;t.currentTime=f+g.delay+N,g.duration=N,this._validateStyleAst(w,t),w.offset=M,s.styles.push(w);}),s}visitReference(e,t){return {type:_.Reference,animation:R(this,oe(e.animation),t),options:J(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:J(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:J(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=Un(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,k(t.collectedStyles,t.currentQuerySelector,new Map);let a=R(this,oe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:J(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Fs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:me(e.timings,t.errors,true);return {type:_.Stagger,animation:R(this,oe(e.animation),t),timings:s,options:null}}};function Un(i){let e=!!i.split(/\s*,\s*/).find(t=>t==un);return e&&(i=i.replace(Vn,"")),i=i.replace(/@\*/g,fe).replace(/@\w+/g,t=>fe+"-"+t.slice(1)).replace(/:animating/g,Me),[i,e]}function $n(i){return i?w$1({},i):null}var St=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e;}};function jn(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset");}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Gn(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=me(i,e).duration;return ft(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ft(0,0,"");return r.dynamic=true,r.strValue=t,r}let n=me(t,e);return ft(n.duration,n.delay,n.easing)}function J(i){return i?(i=w$1({},i),i.params&&(i.params=$n(i.params))):i={},i}function ft(i,e,t){return {duration:i,delay:e,easing:t}}function Dt(i,e,t,s,n,r,o=null,a=false){return {type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:s,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var ge=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},xn=1,Wn=":enter",Hn=new RegExp(Wn,"g"),Yn=":leave",Xn=new RegExp(Yn,"g");function hn(i,e,t,s,n,r=new Map,o=new Map,a,l,u=[]){return new Et().buildKeyframes(i,e,t,s,n,r,o,a,l,u)}var Et=class{buildKeyframes(e,t,s,n,r,o,a,l,u,h=[]){u=u||new ge;let c=new vt(e,t,u,n,r,h,[]);c.options=l;let S=l.delay?U(l.delay):0;c.currentTimeline.delayNextStep(S),c.currentTimeline.setStyles([o],null,c.errors,l),R(this,s,c);let y=c.timelines.filter(f=>f.containsAnimation());if(y.length&&a.size){let f;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,c.errors,l);}return y.length?y.map(f=>f.buildKeyframes()):[Dt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,n,n.options);r!=o&&t.transformIntoNewTimeline(o);}t.previousNode=e;}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,s){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:U(ae(r,n?.params??{},t.errors));s.delayNextStep(o);}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,o=s.duration!=null?U(s.duration):null,a=s.delay!=null?U(s.delay):null;return o!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,u.duration+u.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),R(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let s=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==_.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ke);let o=U(r.delay);n.delayNextStep(o);}e.steps.length&&(e.steps.forEach(o=>R(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let s=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?U(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),R(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),s.push(a.currentTimeline);}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,n=t.params?ae(s,t.params,t.errors):s;return me(n,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let s=t.currentAnimateTimings,n=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;a.forwardTime(u*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e;}visitQuery(e,t){let s=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?U(n.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ke);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((u,h)=>{t.currentQueryIndex=h;let c=t.createSubContext(e.options,u);r&&c.delayNextStep(r),u===t.element&&(l=c.currentTimeline),R(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let S=c.currentTimeline.currentTime;o=Math.max(o,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let s=t.parentContext,n=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case "reverse":l=a-l;break;case "full":l=s.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let c=h.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-c+(n.startTime-s.currentTimeline.startTime);}},Ke={},vt=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ke;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new qe(this._driver,t,0),a.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,n=this.options;s.duration!=null&&(n.duration=U(s.duration)),s.delay!=null&&(n.delay=U(s.delay));let r=s.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ae(r[a],o,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(n=>{s[n]=t[n];});}}return e}createSubContext(e=null,t,s){let n=t||this.element,r=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ke,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new Tt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,s,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(Hn,"."+this._enterClassName),e=e.replace(Xn,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),a.push(...u);}return !r&&a.length==0&&o.push(ks()),a}},qe=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return false;case 1:return this.hasCurrentStyleProperties();default:return true}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e;}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe));}forwardFrame(){this.duration+=xn,this._loadKeyframe();}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe();}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||K),this._currentKeyframe.set(t,K);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,s,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=Zn(e,this._globalTimelineStyles);for(let[a,l]of o){let u=ae(l,r,s);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??K),this._updateStyle(a,u);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e);}));}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t);}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let n=this._styleSummary.get(s);(!n||t.time>n.time)&&this._updateStyle(s,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let u=new Map([...this._backFill,...a]);u.forEach((h,c)=>{h===he?e.add(c):h===K&&t.add(c);}),s||u.set("offset",l/this.duration),n.push(u);});let r=[...e.values()],o=[...t.values()];if(s){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l];}return Dt(this.element,n,r,o,this.duration,this.startTime,this.easing,false)}},Tt=class extends qe{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,n,r,o,a=false){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",Js(a)),r.push(u);let h=e.length-1;for(let c=1;c<=h;c++){let S=new Map(e[c]),y=S.get("offset"),f=t+y*s;S.set("offset",Js(f/o)),r.push(S);}s=o,t=0,n="",e=r;}return Dt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,true)}};function Js(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Zn(i,e){let t=new Map,s;return i.forEach(n=>{if(n==="*"){s??=e.keys();for(let r of s)t.set(r,K);}else for(let[r,o]of n)t.set(r,o);}),t}function en(i,e,t,s,n,r,o,a,l,u,h,c,S){return {type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:c,errors:S}}var mt={},Be=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s;}match(e,t,s,n){return Jn(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,r,o,a,l,u,h){let c=[],S=this.ast.options&&this.ast.options.params||mt,y=a&&a.params||mt,f=this.buildStyles(s,y,c),g=l&&l.params||mt,T=this.buildStyles(n,g,c),w=new Set,A=new Map,M=new Map,N=n==="void",se={params:dn(g,S),delay:this.ast.options?.delay},Q=h?[]:hn(e,t,this.ast.animation,r,o,f,T,se,u,c),D=0;return Q.forEach(F=>{D=Math.max(F.duration+F.delay,D);}),c.length?en(t,this._triggerName,s,n,N,f,T,[],[],A,M,D,c):(Q.forEach(F=>{let H=F.element,ne=k(A,H,new Set);F.preStyleProps.forEach(Y=>ne.add(Y));let kt=k(M,H,new Set);F.postStyleProps.forEach(Y=>kt.add(Y)),H!==t&&w.add(H);}),en(t,this._triggerName,s,n,N,f,T,Q,[...w.values()],A,M,D))}};function Jn(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}function dn(i,e){let t=w$1({},e);return Object.entries(i).forEach(([s,n])=>{n!=null&&(t[s]=n);}),t}var bt=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s;}buildStyles(e,t){let s=new Map,n=dn(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=ae(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o);});}),s}};function ei(i,e,t){return new wt(i,e,t)}var wt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new bt(n.style,r,s));}),tn(this.states,"true","1"),tn(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Be(e,n,this.states));}),this.fallbackTransition=ti(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find(o=>o.match(e,t,s,n))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ti(i,e,t){let s=[(o,a)=>true],n={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:n,matchers:s,options:null,queryCount:0,depCount:0};return new Be(i,r,e)}function tn(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t));}var si=new ge,At=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s;}register(e,t){let s=[],n=[],r=cn(this._driver,t,s,n);if(s.length)throw Ls();this._animations.set(e,r);}_buildPlayer(e,t,s){let n=e.element,r=rt(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],true)}create(e,t,s={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=hn(this._driver,t,r,ct,Ce,new Map,new Map,s,si,n),o.forEach(h=>{let c=k(a,h.element,new Map);h.postStyleProps.forEach(S=>c.set(S,null));})):(n.push(zs()),o=[]),n.length)throw Ks();a.forEach((h,c)=>{h.forEach((S,y)=>{h.set(y,this._driver.computeStyle(c,y,K));});});let l=o.map(h=>{let c=a.get(h.element);return this._buildPlayer(h,new Map,c)}),u=j(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw qs();return t}listen(e,t,s,n){let r=Pe(t,"","","");return Ae(this._getPlayer(e),s,r,n),()=>{}}command(e,t,s,n){if(s=="register"){this.register(e,n[0]);return}if(s=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(s){case "play":r.play();break;case "pause":r.pause();break;case "reset":r.reset();break;case "restart":r.restart();break;case "finish":r.finish();break;case "init":r.init();break;case "setPosition":r.setPosition(parseFloat(n[0]));break;case "destroy":this.destroy(e);break}}},sn="ng-animate-queued",ni=".ng-animate-queued",pt="ng-animate-disabled",ii=".ng-animate-disabled",ri="ng-star-inserted",oi=".ng-star-inserted",ai=[],fn={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},li={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},B="__ng_removed",ye=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=ci(n),s){let r=e,{value:o}=r,a=y$1(r,["value"]);this.options=a;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(n=>{s[n]==null&&(s[n]=t[n]);});}}},pe="void",gt=new ye(pe),Pt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,z(t,this._hostClassName);}listen(e,t,s,n){if(!this._triggers.has(t))throw Bs();if(s==null||s.length==0)throw Qs();if(!hi(s))throw Vs();let r=k(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);let a=k(this._engine.statesByElement,e,new Map);return a.has(t)||(z(e,de),z(e,de+"-"+t),a.set(t,gt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t);});}}register(e,t){return this._triggers.has(e)?false:(this._triggers.set(e,t),true)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Us();return t}trigger(e,t,s,n=true){let r=this._getTrigger(t),o=new _e(this.id,t,e),a=this._engine.statesByElement.get(e);a||(z(e,de),z(e,de+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),u=new ye(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(t,u),l||(l=gt),!(u.value===pe)&&l.value===u.value){if(!mi(l.params,u.params)){let g=[],T=r.matchStyles(l.value,l.params,g),w=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{W(e,T),q(e,w);});}return}let S=k(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,u.value,e,u.params),f=false;if(!y){if(!n)return;y=r.fallbackTransition,f=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:o,isFallbackTransition:f}),f||(z(e,sn),o.onStart(()=>{le(e,sn);})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let w=T.indexOf(o);w>=0&&T.splice(w,1);}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(n=>n.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,fe,true);s.forEach(n=>{if(n[B])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,false,true)):this.clearElementCache(n);}),this._engine.afterFlushAnimationsDone(()=>s.forEach(n=>this.clearElementCache(n)));}triggerLeaveAnimation(e,t,s,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,u)=>{if(o.set(u,l.value),this._triggers.has(u)){let h=this.trigger(e,u,pe,n);h&&a.push(h);}}),a.length)return this._engine.markElementAsRemoved(this.id,e,true,t,o),s&&j(a).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,u=s.get(o)||gt,h=new ye(pe),c=new _e(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:h,player:c,isFallbackTransition:true});});}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let n=false;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)n=true;else {let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){n=true;break}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,false,t);else {let r=e[B];(!r||r===fn)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t));}}insertNode(e,t){z(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let n=s.player;if(n.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=Pe(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Ae(s.player,a.phase,l,a.callback);}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy();}):t.push(s);}),this._queue=[],t.sort((s,n)=>{let r=s.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},Nt=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s);});}),e}createNamespace(e,t){let s=new Pt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let o=false,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),o=true;break}a=this.driver.getParentElement(a);}o||s.unshift(e);}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,1),s.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let n of s.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r);}}return t}trigger(e,t,s,n){if(Oe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,n),true}return false}insertNode(e,t,s,n){if(!Oe(t))return;let r=t[B];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1);}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s);}n&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),z(e,pt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),le(e,pt));}removeNode(e,t,s){if(Oe(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,false,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s);}else this._onRemovalComplete(t,s);}markElementAsRemoved(e,t,s,n,r){this.collectedLeaveElements.push(t),t[B]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,s,n,r){return Oe(t)?this._fetchNamespace(e).listen(t,s,n,r):()=>{}}_buildInstruction(e,t,s,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,fe,true);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Me,true),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=true:s.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[B];if(t&&t.setForRemoval){if(e[B]=fn,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(pt)&&this.markElementAsDisabled(e,false),this.driver.query(e,ii,true).forEach(s=>{this.markElementAsDisabled(s,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,n)=>this._balanceNamespaceList(s,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++){let n=this.collectedEnterElements[s];z(n,ri);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let s=[];try{t=this._flushAnimations(s,e);}finally{for(let n=0;n<s.length;n++)s[n]();}}else for(let s=0;s<this.collectedLeaveElements.length;s++){let n=this.collectedLeaveElements[s];this.processLeaveNode(n);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(n=>n());}):s.forEach(n=>n());}}reportError(e){throw $s()}_flushAnimations(e,t){let s=new ge,n=[],r=new Map,o=[],a=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let m=this.driver.query(d,ni,true);for(let p=0;p<m.length;p++)h.add(m[p]);});let c=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=on(S,this.collectedEnterElements),f=new Map,g=0;y.forEach((d,m)=>{let p=ct+g++;f.set(m,p),d.forEach(E=>z(E,p));});let T=[],w=new Set,A=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let m=this.collectedLeaveElements[d],p=m[B];p&&p.setForRemoval&&(T.push(m),w.add(m),p.hasAnimation?this.driver.query(m,oi,true).forEach(E=>w.add(E)):A.add(m));}let M=new Map,N=on(S,Array.from(w));N.forEach((d,m)=>{let p=Ce+g++;M.set(m,p),d.forEach(E=>z(E,p));}),e.push(()=>{y.forEach((d,m)=>{let p=f.get(m);d.forEach(E=>le(E,p));}),N.forEach((d,m)=>{let p=M.get(m);d.forEach(E=>le(E,p));}),T.forEach(d=>{this.processLeaveNode(d);});});let se=[],Q=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let E=p.player,P=p.element;if(se.push(E),this.collectedEnterElements.length){let C=P[B];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let X=C.previousTriggersValues.get(p.triggerName),I=this.statesByElement.get(p.element);if(I&&I.has(p.triggerName)){let Se=I.get(p.triggerName);Se.value=X,I.set(p.triggerName,Se);}}E.destroy();return}}let V=!c||!this.driver.containsElement(c,P),O=M.get(P),G=f.get(P),b=this._buildInstruction(p,s,G,O,V);if(b.errors&&b.errors.length){Q.push(b);return}if(V){E.onStart(()=>W(P,b.fromStyles)),E.onDestroy(()=>q(P,b.toStyles)),n.push(E);return}if(p.isFallbackTransition){E.onStart(()=>W(P,b.fromStyles)),E.onDestroy(()=>q(P,b.toStyles)),n.push(E);return}let It=[];b.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||It.push(C);}),b.timelines=It,s.append(P,b.timelines);let bn={instruction:b,player:E,element:P};o.push(bn),b.queriedElements.forEach(C=>k(a,C,[]).push(E)),b.preStyleProps.forEach((C,X)=>{if(C.size){let I=l.get(X);I||l.set(X,I=new Set),C.forEach((Se,xe)=>I.add(xe));}}),b.postStyleProps.forEach((C,X)=>{let I=u.get(X);I||u.set(X,I=new Set),C.forEach((Se,xe)=>I.add(xe));});});if(Q.length){let d=[];Q.forEach(m=>{d.push(js(m.triggerName,m.errors));}),se.forEach(m=>m.destroy()),this.reportError(d);}let D=new Map,F=new Map;o.forEach(d=>{let m=d.element;s.has(m)&&(F.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D));}),n.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,false,d.namespaceId,d.triggerName,null).forEach(E=>{k(D,m,[]).push(E),E.destroy();});});let H=T.filter(d=>an(d,l,u)),ne=new Map;rn(ne,this.driver,A,u,K).forEach(d=>{an(d,l,u)&&H.push(d);});let Y=new Map;y.forEach((d,m)=>{rn(Y,this.driver,new Set(d),l,he);}),H.forEach(d=>{let m=ne.get(d),p=Y.get(d);ne.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]));});let Ge=[],Rt=[],Ot={};o.forEach(d=>{let{element:m,player:p,instruction:E}=d;if(s.has(m)){if(h.has(m)){p.onDestroy(()=>q(m,E.toStyles)),p.disabled=true,p.overrideTotalTime(E.totalTime),n.push(p);return}let P=Ot;if(F.size>1){let O=m,G=[];for(;O=O.parentNode;){let b=F.get(O);if(b){P=b;break}G.push(O);}G.forEach(b=>F.set(b,P));}let V=this._buildAnimation(p.namespaceId,E,D,r,Y,ne);if(p.setRealPlayer(V),P===Ot)Ge.push(p);else {let O=this.playersByElement.get(P);O&&O.length&&(p.parentPlayer=j(O)),n.push(p);}}else W(m,E.fromStyles),p.onDestroy(()=>q(m,E.toStyles)),Rt.push(p),h.has(m)&&n.push(p);}),Rt.forEach(d=>{let m=r.get(d.element);if(m&&m.length){let p=j(m);d.setRealPlayer(p);}}),n.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy();});for(let d=0;d<T.length;d++){let m=T[d],p=m[B];if(le(m,Ce),p&&p.hasAnimation)continue;let E=[];if(a.size){let V=a.get(m);V&&V.length&&E.push(...V);let O=this.driver.query(m,Me,true);for(let G=0;G<O.length;G++){let b=a.get(O[G]);b&&b.length&&E.push(...b);}}let P=E.filter(V=>!V.destroyed);P.length?di(this,m,P):this.processLeaveNode(m);}return T.length=0,Ge.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1);}),d.play();}),Ge}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,s,n,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a);}else {let a=this.playersByElement.get(e);if(a){let l=!r||r==pe;a.forEach(u=>{u.queued||!l&&u.triggerName!=n||o.push(u);});}}return (s||n)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let u=l.element,h=u!==r,c=k(s,u,[]);this._getPreviousPlayers(u,h,o,a,t.toState).forEach(y=>{let f=y.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),y.destroy(),c.push(y);});}W(r,t.fromStyles);}_buildAnimation(e,t,s,n,r,o){let a=t.triggerName,l=t.element,u=[],h=new Set,c=new Set,S=t.timelines.map(f=>{let g=f.element;h.add(g);let T=g[B];if(T&&T.removedBeforeQueried)return new $(f.duration,f.delay);let w=g!==l,A=fi((s.get(g)||ai).map(D=>D.getRealPlayer())).filter(D=>{let F=D;return F.element?F.element===g:false}),M=r.get(g),N=o.get(g),se=rt(this._normalizer,f.keyframes,M,N),Q=this._buildPlayer(f,se,A);if(f.subTimeline&&n&&c.add(g),w){let D=new _e(e,a,g);D.setRealPlayer(Q),u.push(D);}return Q});u.forEach(f=>{k(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>ui(this.playersByQueriedElement,f.element,f));}),h.forEach(f=>z(f,ht));let y=j(S);return y.onDestroy(()=>{h.forEach(f=>le(f,ht)),q(l,t.toStyles);}),c.forEach(f=>{k(n,f,[]).push(y);}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new $(e.duration,e.delay)}},_e=class{namespaceId;triggerName;element;_player=new $;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(n=>Ae(e,s,void 0,n));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(e.totalTime),this.queued=false);}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e;}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy());}_queueEvent(e,t){k(this._queuedCallbacks,e,[]).push(t);}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e);}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e);}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e);}init(){this._player.init();}hasStarted(){return this.queued?false:this._player.hasStarted()}play(){!this.queued&&this._player.play();}pause(){!this.queued&&this._player.pause();}restart(){!this.queued&&this._player.restart();}finish(){this._player.finish();}destroy(){this.destroyed=true,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(e){this.queued||this._player.setPosition(e);}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e);}};function ui(i,e,t){let s=i.get(e);if(s){if(s.length){let n=s.indexOf(t);s.splice(n,1);}s.length==0&&i.delete(e);}return s}function ci(i){return i??null}function Oe(i){return i&&i.nodeType===1}function hi(i){return i=="start"||i=="done"}function nn(i,e){let t=i.style.display;return i.style.display=e??"none",t}function rn(i,e,t,s,n){let r=[];t.forEach(l=>r.push(nn(l)));let o=[];s.forEach((l,u)=>{let h=new Map;l.forEach(c=>{let S=e.computeStyle(u,c,n);h.set(c,S),(!S||S.length==0)&&(u[B]=li,o.push(u));}),i.set(u,h);});let a=0;return t.forEach(l=>nn(l,r[a++])),o}function on(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,n=new Set(e),r=new Map;function o(a){if(!a)return s;let l=r.get(a);if(l)return l;let u=a.parentNode;return t.has(u)?l=u:n.has(u)?l=s:l=o(u),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a);}),t}function z(i,e){i.classList?.add(e);}function le(i,e){i.classList?.remove(e);}function di(i,e,t){j(t).onDone(()=>i.processLeaveNode(e));}function fi(i){let e=[];return mn(i,e),e}function mn(i,e){for(let t=0;t<i.length;t++){let s=i[t];s instanceof re?mn(s.players,e):e.push(s);}}function mi(i,e){let t=Object.keys(i),s=Object.keys(e);if(t.length!=s.length)return false;for(let n=0;n<t.length;n++){let r=t[n];if(!e.hasOwnProperty(r)||i[r]!==e[r])return false}return true}function an(i,e,t){let s=t.get(i);if(!s)return false;let n=e.get(i);return n?s.forEach(r=>n.add(r)):e.set(i,s),t.delete(i),true}var ue=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new Nt(e.body,t,s),this._timelineEngine=new At(e.body,t,s),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r);}registerTrigger(e,t,s,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],u=[],h=cn(this._driver,r,l,u);if(l.length)throw Is();a=ei(n,h,this._normalizer),this._triggerCache[o]=a;}this._transitionEngine.registerTrigger(t,n,a);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n);}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,s,n){if(s.charAt(0)=="@"){let[r,o]=ot(s),a=n;this._timelineEngine.command(r,t,o,a);}else this._transitionEngine.trigger(e,t,s,n);}listen(e,t,s,n,r){if(s.charAt(0)=="@"){let[o,a]=ot(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,n,r)}flush(e=-1){this._transitionEngine.flush(e);}get players(){return [...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e);}};function pi(i,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=yt(e[0]),e.length>1&&(s=yt(e[e.length-1]))):e instanceof Map&&(t=yt(e)),t||s?new gi(i,t,s):null}var gi=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,n){this._element=t,this._startStyles=s,this._endStyles=n;let r=i.initialStylesByElement.get(t);r||i.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3);}}return i})();function yt(i){let e=null;return i.forEach((t,s)=>{yi(s)&&(e=e||new Map,e.set(s,t));}),e}function yi(i){return i==="display"||i==="position"}var Qe=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let s=()=>this._onFinish();return t.addEventListener("finish",s),this.onDestroy(()=>{t.removeEventListener("finish",s);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s));}),t}_triggerWebAnimation(e,t,s){let n=this._convertKeyframesToObject(t);try{return e.animate(n,s)}catch(r){return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),e.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,n)=>{n!=="offset"&&e.set(n,this._finished?s:Fe(this.element,n));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},Ve=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return at(e,t)}getParentElement(e){return Ne(e)}query(e,t,s){return lt(e,t,s)}computeStyle(e,t,s){return Fe(e,t)}animate(e,t,s,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:s,delay:n,fill:a};r&&(l.easing=r);let u=new Map,h=o.filter(y=>y instanceof Qe);Hs(s,n)&&h.forEach(y=>{y.currentSnapshot.forEach((f,g)=>u.set(g,f));});let c=xs(t).map(y=>new Map(y));c=Ys(e,c,u);let S=pi(e,c);return new Qe(e,c,l,S)}};var Ie="@",pn="@.disabled",Ue=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=n;}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,false);}insertBefore(e,t,s,n=true){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n);}removeChild(e,t,s,n){if(n){this.delegate.removeChild(e,t,s,n);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,n){this.delegate.setAttribute(e,t,s,n);}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,s,n){this.delegate.setStyle(e,t,s,n);}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s);}setProperty(e,t,s){t.charAt(0)==Ie&&t==pn?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,s,n){return this.delegate.listen(e,t,s,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},Ct=class extends Ue{factory;constructor(e,t,s,n,r){super(t,s,n,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,s){t.charAt(0)==Ie?t.charAt(1)=="."&&t==pn?(s=s===void 0?true:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s);}listen(e,t,s,n){if(t.charAt(0)==Ie){let r=_i(e),o=t.slice(1),a="";return o.charAt(0)!=Ie&&([o,a]=Si(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,s,l);})}return this.delegate.listen(e,t,s,n)}};function _i(i){switch(i){case "body":return document.body;case "document":return document;case "window":return window;default:return i}}function Si(i){let e=i.indexOf("."),t=i.substring(0,e),s=i.slice(e+1);return [t,s]}var $e=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n);};}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,h=u.get(n);if(!h){let c=()=>u.delete(n);h=new Ue("",n,this.engine,c),u.set(n,h);}return h}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(r,o,e,u.name,u);};return t.data.animation.forEach(a),new Ct(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(s));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a);}),this._animationCallbacksBuffer=[];});}),n.push([t,s]);}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId);}),this.delegate.end&&this.delegate.end();}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var vi=(()=>{class i extends ue{constructor(t,s,n){super(t,s,n);}ngOnDestroy(){this.flush();}static \u0275fac=function(s){return new(s||i)(b$2(U$5),b$2(ee),b$2(te))};static \u0275prov=x({token:i,factory:i.\u0275fac})}return i})();function Ti(){return new Le}function bi(){return new $e(g(Bl),g(ue),g(G$2))}var gn=[{provide:te,useFactory:Ti},{provide:ue,useClass:vi},{provide:Mn$4,useFactory:bi}],wi=[{provide:ee,useFactory:()=>new Ve},{provide:Rv,useFactory:()=>"BrowserAnimations"},...gn];function yn(){return ut$2("NgEagerAnimations"),[...wi]}var Ai=i=>!!i&&i.mode==="unmanaged"&&i.setupEnabled&&!i.setupDone,Ft=false;var _n=()=>B$3(null,null,function*(){if(Ft)return true;let i=g(V$1),e=g(F),t=yield i.refreshStatus();return t?.setupDone&&(Ft=true),Ai(t)?e.parseUrl("/welcome"):true}),Sn=()=>B$3(null,null,function*(){return (yield g(V$1).refreshStatus())?.setupDone&&(Ft=true),true});var Pi=i=>i[0]?.path==="agentos"?{consumed:i}:null,Ni=(i,e)=>{let t=e.url.replace(/^\/agentos/,"");return g(F).parseUrl(t.startsWith("/")?t:`/${t}`)},En=[{matcher:Pi,canActivate:[Ni],children:[]},{path:"welcome",canActivate:[Sn],loadComponent:()=>import('./chunk-DQpYayn2.js').then(i=>i.WelcomeComponent)},{path:"",pathMatch:"full",redirectTo:"welcome"},{path:"",canActivate:[_n],loadChildren:()=>import('./chunk-DU2T72t1.js').then(function(n){return n.ad}).then(i=>i.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ci=5e3;function vn(t){return B$3(this,arguments,function*(i,e=Ci){yield gy(i.loadMe().pipe(Ny(e),ha(s=>(console.warn("Failed to load current user",s),br$1(null)))),{defaultValue:null});})}function Mi(i){return ()=>B$3(null,null,function*(){let{UserStateService:e}=yield import('./chunk-DU2T72t1.js').then(function(n){return n.ad});yield vn(i.get(e));})}function Di(i){return ()=>B$3(null,null,function*(){try{let{CompanionStateService:e,GlobalStreamService:t,TabCoordinatorService:s}=yield import('./chunk-DU2T72t1.js').then(function(n){return n.ad});Yn$3(i,()=>{i.get(s).start();}),i.get(t).start(),i.get(e).startSse();}catch(e){console.warn("Failed to start the companion notification stream",e);}})}var Tn={providers:[xv(),LB({eventCoalescing:true}),ia(En),cS(),yn(),{provide:Ce$2,useValue:{duration:3e3}},{provide:ul,useFactory:Mi,deps:[he$4],multi:true},Ol({basePath:"/api/agentos"}),{provide:ul,useFactory:Di,deps:[he$4],multi:true},{provide:de$2,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};function Fi(i,e){i&1&&(Es$1(0,"div",0),fg(1,"div",2),Es$1(2,"p"),xC(3,"Loading Coday\u2026"),hl()());}function ki(i,e){if(i&1){let t=Yw();Es$1(0,"div",1)(1,"p"),xC(2,"Coday could not load this page."),hl(),Es$1(3,"button",3),vg("click",function(){pf(t);let n=eC();return hf(n.reload())}),xC(4,"Reload"),hl()();}}var Ri=i=>i instanceof re$1?"pending":i instanceof de$1?"failed":"idle",je=class i{title="client";phase=F$1(g(F).events.pipe(Ot$1(e=>e instanceof re$1||e instanceof P||e instanceof $$1||e instanceof de$1||e instanceof G),ne$3(Ri)),{initialValue:"pending"});reload(){window.location.reload();}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=vw({type:i,selectors:[["app-root"]],decls:3,vars:1,consts:[["role","status","aria-live","polite",1,"app-loader"],["role","alert",1,"app-loader","app-loader--error"],[1,"spinner"],["type","button",3,"click"]],template:function(t,s){if(t&1&&(jw(0,Fi,4,0,"div",0)(1,ki,5,0,"div",1),fg(2,"router-outlet")),t&2){let n;Bw((n=s.phase())==="pending"?0:n==="failed"?1:-1);}},dependencies:[oa,br],styles:[".app-loader[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:var(--color-bg);color:var(--color-text-secondary, #6e6e73);font-size:.9rem;opacity:0;pointer-events:none;animation:_ngcontent-%COMP%_app-loader-in .2s ease .3s forwards}.app-loader[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.app-loader--error[_ngcontent-%COMP%]{animation-delay:0ms;pointer-events:auto;color:var(--color-text)}.app-loader--error[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:6px 16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);cursor:pointer}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid var(--color-border, rgba(0, 0, 0, .1));border-top-color:var(--color-primary, #007aff);border-radius:50%;animation:_ngcontent-%COMP%_app-loader-spin .8s linear infinite}@keyframes _ngcontent-%COMP%_app-loader-in{to{opacity:1}}@keyframes _ngcontent-%COMP%_app-loader-spin{to{transform:rotate(360deg)}}"],changeDetection:1})};Lb(je,Tn).catch(i=>console.error(i));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(i=>console.error("[SW] Registration failed:",i));});export{$i$1 as $,A$1 as A,B$3 as B,Co$1 as C,Dg as D,Es$1 as E,Fg as F,y as G,J$1 as H,we$2 as I,Jm as J,U$2 as K,w$1 as L,Mg as M,x$1 as N,Of as O,dg as P,vg as Q,MI as R,xI as S,br as T,Uw as U,V$1 as V,W$1 as W,W$3 as X,Yw as Y,Tr$1 as Z,_g as _,hl as a,Rn$3 as a$,$e$3 as a0,ga as a1,ha as a2,rn$2 as a3,je$2 as a4,vd as a5,x as a6,Fn$3 as a7,_$1 as a8,F$1 as a9,qe$2 as aA,se$1 as aB,T$1 as aC,$y as aD,X$1 as aE,an$2 as aF,Ot$1 as aG,cn$2 as aH,ve$2 as aI,be$3 as aJ,fe$4 as aK,ui$3 as aL,Y$2 as aM,Db as aN,Hg as aO,Vg as aP,zC as aQ,$C as aR,XC as aS,PC as aT,D$1 as aU,gy as aV,L$2 as aW,Be$2 as aX,A$3 as aY,z$2 as aZ,He$1 as a_,br$1 as aa,le$4 as ab,by as ac,ne$3 as ad,Pw as ae,G$1 as af,U$4 as ag,ke$3 as ah,Ne$2 as ai,Fe$2 as aj,yd as ak,De$2 as al,Vw as am,Me$2 as an,Hw as ao,F$3 as ap,k$1 as aq,Ue$1 as ar,Pg as as,Cy as at,$t as au,YC as av,KC as aw,YD as ax,N$1 as ay,K$3 as az,BE as b,gr$1 as b$,Xu as b0,cl as b1,yt$3 as b2,cC as b3,wg as b4,iC as b5,sC as b6,AB as b7,LT as b8,nC as b9,at$2 as bA,as as bB,pt$3 as bC,xe$1 as bD,Sy as bE,en$1 as bF,ag as bG,HC as bH,Ig as bI,U$5 as bJ,we$1 as bK,L$1 as bL,Zn$2 as bM,Os$1 as bN,gt$2 as bO,_t$3 as bP,Ke$2 as bQ,Mo$1 as bR,og as bS,_t$4 as bT,Ce$5 as bU,Oe$1 as bV,si$2 as bW,_y as bX,Ia as bY,b$2 as bZ,Sf as b_,rC as ba,xB as bb,Ni$2 as bc,di$2 as bd,RB as be,OB as bf,Tg as bg,aC as bh,hd as bi,Cd as bj,T$4 as bk,Fs$1 as bl,Vr as bm,ze$2 as bn,kp as bo,yr$1 as bp,am as bq,gE as br,Ea as bs,Se$2 as bt,ee$5 as bu,Qg as bv,qs$1 as bw,ri$2 as bx,W$2 as by,$e$2 as bz,Bw as c,pe$5 as c$,mt$3 as c0,G$2 as c1,bd as c2,Cn$2 as c3,Ht as c4,yn$1 as c5,Ft$1 as c6,PI as c7,wi$2 as c8,v as c9,ge$4 as cA,oe$2 as cB,Mn$2 as cC,We$1 as cD,vb as cE,jB as cF,Ge$2 as cG,Ny as cH,gd as cI,jy as cJ,Uy as cK,zy as cL,Dd as cM,Hy as cN,xe$2 as cO,kB as cP,de$4 as cQ,ky as cR,Da as cS,hb as cT,Ye$1 as cU,ne$2 as cV,iT as cW,te$3 as cX,ae$2 as cY,_e$3 as cZ,_f as c_,Ln$2 as ca,ya as cb,ht$3 as cc,Oy as cd,ks$1 as ce,Ye$2 as cf,hn$1 as cg,Ti$3 as ch,wu as ci,Tw as cj,uS as ck,ur$1 as cl,m$2 as cm,pb as cn,sg as co,gg as cp,JC as cq,Ce$4 as cr,ta as cs,Ay as ct,ma as cu,Ly as cv,di$3 as cw,mr$1 as cx,le$3 as cy,Pe$1 as cz,gl as d,BB as d0,Je$2 as d1,Le$1 as d2,dn$1 as d3,yb as d4,R$2 as d5,Ee$2 as d6,ee$4 as d7,ce as d8,pt$2 as d9,LC as da,GC as db,jg as dc,WC as dd,Bg as de,FB as df,Cg as dg,pe$4 as dh,Lg as di,ee$3 as e,fg as f,g,he$4 as h,mg as i,jw as j,$w as k,lg as l,ml as m,f$1 as n,UC as o,pg as p,F as q,rT as r,Dl as s,eC as t,pf as u,vw as v,hf as w,xC as x,sh as y,DC as z};
|