@whoz-oss/coday-client 0.0.0-workstream-forge.186 → 0.0.0-workstream-forge.188

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.
Files changed (51) hide show
  1. package/browser/{chunk-BVAhKRxf.js → chunk-B-zcPBO8.js} +1 -1
  2. package/browser/{chunk-cW39VhFz.js → chunk-BPjzVRpl.js} +1 -1
  3. package/browser/{chunk-bmNwF1EA.js → chunk-BWqh21nV.js} +1 -1
  4. package/browser/{chunk-CqygV_yT.js → chunk-BX4khMt3.js} +1 -1
  5. package/browser/{chunk-cudzLb_7.js → chunk-BXNOJDqX.js} +1 -1
  6. package/browser/{chunk-BWV_tKo4.js → chunk-BYAmVsxf.js} +1 -1
  7. package/browser/{chunk-BcRntJ-f.js → chunk-Bb3YBtxe.js} +1 -1
  8. package/browser/{chunk-DhUPCR8x.js → chunk-BbMe6WPq.js} +1 -1
  9. package/browser/{chunk-CJ0bvrpa.js → chunk-BbWlZlS-.js} +1 -1
  10. package/browser/{chunk-Z5CORV68.js → chunk-Bc_n3Y3T.js} +1 -1
  11. package/browser/{chunk-IUT0U7MD.js → chunk-BgclSOnY.js} +1 -1
  12. package/browser/{chunk-Dip9hqws.js → chunk-BgvZmtCN.js} +1 -1
  13. package/browser/{chunk-CZ3swGRG.js → chunk-BiPID8lL.js} +1 -1
  14. package/browser/{chunk-CYpUOOXu.js → chunk-BsDDp7o4.js} +1 -1
  15. package/browser/{chunk-Dpp5qieV.js → chunk-C4XGfXnc.js} +1 -1
  16. package/browser/{chunk-CrlEsza5.js → chunk-CBvjo1Pj.js} +1 -1
  17. package/browser/{chunk-BCj_QScJ.js → chunk-CT9B44gl.js} +1 -1
  18. package/browser/chunk-CYQTjhJ4.js +1 -0
  19. package/browser/{chunk-Dy-jqKED.js → chunk-Cw0n1guB.js} +1 -1
  20. package/browser/{chunk-yNnoMggg.js → chunk-CwHKirz6.js} +1 -1
  21. package/browser/{chunk-BKcbagcs.js → chunk-D3zki1Mc.js} +1 -1
  22. package/browser/{chunk-CvH1PYW_.js → chunk-DD3SbBZq.js} +1 -1
  23. package/browser/{chunk-a30sSJMH.js → chunk-DGRCsCJq.js} +2 -2
  24. package/browser/{chunk-Cn9pDxST.js → chunk-DHXYyzs9.js} +1 -1
  25. package/browser/{chunk-CZq0sS47.js → chunk-DO3CTX5Y.js} +1 -1
  26. package/browser/{chunk-DHs2aKFP.js → chunk-DQm2i9Rg.js} +1 -1
  27. package/browser/{chunk-BDc-xbXC.js → chunk-DWXbpgmZ.js} +1 -1
  28. package/browser/{chunk-DxD41Wpl.js → chunk-DaY2sRwJ.js} +1 -1
  29. package/browser/{chunk-DzHTXkbw.js → chunk-DcpeHWax.js} +1 -1
  30. package/browser/{chunk-Cgo9jwAr.js → chunk-DoFYhR9o.js} +1 -1
  31. package/browser/chunk-DpGfd5zc.js +670 -0
  32. package/browser/{chunk-CRE2m4-M.js → chunk-Dq0QNyK6.js} +1 -1
  33. package/browser/{chunk-BP01ZR-w.js → chunk-DqUsm5_w.js} +1 -1
  34. package/browser/{chunk-BjECEnNM.js → chunk-Dr0VdNoR.js} +1 -1
  35. package/browser/{chunk-DDEKNHYj.js → chunk-DvAnCl4Z.js} +1 -1
  36. package/browser/{chunk-Bb14uEa9.js → chunk-DwXnhMXy.js} +1 -1
  37. package/browser/{chunk-CBqrb7sY.js → chunk-IfNttl3x.js} +1 -1
  38. package/browser/{chunk-D6ZmkGQx.js → chunk-LJOa6czj.js} +1 -1
  39. package/browser/{chunk-CkcpRLV2.js → chunk-NLFmBK9p.js} +1 -1
  40. package/browser/{chunk-bir_vdHS.js → chunk-fG05Gwye.js} +1 -1
  41. package/browser/{chunk-qFzWQjBe.js → chunk-nWfFoxeO.js} +1 -1
  42. package/browser/{chunk-BuW-L7NV.js → chunk-oePoI0kj.js} +1 -1
  43. package/browser/{chunk-WZ5n_WKd.js → chunk-u21z0dkm.js} +1 -1
  44. package/browser/{chunk-BTuAxVDp.js → chunk-wTlsFesR.js} +1 -1
  45. package/browser/{chunk-BaROBgKr.js → chunk-xwHC_Zl4.js} +1 -1
  46. package/browser/{chunk-C1HA3aCU.js → chunk-ysFxK5J6.js} +1 -1
  47. package/browser/index.html +1 -1
  48. package/browser/{main-HBKYHCPK.js → main-FNVOUHA6.js} +7 -7
  49. package/package.json +1 -1
  50. package/browser/chunk-BiMuA5X-.js +0 -670
  51. package/browser/chunk-DQ6ffgp1.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$2=Object.prototype.propertyIsEnumerable;var l$1=(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$1(a,c,b[c]);if(g$1)for(var c of g$1(b))m$2.call(b,c)&&l$1(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$2.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$2=(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$2=(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 Po$1=Rt$1(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
1
+ var p$2=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$2=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$2.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$2.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$2=(a,b,c)=>(c=a!=null?p$2(u(a)):{},v$2(!a||!a.__esModule?j$5(c,"default",{value:a,enumerable:true}):c,a));var B$2=(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 Po$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$3=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$3.EMPTY=(()=>{let e=new ee$3;return e.closed=true,e})();var ra$1=ee$3.EMPTY;function Lo$1(e){return e instanceof ee$3||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 Fn$3={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function jo$2(e){Fn$3.setTimeout(()=>{throw e});}function ft$4(){}function Pn$3(e){e();}var tn$2=class tn extends ee$3{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 Ln$3=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ye$4(e){return e}function ry(...e){return ca$1(e)}function ca$1(e){return e.length===0?ye$4: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 Pn$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)}[Ln$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 ue$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){Pn$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){Pn$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(){Pn$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$3(()=>{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 ue$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 wr$1=class wr extends ue$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[Ln$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$1(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[Ln$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 C$1(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 T$3(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 C$1((n,r)=>{n.subscribe(T$3(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 C$1((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function id(e,t){return A$1(e).pipe(Jo$1(t),Xo$1(t))}function sd(e,t){return A$1(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$1(e,t){return t?ld(e,t):A$1(e)}function Cr$1(...e){let t=Ze$2(e);return Ye$1(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 C$1((n,r)=>{let o=0;n.subscribe(T$3(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$1([],t);let i=new R$2(Cy(r,t,o?s=>ri$3(o,s):ye$4));return n?i.pipe(ni$3(n)):i}function Cy(e,t,n=ye$4){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$1(e[c],t),l=false;u.subscribe(T$3(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$1(n[l]).subscribe(T$3(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 da(e){return C$1((t,n)=>{let r=null,o=!1,i;r=t.subscribe(T$3(n,void 0,void 0,s=>{i=A$1(e(s,da(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var oi$3=class oi extends ee$3{constructor(t,n){super();}schedule(t,n=0){return this}};var Tr$1={setInterval(e,t,...n){let{delegate:r}=Tr$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var ii$3=class ii extends oi$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 Tr$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&&Tr$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 br$1={now(){return (br$1.delegate||Date).now()},delegate:void 0};var jn$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)}};jn$3.now=br$1.now;var si$3=class si extends jn$3{constructor(t,n=jn$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 pt$4=new si$3(ii$3),fd=pt$4;function pd(e,t=pt$4){return C$1((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(T$3(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 Ot$1(e,t){return C$1((n,r)=>{let o=0;n.subscribe(T$3(r,i=>e.call(t,i,o++)&&r.next(i)));})}function hd(e){return Ot$1((t,n)=>e<=n)}function ai$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$1(n(y,l++)).subscribe(T$3(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(T$3(t,f,()=>{d=true,p();})),()=>{}}function ht$4(e,t,n=1/0){return M(t)?ht$4((r,o)=>ne$3((i,s)=>t(r,i,o,s))(A$1(e(r,o))),n):(typeof t=="number"&&(n=t),C$1((r,o)=>ai$3(r,o,e,n)))}function Sr$1(e=1/0){return ht$4(ye$4,e)}function gd(){return Sr$1(1)}function kt$1(...e){return gd()(Ye$1(e,Ze$2(e)))}function md(...e){let t=Ze$2(e);return C$1((n,r)=>{(t?kt$1(e,n,t):kt$1(e,n)).subscribe(r);})}function fa(e,t){return C$1((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(T$3(r,c=>{o?.unsubscribe();let u=0,l=i++;A$1(e(c,l)).subscribe(o=T$3(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?C$1((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(T$3(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);}));}):ye$4}var _r$1=class _r extends ue$4{constructor(t=1/0,n=1/0,r=br$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 by(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new R$2(r)}function Sy(e){return !!e&&(e instanceof R$2||M(e.lift)&&M(e.subscribe))}function ci$3(e){return e instanceof Date&&!isNaN(e)}var _y=Rt$1(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function My(e,t){let{first:n,each:r,with:o=Ny,scheduler:i=pt$4,meta:s=null}=ci$3(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return C$1((a,c)=>{let u,l,d=null,p=0,f=h=>{l=oe$3(c,i,()=>{try{u.unsubscribe(),A$1(o({meta:s,lastValue:d,seen:p})).subscribe(c);}catch(y){c.error(y);}},h);};u=a.subscribe(T$3(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 Ny(e){throw new _y(e)}function xy(e){return new R$2(t=>{A$1(e()).subscribe(t);})}function Mr$1(e=0,t,n=fd){let r=-1;return t!=null&&(Ho$1(t)?n=t:r=t),new R$2(o=>{let i=ci$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 Ay(...e){let t=Ze$2(e),n=Jl(e,1/0),r=e;return r.length?r.length===1?A$1(r[0]):Sr$1(n)(Ye$1(r,t)):nn$2}function vd(e){return C$1((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(T$3(n,u=>{r=!0,o=u,i||A$1(e(u)).subscribe(i=T$3(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Ry(e,t=pt$4){return vd(()=>Mr$1(e,t))}function Dd(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(T$3(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function ui$3(e,t){return M(t)?ht$4(e,t,1):ht$4(e,1)}function Ed(e){return C$1((t,n)=>{let r=!1;t.subscribe(T$3(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function sn$2(e){return e<=0?()=>nn$2:C$1((t,n)=>{let r=0;t.subscribe(T$3(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function pa(){return C$1((e,t)=>{e.subscribe(T$3(t,ft$4));})}function ha(e){return ne$3(()=>e)}function ga(e,t){return t?n=>kt$1(t.pipe(sn$2(1),pa()),n.pipe(ga(e))):ht$4((n,r)=>A$1(e(n,r)).pipe(sn$2(1),ha(n)))}function Oy(e,t=pt$4){let n=Mr$1(e,t);return ga(()=>n)}function ky(e,t){return C$1((n,r)=>{let o=new Set;n.subscribe(T$3(r,i=>{let s=e?e(i):i;o.has(s)||(o.add(s),r.next(i));})),t&&A$1(t).subscribe(T$3(r,()=>o.clear(),ft$4));})}function Id(e,t=ye$4){return e=e??Fy,C$1((n,r)=>{let o,i=!0;n.subscribe(T$3(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 C$1((t,n)=>{let r=!1;t.subscribe(T$3(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,Cr$1(...e))}function ma(e,t){return t?n=>n.pipe(ma((r,o)=>A$1(e(r,o)).pipe(ne$3((i,s)=>t(r,i,o,s))))):C$1((n,r)=>{let o=0,i=null,s=!1;n.subscribe(T$3(r,a=>{i||(i=T$3(r,void 0,()=>{i=null,s&&r.complete();}),A$1(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,C$1((r,o)=>ai$3(r,o,e,t,void 0,!0,n))}function li$3(e){return C$1((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function By(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ot$1((o,i)=>e(o,i,r)):ye$4,sn$2(1),n?Ed(t):wd(()=>new on$2))}function Vy(e){return e<=0?()=>nn$2:C$1((t,n)=>{let r=[];t.subscribe(T$3(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,t){return C$1(Dd(e,t,arguments.length>=2,!0))}function va(e={}){let{connector:t=()=>new ue$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 C$1((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$1(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$1(t(...n)).subscribe(r)}function Uy(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 _r$1(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Cd(e){return C$1((t,n)=>{A$1(e).subscribe(T$3(n,()=>n.complete(),ft$4)),!n.closed&&t.subscribe(n);})}function $y(e,t=false){return C$1((n,r)=>{let o=0;n.subscribe(T$3(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var le$4=null,di$3=false,an$2=1,q$1=Symbol("SIGNAL");function I(e){let t=le$4;return le$4=e,t}function fi$3(){return le$4}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(le$4===null)return;le$4.consumerOnSignalRead(e);let t=le$4.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=le$4.recomputing;if(r&&(n=t!==void 0?t.nextProducer:le$4.producers,n!==void 0&&n.producer===e)){le$4.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=an$2;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===le$4&&(!r||o.knownValidAtEpoch===an$2))return;let i=Hn$3(le$4),s={producer:e,consumer:le$4,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:an$2,lastReadVersion:e.version,nextConsumer:void 0};le$4.producersTail=s,t!==void 0?t.nextProducer=s:le$4.producers=s,i&&_d(e,s);}function Td(){an$2++;}function ln$1(e){if(!(Hn$3(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===an$2)){if(!e.producerMustRecompute(e)&&!Vn$3(e)){Bn$3(e);return}e.producerRecomputeValue(e),Bn$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||Gy(r);}}finally{di$3=t;}}function Ea$1(){return le$4?.consumerAllowSignalWrites!==false}function Gy(e){e.dirty=true,Da(e),e.consumerMarkedDirty?.(e);}function Bn$3(e){e.dirty=false,e.lastCleanEpoch=an$2;}function mt$4(e){return e&&bd(e),I(e)}function bd(e){if(e.producersTail?.knownValidAtEpoch===an$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(Hn$3(e))do n=Ia(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Vn$3(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(ln$1(n),r!==n.version))return true}return false}function Lt$2(e){if(Hn$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=Hn$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,!Hn$3(t)){let i=t.producers;for(;i!==void 0;)i=Ia(i);}return n}function Hn$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(Wy);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(ln$1(n),gt$3(n),n.value===Qe$2)throw n.error;return n.value};return r[q$1]=n,r}var cn$2=Symbol("UNSET"),un$2=Symbol("COMPUTING"),Qe$2=Symbol("ERRORED"),Wy=x$1(w$1({},Ft$2),{value:cn$2,dirty:true,error:null,equal:xr,kind:"computed",producerMustRecompute(e){return e.value===cn$2||e.value===un$2},producerRecomputeValue(e){if(e.value===un$2)throw new Error("");let t=e.value;e.value=un$2;let n=mt$4(e),r,o=false;try{r=e.computation(),I(null),o=t!==cn$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 qy(){throw new Error}var Md=qy;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,Yy(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 Yy(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&&!Vn$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 Un$3(e){return e===Ad||e?.name==="\u0275NotFound"}function _a(e,t,n){let r=Object.create(Qy);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(ln$1(r),gt$3(r),r.value===Qe$2)throw r.error;return r.value};return i[q$1]=r,i}function Rd(e,t){ln$1(e),jt$2(e,t),Bn$3(e);}function Od(e,t){if(ln$1(e),e.value===Qe$2)throw e.error;pi$3(e,t),Bn$3(e);}var Qy=x$1(w$1({},Ft$2),{value:cn$2,dirty:true,error:null,equal:xr,kind:"linkedSignal",producerMustRecompute(e){return e.value===cn$2||e.value===un$2},producerRecomputeValue(e){if(e.value===un$2)throw new Error("");let t=e.value;e.value=un$2;let n=mt$4(e),r,o=false;try{let i=e.source(),s=t!==cn$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$1=class m extends Error{code;constructor(t,n){super(Xe(t,n)),this.code=t;}};function Ky(e){return `NG0${Math.abs(e)}`}function Xe(e,t){return `${Ky(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 Xy=k$2({__forward_ref__:k$2});function Ci$3(e){return e.__forward_ref__=Ci$3,e}function re$4(e){return Va(e)?e():e}function Va(e){return typeof e=="function"&&e.hasOwnProperty(Xy)&&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 ev(e,Ti$3)}function Jy(e){return Vr(e)!==null}function ev(e,t){return e.hasOwnProperty(t)&&e[t]||null}function tv(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}),w=class{_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}),gn$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$1(-919,false)}function Z$2(e){return typeof e=="string"?e:e==null?"":String(e)}var Ud=k$2({ngErrorCode:k$2}),nv=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$1(-201,false)}function $d(e,t,n){let r=new m$1(t,e);return r[Ud]=t,r[nv]=e,r}function ov(e){return e[Ud]}var xa;function zd(){return xa}function de$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 iv={},dn$3=iv,sv="__NG_DI_FLAG__",Aa=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=fn$2(n)||0;try{return this.injector.get(t,r&8?null:dn$3,r)}catch(o){if(Un$3(o))return o;throw o}}};function av(e,t=0){let n=hi$3();if(n===void 0)throw new m$1(-203,false);if(n===null)return Za(e,void 0,t);{let r=cv(t),o=n.retrieve(e,r);if(Un$3(o)){if(r.optional)return null;throw o}return o}}function b$1(e,t=0){return (zd()||av)(re$4(e),t)}function g(e,t){return b$1(e,fn$2(t))}function fn$2(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function cv(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$4(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m$1(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=uv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(b$1(o,i));}else t.push(b$1(r));}return t}function uv(e){return e[sv]}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=Gn$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=Gn$3(e,t);if(n>=0)return e[n|1]}function Gn$3(e,t){return lv(e,t,1)}function lv(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$3=[],It$2=new w(""),Ur=new w("",-1),Qa=new w(""),zn$3=class zn{get(t,n=dn$3){if(n===dn$3){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$4(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$3},o),t({provide:Qa,useValue:o,multi:true},o),t({provide:It$2,useValue:()=>b$1(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 dv=k$2({provide:String,useValue:k$2});function Xd(e){return e!==null&&typeof e=="object"&&dv in e}function fv(e){return !!(e&&e.useExisting)}function pv(e){return !!(e&&e.useFactory)}function pn$2(e){return typeof e=="function"}function Jd(e){return !!e.useClass}var $r=new w(""),gi$3={},Pd={},Ma;function Wn$3(){return Ma===void 0&&(Ma=new zn$3),Ma}var fe$5=class fe{},hn$2=class hn extends fe$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,$n$3(void 0,this)),o.has("environment")&&this.records.set(fe$5,$n$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$3,{self:true}));}retrieve(t,n){let r=fn$2(n)||0;try{return this.get(t,dn$3,r)}catch(o){if(Un$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=de$5(void 0);try{return t()}finally{Ke$3(n),de$5(r);}}get(t,n=dn$3,r){if(Or(this),t.hasOwnProperty(Fd))return t[Fd](this);let o=fn$2(r),s=Ke$3(this),a=de$5(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=vv(t)&&Vr(t);l&&this.injectableDefInScope(l)?u=$n$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?Wn$3():this.parent;return n=o&8&&n===dn$3?null:n,c.get(t,n)}catch(c){let u=ov(c);throw u===-200||u===-201?new m$1(u,null):c}finally{de$5(a),Ke$3(s);}}resolveInjectorInitializers(){let t=I(null),n=Ke$3(this),r=de$5(void 0);try{let i=this.get(It$2,ie$3,{self:!0});for(let s of i)s();}finally{Ke$3(n),de$5(r),I(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=re$4(t);let n=pn$2(t)?t:re$4(t&&t.provide),r=gv(t);if(!pn$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=$n$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&&yv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=re$4(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 w)throw new m$1(-204,false);if(e instanceof Function)return hv(e);throw new m$1(-204,false)}function hv(e){if(e.length>0)throw new m$1(-204,false);let n=tv(e);return n!==null?()=>n.factory(e):()=>new e}function gv(e){if(Xd(e))return $n$3(void 0,e.useValue);{let t=Ja(e);return $n$3(t,gi$3)}}function Ja(e,t,n){let r;if(pn$2(e)){let o=re$4(e);return Bt$1(o)||Oa(o)}else if(Xd(e))r=()=>re$4(e.useValue);else if(pv(e))r=()=>e.useFactory(...Ra(e.deps||[]));else if(fv(e))r=(o,i)=>b$1(re$4(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=re$4(e&&(e.useClass||e.provide));if(mv(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$1(-205,false)}function $n$3(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function mv(e){return !!e.deps}function yv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function vv(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 qn$3(e,t){let n;e instanceof hn$2?(Or(e),n=e):n=new Aa(e);let o=Ke$3(n),i=de$5(void 0);try{return t()}finally{Ke$3(o),de$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,mn$2=6,Zn$3=7,Y$4=8,Je$3=9,Ve$2=10,L$3=11,Yn$3=12,ec=13,Ut$3=14,ae$2=15,$t$3=16,yn$2=17,et=18,tt$1=19,tc=20,vt$3=21,xi$2=22,Vt$1=23,ve$3=24,vn$2=25,nt$1=26,H$1=27,tf=1,nc=6,zt$1=7,zr=8,Dn$3=9,W$5=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 Qn$3(e){return (e.flags&1)===1}function rt$2(e){return !!e.template}function Kn$3(e){return (e[S$2]&512)!==0}function En$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[yn$2]=0;}function cc(e){e[S$2]&1024||(e[S$2]|=1024,Oi$2(e)&&In$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)&&In$3(e);}function In$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(En$3(e))throw new m$1(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[Zn$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$4]}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 Xn$3(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 Jn$2(){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 wn$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 Dv(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=Dv(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$4]}function Ee$2(){return N$2.lFrame.selectedIndex}function Wt$1(e){N$2.lFrame.selectedIndex=e;}function er$1(){let e=N$2.lFrame;return Ai$3(e.tView,e.selectedIndex)}function Tf(){N$2.lFrame.currentNamespace=oc;}function bf(){Ev();}function Ev(){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$3,Qd(e)];return new hn$2(i,t||Wn$3(),null,o)}var pe$4=class e{static THROW_IF_NOT_FOUND=dn$3;static NULL=new zn$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$1(Ur)});static __NG_ELEMENT_ID__=-1},U$4=new w(""),Ie$2=(()=>{class e{static __NG_ELEMENT_ID__=Iv;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 En$3(this._lView)}onDestroy(t){let n=this._lView;return Fi$3(n,t),()=>af(n,t)}};function Iv(){return new vi$3(v$1())}var Cc=false,_f=new w(""),qt$1=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new wr$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 ue$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$3&&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",wv=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$1(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,bv(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(bc)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new m$1(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m$1(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,Cv,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)}},Cv={};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 Tv(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 bv(e){let t=()=>{Tv(e);},n=wv++;e._inner=e._inner.fork({name:"angular",properties:{[bc]:true,[Pr]:n,[Pr+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(Sv(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&&!_v(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 Sv(e){return Nf(e,"__ignore_ng_zone__")}function _v(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$3=class Se{_console=console;handleError(t){this._console.error("ERROR",t);}},ot$2=new w("",{factory:()=>{let e=g(G$2),t=g(fe$5),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Se$3),n.handleError(r));});}}}),xf={provide:It$2,useValue:()=>{g(Se$3,{optional:true});},multi:true},Mv=new w("",{factory:()=>{let e=g(U$4).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 Nv(){return wt$3([Yd(()=>{g(Mv);})])}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 w("",{factory:()=>xv}),xv="ng";var $i$1=new w(""),Kr=new w("",{providedIn:"platform",factory:()=>"unknown"}),Av=new w(""),Xr=new w("",{factory:()=>g(U$4).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var tr$1=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Rv}return e})();function Rv(){return new tr$1(v$1(),X$2())}var je$3=class je{},nr$1=new w("",{factory:()=>true});var zi$2=new w(""),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(pe$4),r=t?.manualCleanup!==true?n.get(Ie$2):null,o,i=n.get(tr$1,null,{optional:true}),s=n.get(je$3);return i!==null?(o=Fv(i.view,s,e),r instanceof vi$3&&r._lView===i.view&&(r=null)):o=Pv(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);}}}),Ov=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);}}),kv=x$1(w$1({},Rf),{consumerMarkedDirty(){this.view[S$2]|=8192,In$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 Fv(e,t,n){let r=Object.create(kv);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 Pv(e,t,n){let r=Object.create(Ov);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 qv(){return Dp}function kf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Yv),Zv}function Zv(){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 Yv(e,t,n,r,o){let i=this.declaredInputs[r],s=Ep(e)||Qv(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 Qv(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 Kv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=qv()(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[yn$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[yn$2]+=65536),(a<i||i==-1)&&(Xv(e,n,t,c),e[yn$2]=(e[yn$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 Xv(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[yn$2]>>16&&(e[S$2]&3)===t&&(e[S$2]+=16384,Pf(a,i)):Pf(a,i);}var or$1=-1,Tn$3=class Tn{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 Jv(e){return (e.flags&8)!==0}function eD(e){return (e.flags&16)!==0}function tD(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];nD(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 nD(e){return e.charCodeAt(0)===64}function ir$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!==or$1}function ns(e){return e&32767}function rD(e){return e>>16}function rs(e,t){let n=rD(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 oD=256,bp=oD-1,Sp=5,iD=0,it$3={};function sD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(gn$2)&&(r=n[gn$2]),r==null&&(r=n[gn$2]=iD++);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 or$1;if(n++,o=o[Ut$3],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return or$1}function Vc(e,t,n){sD(e,t,n);}function aD(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=de$5(void 0);try{return o?o.get(t,r,n&8):Za(t,r,n&8)}finally{de$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=dD(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=uD(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=or$1,u=r&1?t[ae$2][se$2]:null;for((a===-1||r&4)&&(c=a===-1?Eu(e,t):t[a+8],c===or$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=cD(a,t,n,s,r,u);if(d!==it$3)return d}c=t[a+8],c!==or$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 cD(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 Tn$3){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?de$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&&Kv(n,s[n],t);}finally{d!==null&&de$5(d),os(c),a.resolving=false,Ec();}}return i}function uD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(gn$2)?e[gn$2]:void 0;return typeof t=="number"?t>=0?t&bp:lD: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,fn$2(r),n)}};function lD(){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$4(e));return t&&t()}:Bt$1(e)}function dD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S$2]&2048&&!Kn$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 aD(X$2(),e)}function Ce$5(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function fD(){return dr$1(X$2(),v$1())}function dr$1(e,t){return new xn$3(Ae$2(e,t))}var xn$3=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=fD}return e})();function kp(e){return e instanceof xn$3?e.nativeElement:e}function pD(){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 ue$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]=pD};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,hD=0;function gD(){return hD++}function mD(e){Pp.set(e[tt$1],e);}function Uc(e){Pp.delete(e[tt$1]);}var Vf="__ngContext__";function sr$1(e,t){Ct$2(t)?(e[Vf]=t[tt$1],mD(t)):e[Vf]=t;}function Lp(e){return Bp(e[Yn$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$1(210,false)}var Vp="r";var Hp="di";var yD=new w(""),Up=false,$p=new w("",{factory:()=>Up});var zp=new w("");var Hf=new WeakMap;function vD(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 ID=()=>null;function Gp(e,t,n=false){return ID()}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 wD(){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 wD()?.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 CD(e){let t=new Kc(e);return TD()?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 TD(){try{return !!new window.DOMParser().parseFromString(ws$1(""),"text/html")}catch(e){return false}}var bD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ho$1(e){return e=String(e),e.match(bD)?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"),SD=go$1(Kp,Qp),_D=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")),MD=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,_D,MD,SD),Xp=St$2("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ND=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"),xD=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"),AD=go$1(Xp,ND,xD),RD=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=FD(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=kD(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,!RD.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(!AD.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 OD(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function kD(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Jp(t);return t}function FD(e){let t=e.firstChild;if(t&&OD(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 PD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LD=/([^\#-~ |!])/g;function Wf(e){return e.replace(/&/g,"&amp;").replace(PD,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(LD,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Yi$1;function Cs$1(e,t){let n=null;try{Yi$1=Yi$1||CD(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&&jD(e)?e.content:null}function jD(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var BD=/^>|^->|<!--|-->|--!>|<!-$/g,VD=/(<|>)/g,HD="\u200B$1\u200B";function UD(e){return e.replace(BD,t=>t.replace(VD,HD))}function $D(e,t){return e.createText(t)}function zD(e,t,n){e.setValue(t,n);}function GD(e,t){return e.createComment(UD(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 WD(e,t,n){e.setAttribute(t,"style",n);}function qD(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&&tD(e,t,r),o!==null&&qD(e,t,o),i!==null&&WD(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 ZD(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$2(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$2(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$1(904,false)}var YD={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function QD(e,t){return YD[e.toLowerCase()]?.[t.toLowerCase()]===true?ih:oh}function KD(e,t,n){return QD(t,n)(e)}function Au(){let e=v$1();return e&&e[Ve$2].sanitizer}function XD(e){return e instanceof Function?e():e}function JD(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 eE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&JD(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 tE(e,t,n){let r=e.type===4&&!n?sh:e.value;return t===r}function nE(e,t,n){let r=4,o=e.attrs,i=o!==null?iE(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!==""&&!tE(e,c,n)||c===""&&t.length===1){if(He$2(r))return false;s=true;}}else if(r&8){if(o===null||!eE(e,o,c,n)){if(He$2(r))return false;s=true;}}else {let u=t[++a],l=rE(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 rE(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 sE(t,e)}function ah(e,t,n=false){for(let r=0;r<t.length;r++)if(nE(e,t[r],n))return true;return false}function oE(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function iE(e){for(let t=0;t<e.length;t++){let n=e[t];if(Cp(n))return t}return e.length}function sE(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 aE(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 cE(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 uE(e){return e.map(cE).join(",")}function lE(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||{}),dE;function Ou(e,t){return dE(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 fE(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 pE(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 w(""),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$3,{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[vn$2]??=[]).push(n),In$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?.[vn$2];t&&(this.view[vn$2]=t.filter(n=>n!==this));}};function hE(e,t){let n=t?.injector??g(pe$4);return ut$2("NgAfterNextRender"),mE(e,n,t,true)}function gE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function mE(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(tr$1,null,{optional:true}),c=new so$1(o.impl,gE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Pu=new w("",{factory:()=>{let e=g(fe$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 yE(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 vE(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 DE(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)&&DE(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)&&yE(n,o.enter.get(t.index).animateFns);let i=EE(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,()=>IE(e,t,o||void 0,i,r),o||void 0);}function EE(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 IE(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),CE(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$5;i<o.length;i++){let s=o[i];s[E].type===2&&wE(s,n);}}let r=t.child;for(;r;)Ss$1(e,r,n),r=r.next;}function wE(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 CE(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 rr$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),fE(i,l,a)):e===2?(a?.[nt$1]?.leave?.has(i.index)&&pE(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&&OE(t,e,n,c,i,r,s);}}function TE(e,t){lh(e,t),t[Be$3]=null,t[se$2]=null;}function bE(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 SE(e){let t=e[Yn$3];if(!t)return Nc(e[E],e);for(;t;){let n=null;if(Ct$2(t))n=t[Yn$3];else {let r=t[W$5];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[Dn$3],r=n.indexOf(t);n.splice(r,1);}function _s$1(e,t){if(En$3(t))return;let n=t[L$3];n.destroyNode&&Ms$1(e,t,n,3,null,null),SE(t);}function Nc(e,t){if(En$3(t))return;let n=I(null);try{t[S$2]&=-129,t[S$2]|=256,t[ve$3]&&Lt$2(t[ve$3]),ME(e,t),_E(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 _E(e,t){let n=e.cleanup,r=t[Zn$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[Zn$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 ME(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 Tn$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 dh(e,t,n){return NE(e,t.parent,n)}function NE(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 AE(e,t,n)}function xE(e,t,n){return e.type&40?Ae$2(e,n):null}var AE=xE;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$2]);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$2][se$2],o=t.projection;return r.projection[o]}return null}function eu(e,t){let n=W$5+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&&sr$1(xe$3(c),r),n.flags|=2),!Is$1(n))if(u&8)Bu(e,t,n.child,r,o,i,false),rr$1(t,e,a,o,c,n,i,r);else if(u&32){let l=Ou(n,r),d;for(;d=l();)rr$1(t,e,a,o,d,n,i,r);rr$1(t,e,a,o,c,n,i,r);}else u&16?hh(e,t,r,n,o,i):rr$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 RE(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$2],c=s[se$2].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];rr$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 OE(e,t,n,r,o,i,s){let a=r[zt$1],c=xe$3(r);a!==c&&rr$1(t,e,n,i,a,o,s);for(let u=W$5;u<r.length;u++){let l=r[u];Ms$1(l[E],l,e,t,i,a);}}function kE(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=FE(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 FE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Q$1);return n}function PE(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$4]=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]=gD(),d[mn$2]=l,d[tc]=u,d[ae$2]=t.type==2?e[ae$2]:d,d}function LE(e,t,n){let r=Ae$2(t,e),o=PE(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[Yn$3]?e[ec][Me$3]=t:e[Yn$3]=t,e[ec]=t,t}function jE(e=1){yh(j$4(),v$1(),Ee$2()+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 bn$2(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$2(),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){zE(e,t,n),(n.flags&64)===64&&GE(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 BE(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 UE(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)&&$E(t,e.index);return}e.type&3&&(n=UE(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 $E(e,t){let n=Re$3(t,e);n[S$2]&16||(n[S$2]|=64);}function zE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Tt$3(n)&&LE(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(sr$1(c,t),i!==null&&YE(t,s-r,c,a,n,i),rt$2(a)){let u=Re$3(n.index,t);u[Y$4]=io$1(t,e,s,n);}}}function GE(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)&&WE(c,u);}}finally{Wt$1(-1),Li$2(s);}}function WE(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 qE(e,t,n,r,o,i){let s=Ae$2(e,t);ZE(t[L$3],s,i,e.value,n,r,o);}function ZE(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$2(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function YE(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];bn$2(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,Xn$3(e,true);let c=e.type===2;return c?(rh(t[L$3],a,e),(uf()===0||Qn$3(e))&&sr$1(a,t),lf()):sr$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,Xn$3(t,false)),t}function QE(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];bn$2(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];bn$2(l,u,r,o),a=true;}return a}function KE(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];bn$2(h,n[f],y,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(bn$2(r,n[s],o,i),u=true),u}function XE(e,t){let n=Re$3(t,e),r=n[E];JE(r,n);let o=n[Be$3];o!==null&&n[mn$2]===null&&(n[mn$2]=Gp(o,n[Je$3])),F$4(O$2.ComponentStart);try{qu(r,n,n[Y$4]);}finally{F$4(O$2.ComponentEnd,n[Y$4]);}}function JE(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&&eI(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[S$2]&=-5,Vi$2();}}function eI(e,t){for(let n=0;n<t.length;n++)XE(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 ar$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$2]);ao$1(c[E],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Ih(e,t){for(let n=W$5;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[vn$2]!==null){for(let t of e[vn$2])t.impl.addSequence(t);e[vn$2].length=0;}}var Ch=[];function tI(e){return e[ve$3]??nI(e)}function nI(e){let t=Ch.pop()??Object.create(oI);return t.lView=e,t}function rI(e){e.lView[ve$3]!==e&&(e.lView=null,Ch.push(e));}var oI=x$1(w$1({},Ft$2),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{In$3(e.lView);},consumerOnSignalRead(){this.lView[ve$3]=this;}});function iI(e){let t=e[ve$3]??Object.create(sI);return t.lView=e,t}var sI=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 aI=100;function Sh(e,t=0){let r=e[Ve$2].rendererFactory;r.begin?.();try{cI(e,t);}finally{r.end?.();}}function cI(e,t){let n=vc();try{Fr(!0),tu(e,t);let r=0;for(;Gr(e);){if(r===aI)throw new m$1(103,!1);r++,tu(e,1);}}finally{Fr(n);}}function uI(e,t,n,r){if(En$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=tI(t),c=mt$4(u)):fi$3()===null?(a=false,u=iI(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||lI(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);}fI(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 In$3(t),l}finally{u!==null&&(Pt$3(u,c),a&&rI(u)),Vi$2();}}function _h(e,t){for(let n=Lp(e);n!==null;n=jp(n))for(let r=W$5;r<n.length;r++){let o=n[r];Mh(o,t);}}function lI(e){for(let t=Lp(e);t!==null;t=jp(t)){if(!(t[S$2]&2))continue;let n=t[Dn$3];for(let r=0;r<n.length;r++){let o=n[r];cc(o);}}}function dI(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$4]);}}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&&Vn$3(i)),s||=false,i&&(i.dirty=false),e[S$2]&=-9217,s)uI(r,e,r.template,e[Y$4]);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++)dI(e,t[r],n);}function fI(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(Kn$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$5+t;if(n<e.length)return e[n]}function vo$1(e,t,n,r=true){let o=t[E];if(pI(o,t,e,n),r){let s=eu(n,e),a=t[L$3],c=a.parentNode(e[zt$1]);c!==null&&bE(o,e[se$2],a,t,c,s);}let i=t[mn$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$5)return;let n=W$5+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$5+t);TE(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 pI(e,t,n,r){let o=W$5+r,i=n.length;r>0&&(n[o-1][Me$3]=t),r<i-W$5?(t[Me$3]=n[o],Ya(n,W$5+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[Dn$3],r=t[te$4];if(Ct$2(r))e[S$2]|=2;else {let o=r[te$4][ae$2];t[ae$2]!==o&&(e[S$2]|=2);}n===null?e[Dn$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$4]}set context(t){this._lView[Y$4]=t;}get destroyed(){return En$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$1(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Kn$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$1(902,false);this._appRef=t;let n=Kn$3(this._lView),r=this._lView[$t$3];r!==null&&!n&&Oh(r,this._lView),ki$3(this._lView);}};var cr$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=hI;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 hI(){return As$1(X$2(),v$1())}function As$1(e,t){return e.type&4?new cr$1(t,e,dr$1(e,t)):null}function fr$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=gI(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 Xn$3(i,true),i}function gI(e,t,n,r,o){let i=gc(),s=mc(),a=s?i:i&&i.parent,c=e.data[t]=yI(e,a,n,t,r,o);return mI(e,c,i,s),c}function mI(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 yI(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 vI(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):DI(i,r);e[nc]=o;}function DI(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 EI=()=>null,II=()=>null;function cs(e,t){return EI()}function kh(e,t,n){return II()}var Fh=class{},Sn$3=class Sn{},Yu=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>wI()}return e})();function wI(){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 CI(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 Cn$3(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&vD(o,i);let s=Tt$3(e)?Re$3(e.index,t):t;Zu(s,5);let a=t[Y$4],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 QE(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=Qn$3(e),u=false,l=null;if(!r&&c&&(l=bI(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(!TI(i)){let h=r?y=>r(xe$3(y[e.index])):e.index;jh(h,t,n,i,a,f,false);}}return u}function TI(e){return e.startsWith("animation")||e.startsWith("transition")}function bI(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[Zn$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 SI(){_I();}function _I(){let e=v$1(),t=j$4(),n=X$2();if(t.firstCreatePass&&xI(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 MI(){NI();}function NI(){let e=v$1(),t=j$4(),n=er$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,Cn$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,Cn$3(this.tNode,this.lView,t));}listenToDom(t,n){Xu(this.tNode,this.tView,this.lView,void 0,this.lView[L$3],t,n,Cn$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];bn$2(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];bn$2(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";KE(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 xI(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}AI(e,t);}function AI(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 RI(e,t)&&OI(e,t+"Change")}function RI(e,t){return t in e.inputs}function OI(e,t){return t in e.outputs}var nu=Symbol("BINDING");var An$3=new w("");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$1(e,t);let r=X$2();return xp(r,n,re$4(e),t)}function kI(){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}LI(e,t,n,a,i,c,u);}i!==null&&r!==null&&FI(n,r,i);}function FI(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$1(-301,false);r.push(t[o],i);}}function PI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function LI(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,PI(e,n,p)),Vc(is(n,t),e,f.type);}$I(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=ir$1(n.mergedAttrs,f.hostAttrs),BI(e,n,t,d,f),UI(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++;}jI(e,n,i);}function jI(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 BI(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Bt$1(o.type)),s=new Tn$3(i,rt$2(o),ze$2,null);e.blueprint[r]=s,n[r]=s,VI(e,t,r,mh(e,n,o.hostVars,Q$1),o);}function VI(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;HI(s)!=a&&s.push(a),s.push(n,r,i);}}function HI(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function UI(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 $I(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=fr$1(c,e,n,r,l);return Bh(c,t,d,De$3(u,a),o),d.mergedAttrs=ir$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 zI(e,t,n,r,o,i){let s=t.consts,a=De$3(s,o),c=fr$1(t,e,n,r,a);if(c.mergedAttrs=ir$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",GI=typeof Document<"u";function WI(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 qI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function ZI(e,t,n){let r=t instanceof fe$5?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new us(n,r):n}function YI(e){let t=e.get(Sn$3,null);if(t===null)throw new m$1(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 QI(e,t){let n=Uh(e);return eh(t,n,n==="svg"?oc:n==="math"?nf:null)}function KI(e){if(e?.toLowerCase()==="script")throw new m$1(905,false)}function Uh(e){return (e.selectors[0][0]||"div").toLowerCase()}var _n$3=class _n{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=WI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=qI(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=uE(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=ZI(c,o||this.ngModule,t),l=YI(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=XI(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?BE(u,o,a.encapsulation,n):QI(a,u);KI(l?.tagName);let d=n.get(An$3,null),p=JI(l,()=>n.get(U$4,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),sr$1(l,h),xs$1(c,h,D),bu(c,D,h),el(c,D),r!==void 0&&tw(D,this.ngContentSelectors,r),y=Re$3(D.index,h),h[Y$4]=y[Y$4],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 XI(e,t,n,r){let o=e?["ng-version","22.0.8"]:lE(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,ew(i,s),1,a,c,null,null,null,[o],null)}function JI(e,t){let n=e.getRootNode?.();return GI&&n instanceof Document?n.head:n&&Hh&&n instanceof ShadowRoot?n:t().head}function ew(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=dr$1(this._tNode,n),this.instance=Re$3(this._tNode.index,n)[Y$4],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 tw(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 pr$1=(()=>{class e{static __NG_ELEMENT_ID__=nw}return e})();function nw(){let e=X$2();return $h(e,v$1())}var ru=class e extends pr$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return dr$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$5}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,ar$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 _n$3(Et$2(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let _=this.parentInjector.get(fe$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,ar$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)),ow(n,t,e,r),new ru(n,e,t)}function rw(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 ow=aw;function aw(e,t,n,r){if(e[zt$1])return;let o;n.type&8?o=xe$3(r):o=rw(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=fw(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,cw(n,i)),this.matchTNodeWithReadOption(t,n,Ji$1(n,t,i,false,false));}else r===cr$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===xn$3||o===pr$1||o===cr$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 cw(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 uw(e,t){return e.type&11?dr$1(e,t):e.type&4?As$1(e,t):null}function lw(e,t,n,r){return n===-1?uw(t,e):n===-2?dw(e,t,r):io$1(e,e[E],n,t)}function dw(e,t,n){if(n===xn$3)return dr$1(t,e);if(n===cr$1)return As$1(t,e);if(n===pr$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(lw(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$5;d<l.length;d++){let p=l[d];p[$t$3]===p[te$4]&&cu(p[E],p,u,r);}if(l[Dn$3]!==null){let d=l[Dn$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),pw(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Gh(o,v$1(),n)}function fw(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 pw(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=hw(r,e);if(t&&i===void 0)throw new m$1(-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 hw(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$3;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 Mn$4=class Mn{},Xh=class{};var gs=class extends Mn$4{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=XD(i.bootstrap),this._r3Injector=wc(t,n,[{provide:Mn$4,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 Mn$4{injector;instance=null;constructor(t){super();let n=new hn$2([...t.providers,{provide:Mn$4,useValue:this}],t.parent||Wn$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 gw=(()=>{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$1(fe$5))})}return e})();function mw(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(gw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||$e$4.Emulated,styles:e.styles||ie$3,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&ut$2("NgStandalone"),tg(n);let r=e.dependencies;return n.directiveDefs=up(r,yw),n.pipeDefs=up(r,Hd),n.id=Ew(n),n})}function yw(e){return Et$2(e)||Wa(e)}function Os$2(e){return po$1(()=>({type:e.type,bootstrap:e.bootstrap||ie$3,declarations:e.declarations||ie$3,imports:e.imports||ie$3,exports:e.exports||ie$3,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function vw(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 Dw(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 hr$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$3,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:vw(e.inputs,t),outputs:Dw(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 Ew(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 w("");function Iw(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(pe$4);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=qn$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 ww(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function Cw(e){return Object.getPrototypeOf(e.prototype).constructor}function ng(e){let t=Cw(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$1(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&&Mw(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Sw(e,c),u&&_w(e,u),Tw(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);}bw(r);}function Tw(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 bw(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=ir$1(o.hostAttrs,n=ir$1(n,o.hostAttrs));}}function Ac(e){return e===Ht$1?{}:e===ie$3?[]:e}function Sw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function _w(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function Mw(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=ir$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),Xn$3(e,false);let c=xw(n,t);Hi$1()&&ju(n,t,c,e),sr$1(c,t);let u=xh(c,t,c,e);t[r+H$1]=u,Uu(t,u);}function Nw(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$1,p;return t.firstCreatePass?(p=fr$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),Qn$3(p)&&xs$1(t,e,p),u!=null&&mo$1(e,p,l),p}function ur$1(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$1,p;if(t.firstCreatePass){if(p=fr$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 Nw(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 ur$1(c,u,e,t,n,r,o,l,void 0,s,a),ig}var xw=Aw;function Aw(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 w("");var dl=new w("");function ag(){wa(()=>{let e="";throw new m$1(600,e)});}var Rw=10;var gr$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g(ot$2);afterRenderManager=g(bs$1);zonelessEnabled=g(nr$1);rootEffectScheduler=g(Gi$1);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ue$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(fe$5);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=pe$4.NULL){return this._injector.get(G$2).run(()=>{if(F$4(O$2.BootstrapComponentStart),!this._injector.get(ul).done){let _="";throw new m$1(405,_)}let a=Et$2(n),c=this._injector.get(Mn$4),u=new _n$3(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=Ow(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$1(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(Sn$3,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<Rw;){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$1(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 Ow(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=er$1();qE(a,o,e,t,n,r);}return cg}function kw(){return v$1()[ae$2][Y$4]}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 Fw(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 Pw(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 ur$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 ur$1(c,u,e,t,n,r,o,l,512,s,a),fl}function Lw(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,ar$1(l,d));}}finally{I(a);}}else if(i!==void 0){let a=Ah(i,s);a!==void 0&&(a[Y$4]=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$5}};function jw(e){return e}function Bw(e,t){return t}var fu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function Vw(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$2][Y$4]):s,$=new fu(y,_);D[H$1+e]=$,ur$1(f,h,e+1,t,n,r,o,De$3(h.consts,i),256),y&&ur$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$5}at(t){return this.getLView(t)[Y$4].$implicit}attach(t,n){let r=n[mn$2];this.needsIndexUpdate||=t!==this.length,vo$1(this.lContainer,n,t,ar$1(this.templateTNode,r)),Uw(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,$w(this.lContainer,t),zw(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$4].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Y$4].$index=t;}getLView(t){return Gw(this.lContainer,t)}};function Hw(e){let t=I(null),n=Ee$2();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(Fw(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,ar$1(f,h));}else o.firstUpdatePass&&vI(p),Rh(p,0);}}}finally{I(t);}}function vs$1(e,t){return e[t]}function Uw(e,t){if(e.length<=W$5)return;let n=W$5+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];vE(i,o),Yt$2.delete(r[tt$1]),o.detachedLeaveAnimationFns=void 0;}}function $w(e,t){if(e.length<=W$5)return;let n=W$5+t,r=e[n],o=r?r[nt$1]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function zw(e,t){return co$1(e,t)}function Gw(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=er$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),Qn$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&&Jv(n)&&gu(e,n,v$1(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&eD(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?zI(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",Ww),Qn$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 Ww=(e,t,n,r,o)=>(Zr(true),GD(t[L$3],""));function qw(){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=er$1();Eh(s,r,e,t,r[L$3],n);}return hg}var to$1=void 0;function Zw(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Yw=["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",Zw],Oc=Object.create(null);function he$4(e){let t=Qw(e),n=pp(t);if(n)return n;let r=t.split("-")[0];if(n=pp(r),n)return n;if(r==="en")return Yw;throw new m$1(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 Qw(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,Cn$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??=Cn$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??=Cn$3(r,t,i),ls(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=Cn$3(r,t,i),ls(r,t,d,o,o,c);}}function Xw(e=1){return Cf(e)}function Jw(e,t){let n=null,r=oE(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):aE(r,i))return o}return n}function eC(e){let t=v$1()[ae$2][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?Jw(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function tC(e,t=0,n,r,o,i){let s=v$1(),a=j$4(),c=null;let u=fr$1(a,H$1+e,16,null,null);u.projection===null&&(u.projection=t),yc();let d=!s[mn$2]||fc();s[ae$2][se$2].projection[u.projection]===null&&c!==null?nC(s,a,c):d&&!Is$1(u)&&RE(a,s,u);}function nC(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,ar$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 rC(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 oC(){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 iC(e=1){qr(ji$1()+e);}function sC(e){let t=hf();return Ri$3(t,H$1+e)}function Qi$1(e,t){return e<<17|t<<2}function Nn$3(e){return e>>17&32767}function aC(e){return (e&2)==2}function cC(e,t){return e&131071|t<<17}function mu(e){return e|2}function lr$1(e){return (e&131068)>>2}function kc(e,t){return e&-131069|t<<2}function uC(e){return (e&1)===1}function yu(e){return e|1}function lC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Nn$3(s),c=lr$1(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Gn$3(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=Nn$3(e[a+1]);e[r+1]=Qi$1(p,a),p!==0&&(e[p+1]=kc(e[p+1],r)),e[a+1]=cC(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),dC(t,l,e,r,i),s=Qi$1(a,c),i?t.classBindings=s:t.styleBindings=s;}function dC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Gn$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?Nn$3(o):lr$1(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];fC(c,t)&&(a=true,e[s+1]=r?yu(u):mu(u)),s=r?Nn$3(u):lr$1(u);}a&&(e[n+1]=r?mu(o):yu(o));}function fC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Gn$3(e,t)>=0:false}var Ue$2={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pC(e){return e.substring(Ue$2.key,Ue$2.keyEnd)}function hC(e){return gC(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=mC(e,Ue$2.key=t,n),Tg(e,t,n))}function gC(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 mC(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 yC(e){DC(bC,vC,e,true);}function vC(e,t){for(let n=hC(t);n>=0;n=Cg(t,n))Mi$3(e,pC(t),true);}function _g(e,t,n,r){let o=v$1(),i=j$4(),s=wn$3(2);if(i.firstUpdatePass&&Ng(i,e,s,r),t!==Q$1&&we$2(o,s,t)){let a=i.data[Ee$2()];xg(i,a,o,o[L$3],e,o[s+1]=_C(t,n),r,s);}}function DC(e,t,n,r){let o=j$4(),i=wn$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$2()];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 SC(o,a,s,s[L$3],s[i+1],s[i+1]=TC(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$2()],s=Mg(e,n);Ag(i,r)&&t===null&&!s&&(t=false),t=EC(o,i,t,r),lC(o,i,t,n,s,r);}}function EC(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=IC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Fc(null,e,t,c[1],r),c=fo$1(c,t.attrs,r),wC(e,t,r,c));}else i=CC(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function IC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(lr$1(r)!==0)return e[Nn$3(r)]}function wC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Nn$3(o)]=r;}function CC(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 TC(e,t,n){if(n==null||n==="")return ie$3;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 bC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Mi$3(e,r,n);}function SC(e,t,n,r,o,i,s,a){o===Q$1&&(o=ie$3);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=uC(u)?gp(c,t,n,o,lr$1(u),s):void 0;if(!Es$1(l)){Es$1(i)||aC(u)&&(i=gp(c,null,n,o,a,s));let d=ic(Ee$2(),n);kE(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$3: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?Nn$3(h):lr$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 _C(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 MC(e,t=""){let n=v$1(),r=j$4(),o=e+H$1,i=r.firstCreatePass?fr$1(r,o,1,t,null):r.data[o],s=NC(r,n,i,t);n[o]=s,Hi$1()&&ju(r,n,s,i),Xn$3(i,false);}var NC=(e,t,n,r)=>(Zr(true),$D(t[L$3],r));function Rg(e,t,n,r=""){return we$2(e,Gt$1(),n)?t+Z$2(n)+r:Q$1}function xC(e,t,n,r,o,i=""){let s=Wr(),a=uo$1(e,s,n,o);return wn$3(2),a?t+Z$2(n)+r+Z$2(o)+i:Q$1}function AC(e,t,n,r,o,i,s,a,c,u=""){let l=Wr(),d=Ku(e,l,n,o,s,c);return wn$3(4),d?t+Z$2(n)+r+Z$2(o)+i+Z$2(s)+a+Z$2(c)+u:Q$1}function RC(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,wn$3(5),f?t+Z$2(n)+r+Z$2(o)+i+Z$2(s)+a+Z$2(c)+u+Z$2(l)+d:Q$1}function OC(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,wn$3(6),y?t+Z$2(n)+r+Z$2(o)+i+Z$2(s)+a+Z$2(c)+u+Z$2(l)+d+Z$2(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$2(),o),vl}function kg(e,t,n,r,o){let i=v$1(),s=xC(i,e,t,n,r,o);return s!==Q$1&&Eo$1(i,Ee$2(),s),kg}function Fg(e,t,n,r,o,i,s,a,c){let u=v$1(),l=AC(u,e,t,n,r,o,i,s,a,c);return l!==Q$1&&Eo$1(u,Ee$2(),l),Fg}function Pg(e,t,n,r,o,i,s,a,c,u,l){let d=v$1(),p=RC(d,e,t,n,r,o,i,s,a,c,u,l);return p!==Q$1&&Eo$1(d,Ee$2(),p),Pg}function Lg(e,t,n,r,o,i,s,a,c,u,l,d,p){let f=v$1(),h=OC(f,e,t,n,r,o,i,s,a,c,u,l,d,p);return h!==Q$1&&Eo$1(f,Ee$2(),h),Lg}function Eo$1(e,t,n){let r=ic(t,e);zD(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=er$1();Dh(s,r,e,t,r[L$3],n);}return jg}function kC(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 FC(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$4(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=pn$2(e)?e:re$4(e.provide),u=Ja(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(pn$2(e)||!e.multi){let f=new Tn$3(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 _=jC(PC,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=pn$2(t),i=Jd(t);if(o||i){let c=(i?re$4(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 PC(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 jC(e,t,n,r,o,i){let s=new Tn$3(e,n,ze$2,null);return s.multi=[],s.index=t,s.componentProviders=0,Hg(s,o,r&&!n),s}function BC(e,t){return n=>{n.providersResolver=(r,o)=>mp(r,o?o(e):e,false);}}function VC(e,t){let n=Jn$2()+e,r=v$1();return r[n]===Q$1?Qu(r,n,t()):CI(r,n)}function HC(e,t,n){return $g(v$1(),Jn$2(),e,t,n)}function UC(e,t,n,r){return zg(v$1(),Jn$2(),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 $C(e,t){let n=j$4(),r,o=e+H$1;n.firstCreatePass?(r=zC(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=de$5(ze$2);try{let c=os(!1),u=i();return os(c),sc(n,v$1(),o,u),u}finally{de$5(a);}}function zC(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function GC(e,t,n){let r=e+H$1,o=v$1(),i=Ri$3(o,r);return Gg(o,r)?$g(o,Jn$2(),t,i.transform,n,i):i.transform(n)}function WC(e,t,n,r){let o=e+H$1,i=v$1(),s=Ri$3(i,o);return Gg(i,o)?zg(i,Jn$2(),t,s.transform,n,r,s):s.transform(n,r)}function Gg(e,t){return e[E].data[t].pure}function qC(e,t){return As$1(e,t)}var Wg=(()=>{class e{applicationErrorHandler=g(ot$2);appRef=g(gr$1);taskService=g(qt$1);ngZone=g(G$2);zonelessEnabled=g(nr$1);tracing=g(ct$1,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new ee$3;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:nr$1,useValue:true}]}var ZC=(()=>{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 YC(){return typeof $localize<"u"&&$localize.locale||Do$1}var mr$1=new w("",{factory:()=>g(mr$1,{optional:true,skipSelf:true})||YC()});var Io$1=class Io{destroyed=false;listeners=null;errorHandler=g(Se$3,{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$1(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&&QC(this.listeners)),I(n),this.isEmitting=false;}}};function QC(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function KC(e,t){return Ar$1(e,t?.equal)}function wo$1(e){return kd(e)}var XC=e=>e;function JC(e,t){if(typeof e=="function"){let n=_a(e,XC,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$1(-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 yB(e){return fT(e)?e.default:e}function fT(e){return e&&typeof e=="object"&&"default"in e}function vB(e){return new Io$1}function Qg(e,t){return om(e,t)}function pT(e){return om(Fs$1,e)}var DB=(Qg.required=pT,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$1(952,false)}function Xg(e,t){return im(e)}function hT(e){return im(Fs$1)}var EB=(Xg.required=hT,Xg);function Jg(e,t){return ol()}function gT(e,t){return il()}var IB=(Jg.required=gT,Jg);function wB(e,t){return Qh()}function em(e,t){return ol()}function mT(e,t){return il()}var CB=(em.required=mT,em);var sm=(()=>{class e{static __NG_ELEMENT_ID__=vT}return e})();function vT(e){return DT(X$2(),v$1(),(e&16)===16)}function DT(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$2];return new Qt$2(r,t)}return null}var ET=(()=>{class e{zone=g(G$2);changeDetectionScheduler=g(je$3);applicationRef=g(gr$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})(),IT=new w("",{factory:()=>false});function wT({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new G$2(x$1(w$1({},am()),{scheduleInRootZone:t})),[{provide:nr$1,useValue:false},{provide:G$2,useFactory:e},{provide:It$2,multi:true,useFactory:()=>{let n=g(ET,{optional:true});return ()=>n.initialize()}},{provide:It$2,multi:true,useFactory:()=>{let n=g(CT);return ()=>{n.initialize();}}},{provide:zi$2,useValue:t??Cc}]}function bB(e){let t=e?.scheduleInRootZone,n=wT({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:IT,useValue:true},n])}function am(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var CT=(()=>{class e{subscription=new ee$3;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 w(""),TT=new w("");function Co$1(e){return !e.moduleRef}function bT(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 _T(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(mr$1,Do$1);if(gg(c||Do$1),!t.get(TT,!0))return Co$1(e)?t.get(gr$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Co$1(e)){let l=t.get(gr$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return ST?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var ST;function _T(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 MT(e=[],t){return pe$4.create({name:t,providers:[{provide:$r,useValue:"platform"},{provide:El,useValue:new Set([()=>ks$1=null])},...e]})}function NT(e=[]){if(ks$1)return ks$1;let t=MT(e);return ks$1=t,ag(),xT(t),t}function xT(e){let t=e.get($i$1,null);qn$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??NT(r),s=[qg(),xf,...n||[]],a=new lo$1({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return bT({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{F$4(O$2.BootstrapApplicationEnd);}}function AT(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function RT(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Dl=Symbol("NOT_SET"),um=new Set,OT=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&&!Vn$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(OT);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 SB(e,t){let n=g(pe$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(tr$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 _B(e,t){let n=Et$2(e),r=t.elementInjector||Wn$3();return new _n$3(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function MB(e){let t=Et$2(e);if(!t)return null;let n=new _n$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 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})(),kT=new w(""),dm=(()=>{class e extends Kt$2{_location;_history;_doc=g(U$4);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 yr$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 w(""),hm=(()=>{class e extends yr$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(U$4).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$1(Kt$2),b$1(Ls$1,8))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var gm=(()=>{class e{_subject=new ue$4;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=LT(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(PT(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$1(yr$1))};static \u0275prov=x({token:e,factory:()=>FT(),providedIn:"root"})}return e})();function FT(){return new gm(b$1(yr$1))}function PT(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 LT(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var jT=(()=>{class e extends yr$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$1(Kt$2),b$1(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$1=(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$1||{}),ge$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})(ge$4||{}),me$4={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function vm(e){return he$4(e)[K$4.LocaleId]}function Dm(e,t,n){let r=he$4(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=he$4(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=he$4(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=he$4(e)[K$4.Eras];return ke$4(r,t)}function bo$1(e,t){let n=he$4(e);return ke$4(n[K$4.DateFormat],t)}function So$1(e,t){let n=he$4(e);return ke$4(n[K$4.TimeFormat],t)}function _o$1(e,t){let r=he$4(e)[K$4.DateTimeFormat];return ke$4(r,t)}function lt$2(e,t){let n=he$4(e),r=n[K$4.NumberSymbols][t];if(typeof r>"u"){if(t===me$4.CurrencyDecimal)return n[K$4.NumberSymbols][me$4.Decimal];if(t===me$4.CurrencyGroup)return n[K$4.NumberSymbols][me$4.Group]}return r}function Cm(e,t){return he$4(e)[K$4.NumberFormats][t]}function Tm(e){if(!e[K$4.ExtraData])throw new m$1(2303,false)}function bm(e){let t=he$4(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=he$4(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$1(2304,false)}function Cl(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var BT=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,js$1=Object.create(null),VT=/((?:[^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]*)/,HT=256;function _m(e,t,n,r){let o=KT(e);UT(t),t=Mt$2(n,t)||t;let s=[],a;for(;t;)if(a=VT.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=QT(o,r));let u="";return s.forEach(l=>{let d=ZT(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function UT(e){if(e.length>HT)throw new m$1(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,ge$4.Short);break;case "mediumDate":r=bo$1(e,ge$4.Medium);break;case "longDate":r=bo$1(e,ge$4.Long);break;case "fullDate":r=bo$1(e,ge$4.Full);break;case "shortTime":r=So$1(e,ge$4.Short);break;case "mediumTime":r=So$1(e,ge$4.Medium);break;case "longTime":r=So$1(e,ge$4.Long);break;case "fullTime":r=So$1(e,ge$4.Full);break;case "short":let o=Mt$2(e,"shortTime"),i=Mt$2(e,"shortDate");r=Bs$1(_o$1(e,ge$4.Short),[o,i]);break;case "medium":let s=Mt$2(e,"mediumTime"),a=Mt$2(e,"mediumDate");r=Bs$1(_o$1(e,ge$4.Medium),[s,a]);break;case "long":let c=Mt$2(e,"longTime"),u=Mt$2(e,"longDate");r=Bs$1(_o$1(e,ge$4.Long),[c,u]);break;case "full":let l=Mt$2(e,"fullTime"),d=Mt$2(e,"fullDate");r=Bs$1(_o$1(e,ge$4.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 $T(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=zT(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return $T(a,t);let c=lt$2(s,me$4.MinusSign);return We$2(a,t,c,r,o)}}function zT(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$1(2301,false)}}function V$2(e,t,n=ce$1.Format,r=false){return function(o,i){return GT(o,i,e,t,n,r)}}function GT(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$1(2302,false)}}function Vs$1(e){return function(t,n,r){let o=-1*r,i=lt$2(n,me$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$1(2310,false)}}}var WT=0,Us$1=4;function qT(e){let t=$s$1(e,WT,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=qT(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return We$2(o,e,lt$2(r,me$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,me$4.MinusSign),t)}}var bl=Object.create(null);function ZT(e){if(bl[e])return bl[e];let t;switch(e){case "G":case "GG":case "GGG":t=V$2(3,B$1.Abbreviated);break;case "GGGG":t=V$2(3,B$1.Wide);break;case "GGGGG":t=V$2(3,B$1.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$1.Abbreviated);break;case "MMMM":t=V$2(2,B$1.Wide);break;case "MMMMM":t=V$2(2,B$1.Narrow);break;case "LLL":t=V$2(2,B$1.Abbreviated,ce$1.Standalone);break;case "LLLL":t=V$2(2,B$1.Wide,ce$1.Standalone);break;case "LLLLL":t=V$2(2,B$1.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$1.Abbreviated,ce$1.Standalone);break;case "cccc":t=V$2(1,B$1.Wide,ce$1.Standalone);break;case "ccccc":t=V$2(1,B$1.Narrow,ce$1.Standalone);break;case "cccccc":t=V$2(1,B$1.Short,ce$1.Standalone);break;case "E":case "EE":case "EEE":t=V$2(1,B$1.Abbreviated);break;case "EEEE":t=V$2(1,B$1.Wide);break;case "EEEEE":t=V$2(1,B$1.Narrow);break;case "EEEEEE":t=V$2(1,B$1.Short);break;case "a":case "aa":case "aaa":t=V$2(0,B$1.Abbreviated);break;case "aaaa":t=V$2(0,B$1.Wide);break;case "aaaaa":t=V$2(0,B$1.Narrow);break;case "b":case "bb":case "bbb":t=V$2(0,B$1.Abbreviated,ce$1.Standalone,true);break;case "bbbb":t=V$2(0,B$1.Wide,ce$1.Standalone,true);break;case "bbbbb":t=V$2(0,B$1.Narrow,ce$1.Standalone,true);break;case "B":case "BB":case "BBB":t=V$2(0,B$1.Abbreviated,ce$1.Format,true);break;case "BBBB":t=V$2(0,B$1.Wide,ce$1.Format,true);break;case "BBBBB":t=V$2(0,B$1.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 YT(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function QT(e,t,n){let o=e.getTimezoneOffset(),i=Nm(t,o);return YT(e,-1*(i-o))}function KT(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(BT))return XT(r)}let t=new Date(e);if(!mm(t))throw new m$1(2311,false);return t}function XT(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 JT=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ym=22,zs$1=".",Mo$2="0",eb=";",tb=",",Sl="#";function nb(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=lt$2(n,me$4.Infinity);else {let u=ib(e);s&&(u=ob(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let $=i.match(JT);if($===null)throw new m$1(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$1(2306,false)}sb(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,me$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=rb(r,lt$2(t,me$4.MinusSign));return nb(e,o,t,me$4.Group,me$4.Decimal,n)}function rb(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(eb),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(tb);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 ob(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 ib(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 sb(e,t,n){if(t>n)throw new m$1(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$1(2305,false);return t}var ab=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g(pe$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(pr$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$1(2100,false)}var cb=(()=>{class e{transform(n){return n==null?null:(ub(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=hr$1({name:"lowercase",type:e,pure:true})}return e})();function ub(e,t){if(typeof t!="string")throw Nl()}var lb="mediumDate",Am=new w(""),Rm=new w(""),db=(()=>{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??lb,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(mr$1,16),ze$2(Am,24),ze$2(Rm,24))};static \u0275pipe=hr$1({name:"date",type:e,pure:true})}return e})();var fb=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=hr$1({name:"json",type:e,pure:false})}return e})();var pb=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!hb(n))return null;o||=this._locale;try{let i=gb(n);return xm(i,o,r)}catch(i){throw Nl(e,i.message)}}static \u0275fac=function(r){return new(r||e)(ze$2(mr$1,16))};static \u0275pipe=hr$1({name:"number",type:e,pure:true})}return e})();function hb(e){return !(e==null||e===""||e!==e)}function gb(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new m$1(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 XV(e){return e===Al}var JV=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new xl(g(U$4),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=Db(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 Db(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$1(U$4))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Zs$1=new w(""),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$1(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(b$1(Zs$1),b$1(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 Eb(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,Eb(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$1(U$4),b$1(Qr),b$1(Xr,8),b$1(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%",Ib=`_nghost-${Pm}`,wb=`_ngcontent-${Pm}`,Cb=true,Tb=new w("",{factory:()=>Cb});function bb(e){return wb.replace(Ll,e)}function Sb(e){return Ib.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$1(Fl),b$1(An$3),b$1(Qr),b$1(Tb),b$1(U$4),b$1(G$2),b$1(Xr),b$1(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$1(-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$1(-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=bb(u),this.hostAttr=Sb(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=_b();return n==null?null:Mb(n)}resetBaseElement(){Oo$1=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return No$1(document.cookie,t)}},Oo$1=null;function _b(){return Oo$1=Oo$1||document.head.querySelector("base"),Oo$1?Oo$1.getAttribute("href"):null}function Mb(e){return new URL(e,document.baseURI).pathname}var jm=["alt","control","meta","shift"],Nb={"\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"},xb={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=Nb[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=xb[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$1(U$4))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function Ab(e,t,n){return B$2(this,null,function*(){let r=w$1({rootComponent:e},Rb(t,n));return cm(r)})}function Rb(e,t){return {platformRef:t?.platformRef,appProviders:[...Lb,...e?.providers??[]],platformProviders:Pb}}function Ob(){Ys$1.makeCurrent();}function kb(){return new Se$3}function Fb(){return Cu(document),document}var Pb=[{provide:Kr,useValue:Al},{provide:$i$1,useValue:Ob,multi:true},{provide:U$4,useFactory:Fb}];var Lb=[{provide:$r,useValue:"root"},{provide:Se$3,useFactory:kb},{provide:Zs$1,useClass:Gs$1,multi:true},{provide:Zs$1,useClass:Bm,multi:true},jl,{provide:An$3,useClass:Pl},{provide:Pl,useExisting:An$3},Fl,{provide:Sn$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 jb(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 Bb=/%(\d[a-f0-9])/gi,Vb={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Vm(e){return encodeURIComponent(e).replace(Bb,(t,n)=>Vb[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$1(2805,false);this.map=jb(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 Hb(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 Ub(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Bl="Content-Type",zm="Accept",Wm="text/plain",qm="application/json",$b=`${qm}, ${Wm}, */*`,vr$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(Hb(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$1(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)||Ub(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((kn,Xt)=>kn.set(Xt,t.setHeaders[Xt]),At)),t.setParams&&(Fe=Object.keys(t.setParams).reduce((kn,Xt)=>kn.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})}},Dr$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})(Dr$1||{}),Er$1=class Er{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 Er$1{constructor(t={}){super(t);}type=Dr$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 Er$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=Dr$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})}},On$3=class On extends Er$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;}},zb=200;var Gb=/^\)\]\}',?\n/,Zm=new w("",{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 On$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$2(this,null,function*(){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,w$1({signal:r},i)));Wb(D),o.next({type:Dr$1.Sent}),s=yield D;}catch(D){o.error(new On$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,kn=false;if(yield this.ngZone.runOutsideAngular(()=>B$2(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield be.cancel(),kn=true;break}let{done:Ir,value:na}=yield be.read();if(Ir)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:Dr$1.DownloadProgress,total:Number.isFinite(_)?_:void 0,loaded:qe,partialText:Fe});Fo?Fo.run(Gl):Gl();}}})),kn){o.complete();return}let Xt=this.concatChunks($,qe);try{let Ir=s.headers.get(Bl)??"";d=this.parseBody(n,Xt,Ir,l);}catch(Ir){o.error(new On$3({error:Ir,headers:new xt$2(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?zb: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 On$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(Gb,"");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$1(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]=$b),!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 Wb(e){e.then(Ul,Ul);}function Gm(e){throw new m$1(-2825,false)}function qb(e,t){return t(e)}function Zb(e,t,n){return (r,o)=>qn$3(n,()=>t(r,i=>e(i,o)))}var Ym=new w("",{factory:()=>[]}),Qm=new w(""),Km=new w("",{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$1(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)=>Zb(i,s,this.injector),qb);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return wo$1(()=>r(n,i=>this.backend.handle(i))).pipe(li$3(o))}else return wo$1(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(b$1($l),b$1(fe$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$1(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 vr$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 vr$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=Cr$1(i).pipe(ui$3(c=>this.handler.handle(c)));if(n instanceof vr$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$1(2806,false);return c.body}));case "blob":return a.pipe(ne$3(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new m$1(2807,false);return c.body}));case "text":return a.pipe(ne$3(c=>{if(c.body!==null&&typeof c.body!="string")throw new m$1(2808,false);return c.body}));default:return a.pipe(ne$3(c=>c.body))}case "response":return a;default:throw new m$1(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$1(zl))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Yb=new w("",{factory:()=>true}),Qb="XSRF-TOKEN",Kb=new w("",{factory:()=>Qb}),Xb="X-XSRF-TOKEN",Jb=new w("",{factory:()=>Xb}),eS=(()=>{class e{cookieName=g(Kb);doc=g(U$4);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$1(eS),o},providedIn:"root"})}return e})();function tS(e,t){if(!g(Yb)||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(Jb);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function nS(...e){let t=[Xm,ea$1,ta$1,{provide:zl,useExisting:ta$1},{provide:$l,useFactory:()=>g(ea$1)},{provide:Ym,useValue:tS,multi:true}];for(let n of e)t.push(...n.\u0275providers);return wt$3(t)}var SH=(()=>{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$1(U$4))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var rS=(()=>{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$1(oS),o},providedIn:"root"})}return e})(),oS=(()=>{class e extends rS{_doc=g(U$4);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$1(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$1(-5201,false);default:throw new m$1(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:c,encodeParam:o,encoder:t,password:e,username:s,withCredentials:p}={}){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),p!==void 0&&(this.withCredentials=p),t&&(this.encoder=t),this.encodeParam=o??(a=>this.defaultEncodeParam(a)),this.credentials=c??{};}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,c){let o=this.lookupCredential(x);return o?r.set(n,(c??"")+o):r}addCredentialToQuery(x,n,r){let c=this.lookupCredential(x);return c?r.set(n,c):r}defaultEncodeParam(x){let n=x.dataFormat==="date-time"&&x.value instanceof Date?x.value.toISOString():x.value;return encodeURIComponent(String(n))}};var P$2=new w("basePath");var $$2=class ${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 $$2;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,r,c=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,c?r:void 0,c):this.addToHttpParamsRecursive(x,n,r)}addToHttpParamsRecursive(x,n,r,c=false){if(n==null)return x;if(typeof n=="object"){if(r!=null)return c?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$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}disableAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}enableAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}exportAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}getDefinitionAgentConfig(n,r,c,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,c,"namespaceId");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.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:p,observe:o,transferCache:i,reportProgress:t}))}listByParentAgentConfig(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,r="body",c=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 p=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:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}searchAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}updateAgentConfig(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var N$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getAgentConfigDefaults(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var k$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAiModel(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteAiModel(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdAiModel(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsAiModel(n,r="body",c=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,p=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:p,reportProgress:c}))}listByNamespaceIdAiModel(n,r="body",c=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,p=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:p,reportProgress:c}))}listByParentAiModel(n,r="body",c=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,p=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:p,reportProgress:c}))}listPlatformLevelAiModel(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateAiModel(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var F$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAiProvider(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteAiProvider(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdAiProvider(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsAiProvider(n,r="body",c=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,p=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:p,reportProgress:c}))}listAiProvider(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}updateAiProvider(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var D$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;addMessageCase(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}countUnreadCase(n,r="body",c=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 p=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:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}createCase(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteCase(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdCase(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsCase(n,r="body",c=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,p=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:p,reportProgress:c}))}interruptCase(n,r="body",c=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,p=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:p,reportProgress:c}))}killCase(n,r="body",c=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,p=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:p,reportProgress:c}))}listByParentCase(n,r="body",c=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,p=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:p,reportProgress:c}))}listByUserCase(n,r="body",c=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,p=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:p,reportProgress:c}))}listByUserExternalIdCase(n,r="body",c=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,p=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:p,reportProgress:c}))}listByUserInNamespaceCase(n,r="body",c=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,p=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:p,reportProgress:c}))}listMineByParentCase(n,r="body",c=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,p=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:p,reportProgress:c}))}markCaseRead(n,r="body",c=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,p=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:p,reportProgress:c}))}reopenCase(n,r="body",c=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,p=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:p,reportProgress:c}))}setReasoningEffortCase(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}starCase(n,r="body",c=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,p=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:p,reportProgress:c}))}unstarCase(n,r="body",c=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,p=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:p,reportProgress:c}))}updateCase(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var W$4=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;listEffectiveConfiguration(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var G$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createIntegrationConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteIntegrationConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}exportIntegrationConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdIntegrationConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsIntegrationConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}listIntegrationConfig(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getTypeIntegrationType(n,r="body",c=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,p=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:p,reportProgress:c}))}listTypesIntegrationType(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var J$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createNamespace(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteNamespace(n,r="body",c=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,p=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:p,reportProgress:c}))}deployAgentsNamespace(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}getByIdNamespace(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsNamespace(n,r="body",c=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,p=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:p,reportProgress:c}))}listAllNamespace(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsNamespace(n,r="body",c=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,p=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:p,reportProgress:c}))}undeployAgentsNamespace(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}updateNamespace(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var L$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,r="body",c=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,p=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:p,reportProgress:c}))}removeAssociationNamespaceGit(n,r="body",c=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,p=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:p,reportProgress:c}))}setAssociationNamespaceGit(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,r,c,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(c==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,c,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.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:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,r="body",c=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,p=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:p,reportProgress:c}))}aggregateByCaseTreeUsageRecord(n,r="body",c=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,p=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:p,reportProgress:c}))}aggregateByModelUsageRecord(n,r,c,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(c==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,c,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.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:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByUserUsageRecord(n,r,c,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(c==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 p=new Nt$3({encoder:this.encoder});p=this.addToHttpParams(p,n,"userId"),p=this.addToHttpParams(p,r,"namespaceId"),p=this.addToHttpParams(p,c,"from"),p=this.addToHttpParams(p,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:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}listByCaseIdUsageRecord(n,r="body",c=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,p=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:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Se$2=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(Se$2||{});var qe$2=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(qe$2||{});var Me$2=(n=>(n.ENVIRONMENT="ENVIRONMENT",n.PROPERTY="PROPERTY",n))(Me$2||{});var Be$2=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Be$2||{});var $e$3=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))($e$3||{});var K$3=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 c=this.zone.runOutsideAngular(()=>new EventSource(n));return c.onopen=()=>this.zone.run(()=>r.next("connected")),c.addEventListener("namespace-case-list-updated",()=>this.zone.run(()=>r.next("updated"))),c.onerror=()=>{},()=>c.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Q=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 z$1=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(z$1||{});var X$1=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(X$1||{});var Ue$1=z$1,Ne$2=X$1;var ke$3={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},Fe$2={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var Z$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAuthSetting(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteAuthSetting(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdAuthSetting(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsAuthSetting(n,r="body",c=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,p=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:p,reportProgress:c}))}listAuthSetting(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}updateAuthSetting(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsCaseEventRest(n,r="body",c=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,p=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:p,reportProgress:c}))}listByCaseCaseEventRest(n,r="body",c=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,p=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:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var te$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getMembersCaseMembership(n,r="body",c=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,p=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:p,reportProgress:c}))}updateMembersCaseMembership(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;changesCaseWorkspace(n,r="body",c=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,p=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:p,reportProgress:c}))}diffCaseWorkspace(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}getCaseWorkspace(n,r="body",c=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,p=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:p,reportProgress:c}))}listCaseWorkspace(n,r="body",c=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,p=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:p,reportProgress:c}))}refreshCaseWorkspace(n,r="body",c=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,p=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:p,reportProgress:c}))}retryCaseWorkspace(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var oe$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;applyConfigChange(n,r,c,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(c==null)throw new Error("Required parameter configChangeApplyRequest was null or undefined when calling applyConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));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";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?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:c,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}rejectConfigChange(n,r,c,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,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));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";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?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:c,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}viewConfigChange(n,r,c="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 p=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:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var re$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,r,c,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling browseCaseFilesExchange.");let p=new Nt$3({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,c,"page"),p=this.addToHttpParams(p,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:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}browseNamespaceFilesExchange(n,r,c,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling browseNamespaceFilesExchange.");let p=new Nt$3({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,c,"page"),p=this.addToHttpParams(p,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:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}deleteCaseFileExchange(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,r="body",c=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,p=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:p,reportProgress:c}))}getNamespaceFileContentExchange(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,r="body",c=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,p=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:p,reportProgress:c}))}uploadCaseFileExchange(n,r,c="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 p=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:V,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${V}${E}`,x$1(w$1({context:p,body:l,responseType:m},S?{withCredentials:S}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}uploadNamespaceFileExchange(n,r,c="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 p=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:V,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${V}${E}`,x$1(w$1({context:p,body:l,responseType:m},S?{withCredentials:S}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createFeedback(n,r="body",c=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,p=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:p,reportProgress:c}))}listByCaseEventFeedback(n,r="body",c=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,p=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:p,reportProgress:c}))}listByCaseFeedback(n,r="body",c=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,p=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:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var se$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getGitWorkspacesConfiguration(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ie$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,r="body",c=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,p=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:p,reportProgress:c}))}updateMembersNamespaceMembership(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;grantAdmin(n,r,c="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 p=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:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}grantMember(n,r,c="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 p=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:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}revokeAdmin(n,r,c="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 p=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:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}revokeMember(n,r,c="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 p=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:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}updateRolesByExternalId(n,r="body",c=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,p=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:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,r="body",c=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,p=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:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var le$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;debugAllPlugins(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}debugPlugin(n,r="body",c=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,p=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:p,reportProgress:c}))}getAllPlugins(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}getPlugin(n,r="body",c=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,p=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:p,reportProgress:c}))}reloadAllAgentsPlugin(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}reloadPlugin(n,r="body",c=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,p=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:p,reportProgress:c}))}startPlugin(n,r="body",c=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,p=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:p,reportProgress:c}))}stopPlugin(n,r="body",c=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,p=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:p,reportProgress:c}))}unloadPlugin(n,r="body",c=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,p=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:p,reportProgress:c}))}uploadPlugin(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var de$4=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}deletePrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}exportPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}resolveEffectivePrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}searchPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}translateBatchPrompt(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}translatePrompt(n,r,c,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(c==null)throw new Error("Required parameter promptTranslateRequest was null or undefined when calling translatePrompt.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));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";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?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:c,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var be$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;continueCostRunRunCost(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}getRunCost(n,r="body",c=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,p=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:p,reportProgress:c}))}stopCostRunRunCost(n,r="body",c=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,p=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:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var fe$4=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}disableScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}enableScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}resolveEffectiveScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}searchScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}updateScheduledPrompt(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ue$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createSkill(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteSkill(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdSkill(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsSkill(n,r="body",c=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,p=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:p,reportProgress:c}))}listByParentSkill(n,r="body",c=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,p=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:p,reportProgress:c}))}listEffectiveSkill(n,r="body",c=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 p=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:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}listPlatformSkill(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateSkill(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;streamCaseInvalidationsNamespaceCaseInvalidationSse(n,r="body",c=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,p=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:p,reportProgress:c}))}streamCaseListUpdatesNamespaceCaseListUpdateSse(n,r="body",c=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,p=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:p,reportProgress:c}))}streamEventsCaseEventSse(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;invokeToolInvoke(n,r="body",c=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,p=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:p,reportProgress:c}))}listToolInvoke(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var Ce$4=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getUsageConfiguration(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var He$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createUser(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteUser(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdUser(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsUser(n,r="body",c=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,p=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:p,reportProgress:c}))}getGroupsByExternalIdsUser(n,r="body",c=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,p=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:p,reportProgress:c}))}getMeUser(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listAllUser(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsUser(n,r="body",c=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,p=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:p,reportProgress:c}))}revokeNamespaceAccessByExternalIdUser(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}updateUser(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var xe$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createUserGroup(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteUserGroup(n,r="body",c=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,p=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:p,reportProgress:c}))}findByNamespaceIdUserGroup(n,r="body",c=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 p=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:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}getByIdUserGroup(n,r="body",c=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,p=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:p,reportProgress:c}))}getMembersUserGroup(n,r="body",c=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,p=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:p,reportProgress:c}))}updateUserGroup(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var me$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;capabilityVoiceMessage(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}postVoiceMessage(n,r,c,o,t,e,s="body",p=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,c,"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),V,S=false;S=E,S?V=new FormData:V=new Nt$3({encoder:this.encoder}),t!==void 0&&(V=V.append("answerToEventId",t)||V),r!==void 0&&(V=V.append("audio",r)||V),e!==void 0&&(V=V.append("durationMs",e)||V);let B="json";l&&(l.startsWith("text")?B="text":this.configuration.isJsonMime(l)?B="json":B="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:Ve,withCredentials:we}=this.configuration;return this.httpClient.request("post",`${Ve}${Oe}`,x$1(w$1({context:f,body:V,params:d,responseType:B},we?{withCredentials:we}:{}),{headers:i,observe:s,transferCache:b,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$2,8),b$1(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var De$2=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(De$2||{});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.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(Ge$2||{});var _e$3=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))(_e$3||{}),Je$2=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(Je$2||{});var Le$1=(c=>(c.FREE_TEXT="FREE_TEXT",c.SINGLE_CHOICE="SINGLE_CHOICE",c.OPEN_CHOICE="OPEN_CHOICE",c.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",c))(Le$1||{});function Ol(C){return wt$3([typeof C=="string"?{provide:P$2,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 c=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 c.addEventListener("case-event",o),c.onerror=()=>{},()=>c.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 c=this.zone.runOutsideAngular(()=>new EventSource(n));return c.onopen=()=>this.zone.run(()=>r.next("connected")),c.addEventListener("namespace-case-invalidation",()=>this.zone.run(()=>r.next("invalidated"))),c.onerror=()=>{},()=>c.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 f$1=class s{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||s)};static \u0275prov=x({token:s,factory:s.\u0275fac,providedIn:"root"})};var C=["email","providers","folder","progress"],Y$2=s=>s==="fresh"||s==="nofresh"?s:null,j$2=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,O$1=1500,V$1=8,W$3=2e4,l=(s,e,t)=>({key:s,label:e,state:t.state,percent:t.percent,message:t.message??(s==="java"?t.version:void 0)}),P$1=(s,e)=>{if(s instanceof On$3){let t=s.error;if(t&&typeof t=="object"&&t.error)return t.error;if(s.status===0)return "Cannot reach the Coday server."}return e},R$1=class s{api=g(f$1);users=g(He$1);namespaces=g(J$1);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);emailValid=KC(()=>j$2.test(this.email().trim()));enabledProviders=KC(()=>this.providers().filter(e=>e.enabled));providersValid=KC(()=>{let e=this.enabledProviders();return e.length>0&&e.every(t=>t.apiKey.trim().length>=V$1)});folderValid=KC(()=>this.folder().startsWith("/")||/^[A-Za-z]:[\\/]/.test(this.folder()));stepIndex=KC(()=>C.indexOf(this.step()));checklist=KC(()=>{let e=this.status()?.steps;return e?[l("download","Downloading AgentOS",e.download),l("java","Checking Java 25",e.java),l("agentos","Starting AgentOS",e.agentos),l("providers","Configuring your AI providers",e.providers),l("models","Registering the models",e.models),l("namespace","Creating your personal workspace",e.namespace),l("agent","Deploying the Coday agent",e.agent)]:[]});loadingChecklist=KC(()=>{let e=this.status()?.steps;return e?[l("download","Downloading AgentOS",e.download),l("java","Checking Java 25",e.java),l("agentos","Starting AgentOS",e.agentos),...e.factory?[l("factory","Waiting for the Factory",e.factory)]:[]]:[]});loadingReady=KC(()=>{let e=this.status()?.steps;return !e||e.agentos.state!=="done"?false:e.factory?e.factory.state==="done"||e.factory.state==="error"||this.factoryGraceElapsed():true});javaBlocked=KC(()=>this.status()?.steps.java.state==="blocked");ready=KC(()=>{let e=this.status();return !!e&&e.apply.status==="done"&&!!e.namespaceId});failed=KC(()=>this.status()?.apply.status==="error");emailLocked=KC(()=>!this.preview()&&(this.status()?.apply.status??"idle")!=="idle");namespaceId=KC(()=>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),W$3));}refreshStatus(){return B$2(this,null,function*(){try{let e=yield hy(this.api.getStatus());return this.setStatus(e),e}catch(e){return this.statusError.set(P$1(e,"Cannot read the setup status.")),null}})}startPolling(){this.poller||(this.poller=Mr$1(0,O$1).pipe(ma(()=>this.api.getStatus().pipe(da(()=>Cr$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$2(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==="laptop"&&t.setupEnabled&&!t.setupDone)){this.mode.set("loading"),this.step.set("progress");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(C[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$2(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(P$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 i=t.map(a=>a.id===e?x$1(w$1({},a),{enabled:!a.enabled}):a);if(!r.enabled){let a=i.find(p=>p.id===e);return [...i.filter(p=>p.id!==e),a]}return i});}setApiKey(e,t){this.providers.update(r=>r.map(i=>i.id===e?x$1(w$1({},i),{apiKey:t}):i));}moveProvider(e,t){this.providers.update(r=>{let i=r.filter(n=>n.enabled),a=i.findIndex(n=>n.id===e),p=a+t;if(a<0||p<0||p>=i.length)return r;let c=[...i],[v]=c.splice(a,1);return c.splice(p,0,v),[...c,...r.filter(n=>!n.enabled)]});}moveProviderTo(e,t){e!==t&&this.providers.update(r=>{let i=r.filter(n=>n.enabled),a=i.findIndex(n=>n.id===e),p=i.findIndex(n=>n.id===t);if(a<0||p<0)return r;let c=[...i],[v]=c.splice(a,1);return c.splice(p,0,v),[...c,...r.filter(n=>!n.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$2(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(P$1(e,"Could not start the setup."));}finally{this.busy.set(false);}}})}retry(){return B$2(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();})}applyProviders(){return this.enabledProviders().map((e,t)=>({id:e.id,apiKey:e.apiKey.trim(),rank:t+1}))}loadingTarget(){return B$2(this,null,function*(){let e=this.namespaceId()??(yield this.personalNamespaceId());return {path:"/home",queryParams:e?{ns:e}:{}}})}personalNamespaceId(){return B$2(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(i=>i.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||s)};static \u0275prov=x({token:s,factory:s.\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?XV(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 xn$3?i.nativeElement:i}var qn$2=new w("cdk-dir-doc",{providedIn:"root",factory:()=>g(U$4)}),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(Sn$3).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ue$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);}}):Cr$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(xn$3);scrollDispatcher=g(Pt$2);ngZone=g(G$2);dir=g(mt$3,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new ue$4;_renderer=g(Yu);_cleanupScroll;_elementScrolled=new ue$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 ue$4;_document=g(U$4);constructor(){let t=g(G$2),n=g(Sn$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 xn$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(Mn$4,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||pe$4.NULL,r=o.get(fe$5,n.injector);t=_B(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(Mn$4,{optional:true});_document=g(U$4);_viewContainerRef=g(pr$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(pe$4);_environmentInjector=g(fe$5);load(t){let n=this._appRef=this._appRef||this._injector.get(gr$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(_B(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$4))}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(pe$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$4);_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(Sn$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(Sn$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=mw({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 Jt$2(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var ee$3=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$3.EMPTY=(()=>{let e=new ee$3;return e.closed=true,e})();var ra$1=ee$3.EMPTY;function Lo$1(e){return e instanceof ee$3||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 Fn$3={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function jo$2(e){Fn$3.setTimeout(()=>{throw e});}function ft$4(){}function Pn$3(e){e();}var tn$2=class tn extends ee$3{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 Ln$3=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ye$4(e){return e}function ry(...e){return ca$1(e)}function ca$1(e){return e.length===0?ye$4: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 Pn$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)}[Ln$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 ue$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){Pn$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){Pn$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(){Pn$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$3(()=>{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 ue$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 wr$1=class wr extends ue$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[Ln$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$1(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[Ln$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 C(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 T$4(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 C((n,r)=>{n.subscribe(T$4(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 C((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function id(e,t){return A$1(e).pipe(Jo$1(t),Xo$1(t))}function sd(e,t){return A$1(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$1(e,t){return t?ld(e,t):A$1(e)}function Cr$1(...e){let t=Ze$2(e);return Ye$1(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 C((n,r)=>{let o=0;n.subscribe(T$4(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$1([],t);let i=new R$2(Cy(r,t,o?s=>ri$3(o,s):ye$4));return n?i.pipe(ni$3(n)):i}function Cy(e,t,n=ye$4){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$1(e[c],t),l=false;u.subscribe(T$4(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$1(n[l]).subscribe(T$4(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 da(e){return C((t,n)=>{let r=null,o=!1,i;r=t.subscribe(T$4(n,void 0,void 0,s=>{i=A$1(e(s,da(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var oi$3=class oi extends ee$3{constructor(t,n){super();}schedule(t,n=0){return this}};var Tr$1={setInterval(e,t,...n){let{delegate:r}=Tr$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var ii$3=class ii extends oi$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 Tr$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&&Tr$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 br$1={now(){return (br$1.delegate||Date).now()},delegate:void 0};var jn$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)}};jn$3.now=br$1.now;var si$3=class si extends jn$3{constructor(t,n=jn$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 pt$4=new si$3(ii$3),fd=pt$4;function pd(e,t=pt$4){return C((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(T$4(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 Ot$1(e,t){return C((n,r)=>{let o=0;n.subscribe(T$4(r,i=>e.call(t,i,o++)&&r.next(i)));})}function hd(e){return Ot$1((t,n)=>e<=n)}function ai$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$1(n(y,l++)).subscribe(T$4(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(T$4(t,f,()=>{d=true,p();})),()=>{}}function ht$4(e,t,n=1/0){return M(t)?ht$4((r,o)=>ne$3((i,s)=>t(r,i,o,s))(A$1(e(r,o))),n):(typeof t=="number"&&(n=t),C((r,o)=>ai$3(r,o,e,n)))}function Sr$1(e=1/0){return ht$4(ye$4,e)}function gd(){return Sr$1(1)}function kt$1(...e){return gd()(Ye$1(e,Ze$2(e)))}function md(...e){let t=Ze$2(e);return C((n,r)=>{(t?kt$1(e,n,t):kt$1(e,n)).subscribe(r);})}function fa(e,t){return C((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(T$4(r,c=>{o?.unsubscribe();let u=0,l=i++;A$1(e(c,l)).subscribe(o=T$4(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?C((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(T$4(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);}));}):ye$4}var _r$1=class _r extends ue$4{constructor(t=1/0,n=1/0,r=br$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 by(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new R$2(r)}function Sy(e){return !!e&&(e instanceof R$2||M(e.lift)&&M(e.subscribe))}function ci$3(e){return e instanceof Date&&!isNaN(e)}var _y=Rt$1(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function My(e,t){let{first:n,each:r,with:o=Ny,scheduler:i=pt$4,meta:s=null}=ci$3(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return C((a,c)=>{let u,l,d=null,p=0,f=h=>{l=oe$3(c,i,()=>{try{u.unsubscribe(),A$1(o({meta:s,lastValue:d,seen:p})).subscribe(c);}catch(y){c.error(y);}},h);};u=a.subscribe(T$4(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 Ny(e){throw new _y(e)}function xy(e){return new R$2(t=>{A$1(e()).subscribe(t);})}function Mr$1(e=0,t,n=fd){let r=-1;return t!=null&&(Ho$1(t)?n=t:r=t),new R$2(o=>{let i=ci$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 Ay(...e){let t=Ze$2(e),n=Jl(e,1/0),r=e;return r.length?r.length===1?A$1(r[0]):Sr$1(n)(Ye$1(r,t)):nn$2}function vd(e){return C((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(T$4(n,u=>{r=!0,o=u,i||A$1(e(u)).subscribe(i=T$4(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Ry(e,t=pt$4){return vd(()=>Mr$1(e,t))}function Dd(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(T$4(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function ui$3(e,t){return M(t)?ht$4(e,t,1):ht$4(e,1)}function Ed(e){return C((t,n)=>{let r=!1;t.subscribe(T$4(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function sn$2(e){return e<=0?()=>nn$2:C((t,n)=>{let r=0;t.subscribe(T$4(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function pa(){return C((e,t)=>{e.subscribe(T$4(t,ft$4));})}function ha(e){return ne$3(()=>e)}function ga(e,t){return t?n=>kt$1(t.pipe(sn$2(1),pa()),n.pipe(ga(e))):ht$4((n,r)=>A$1(e(n,r)).pipe(sn$2(1),ha(n)))}function Oy(e,t=pt$4){let n=Mr$1(e,t);return ga(()=>n)}function ky(e,t){return C((n,r)=>{let o=new Set;n.subscribe(T$4(r,i=>{let s=e?e(i):i;o.has(s)||(o.add(s),r.next(i));})),t&&A$1(t).subscribe(T$4(r,()=>o.clear(),ft$4));})}function Id(e,t=ye$4){return e=e??Fy,C((n,r)=>{let o,i=!0;n.subscribe(T$4(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 C((t,n)=>{let r=!1;t.subscribe(T$4(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,Cr$1(...e))}function ma(e,t){return t?n=>n.pipe(ma((r,o)=>A$1(e(r,o)).pipe(ne$3((i,s)=>t(r,i,o,s))))):C((n,r)=>{let o=0,i=null,s=!1;n.subscribe(T$4(r,a=>{i||(i=T$4(r,void 0,()=>{i=null,s&&r.complete();}),A$1(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,C((r,o)=>ai$3(r,o,e,t,void 0,!0,n))}function li$3(e){return C((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function By(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ot$1((o,i)=>e(o,i,r)):ye$4,sn$2(1),n?Ed(t):wd(()=>new on$2))}function Vy(e){return e<=0?()=>nn$2:C((t,n)=>{let r=[];t.subscribe(T$4(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,t){return C(Dd(e,t,arguments.length>=2,!0))}function va(e={}){let{connector:t=()=>new ue$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 C((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$1(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$1(t(...n)).subscribe(r)}function Uy(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 _r$1(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Cd(e){return C((t,n)=>{A$1(e).subscribe(T$4(n,()=>n.complete(),ft$4)),!n.closed&&t.subscribe(n);})}function $y(e,t=false){return C((n,r)=>{let o=0;n.subscribe(T$4(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var le$4=null,di$3=false,an$2=1,q$1=Symbol("SIGNAL");function I(e){let t=le$4;return le$4=e,t}function fi$3(){return le$4}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(le$4===null)return;le$4.consumerOnSignalRead(e);let t=le$4.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=le$4.recomputing;if(r&&(n=t!==void 0?t.nextProducer:le$4.producers,n!==void 0&&n.producer===e)){le$4.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=an$2;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===le$4&&(!r||o.knownValidAtEpoch===an$2))return;let i=Hn$3(le$4),s={producer:e,consumer:le$4,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:an$2,lastReadVersion:e.version,nextConsumer:void 0};le$4.producersTail=s,t!==void 0?t.nextProducer=s:le$4.producers=s,i&&_d(e,s);}function Td(){an$2++;}function ln$1(e){if(!(Hn$3(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===an$2)){if(!e.producerMustRecompute(e)&&!Vn$3(e)){Bn$3(e);return}e.producerRecomputeValue(e),Bn$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||Gy(r);}}finally{di$3=t;}}function Ea$1(){return le$4?.consumerAllowSignalWrites!==false}function Gy(e){e.dirty=true,Da(e),e.consumerMarkedDirty?.(e);}function Bn$3(e){e.dirty=false,e.lastCleanEpoch=an$2;}function mt$4(e){return e&&bd(e),I(e)}function bd(e){if(e.producersTail?.knownValidAtEpoch===an$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(Hn$3(e))do n=Ia(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Vn$3(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(ln$1(n),r!==n.version))return true}return false}function Lt$2(e){if(Hn$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=Hn$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,!Hn$3(t)){let i=t.producers;for(;i!==void 0;)i=Ia(i);}return n}function Hn$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(Wy);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(ln$1(n),gt$3(n),n.value===Qe$2)throw n.error;return n.value};return r[q$1]=n,r}var cn$2=Symbol("UNSET"),un$2=Symbol("COMPUTING"),Qe$2=Symbol("ERRORED"),Wy=x$1(w$1({},Ft$2),{value:cn$2,dirty:true,error:null,equal:xr,kind:"computed",producerMustRecompute(e){return e.value===cn$2||e.value===un$2},producerRecomputeValue(e){if(e.value===un$2)throw new Error("");let t=e.value;e.value=un$2;let n=mt$4(e),r,o=false;try{r=e.computation(),I(null),o=t!==cn$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 qy(){throw new Error}var Md=qy;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,Yy(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 Yy(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&&!Vn$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 Un$3(e){return e===Ad||e?.name==="\u0275NotFound"}function _a(e,t,n){let r=Object.create(Qy);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(ln$1(r),gt$3(r),r.value===Qe$2)throw r.error;return r.value};return i[q$1]=r,i}function Rd(e,t){ln$1(e),jt$2(e,t),Bn$3(e);}function Od(e,t){if(ln$1(e),e.value===Qe$2)throw e.error;pi$3(e,t),Bn$3(e);}var Qy=x$1(w$1({},Ft$2),{value:cn$2,dirty:true,error:null,equal:xr,kind:"linkedSignal",producerMustRecompute(e){return e.value===cn$2||e.value===un$2},producerRecomputeValue(e){if(e.value===un$2)throw new Error("");let t=e.value;e.value=un$2;let n=mt$4(e),r,o=false;try{let i=e.source(),s=t!==cn$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$1=class m extends Error{code;constructor(t,n){super(Xe(t,n)),this.code=t;}};function Ky(e){return `NG0${Math.abs(e)}`}function Xe(e,t){return `${Ky(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 Xy=k$2({__forward_ref__:k$2});function Ci$3(e){return e.__forward_ref__=Ci$3,e}function re$4(e){return Va(e)?e():e}function Va(e){return typeof e=="function"&&e.hasOwnProperty(Xy)&&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 ev(e,Ti$3)}function Jy(e){return Vr(e)!==null}function ev(e,t){return e.hasOwnProperty(t)&&e[t]||null}function tv(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}),w=class{_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}),gn$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$1(-919,false)}function Z$2(e){return typeof e=="string"?e:e==null?"":String(e)}var Ud=k$2({ngErrorCode:k$2}),nv=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$1(-201,false)}function $d(e,t,n){let r=new m$1(t,e);return r[Ud]=t,r[nv]=e,r}function ov(e){return e[Ud]}var xa;function zd(){return xa}function de$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 iv={},dn$3=iv,sv="__NG_DI_FLAG__",Aa=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=fn$2(n)||0;try{return this.injector.get(t,r&8?null:dn$3,r)}catch(o){if(Un$3(o))return o;throw o}}};function av(e,t=0){let n=hi$3();if(n===void 0)throw new m$1(-203,false);if(n===null)return Za(e,void 0,t);{let r=cv(t),o=n.retrieve(e,r);if(Un$3(o)){if(r.optional)return null;throw o}return o}}function b$2(e,t=0){return (zd()||av)(re$4(e),t)}function g(e,t){return b$2(e,fn$2(t))}function fn$2(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function cv(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$4(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m$1(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=uv(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 uv(e){return e[sv]}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=Gn$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=Gn$3(e,t);if(n>=0)return e[n|1]}function Gn$3(e,t){return lv(e,t,1)}function lv(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$3=[],It$2=new w(""),Ur=new w("",-1),Qa=new w(""),zn$3=class zn{get(t,n=dn$3){if(n===dn$3){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$4(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$3},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 dv=k$2({provide:String,useValue:k$2});function Xd(e){return e!==null&&typeof e=="object"&&dv in e}function fv(e){return !!(e&&e.useExisting)}function pv(e){return !!(e&&e.useFactory)}function pn$2(e){return typeof e=="function"}function Jd(e){return !!e.useClass}var $r=new w(""),gi$3={},Pd={},Ma;function Wn$3(){return Ma===void 0&&(Ma=new zn$3),Ma}var fe$5=class fe{},hn$2=class hn extends fe$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,$n$3(void 0,this)),o.has("environment")&&this.records.set(fe$5,$n$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$3,{self:true}));}retrieve(t,n){let r=fn$2(n)||0;try{return this.get(t,dn$3,r)}catch(o){if(Un$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=de$5(void 0);try{return t()}finally{Ke$3(n),de$5(r);}}get(t,n=dn$3,r){if(Or(this),t.hasOwnProperty(Fd))return t[Fd](this);let o=fn$2(r),s=Ke$3(this),a=de$5(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=vv(t)&&Vr(t);l&&this.injectableDefInScope(l)?u=$n$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?Wn$3():this.parent;return n=o&8&&n===dn$3?null:n,c.get(t,n)}catch(c){let u=ov(c);throw u===-200||u===-201?new m$1(u,null):c}finally{de$5(a),Ke$3(s);}}resolveInjectorInitializers(){let t=I(null),n=Ke$3(this),r=de$5(void 0);try{let i=this.get(It$2,ie$3,{self:!0});for(let s of i)s();}finally{Ke$3(n),de$5(r),I(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=re$4(t);let n=pn$2(t)?t:re$4(t&&t.provide),r=gv(t);if(!pn$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=$n$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&&yv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=re$4(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 w)throw new m$1(-204,false);if(e instanceof Function)return hv(e);throw new m$1(-204,false)}function hv(e){if(e.length>0)throw new m$1(-204,false);let n=tv(e);return n!==null?()=>n.factory(e):()=>new e}function gv(e){if(Xd(e))return $n$3(void 0,e.useValue);{let t=Ja(e);return $n$3(t,gi$3)}}function Ja(e,t,n){let r;if(pn$2(e)){let o=re$4(e);return Bt$1(o)||Oa(o)}else if(Xd(e))r=()=>re$4(e.useValue);else if(pv(e))r=()=>e.useFactory(...Ra(e.deps||[]));else if(fv(e))r=(o,i)=>b$2(re$4(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=re$4(e&&(e.useClass||e.provide));if(mv(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$1(-205,false)}function $n$3(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function mv(e){return !!e.deps}function yv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function vv(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 qn$3(e,t){let n;e instanceof hn$2?(Or(e),n=e):n=new Aa(e);let o=Ke$3(n),i=de$5(void 0);try{return t()}finally{Ke$3(o),de$5(i);}}function ef(){return zd()!==void 0||hi$3()!=null}var Be$3=0,E$1=1,S$2=2,te$4=3,Me$3=4,se$2=5,mn$2=6,Zn$3=7,Y$3=8,Je$3=9,Ve$2=10,L$3=11,Yn$3=12,ec=13,Ut$3=14,ae$2=15,$t$3=16,yn$2=17,et=18,tt$1=19,tc=20,vt$3=21,xi$2=22,Vt$1=23,ve$3=24,vn$2=25,nt$1=26,H$1=27,tf=1,nc=6,zt$1=7,zr=8,Dn$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 Qn$3(e){return (e.flags&1)===1}function rt$2(e){return !!e.template}function Kn$3(e){return (e[S$2]&512)!==0}function En$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[yn$2]=0;}function cc(e){e[S$2]&1024||(e[S$2]|=1024,Oi$2(e)&&In$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)&&In$3(e);}function In$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(En$3(e))throw new m$1(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[Zn$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 Xn$3(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 Jn$2(){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 wn$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 Dv(e){let t=e[E$1];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=Dv(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$1];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$2(){return N$2.lFrame.selectedIndex}function Wt$1(e){N$2.lFrame.selectedIndex=e;}function er$1(){let e=N$2.lFrame;return Ai$3(e.tView,e.selectedIndex)}function Tf(){N$2.lFrame.currentNamespace=oc;}function bf(){Ev();}function Ev(){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$3,Qd(e)];return new hn$2(i,t||Wn$3(),null,o)}var pe$4=class e{static THROW_IF_NOT_FOUND=dn$3;static NULL=new zn$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$4=new w(""),Ie$2=(()=>{class e{static __NG_ELEMENT_ID__=Iv;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 En$3(this._lView)}onDestroy(t){let n=this._lView;return Fi$3(n,t),()=>af(n,t)}};function Iv(){return new vi$3(v$1())}var Cc=false,_f=new w(""),qt$1=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new wr$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 ue$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$3&&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",wv=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$1(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,bv(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(bc)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new m$1(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m$1(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,Cv,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)}},Cv={};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 Tv(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 bv(e){let t=()=>{Tv(e);},n=wv++;e._inner=e._inner.fork({name:"angular",properties:{[bc]:true,[Pr]:n,[Pr+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(Sv(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&&!_v(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 Sv(e){return Nf(e,"__ignore_ng_zone__")}function _v(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$3=class Se{_console=console;handleError(t){this._console.error("ERROR",t);}},ot$2=new w("",{factory:()=>{let e=g(G$2),t=g(fe$5),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Se$3),n.handleError(r));});}}}),xf={provide:It$2,useValue:()=>{g(Se$3,{optional:true});},multi:true},Mv=new w("",{factory:()=>{let e=g(U$4).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 Nv(){return wt$3([Yd(()=>{g(Mv);})])}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 w("",{factory:()=>xv}),xv="ng";var $i$1=new w(""),Kr=new w("",{providedIn:"platform",factory:()=>"unknown"}),Av=new w(""),Xr=new w("",{factory:()=>g(U$4).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var tr$1=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Rv}return e})();function Rv(){return new tr$1(v$1(),X$2())}var je$3=class je{},nr$1=new w("",{factory:()=>true});var zi$2=new w(""),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(pe$4),r=t?.manualCleanup!==true?n.get(Ie$2):null,o,i=n.get(tr$1,null,{optional:true}),s=n.get(je$3);return i!==null?(o=Fv(i.view,s,e),r instanceof vi$3&&r._lView===i.view&&(r=null)):o=Pv(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);}}}),Ov=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);}}),kv=x$1(w$1({},Rf),{consumerMarkedDirty(){this.view[S$2]|=8192,In$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 Fv(e,t,n){let r=Object.create(kv);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 Pv(e,t,n){let r=Object.create(Ov);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 qv(){return Dp}function kf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Yv),Zv}function Zv(){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 Yv(e,t,n,r,o){let i=this.declaredInputs[r],s=Ep(e)||Qv(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 Qv(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 Kv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=qv()(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[yn$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[yn$2]+=65536),(a<i||i==-1)&&(Xv(e,n,t,c),e[yn$2]=(e[yn$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 Xv(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[yn$2]>>16&&(e[S$2]&3)===t&&(e[S$2]+=16384,Pf(a,i)):Pf(a,i);}var or$1=-1,Tn$3=class Tn{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 Jv(e){return (e.flags&8)!==0}function eD(e){return (e.flags&16)!==0}function tD(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];nD(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 nD(e){return e.charCodeAt(0)===64}function ir$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!==or$1}function ns(e){return e&32767}function rD(e){return e>>16}function rs(e,t){let n=rD(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 oD=256,bp=oD-1,Sp=5,iD=0,it$3={};function sD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(gn$2)&&(r=n[gn$2]),r==null&&(r=n[gn$2]=iD++);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$1];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$1].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 or$1;if(n++,o=o[Ut$3],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return or$1}function Vc(e,t,n){sD(e,t,n);}function aD(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=de$5(void 0);try{return o?o.get(t,r,n&8):Za(t,r,n&8)}finally{de$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=dD(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=uD(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=or$1,u=r&1?t[ae$2][se$2]:null;for((a===-1||r&4)&&(c=a===-1?Eu(e,t):t[a+8],c===or$1||!Bf(r,false)?a=-1:(s=t[E$1],a=ns(c),t=rs(c,t)));a!==-1;){let l=t[E$1];if(jf(i,a,l.data)){let d=cD(a,t,n,s,r,u);if(d!==it$3)return d}c=t[a+8],c!==or$1&&Bf(r,t[E$1].data[a+8]===u)&&jf(i,a,t)?(s=l,a=ns(c),t=rs(c,t)):a=-1;}}return o}function cD(e,t,n,r,o,i){let s=t[E$1],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 Tn$3){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?de$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&&Kv(n,s[n],t);}finally{d!==null&&de$5(d),os(c),a.resolving=false,Ec();}}return i}function uD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(gn$2)?e[gn$2]:void 0;return typeof t=="number"?t>=0?t&bp:lD: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,fn$2(r),n)}};function lD(){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$4(e));return t&&t()}:Bt$1(e)}function dD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S$2]&2048&&!Kn$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$1],n=t.type;return n===2?t.declTNode:n===1?e[se$2]:null}function Iu(e){return aD(X$2(),e)}function Ce$5(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function fD(){return dr$1(X$2(),v$1())}function dr$1(e,t){return new xn$3(Ae$2(e,t))}var xn$3=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=fD}return e})();function kp(e){return e instanceof xn$3?e.nativeElement:e}function pD(){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 ue$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]=pD};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,hD=0;function gD(){return hD++}function mD(e){Pp.set(e[tt$1],e);}function Uc(e){Pp.delete(e[tt$1]);}var Vf="__ngContext__";function sr$1(e,t){Ct$2(t)?(e[Vf]=t[tt$1],mD(t)):e[Vf]=t;}function Lp(e){return Bp(e[Yn$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$1(210,false)}var Vp="r";var Hp="di";var yD=new w(""),Up=false,$p=new w("",{factory:()=>Up});var zp=new w("");var Hf=new WeakMap;function vD(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 ID=()=>null;function Gp(e,t,n=false){return ID()}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 wD(){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 wD()?.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 CD(e){let t=new Kc(e);return TD()?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 TD(){try{return !!new window.DOMParser().parseFromString(ws$1(""),"text/html")}catch(e){return false}}var bD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ho$1(e){return e=String(e),e.match(bD)?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"),SD=go$1(Kp,Qp),_D=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")),MD=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,_D,MD,SD),Xp=St$2("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ND=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"),xD=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"),AD=go$1(Xp,ND,xD),RD=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=FD(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=kD(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,!RD.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(!AD.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 OD(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function kD(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Jp(t);return t}function FD(e){let t=e.firstChild;if(t&&OD(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 PD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LD=/([^\#-~ |!])/g;function Wf(e){return e.replace(/&/g,"&amp;").replace(PD,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(LD,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Yi$1;function Cs$1(e,t){let n=null;try{Yi$1=Yi$1||CD(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&&jD(e)?e.content:null}function jD(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var BD=/^>|^->|<!--|-->|--!>|<!-$/g,VD=/(<|>)/g,HD="\u200B$1\u200B";function UD(e){return e.replace(BD,t=>t.replace(VD,HD))}function $D(e,t){return e.createText(t)}function zD(e,t,n){e.setValue(t,n);}function GD(e,t){return e.createComment(UD(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 WD(e,t,n){e.setAttribute(t,"style",n);}function qD(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&&tD(e,t,r),o!==null&&qD(e,t,o),i!==null&&WD(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 ZD(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$2(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$2(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$1(904,false)}var YD={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function QD(e,t){return YD[e.toLowerCase()]?.[t.toLowerCase()]===true?ih:oh}function KD(e,t,n){return QD(t,n)(e)}function Au(){let e=v$1();return e&&e[Ve$2].sanitizer}function XD(e){return e instanceof Function?e():e}function JD(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 eE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&JD(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 tE(e,t,n){let r=e.type===4&&!n?sh:e.value;return t===r}function nE(e,t,n){let r=4,o=e.attrs,i=o!==null?iE(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!==""&&!tE(e,c,n)||c===""&&t.length===1){if(He$2(r))return false;s=true;}}else if(r&8){if(o===null||!eE(e,o,c,n)){if(He$2(r))return false;s=true;}}else {let u=t[++a],l=rE(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 rE(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 sE(t,e)}function ah(e,t,n=false){for(let r=0;r<t.length;r++)if(nE(e,t[r],n))return true;return false}function oE(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function iE(e){for(let t=0;t<e.length;t++){let n=e[t];if(Cp(n))return t}return e.length}function sE(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 aE(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 cE(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 uE(e){return e.map(cE).join(",")}function lE(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$2={},st$1=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(st$1||{}),dE;function Ou(e,t){return dE(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 fE(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 pE(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 w(""),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$3,{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[vn$2]??=[]).push(n),In$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?.[vn$2];t&&(this.view[vn$2]=t.filter(n=>n!==this));}};function hE(e,t){let n=t?.injector??g(pe$4);return ut$2("NgAfterNextRender"),mE(e,n,t,true)}function gE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function mE(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(tr$1,null,{optional:true}),c=new so$1(o.impl,gE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Pu=new w("",{factory:()=>{let e=g(fe$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 yE(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 vE(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 DE(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)&&DE(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)&&yE(n,o.enter.get(t.index).animateFns);let i=EE(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,()=>IE(e,t,o||void 0,i,r),o||void 0);}function EE(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$1].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function IE(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),CE(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$1].type===2&&wE(s,n);}}let r=t.child;for(;r;)Ss$1(e,r,n),r=r.next;}function wE(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$1].firstChild;for(;r;)Ss$1(e,r,t),r=r.next;}function CE(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 rr$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),fE(i,l,a)):e===2?(a?.[nt$1]?.leave?.has(i.index)&&pE(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&&OE(t,e,n,c,i,r,s);}}function TE(e,t){lh(e,t),t[Be$3]=null,t[se$2]=null;}function bE(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 SE(e){let t=e[Yn$3];if(!t)return Nc(e[E$1],e);for(;t;){let n=null;if(Ct$2(t))n=t[Yn$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$1],t),t=t[te$4];t===null&&(t=e),Ct$2(t)&&Nc(t[E$1],t),n=t&&t[Me$3];}t=n;}}function Lu(e,t){let n=e[Dn$3],r=n.indexOf(t);n.splice(r,1);}function _s$1(e,t){if(En$3(t))return;let n=t[L$3];n.destroyNode&&Ms$1(e,t,n,3,null,null),SE(t);}function Nc(e,t){if(En$3(t))return;let n=I(null);try{t[S$2]&=-129,t[S$2]|=256,t[ve$3]&&Lt$2(t[ve$3]),ME(e,t),_E(e,t),t[E$1].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 _E(e,t){let n=e.cleanup,r=t[Zn$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[Zn$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 ME(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 Tn$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 dh(e,t,n){return NE(e,t.parent,n)}function NE(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 AE(e,t,n)}function xE(e,t,n){return e.type&40?Ae$2(e,n):null}var AE=xE;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$2]);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$2][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$1].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&&sr$1(xe$3(c),r),n.flags|=2),!Is$1(n))if(u&8)Bu(e,t,n.child,r,o,i,false),rr$1(t,e,a,o,c,n,i,r);else if(u&32){let l=Ou(n,r),d;for(;d=l();)rr$1(t,e,a,o,d,n,i,r);rr$1(t,e,a,o,c,n,i,r);}else u&16?hh(e,t,r,n,o,i):rr$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 RE(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$2],c=s[se$2].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];rr$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 OE(e,t,n,r,o,i,s){let a=r[zt$1],c=xe$3(r);a!==c&&rr$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$1],l,e,t,i,a);}}function kE(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=FE(d,p),h=typeof u=="function"?u():u;return f[E$1]={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 FE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Q$2);return n}function PE(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]=gD(),d[mn$2]=l,d[tc]=u,d[ae$2]=t.type==2?e[ae$2]:d,d}function LE(e,t,n){let r=Ae$2(t,e),o=PE(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[Yn$3]?e[ec][Me$3]=t:e[Yn$3]=t,e[ec]=t,t}function jE(e=1){yh(j$4(),v$1(),Ee$2()+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 bn$2(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$2(),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){zE(e,t,n),(n.flags&64)===64&&GE(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 BE(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 UE(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$1];if(Wu(e,s,t,n,r)){Tt$3(e)&&$E(t,e.index);return}e.type&3&&(n=UE(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 $E(e,t){let n=Re$3(t,e);n[S$2]&16||(n[S$2]|=64);}function zE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Tt$3(n)&&LE(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(sr$1(c,t),i!==null&&YE(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 GE(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)&&WE(c,u);}}finally{Wt$1(-1),Li$2(s);}}function WE(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 qE(e,t,n,r,o,i){let s=Ae$2(e,t);ZE(t[L$3],s,i,e.value,n,r,o);}function ZE(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$2(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function YE(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];bn$2(r,n,c,u);}}function zu(e,t,n,r,o){let i=H$1+n,s=t[E$1],a=o(s,t,e,r,n);t[i]=a,Xn$3(e,true);let c=e.type===2;return c?(rh(t[L$3],a,e),(uf()===0||Qn$3(e))&&sr$1(a,t),lf()):sr$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,Xn$3(t,false)),t}function QE(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];bn$2(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];bn$2(l,u,r,o),a=true;}return a}function KE(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];bn$2(h,n[f],y,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(bn$2(r,n[s],o,i),u=true),u}function XE(e,t){let n=Re$3(t,e),r=n[E$1];JE(r,n);let o=n[Be$3];o!==null&&n[mn$2]===null&&(n[mn$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 JE(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&&eI(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[S$2]&=-5,Vi$2();}}function eI(e,t){for(let n=0;n<t.length;n++)XE(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 ar$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$2]);ao$1(c[E$1],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$1].firstChild;o!==null&&ao$1(r[E$1],r,o,t);}e[zt$1]!==e[Be$3]&&t.push(e[zt$1]);}function wh(e){if(e[vn$2]!==null){for(let t of e[vn$2])t.impl.addSequence(t);e[vn$2].length=0;}}var Ch=[];function tI(e){return e[ve$3]??nI(e)}function nI(e){let t=Ch.pop()??Object.create(oI);return t.lView=e,t}function rI(e){e.lView[ve$3]!==e&&(e.lView=null,Ch.push(e));}var oI=x$1(w$1({},Ft$2),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{In$3(e.lView);},consumerOnSignalRead(){this.lView[ve$3]=this;}});function iI(e){let t=e[ve$3]??Object.create(sI);return t.lView=e,t}var sI=x$1(w$1({},Ft$2),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Dt$2(e.lView);for(;t&&!Th(t[E$1]);)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 aI=100;function Sh(e,t=0){let r=e[Ve$2].rendererFactory;r.begin?.();try{cI(e,t);}finally{r.end?.();}}function cI(e,t){let n=vc();try{Fr(!0),tu(e,t);let r=0;for(;Gr(e);){if(r===aI)throw new m$1(103,!1);r++,tu(e,1);}}finally{Fr(n);}}function uI(e,t,n,r){if(En$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=tI(t),c=mt$4(u)):fi$3()===null?(a=false,u=iI(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||lI(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);}fI(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 In$3(t),l}finally{u!==null&&(Pt$3(u,c),a&&rI(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 lI(e){for(let t=Lp(e);t!==null;t=jp(t)){if(!(t[S$2]&2))continue;let n=t[Dn$3];for(let r=0;r<n.length;r++){let o=n[r];cc(o);}}}function dI(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$1],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&&Vn$3(i)),s||=false,i&&(i.dirty=false),e[S$2]&=-9217,s)uI(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++)dI(e,t[r],n);}function fI(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(Kn$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$1];if(pI(o,t,e,n),r){let s=eu(n,e),a=t[L$3],c=a.parentNode(e[zt$1]);c!==null&&bE(o,e[se$2],a,t,c,s);}let i=t[mn$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$1],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);TE(r[E$1],r);let s=i[et];s!==null&&s.detachView(i[E$1]),r[te$4]=null,r[Me$3]=null,r[S$2]&=-129;}return r}function pI(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[Dn$3],r=t[te$4];if(Ct$2(r))e[S$2]|=2;else {let o=r[te$4][ae$2];t[ae$2]!==o&&(e[S$2]|=2);}n===null?e[Dn$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$1];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 En$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$1],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$1(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Kn$3(this._lView),n=this._lView[$t$3];n!==null&&!t&&Lu(n,this._lView),lh(this._lView[E$1],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new m$1(902,false);this._appRef=t;let n=Kn$3(this._lView),r=this._lView[$t$3];r!==null&&!n&&Oh(r,this._lView),ki$3(this._lView);}};var cr$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=hI;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 hI(){return As$1(X$2(),v$1())}function As$1(e,t){return e.type&4?new cr$1(t,e,dr$1(e,t)):null}function fr$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=gI(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 Xn$3(i,true),i}function gI(e,t,n,r,o){let i=gc(),s=mc(),a=s?i:i&&i.parent,c=e.data[t]=yI(e,a,n,t,r,o);return mI(e,c,i,s),c}function mI(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 yI(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 vI(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):DI(i,r);e[nc]=o;}function DI(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 EI=()=>null,II=()=>null;function cs(e,t){return EI()}function kh(e,t,n){return II()}var Fh=class{},Sn$3=class Sn{},Yu=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>wI()}return e})();function wI(){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 CI(e,t){return e[t]}function we$2(e,t,n){if(n===Q$2)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 Cn$3(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&vD(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 QE(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=Qn$3(e),u=false,l=null;if(!r&&c&&(l=bI(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(!TI(i)){let h=r?y=>r(xe$3(y[e.index])):e.index;jh(h,t,n,i,a,f,false);}}return u}function TI(e){return e.startsWith("animation")||e.startsWith("transition")}function bI(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[Zn$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$1],u=a.data[n].outputs[r],d=s[u].subscribe(i);jh(e.index,a,t,o,i,d,true);}function SI(){_I();}function _I(){let e=v$1(),t=j$4(),n=X$2();if(t.firstCreatePass&&xI(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 MI(){NI();}function NI(){let e=v$1(),t=j$4(),n=er$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,Cn$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,Cn$3(this.tNode,this.lView,t));}listenToDom(t,n){Xu(this.tNode,this.tView,this.lView,void 0,this.lView[L$3],t,n,Cn$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];bn$2(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];bn$2(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";KE(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 xI(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}AI(e,t);}function AI(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 RI(e,t)&&OI(e,t+"Change")}function RI(e,t){return t in e.inputs}function OI(e,t){return t in e.outputs}var nu=Symbol("BINDING");var An$3=new w("");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$4(e),t)}function kI(){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}LI(e,t,n,a,i,c,u);}i!==null&&r!==null&&FI(n,r,i);}function FI(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$1(-301,false);r.push(t[o],i);}}function PI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function LI(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,PI(e,n,p)),Vc(is(n,t),e,f.type);}$I(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=ir$1(n.mergedAttrs,f.hostAttrs),BI(e,n,t,d,f),UI(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++;}jI(e,n,i);}function jI(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 BI(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Bt$1(o.type)),s=new Tn$3(i,rt$2(o),ze$2,null);e.blueprint[r]=s,n[r]=s,VI(e,t,r,mh(e,n,o.hostVars,Q$2),o);}function VI(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;HI(s)!=a&&s.push(a),s.push(n,r,i);}}function HI(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function UI(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 $I(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$1],u=c.consts,l=De$3(u,s),d=fr$1(c,e,n,r,l);return Bh(c,t,d,De$3(u,a),o),d.mergedAttrs=ir$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 zI(e,t,n,r,o,i){let s=t.consts,a=De$3(s,o),c=fr$1(t,e,n,r,a);if(c.mergedAttrs=ir$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",GI=typeof Document<"u";function WI(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 qI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function ZI(e,t,n){let r=t instanceof fe$5?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new us(n,r):n}function YI(e){let t=e.get(Sn$3,null);if(t===null)throw new m$1(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 QI(e,t){let n=Uh(e);return eh(t,n,n==="svg"?oc:n==="math"?nf:null)}function KI(e){if(e?.toLowerCase()==="script")throw new m$1(905,false)}function Uh(e){return (e.selectors[0][0]||"div").toLowerCase()}var _n$3=class _n{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=WI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=qI(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=uE(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=ZI(c,o||this.ngModule,t),l=YI(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=XI(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?BE(u,o,a.encapsulation,n):QI(a,u);KI(l?.tagName);let d=n.get(An$3,null),p=JI(l,()=>n.get(U$4,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),sr$1(l,h),xs$1(c,h,D),bu(c,D,h),el(c,D),r!==void 0&&tw(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 XI(e,t,n,r){let o=e?["ng-version","22.0.8"]:lE(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,ew(i,s),1,a,c,null,null,null,[o],null)}function JI(e,t){let n=e.getRootNode?.();return GI&&n instanceof Document?n.head:n&&Hh&&n instanceof ShadowRoot?n:t().head}function ew(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$1],H$1),this.location=dr$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$1],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 tw(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 pr$1=(()=>{class e{static __NG_ELEMENT_ID__=nw}return e})();function nw(){let e=X$2();return $h(e,v$1())}var ru=class e extends pr$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return dr$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$1].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,ar$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 _n$3(Et$2(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let _=this.parentInjector.get(fe$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,ar$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$1],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)),ow(n,t,e,r),new ru(n,e,t)}function rw(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 ow=aw;function aw(e,t,n,r){if(e[zt$1])return;let o;n.type&8?o=xe$3(r):o=rw(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=fw(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,cw(n,i)),this.matchTNodeWithReadOption(t,n,Ji$1(n,t,i,false,false));}else r===cr$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===xn$3||o===pr$1||o===cr$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 cw(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 uw(e,t){return e.type&11?dr$1(e,t):e.type&4?As$1(e,t):null}function lw(e,t,n,r){return n===-1?uw(t,e):n===-2?dw(e,t,r):io$1(e,e[E$1],n,t)}function dw(e,t,n){if(n===xn$3)return dr$1(t,e);if(n===cr$1)return As$1(t,e);if(n===pr$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(lw(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$1],p,u,r);}if(l[Dn$3]!==null){let d=l[Dn$3];for(let p=0;p<d.length;p++){let f=d[p];cu(f[E$1],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),pw(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Gh(o,v$1(),n)}function fw(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 pw(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$1],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=hw(r,e);if(t&&i===void 0)throw new m$1(-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 hw(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$3;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 Mn$4=class Mn{},Xh=class{};var gs=class extends Mn$4{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=XD(i.bootstrap),this._r3Injector=wc(t,n,[{provide:Mn$4,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 Mn$4{injector;instance=null;constructor(t){super();let n=new hn$2([...t.providers,{provide:Mn$4,useValue:this}],t.parent||Wn$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 gw=(()=>{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(fe$5))})}return e})();function mw(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(gw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||$e$4.Emulated,styles:e.styles||ie$3,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&ut$2("NgStandalone"),tg(n);let r=e.dependencies;return n.directiveDefs=up(r,yw),n.pipeDefs=up(r,Hd),n.id=Ew(n),n})}function yw(e){return Et$2(e)||Wa(e)}function Os$2(e){return po$1(()=>({type:e.type,bootstrap:e.bootstrap||ie$3,declarations:e.declarations||ie$3,imports:e.imports||ie$3,exports:e.exports||ie$3,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function vw(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 Dw(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 hr$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$3,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:vw(e.inputs,t),outputs:Dw(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 Ew(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 w("");function Iw(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(pe$4);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=qn$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 ww(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function Cw(e){return Object.getPrototypeOf(e.prototype).constructor}function ng(e){let t=Cw(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$1(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&&Mw(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Sw(e,c),u&&_w(e,u),Tw(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);}bw(r);}function Tw(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 bw(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=ir$1(o.hostAttrs,n=ir$1(n,o.hostAttrs));}}function Ac(e){return e===Ht$1?{}:e===ie$3?[]:e}function Sw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function _w(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function Mw(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=ir$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),Xn$3(e,false);let c=xw(n,t);Hi$1()&&ju(n,t,c,e),sr$1(c,t);let u=xh(c,t,c,e);t[r+H$1]=u,Uu(t,u);}function Nw(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$1,p;return t.firstCreatePass?(p=fr$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),Qn$3(p)&&xs$1(t,e,p),u!=null&&mo$1(e,p,l),p}function ur$1(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$1,p;if(t.firstCreatePass){if(p=fr$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 Nw(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 ur$1(c,u,e,t,n,r,o,l,void 0,s,a),ig}var xw=Aw;function Aw(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 w("");var dl=new w("");function ag(){wa(()=>{let e="";throw new m$1(600,e)});}var Rw=10;var gr$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g(ot$2);afterRenderManager=g(bs$1);zonelessEnabled=g(nr$1);rootEffectScheduler=g(Gi$1);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ue$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(fe$5);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=pe$4.NULL){return this._injector.get(G$2).run(()=>{if(F$4(O$2.BootstrapComponentStart),!this._injector.get(ul).done){let _="";throw new m$1(405,_)}let a=Et$2(n),c=this._injector.get(Mn$4),u=new _n$3(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=Ow(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$1(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(Sn$3,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<Rw;){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$1(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 Ow(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=er$1();qE(a,o,e,t,n,r);}return cg}function kw(){return v$1()[ae$2][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 Fw(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 Pw(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 ur$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 ur$1(c,u,e,t,n,r,o,l,512,s,a),fl}function Lw(e,t){ut$2("NgControlFlow");let n=v$1(),r=Gt$1(),o=n[r]!==Q$2?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$1],c),d=kh(u,l,n),p=yo$1(n,l,t,{dehydratedView:d});vo$1(u,p,s,ar$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 jw(e){return e}function Bw(e,t){return t}var fu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function Vw(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$2][Y$3]):s,$=new fu(y,_);D[H$1+e]=$,ur$1(f,h,e+1,t,n,r,o,De$3(h.consts,i),256),y&&ur$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[mn$2];this.needsIndexUpdate||=t!==this.length,vo$1(this.lContainer,n,t,ar$1(this.templateTNode,r)),Uw(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,$w(this.lContainer,t),zw(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$1],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 Gw(this.lContainer,t)}};function Hw(e){let t=I(null),n=Ee$2();try{let r=v$1(),o=r[E$1],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(Fw(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,ar$1(f,h));}else o.firstUpdatePass&&vI(p),Rh(p,0);}}}finally{I(t);}}function vs$1(e,t){return e[t]}function Uw(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];vE(i,o),Yt$2.delete(r[tt$1]),o.detachedLeaveAnimationFns=void 0;}}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;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function zw(e,t){return co$1(e,t)}function Gw(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=er$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$1],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),Qn$3(r)){let i=n[E$1];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&&Jv(n)&&gu(e,n,v$1(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&eD(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$1],s=e+H$1,a=i.firstCreatePass?zI(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$1],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",Ww),Qn$3(s)){let a=r[E$1];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 Ww=(e,t,n,r,o)=>(Zr(true),GD(t[L$3],""));function qw(){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=er$1();Eh(s,r,e,t,r[L$3],n);}return hg}var to$1=void 0;function Zw(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Yw=["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",Zw],Oc=Object.create(null);function he$4(e){let t=Qw(e),n=pp(t);if(n)return n;let r=t.split("-")[0];if(n=pp(r),n)return n;if(r==="en")return Yw;throw new m$1(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 Qw(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,Cn$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??=Cn$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??=Cn$3(r,t,i),ls(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=Cn$3(r,t,i),ls(r,t,d,o,o,c);}}function Xw(e=1){return Cf(e)}function Jw(e,t){let n=null,r=oE(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):aE(r,i))return o}return n}function eC(e){let t=v$1()[ae$2][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?Jw(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function tC(e,t=0,n,r,o,i){let s=v$1(),a=j$4(),c=null;let u=fr$1(a,H$1+e,16,null,null);u.projection===null&&(u.projection=t),yc();let d=!s[mn$2]||fc();s[ae$2][se$2].projection[u.projection]===null&&c!==null?nC(s,a,c):d&&!Is$1(u)&&RE(a,s,u);}function nC(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,ar$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 rC(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 oC(){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 iC(e=1){qr(ji$1()+e);}function sC(e){let t=hf();return Ri$3(t,H$1+e)}function Qi$1(e,t){return e<<17|t<<2}function Nn$3(e){return e>>17&32767}function aC(e){return (e&2)==2}function cC(e,t){return e&131071|t<<17}function mu(e){return e|2}function lr$1(e){return (e&131068)>>2}function kc(e,t){return e&-131069|t<<2}function uC(e){return (e&1)===1}function yu(e){return e|1}function lC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Nn$3(s),c=lr$1(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Gn$3(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=Nn$3(e[a+1]);e[r+1]=Qi$1(p,a),p!==0&&(e[p+1]=kc(e[p+1],r)),e[a+1]=cC(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),dC(t,l,e,r,i),s=Qi$1(a,c),i?t.classBindings=s:t.styleBindings=s;}function dC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Gn$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?Nn$3(o):lr$1(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];fC(c,t)&&(a=true,e[s+1]=r?yu(u):mu(u)),s=r?Nn$3(u):lr$1(u);}a&&(e[n+1]=r?mu(o):yu(o));}function fC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Gn$3(e,t)>=0:false}var Ue$2={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pC(e){return e.substring(Ue$2.key,Ue$2.keyEnd)}function hC(e){return gC(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=mC(e,Ue$2.key=t,n),Tg(e,t,n))}function gC(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 mC(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 yC(e){DC(bC,vC,e,true);}function vC(e,t){for(let n=hC(t);n>=0;n=Cg(t,n))Mi$3(e,pC(t),true);}function _g(e,t,n,r){let o=v$1(),i=j$4(),s=wn$3(2);if(i.firstUpdatePass&&Ng(i,e,s,r),t!==Q$2&&we$2(o,s,t)){let a=i.data[Ee$2()];xg(i,a,o,o[L$3],e,o[s+1]=_C(t,n),r,s);}}function DC(e,t,n,r){let o=j$4(),i=wn$3(2);o.firstUpdatePass&&Ng(o,null,i,r);let s=v$1();if(n!==Q$2&&we$2(s,i,n)){let a=o.data[Ee$2()];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 SC(o,a,s,s[L$3],s[i+1],s[i+1]=TC(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$2()],s=Mg(e,n);Ag(i,r)&&t===null&&!s&&(t=false),t=EC(o,i,t,r),lC(o,i,t,n,s,r);}}function EC(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=IC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Fc(null,e,t,c[1],r),c=fo$1(c,t.attrs,r),wC(e,t,r,c));}else i=CC(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function IC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(lr$1(r)!==0)return e[Nn$3(r)]}function wC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Nn$3(o)]=r;}function CC(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 TC(e,t,n){if(n==null||n==="")return ie$3;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 bC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Mi$3(e,r,n);}function SC(e,t,n,r,o,i,s,a){o===Q$2&&(o=ie$3);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=uC(u)?gp(c,t,n,o,lr$1(u),s):void 0;if(!Es$1(l)){Es$1(i)||aC(u)&&(i=gp(c,null,n,o,a,s));let d=ic(Ee$2(),n);kE(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$2&&(p=d?ie$3: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?Nn$3(h):lr$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 _C(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 MC(e,t=""){let n=v$1(),r=j$4(),o=e+H$1,i=r.firstCreatePass?fr$1(r,o,1,t,null):r.data[o],s=NC(r,n,i,t);n[o]=s,Hi$1()&&ju(r,n,s,i),Xn$3(i,false);}var NC=(e,t,n,r)=>(Zr(true),$D(t[L$3],r));function Rg(e,t,n,r=""){return we$2(e,Gt$1(),n)?t+Z$2(n)+r:Q$2}function xC(e,t,n,r,o,i=""){let s=Wr(),a=uo$1(e,s,n,o);return wn$3(2),a?t+Z$2(n)+r+Z$2(o)+i:Q$2}function AC(e,t,n,r,o,i,s,a,c,u=""){let l=Wr(),d=Ku(e,l,n,o,s,c);return wn$3(4),d?t+Z$2(n)+r+Z$2(o)+i+Z$2(s)+a+Z$2(c)+u:Q$2}function RC(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,wn$3(5),f?t+Z$2(n)+r+Z$2(o)+i+Z$2(s)+a+Z$2(c)+u+Z$2(l)+d:Q$2}function OC(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,wn$3(6),y?t+Z$2(n)+r+Z$2(o)+i+Z$2(s)+a+Z$2(c)+u+Z$2(l)+d+Z$2(p)+f:Q$2}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$2&&Eo$1(r,Ee$2(),o),vl}function kg(e,t,n,r,o){let i=v$1(),s=xC(i,e,t,n,r,o);return s!==Q$2&&Eo$1(i,Ee$2(),s),kg}function Fg(e,t,n,r,o,i,s,a,c){let u=v$1(),l=AC(u,e,t,n,r,o,i,s,a,c);return l!==Q$2&&Eo$1(u,Ee$2(),l),Fg}function Pg(e,t,n,r,o,i,s,a,c,u,l){let d=v$1(),p=RC(d,e,t,n,r,o,i,s,a,c,u,l);return p!==Q$2&&Eo$1(d,Ee$2(),p),Pg}function Lg(e,t,n,r,o,i,s,a,c,u,l,d,p){let f=v$1(),h=OC(f,e,t,n,r,o,i,s,a,c,u,l,d,p);return h!==Q$2&&Eo$1(f,Ee$2(),h),Lg}function Eo$1(e,t,n){let r=ic(t,e);zD(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=er$1();Dh(s,r,e,t,r[L$3],n);}return jg}function kC(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 FC(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$4(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=pn$2(e)?e:re$4(e.provide),u=Ja(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(pn$2(e)||!e.multi){let f=new Tn$3(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 _=jC(PC,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=pn$2(t),i=Jd(t);if(o||i){let c=(i?re$4(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 PC(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 jC(e,t,n,r,o,i){let s=new Tn$3(e,n,ze$2,null);return s.multi=[],s.index=t,s.componentProviders=0,Hg(s,o,r&&!n),s}function BC(e,t){return n=>{n.providersResolver=(r,o)=>mp(r,o?o(e):e,false);}}function VC(e,t){let n=Jn$2()+e,r=v$1();return r[n]===Q$2?Qu(r,n,t()):CI(r,n)}function HC(e,t,n){return $g(v$1(),Jn$2(),e,t,n)}function UC(e,t,n,r){return zg(v$1(),Jn$2(),e,t,n,r)}function Ug(e,t){let n=e[t];return n===Q$2?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 $C(e,t){let n=j$4(),r,o=e+H$1;n.firstCreatePass?(r=zC(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=de$5(ze$2);try{let c=os(!1),u=i();return os(c),sc(n,v$1(),o,u),u}finally{de$5(a);}}function zC(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function GC(e,t,n){let r=e+H$1,o=v$1(),i=Ri$3(o,r);return Gg(o,r)?$g(o,Jn$2(),t,i.transform,n,i):i.transform(n)}function WC(e,t,n,r){let o=e+H$1,i=v$1(),s=Ri$3(i,o);return Gg(i,o)?zg(i,Jn$2(),t,s.transform,n,r,s):s.transform(n,r)}function Gg(e,t){return e[E$1].data[t].pure}function qC(e,t){return As$1(e,t)}var Wg=(()=>{class e{applicationErrorHandler=g(ot$2);appRef=g(gr$1);taskService=g(qt$1);ngZone=g(G$2);zonelessEnabled=g(nr$1);tracing=g(ct$1,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new ee$3;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:nr$1,useValue:true}]}var ZC=(()=>{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 YC(){return typeof $localize<"u"&&$localize.locale||Do$1}var mr$1=new w("",{factory:()=>g(mr$1,{optional:true,skipSelf:true})||YC()});var Io$1=class Io{destroyed=false;listeners=null;errorHandler=g(Se$3,{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$1(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&&QC(this.listeners)),I(n),this.isEmitting=false;}}};function QC(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function KC(e,t){return Ar$1(e,t?.equal)}function wo$1(e){return kd(e)}var XC=e=>e;function JC(e,t){if(typeof e=="function"){let n=_a(e,XC,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$1(-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 yB(e){return fT(e)?e.default:e}function fT(e){return e&&typeof e=="object"&&"default"in e}function vB(e){return new Io$1}function Qg(e,t){return om(e,t)}function pT(e){return om(Fs$1,e)}var DB=(Qg.required=pT,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$1(952,false)}function Xg(e,t){return im(e)}function hT(e){return im(Fs$1)}var EB=(Xg.required=hT,Xg);function Jg(e,t){return ol()}function gT(e,t){return il()}var IB=(Jg.required=gT,Jg);function wB(e,t){return Qh()}function em(e,t){return ol()}function mT(e,t){return il()}var CB=(em.required=mT,em);var sm=(()=>{class e{static __NG_ELEMENT_ID__=vT}return e})();function vT(e){return DT(X$2(),v$1(),(e&16)===16)}function DT(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$2];return new Qt$2(r,t)}return null}var ET=(()=>{class e{zone=g(G$2);changeDetectionScheduler=g(je$3);applicationRef=g(gr$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})(),IT=new w("",{factory:()=>false});function wT({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new G$2(x$1(w$1({},am()),{scheduleInRootZone:t})),[{provide:nr$1,useValue:false},{provide:G$2,useFactory:e},{provide:It$2,multi:true,useFactory:()=>{let n=g(ET,{optional:true});return ()=>n.initialize()}},{provide:It$2,multi:true,useFactory:()=>{let n=g(CT);return ()=>{n.initialize();}}},{provide:zi$2,useValue:t??Cc}]}function bB(e){let t=e?.scheduleInRootZone,n=wT({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:IT,useValue:true},n])}function am(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var CT=(()=>{class e{subscription=new ee$3;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 w(""),TT=new w("");function Co$1(e){return !e.moduleRef}function bT(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 _T(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(mr$1,Do$1);if(gg(c||Do$1),!t.get(TT,!0))return Co$1(e)?t.get(gr$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Co$1(e)){let l=t.get(gr$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return ST?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var ST;function _T(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 MT(e=[],t){return pe$4.create({name:t,providers:[{provide:$r,useValue:"platform"},{provide:El,useValue:new Set([()=>ks$1=null])},...e]})}function NT(e=[]){if(ks$1)return ks$1;let t=MT(e);return ks$1=t,ag(),xT(t),t}function xT(e){let t=e.get($i$1,null);qn$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??NT(r),s=[qg(),xf,...n||[]],a=new lo$1({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return bT({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{F$4(O$2.BootstrapApplicationEnd);}}function AT(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function RT(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Dl=Symbol("NOT_SET"),um=new Set,OT=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&&!Vn$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(OT);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 SB(e,t){let n=g(pe$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(tr$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 _B(e,t){let n=Et$2(e),r=t.elementInjector||Wn$3();return new _n$3(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function MB(e){let t=Et$2(e);if(!t)return null;let n=new _n$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 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})(),kT=new w(""),dm=(()=>{class e extends Kt$2{_location;_history;_doc=g(U$4);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 yr$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 w(""),hm=(()=>{class e extends yr$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(U$4).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 ue$4;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=LT(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(PT(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(yr$1))};static \u0275prov=x({token:e,factory:()=>FT(),providedIn:"root"})}return e})();function FT(){return new gm(b$2(yr$1))}function PT(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 LT(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var jT=(()=>{class e extends yr$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$1=(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$1||{}),ge$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})(ge$4||{}),me$4={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function vm(e){return he$4(e)[K$4.LocaleId]}function Dm(e,t,n){let r=he$4(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=he$4(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=he$4(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=he$4(e)[K$4.Eras];return ke$4(r,t)}function bo$1(e,t){let n=he$4(e);return ke$4(n[K$4.DateFormat],t)}function So$1(e,t){let n=he$4(e);return ke$4(n[K$4.TimeFormat],t)}function _o$1(e,t){let r=he$4(e)[K$4.DateTimeFormat];return ke$4(r,t)}function lt$2(e,t){let n=he$4(e),r=n[K$4.NumberSymbols][t];if(typeof r>"u"){if(t===me$4.CurrencyDecimal)return n[K$4.NumberSymbols][me$4.Decimal];if(t===me$4.CurrencyGroup)return n[K$4.NumberSymbols][me$4.Group]}return r}function Cm(e,t){return he$4(e)[K$4.NumberFormats][t]}function Tm(e){if(!e[K$4.ExtraData])throw new m$1(2303,false)}function bm(e){let t=he$4(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=he$4(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$1(2304,false)}function Cl(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var BT=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,js$1=Object.create(null),VT=/((?:[^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]*)/,HT=256;function _m(e,t,n,r){let o=KT(e);UT(t),t=Mt$2(n,t)||t;let s=[],a;for(;t;)if(a=VT.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=QT(o,r));let u="";return s.forEach(l=>{let d=ZT(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function UT(e){if(e.length>HT)throw new m$1(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,ge$4.Short);break;case "mediumDate":r=bo$1(e,ge$4.Medium);break;case "longDate":r=bo$1(e,ge$4.Long);break;case "fullDate":r=bo$1(e,ge$4.Full);break;case "shortTime":r=So$1(e,ge$4.Short);break;case "mediumTime":r=So$1(e,ge$4.Medium);break;case "longTime":r=So$1(e,ge$4.Long);break;case "fullTime":r=So$1(e,ge$4.Full);break;case "short":let o=Mt$2(e,"shortTime"),i=Mt$2(e,"shortDate");r=Bs$1(_o$1(e,ge$4.Short),[o,i]);break;case "medium":let s=Mt$2(e,"mediumTime"),a=Mt$2(e,"mediumDate");r=Bs$1(_o$1(e,ge$4.Medium),[s,a]);break;case "long":let c=Mt$2(e,"longTime"),u=Mt$2(e,"longDate");r=Bs$1(_o$1(e,ge$4.Long),[c,u]);break;case "full":let l=Mt$2(e,"fullTime"),d=Mt$2(e,"fullDate");r=Bs$1(_o$1(e,ge$4.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 $T(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=zT(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return $T(a,t);let c=lt$2(s,me$4.MinusSign);return We$2(a,t,c,r,o)}}function zT(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$1(2301,false)}}function V$2(e,t,n=ce$1.Format,r=false){return function(o,i){return GT(o,i,e,t,n,r)}}function GT(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$1(2302,false)}}function Vs$1(e){return function(t,n,r){let o=-1*r,i=lt$2(n,me$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$1(2310,false)}}}var WT=0,Us$1=4;function qT(e){let t=$s$1(e,WT,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=qT(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return We$2(o,e,lt$2(r,me$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,me$4.MinusSign),t)}}var bl=Object.create(null);function ZT(e){if(bl[e])return bl[e];let t;switch(e){case "G":case "GG":case "GGG":t=V$2(3,B$1.Abbreviated);break;case "GGGG":t=V$2(3,B$1.Wide);break;case "GGGGG":t=V$2(3,B$1.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$1.Abbreviated);break;case "MMMM":t=V$2(2,B$1.Wide);break;case "MMMMM":t=V$2(2,B$1.Narrow);break;case "LLL":t=V$2(2,B$1.Abbreviated,ce$1.Standalone);break;case "LLLL":t=V$2(2,B$1.Wide,ce$1.Standalone);break;case "LLLLL":t=V$2(2,B$1.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$1.Abbreviated,ce$1.Standalone);break;case "cccc":t=V$2(1,B$1.Wide,ce$1.Standalone);break;case "ccccc":t=V$2(1,B$1.Narrow,ce$1.Standalone);break;case "cccccc":t=V$2(1,B$1.Short,ce$1.Standalone);break;case "E":case "EE":case "EEE":t=V$2(1,B$1.Abbreviated);break;case "EEEE":t=V$2(1,B$1.Wide);break;case "EEEEE":t=V$2(1,B$1.Narrow);break;case "EEEEEE":t=V$2(1,B$1.Short);break;case "a":case "aa":case "aaa":t=V$2(0,B$1.Abbreviated);break;case "aaaa":t=V$2(0,B$1.Wide);break;case "aaaaa":t=V$2(0,B$1.Narrow);break;case "b":case "bb":case "bbb":t=V$2(0,B$1.Abbreviated,ce$1.Standalone,true);break;case "bbbb":t=V$2(0,B$1.Wide,ce$1.Standalone,true);break;case "bbbbb":t=V$2(0,B$1.Narrow,ce$1.Standalone,true);break;case "B":case "BB":case "BBB":t=V$2(0,B$1.Abbreviated,ce$1.Format,true);break;case "BBBB":t=V$2(0,B$1.Wide,ce$1.Format,true);break;case "BBBBB":t=V$2(0,B$1.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 YT(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function QT(e,t,n){let o=e.getTimezoneOffset(),i=Nm(t,o);return YT(e,-1*(i-o))}function KT(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(BT))return XT(r)}let t=new Date(e);if(!mm(t))throw new m$1(2311,false);return t}function XT(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 JT=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ym=22,zs$1=".",Mo$2="0",eb=";",tb=",",Sl="#";function nb(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=lt$2(n,me$4.Infinity);else {let u=ib(e);s&&(u=ob(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let $=i.match(JT);if($===null)throw new m$1(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$1(2306,false)}sb(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,me$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=rb(r,lt$2(t,me$4.MinusSign));return nb(e,o,t,me$4.Group,me$4.Decimal,n)}function rb(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(eb),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(tb);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 ob(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 ib(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 sb(e,t,n){if(t>n)throw new m$1(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$1(2305,false);return t}var ab=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g(pe$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(pr$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$1(2100,false)}var cb=(()=>{class e{transform(n){return n==null?null:(ub(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=hr$1({name:"lowercase",type:e,pure:true})}return e})();function ub(e,t){if(typeof t!="string")throw Nl()}var lb="mediumDate",Am=new w(""),Rm=new w(""),db=(()=>{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??lb,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(mr$1,16),ze$2(Am,24),ze$2(Rm,24))};static \u0275pipe=hr$1({name:"date",type:e,pure:true})}return e})();var fb=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=hr$1({name:"json",type:e,pure:false})}return e})();var pb=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!hb(n))return null;o||=this._locale;try{let i=gb(n);return xm(i,o,r)}catch(i){throw Nl(e,i.message)}}static \u0275fac=function(r){return new(r||e)(ze$2(mr$1,16))};static \u0275pipe=hr$1({name:"number",type:e,pure:true})}return e})();function hb(e){return !(e==null||e===""||e!==e)}function gb(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new m$1(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 XV(e){return e===Al}var JV=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new xl(g(U$4),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=Db(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 Db(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$4))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Zs$1=new w(""),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$1(-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 Eb(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,Eb(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$4),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%",Ib=`_nghost-${Pm}`,wb=`_ngcontent-${Pm}`,Cb=true,Tb=new w("",{factory:()=>Cb});function bb(e){return wb.replace(Ll,e)}function Sb(e){return Ib.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(An$3),b$2(Qr),b$2(Tb),b$2(U$4),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$1(-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$1(-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=bb(u),this.hostAttr=Sb(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=_b();return n==null?null:Mb(n)}resetBaseElement(){Oo$1=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return No$1(document.cookie,t)}},Oo$1=null;function _b(){return Oo$1=Oo$1||document.head.querySelector("base"),Oo$1?Oo$1.getAttribute("href"):null}function Mb(e){return new URL(e,document.baseURI).pathname}var jm=["alt","control","meta","shift"],Nb={"\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"},xb={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=Nb[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=xb[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$4))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function Ab(e,t,n){return B$2(this,null,function*(){let r=w$1({rootComponent:e},Rb(t,n));return cm(r)})}function Rb(e,t){return {platformRef:t?.platformRef,appProviders:[...Lb,...e?.providers??[]],platformProviders:Pb}}function Ob(){Ys$1.makeCurrent();}function kb(){return new Se$3}function Fb(){return Cu(document),document}var Pb=[{provide:Kr,useValue:Al},{provide:$i$1,useValue:Ob,multi:true},{provide:U$4,useFactory:Fb}];var Lb=[{provide:$r,useValue:"root"},{provide:Se$3,useFactory:kb},{provide:Zs$1,useClass:Gs$1,multi:true},{provide:Zs$1,useClass:Bm,multi:true},jl,{provide:An$3,useClass:Pl},{provide:Pl,useExisting:An$3},Fl,{provide:Sn$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 jb(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 Bb=/%(\d[a-f0-9])/gi,Vb={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Vm(e){return encodeURIComponent(e).replace(Bb,(t,n)=>Vb[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$1(2805,false);this.map=jb(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 Hb(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 Ub(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Bl="Content-Type",zm="Accept",Wm="text/plain",qm="application/json",$b=`${qm}, ${Wm}, */*`,vr$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(Hb(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$1(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)||Ub(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((kn,Xt)=>kn.set(Xt,t.setHeaders[Xt]),At)),t.setParams&&(Fe=Object.keys(t.setParams).reduce((kn,Xt)=>kn.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})}},Dr$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})(Dr$1||{}),Er$1=class Er{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 Er$1{constructor(t={}){super(t);}type=Dr$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 Er$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=Dr$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})}},On$3=class On extends Er$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;}},zb=200;var Gb=/^\)\]\}',?\n/,Zm=new w("",{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 On$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$2(this,null,function*(){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,w$1({signal:r},i)));Wb(D),o.next({type:Dr$1.Sent}),s=yield D;}catch(D){o.error(new On$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,kn=false;if(yield this.ngZone.runOutsideAngular(()=>B$2(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield be.cancel(),kn=true;break}let{done:Ir,value:na}=yield be.read();if(Ir)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:Dr$1.DownloadProgress,total:Number.isFinite(_)?_:void 0,loaded:qe,partialText:Fe});Fo?Fo.run(Gl):Gl();}}})),kn){o.complete();return}let Xt=this.concatChunks($,qe);try{let Ir=s.headers.get(Bl)??"";d=this.parseBody(n,Xt,Ir,l);}catch(Ir){o.error(new On$3({error:Ir,headers:new xt$2(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?zb: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 On$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(Gb,"");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$1(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]=$b),!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 Wb(e){e.then(Ul,Ul);}function Gm(e){throw new m$1(-2825,false)}function qb(e,t){return t(e)}function Zb(e,t,n){return (r,o)=>qn$3(n,()=>t(r,i=>e(i,o)))}var Ym=new w("",{factory:()=>[]}),Qm=new w(""),Km=new w("",{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)=>Zb(i,s,this.injector),qb);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return wo$1(()=>r(n,i=>this.backend.handle(i))).pipe(li$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(fe$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 vr$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 vr$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=Cr$1(i).pipe(ui$3(c=>this.handler.handle(c)));if(n instanceof vr$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$1(2806,false);return c.body}));case "blob":return a.pipe(ne$3(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new m$1(2807,false);return c.body}));case "text":return a.pipe(ne$3(c=>{if(c.body!==null&&typeof c.body!="string")throw new m$1(2808,false);return c.body}));default:return a.pipe(ne$3(c=>c.body))}case "response":return a;default:throw new m$1(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 Yb=new w("",{factory:()=>true}),Qb="XSRF-TOKEN",Kb=new w("",{factory:()=>Qb}),Xb="X-XSRF-TOKEN",Jb=new w("",{factory:()=>Xb}),eS=(()=>{class e{cookieName=g(Kb);doc=g(U$4);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(eS),o},providedIn:"root"})}return e})();function tS(e,t){if(!g(Yb)||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(Jb);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function nS(...e){let t=[Xm,ea$1,ta$1,{provide:zl,useExisting:ta$1},{provide:$l,useFactory:()=>g(ea$1)},{provide:Ym,useValue:tS,multi:true}];for(let n of e)t.push(...n.\u0275providers);return wt$3(t)}var SH=(()=>{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$4))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var rS=(()=>{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(oS),o},providedIn:"root"})}return e})(),oS=(()=>{class e extends rS{_doc=g(U$4);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$1(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$1(-5201,false);default:throw new m$1(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:c,encodeParam:o,encoder:t,password:e,username:s,withCredentials:p}={}){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),p!==void 0&&(this.withCredentials=p),t&&(this.encoder=t),this.encodeParam=o??(a=>this.defaultEncodeParam(a)),this.credentials=c??{};}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,c){let o=this.lookupCredential(x);return o?r.set(n,(c??"")+o):r}addCredentialToQuery(x,n,r){let c=this.lookupCredential(x);return c?r.set(n,c):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 w("basePath");var $$2=class ${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 $$2;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,r,c=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,c?r:void 0,c):this.addToHttpParamsRecursive(x,n,r)}addToHttpParamsRecursive(x,n,r,c=false){if(n==null)return x;if(typeof n=="object"){if(r!=null)return c?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$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}disableAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}enableAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}exportAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}getDefinitionAgentConfig(n,r,c,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,c,"namespaceId");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.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:p,observe:o,transferCache:i,reportProgress:t}))}listByParentAgentConfig(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,r="body",c=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 p=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:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}searchAgentConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}updateAgentConfig(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;getAgentConfigDefaults(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},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,c){super(r,c);this.httpClient=n;}httpClient;createAiModel(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteAiModel(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdAiModel(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsAiModel(n,r="body",c=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,p=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:p,reportProgress:c}))}listByNamespaceIdAiModel(n,r="body",c=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,p=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:p,reportProgress:c}))}listByParentAiModel(n,r="body",c=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,p=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:p,reportProgress:c}))}listPlatformLevelAiModel(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateAiModel(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;createAiProvider(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteAiProvider(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdAiProvider(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsAiProvider(n,r="body",c=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,p=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:p,reportProgress:c}))}listAiProvider(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}updateAiProvider(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;addMessageCase(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}countUnreadCase(n,r="body",c=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 p=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:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}createCase(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteCase(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdCase(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsCase(n,r="body",c=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,p=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:p,reportProgress:c}))}interruptCase(n,r="body",c=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,p=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:p,reportProgress:c}))}killCase(n,r="body",c=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,p=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:p,reportProgress:c}))}listByParentCase(n,r="body",c=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,p=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:p,reportProgress:c}))}listByUserCase(n,r="body",c=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,p=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:p,reportProgress:c}))}listByUserExternalIdCase(n,r="body",c=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,p=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:p,reportProgress:c}))}listByUserInNamespaceCase(n,r="body",c=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,p=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:p,reportProgress:c}))}listMineByParentCase(n,r="body",c=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,p=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:p,reportProgress:c}))}markCaseRead(n,r="body",c=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,p=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:p,reportProgress:c}))}reopenCase(n,r="body",c=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,p=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:p,reportProgress:c}))}setReasoningEffortCase(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}starCase(n,r="body",c=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,p=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:p,reportProgress:c}))}unstarCase(n,r="body",c=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,p=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:p,reportProgress:c}))}updateCase(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;listEffectiveConfiguration(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},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,c){super(r,c);this.httpClient=n;}httpClient;createIntegrationConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteIntegrationConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}exportIntegrationConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdIntegrationConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsIntegrationConfig(n,r="body",c=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,p=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:p,reportProgress:c}))}listIntegrationConfig(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;getTypeIntegrationType(n,r="body",c=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,p=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:p,reportProgress:c}))}listTypesIntegrationType(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},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,c){super(r,c);this.httpClient=n;}httpClient;createNamespace(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteNamespace(n,r="body",c=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,p=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:p,reportProgress:c}))}deployAgentsNamespace(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}getByIdNamespace(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsNamespace(n,r="body",c=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,p=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:p,reportProgress:c}))}listAllNamespace(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsNamespace(n,r="body",c=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,p=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:p,reportProgress:c}))}undeployAgentsNamespace(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}updateNamespace(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,r="body",c=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,p=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:p,reportProgress:c}))}removeAssociationNamespaceGit(n,r="body",c=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,p=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:p,reportProgress:c}))}setAssociationNamespaceGit(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,r,c,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(c==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,c,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.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:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,r="body",c=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,p=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:p,reportProgress:c}))}aggregateByCaseTreeUsageRecord(n,r="body",c=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,p=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:p,reportProgress:c}))}aggregateByModelUsageRecord(n,r,c,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(c==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,c,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.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:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByUserUsageRecord(n,r,c,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(c==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 p=new Nt$3({encoder:this.encoder});p=this.addToHttpParams(p,n,"userId"),p=this.addToHttpParams(p,r,"namespaceId"),p=this.addToHttpParams(p,c,"from"),p=this.addToHttpParams(p,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:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}listByCaseIdUsageRecord(n,r="body",c=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,p=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:p,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 Se$2=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(Se$2||{});var qe$2=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(qe$2||{});var Me$2=(n=>(n.ENVIRONMENT="ENVIRONMENT",n.PROPERTY="PROPERTY",n))(Me$2||{});var Be$2=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Be$2||{});var $e$3=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))($e$3||{});var K$3=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 c=this.zone.runOutsideAngular(()=>new EventSource(n));return c.onopen=()=>this.zone.run(()=>r.next("connected")),c.addEventListener("namespace-case-list-updated",()=>this.zone.run(()=>r.next("updated"))),c.onerror=()=>{},()=>c.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Q$1=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 z$1=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(z$1||{});var X$1=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(X$1||{});var Ue$1=z$1,Ne$2=X$1;var ke$3={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},Fe$2={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var Z$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAuthSetting(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteAuthSetting(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdAuthSetting(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsAuthSetting(n,r="body",c=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,p=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:p,reportProgress:c}))}listAuthSetting(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}updateAuthSetting(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsCaseEventRest(n,r="body",c=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,p=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:p,reportProgress:c}))}listByCaseCaseEventRest(n,r="body",c=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,p=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:p,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 te$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getMembersCaseMembership(n,r="body",c=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,p=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:p,reportProgress:c}))}updateMembersCaseMembership(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;changesCaseWorkspace(n,r="body",c=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,p=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:p,reportProgress:c}))}diffCaseWorkspace(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}getCaseWorkspace(n,r="body",c=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,p=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:p,reportProgress:c}))}listCaseWorkspace(n,r="body",c=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,p=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:p,reportProgress:c}))}refreshCaseWorkspace(n,r="body",c=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,p=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:p,reportProgress:c}))}retryCaseWorkspace(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;applyConfigChange(n,r,c,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(c==null)throw new Error("Required parameter configChangeApplyRequest was null or undefined when calling applyConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));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";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?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:c,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}rejectConfigChange(n,r,c,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,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));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";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?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:c,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}viewConfigChange(n,r,c="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 p=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:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,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 re$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,r,c,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling browseCaseFilesExchange.");let p=new Nt$3({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,c,"page"),p=this.addToHttpParams(p,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:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}browseNamespaceFilesExchange(n,r,c,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling browseNamespaceFilesExchange.");let p=new Nt$3({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,c,"page"),p=this.addToHttpParams(p,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:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}deleteCaseFileExchange(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,r="body",c=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,p=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:p,reportProgress:c}))}getNamespaceFileContentExchange(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,r="body",c=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,p=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:p,reportProgress:c}))}uploadCaseFileExchange(n,r,c="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 p=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:V,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${V}${E}`,x$1(w$1({context:p,body:l,responseType:m},S?{withCredentials:S}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}uploadNamespaceFileExchange(n,r,c="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 p=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:V,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${V}${E}`,x$1(w$1({context:p,body:l,responseType:m},S?{withCredentials:S}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;createFeedback(n,r="body",c=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,p=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:p,reportProgress:c}))}listByCaseEventFeedback(n,r="body",c=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,p=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:p,reportProgress:c}))}listByCaseFeedback(n,r="body",c=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,p=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:p,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 se$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getGitWorkspacesConfiguration(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},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 ie$2=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,r="body",c=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,p=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:p,reportProgress:c}))}updateMembersNamespaceMembership(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;grantAdmin(n,r,c="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 p=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:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}grantMember(n,r,c="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 p=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:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}revokeAdmin(n,r,c="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 p=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:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}revokeMember(n,r,c="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 p=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:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}updateRolesByExternalId(n,r="body",c=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,p=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:p,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"})});(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,r="body",c=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,p=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:p,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 le$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;debugAllPlugins(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}debugPlugin(n,r="body",c=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,p=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:p,reportProgress:c}))}getAllPlugins(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}getPlugin(n,r="body",c=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,p=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:p,reportProgress:c}))}reloadAllAgentsPlugin(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}reloadPlugin(n,r="body",c=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,p=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:p,reportProgress:c}))}startPlugin(n,r="body",c=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,p=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:p,reportProgress:c}))}stopPlugin(n,r="body",c=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,p=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:p,reportProgress:c}))}unloadPlugin(n,r="body",c=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,p=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:p,reportProgress:c}))}uploadPlugin(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},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 de$4=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}deletePrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}exportPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}resolveEffectivePrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}searchPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}translateBatchPrompt(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}translatePrompt(n,r,c,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(c==null)throw new Error("Required parameter promptTranslateRequest was null or undefined when calling translatePrompt.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));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";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?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:c,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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 be$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;continueCostRunRunCost(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}getRunCost(n,r="body",c=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,p=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:p,reportProgress:c}))}stopCostRunRunCost(n,r="body",c=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,p=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:p,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 fe$4=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}disableScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}enableScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}resolveEffectiveScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}searchScheduledPrompt(n,r="body",c=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,p=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:p,reportProgress:c}))}updateScheduledPrompt(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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 ue$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createSkill(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteSkill(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdSkill(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsSkill(n,r="body",c=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,p=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:p,reportProgress:c}))}listByParentSkill(n,r="body",c=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,p=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:p,reportProgress:c}))}listEffectiveSkill(n,r="body",c=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 p=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:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}listPlatformSkill(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateSkill(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;streamCaseInvalidationsNamespaceCaseInvalidationSse(n,r="body",c=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,p=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:p,reportProgress:c}))}streamCaseListUpdatesNamespaceCaseListUpdateSse(n,r="body",c=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,p=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:p,reportProgress:c}))}streamEventsCaseEventSse(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,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"})});(class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;invokeToolInvoke(n,r="body",c=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,p=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:p,reportProgress:c}))}listToolInvoke(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,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 Ce$4=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getUsageConfiguration(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},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 He$1=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createUser(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteUser(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdUser(n,r="body",c=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,p=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:p,reportProgress:c}))}getByIdsUser(n,r="body",c=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,p=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:p,reportProgress:c}))}getGroupsByExternalIdsUser(n,r="body",c=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,p=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:p,reportProgress:c}))}getMeUser(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listAllUser(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsUser(n,r="body",c=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,p=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:p,reportProgress:c}))}revokeNamespaceAccessByExternalIdUser(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,r,c="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,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?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:c,transferCache:d,reportProgress:o}))}updateUser(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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,c){super(r,c);this.httpClient=n;}httpClient;createUserGroup(n,r="body",c=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,p=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:p,reportProgress:c}))}deleteUserGroup(n,r="body",c=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,p=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:p,reportProgress:c}))}findByNamespaceIdUserGroup(n,r="body",c=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 p=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:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}getByIdUserGroup(n,r="body",c=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,p=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:p,reportProgress:c}))}getMembersUserGroup(n,r="body",c=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,p=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:p,reportProgress:c}))}updateUserGroup(n,r,c="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 p=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:p,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:c,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 me$3=class C extends j$3{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;capabilityVoiceMessage(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new Ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="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:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}postVoiceMessage(n,r,c,o,t,e,s="body",p=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,c,"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),V,S=false;S=E,S?V=new FormData:V=new Nt$3({encoder:this.encoder}),t!==void 0&&(V=V.append("answerToEventId",t)||V),r!==void 0&&(V=V.append("audio",r)||V),e!==void 0&&(V=V.append("durationMs",e)||V);let B="json";l&&(l.startsWith("text")?B="text":this.configuration.isJsonMime(l)?B="json":B="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:Ve,withCredentials:we}=this.configuration;return this.httpClient.request("post",`${Ve}${Oe}`,x$1(w$1({context:f,body:V,params:d,responseType:B},we?{withCredentials:we}:{}),{headers:i,observe:s,transferCache:b,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 De$2=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(De$2||{});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.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(Ge$2||{});var _e$3=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))(_e$3||{}),Je$2=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(Je$2||{});var Le$1=(c=>(c.FREE_TEXT="FREE_TEXT",c.SINGLE_CHOICE="SINGLE_CHOICE",c.OPEN_CHOICE="OPEN_CHOICE",c.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",c))(Le$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 c=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 c.addEventListener("case-event",o),c.onerror=()=>{},()=>c.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 c=this.zone.runOutsideAngular(()=>new EventSource(n));return c.onopen=()=>this.zone.run(()=>r.next("connected")),c.addEventListener("namespace-case-invalidation",()=>this.zone.run(()=>r.next("invalidated"))),c.onerror=()=>{},()=>c.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 f$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 T$3=["email","providers","folder","progress"],Q=i=>i==="fresh"||i==="nofresh"?i:null,V$1=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,j$2=1500,E=8,O$1=2e4,p$1=(i,e,t)=>({key:i,label:e,state:t.state,percent:t.percent,message:t.message??(i==="java"?t.version:void 0)}),b$1=(i,e)=>{if(i instanceof On$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},R$1=class i{api=g(f$1);users=g(He$1);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);userKeys=Ui$1([]);userKeysChecked=Ui$1(false);userKeysCheck=null;emailValid=KC(()=>V$1.test(this.email().trim()));enabledProviders=KC(()=>this.providers().filter(e=>e.enabled));providersValid=KC(()=>{let e=this.enabledProviders();return e.length>0&&e.every(t=>t.apiKey.trim().length>=E)});needsUserKeys=KC(()=>this.userKeys().length>0);userKeysValid=KC(()=>{let e=this.userKeys().filter(t=>t.apiKey.trim().length>0);return e.length>0&&e.every(t=>t.apiKey.trim().length>=E)});folderValid=KC(()=>this.folder().startsWith("/")||/^[A-Za-z]:[\\/]/.test(this.folder()));stepIndex=KC(()=>T$3.indexOf(this.step()));checklist=KC(()=>{let e=this.status()?.steps;return e?[p$1("download","Downloading AgentOS",e.download),p$1("java","Checking Java 25",e.java),p$1("agentos","Starting AgentOS",e.agentos),p$1("providers","Configuring your AI providers",e.providers),p$1("models","Registering the models",e.models),p$1("namespace","Creating your personal workspace",e.namespace),p$1("agent","Deploying the Coday agent",e.agent)]:[]});loadingChecklist=KC(()=>{let e=this.status()?.steps;return e?[p$1("download","Downloading AgentOS",e.download),p$1("java","Checking Java 25",e.java),p$1("agentos","Starting AgentOS",e.agentos),...e.factory?[p$1("factory","Waiting for the Factory",e.factory)]:[]]:[]});loadingReady=KC(()=>{let e=this.status()?.steps;return !e||e.agentos.state!=="done"||this.status()?.mode==="managed"&&(!this.userKeysChecked()||this.needsUserKeys())?false:e.factory?e.factory.state==="done"||e.factory.state==="error"||this.factoryGraceElapsed():true});javaBlocked=KC(()=>this.status()?.steps.java.state==="blocked");ready=KC(()=>{let e=this.status();return !!e&&e.apply.status==="done"&&!!e.namespaceId});failed=KC(()=>this.status()?.apply.status==="error");emailLocked=KC(()=>!this.preview()&&(this.status()?.apply.status??"idle")!=="idle");namespaceId=KC(()=>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$2(this,null,function*(){try{let e=yield hy(this.api.getStatus());return this.setStatus(e),e}catch(e){return this.statusError.set(b$1(e,"Cannot read the setup status.")),null}})}startPolling(){this.poller||(this.poller=Mr$1(0,j$2).pipe(ma(()=>this.api.getStatus().pipe(da(()=>Cr$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$2(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==="laptop"&&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(T$3[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$2(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(b$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(l=>l.id===e);return [...s.filter(l=>l.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(d=>d.enabled),a=s.findIndex(d=>d.id===e),l=a+t;if(a<0||l<0||l>=s.length)return r;let y=[...s],[P]=y.splice(a,1);return y.splice(l,0,P),[...y,...r.filter(d=>!d.enabled)]});}moveProviderTo(e,t){e!==t&&this.providers.update(r=>{let s=r.filter(d=>d.enabled),a=s.findIndex(d=>d.id===e),l=s.findIndex(d=>d.id===t);if(a<0||l<0)return r;let y=[...s],[P]=y.splice(a,1);return y.splice(l,0,P),[...y,...r.filter(d=>!d.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$2(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(b$1(e,"Could not start the setup."));}finally{this.busy.set(false);}}})}retry(){return B$2(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.loadMissingUserKeys(),this.userKeysCheck}loadMissingUserKeys(){return B$2(this,null,function*(){try{let[e,t]=yield Promise.all([hy(this.aiProviders.listAiProvider("none")),hy(this.aiProviders.listAiProvider("none","me"))]),r=new Map(t.map(s=>[s.name,s]));this.userKeys.set(e.filter(s=>!r.get(s.name)?.apiKey).map(s=>({name:s.name,apiType:s.apiType,apiKey:"",existingId:r.get(s.name)?.id})));}catch(e){console.warn("Could not check the user keys of the platform providers",e);}finally{this.userKeysChecked.set(true);}})}setUserKey(e,t){this.userKeys.update(r=>r.map(s=>s.name===e?x$1(w$1({},s),{apiKey:t}):s));}skipUserKeys(){this.error.set(null),this.userKeys.set([]);}submitUserKeys(){return B$2(this,null,function*(){if(!(!this.userKeysValid()||this.busy())){this.error.set(null),this.busy.set(true);try{let e=yield hy(this.users.getMeUser());if(!e.id)throw new Error("The current user has no id");let 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(l){console.warn(`Could not save the key of ${r.name}`,l),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(b$1(e,"Could not save your keys."));}finally{this.busy.set(false);}}})}applyProviders(){return this.enabledProviders().map((e,t)=>({id:e.id,apiKey:e.apiKey.trim(),rank:t+1}))}loadingTarget(){return B$2(this,null,function*(){let e=this.namespaceId()??(yield this.personalNamespaceId());return {path:"/home",queryParams:e?{ns:e}:{}}})}personalNamespaceId(){return B$2(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?XV(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 xn$3?i.nativeElement:i}var qn$2=new w("cdk-dir-doc",{providedIn:"root",factory:()=>g(U$4)}),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(Sn$3).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ue$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);}}):Cr$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(xn$3);scrollDispatcher=g(Pt$2);ngZone=g(G$2);dir=g(mt$3,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new ue$4;_renderer=g(Yu);_cleanupScroll;_elementScrolled=new ue$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 ue$4;_document=g(U$4);constructor(){let t=g(G$2),n=g(Sn$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 xn$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(Mn$4,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||pe$4.NULL,r=o.get(fe$5,n.injector);t=_B(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(Mn$4,{optional:true});_document=g(U$4);_viewContainerRef=g(pr$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(pe$4);_environmentInjector=g(fe$5);load(t){let n=this._appRef=this._appRef||this._injector.get(gr$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(_B(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$4))}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(pe$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$4);_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(Sn$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(Sn$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=mw({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;
@@ -1249,5 +1249,5 @@ var f$1=class s{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 w("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new S$1}),Mn$2=(()=>{class i{_live=g(Ei$1);_injector=g(pe$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=pe$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 cr$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 pe$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(pe$4),o=new _r$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$1(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),KC(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new m$1(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 Sy(t)?t:Rs$1(t)?Ye$1(Promise.resolve(t)):Cr$1(t)}function Nn$1(t){return Sy(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 KC(()=>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$1(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$1(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$1(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$1(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$1(4003,false);let i=r.find(He);if(i&&i!==Ei(r))throw new m$1(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$1(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$1(fe$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 wr$1([new ee$1("",{})]),i=new wr$1({}),o=new wr$1({}),a=new wr$1({}),c=new wr$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]))??Cr$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 w(""),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=DB();parentContexts=g(pe$1);location=g(pr$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$1(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$1(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$1(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$1(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 w(""),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:Cr$1({}),r.params,r.data]).pipe(fa(([o,a,c],s)=>(c=w$1(w$1(w$1({},o),a),c),s===0?Cr$1(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=MB(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){kI();};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),Ir=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=mw({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 wr$1(t.url),new wr$1(t.params),new wr$1(t.queryParams),new wr$1(t.fragment),new wr$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"&&!Jy(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 qn$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(sn$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),sn$2(1)))}function po(t){return te$1(t)||t instanceof Te}function Jn$1(t){return t.aborted?Cr$1(void 0).pipe(sn$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 ht$4(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?Cr$1(x$1(w$1({},n),{guardsResult:true})):vo(o,e,r).pipe(ht$4(a=>a&&so(a)?mo(e,i,t):Cr$1(a)),ne$3(a=>x$1(w$1({},n),{guardsResult:a})))})}function vo(t,n,e){return Ye$1(t).pipe(ht$4(r=>wo(r.component,r.route,e,n)),By(r=>r!==true,true))}function mo(t,n,e){return Ye$1(n).pipe(ui$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)),Cr$1(true)}function Ro(t,n){return t!==null&&n&&n(new It(t)),Cr$1(true)}function So(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return Cr$1(true);let r=e.map(i=>xy(()=>{let o=n._environmentInjector,a=Me$1(i,o),c=uo(a)?a.canActivate(n,t):qn$3(o,()=>a(n,t));return fe$1(c).pipe(By())}));return Cr$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=>xy(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$1(c,s),d=lo(u)?u.canActivateChild(e,t):qn$3(s,()=>u(e,t));return fe$1(d).pipe(By())});return Cr$1(a).pipe(Ne$1())}));return Cr$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 Cr$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):qn$3(c,()=>s(t,n,e,r));return fe$1(u).pipe(By())});return Cr$1(o).pipe(Ne$1())}function bo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return Cr$1(true);let a=o.map(c=>{let s=Me$1(c,t),u=co(s)?s.canLoad(n,e):qn$3(t,()=>s(n,e)),d=fe$1(u);return i?d.pipe(Xn$1(i)):d});return Cr$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 Cr$1(true);let c=a.map(s=>{let u=Me$1(s,t),d=fo(u)?u.canMatch(n,e,i):qn$3(t,()=>u(n,e,i));return fe$1(d).pipe(Xn$1(o))});return Cr$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$1(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$2(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$2(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$1(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(qn$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 Cr$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$2(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$1(4002,`'${n.segmentGroup}'`)}recognize(){return B$2(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$2(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$2(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$2(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$2(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$2(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$2(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$2(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$2(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 ht$4(c=>B$2(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 ht$4(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return Cr$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$1(o).pipe(ui$3(c=>i.has(c)?Bo(c,e,t):(c.data=Cr(c,c.parent,t).resolve,Cr$1(void 0))),yd(()=>a++),Vy(1),ht$4(c=>a===o.size?Cr$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),xy(()=>(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 Cr$1({});let i={};return Ye$1(r).pipe(ht$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:by(o)))}function Go(t,n,e){let r=n._environmentInjector,i=Me$1(t,r),o=i.resolve?i.resolve(n,e):qn$3(r,()=>i(n,e));return fe$1(o)}function In$1(t){return fa(n=>{let e=t(n);return e?Ye$1(e).pipe(ne$3(()=>n)):Cr$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$1(SH))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ie=new w("",{factory:()=>({})}),ge$1=new w(""),Pt$1=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(ZC);loadComponent(e,r){return B$2(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$2(this,null,function*(){try{let o=yield Nn$1(qn$3(e,()=>r.loadComponent())),a=yield si$1(yB(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$2(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$2(this,null,function*(){let i=yield Nn$1(qn$3(e,()=>t.loadChildren())),o=yield si$1(yB(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$2(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 w(""),Nr=new w("");function ci$1(t,n,e){let r=t.get(Nr),i=t.get(U$4);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&&qn$3(t,()=>s({transition:c,from:n,to:e})),a}function Qo(t){return new Promise(n=>{hE({read:()=>setTimeout(n)},{injector:t});})}var ui$1=new w(""),Ko=()=>{},Mr=new w(""),jt=(()=>{class t{currentNavigation=Ui$1(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Ui$1(null);events=new ue$4;transitionAbortWithErrorSubject=new ue$4;configLoader=g(Pt$1);environmentInjector=g(fe$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=()=>Cr$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 wr$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 Cr$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 Cr$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$1(r.routesRecognizeHandler.deferredHandle??Cr$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)),Cr$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 Cr$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 Cr$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?Cr$1(s):Ye$1(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)),Cr$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$1(d).pipe(ne$3(()=>r)):Cr$1(r)}),sn$2(1),fa(s=>{i=false,this.events.next(new Ie$1);let u=r.beforeActivateHandler.deferredHandle;return u?Ye$1(u.then(()=>s)):Cr$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}))),li$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=qn$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 w("");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(fe$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),sn$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(fe$5);_events=new ue$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$3;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$1(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=JC(()=>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=DB(void 0);isAnchorElement;onChanges=new ue$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=KC(()=>{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(xn$3),ze$2(yr$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(),KD)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",AT],skipLocationChange:[2,"skipLocationChange","skipLocationChange",AT],replaceUrl:[2,"replaceUrl","replaceUrl",AT],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(){Cr$1(this.links.changes,Cr$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$1(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?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(xn$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;rC(a=oC())&&(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),ui$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$1(i).pipe(Sr$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return Cr$1(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ye$1(this.loader.loadChildren(e,r)):i=Cr$1(null);let o=i.pipe(ht$4(a=>a===null?Cr$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$1([o,a]).pipe(Sr$1())}else return o})}static \u0275fac=function(r){return new(r||t)(b$1(F),b$1(fe$5),b$1(Ze),b$1(Pt$1))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fi$1=new w(""),na=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se;restoredId=0;store={};isHydrating=g(yD,{optional:true})??false;urlSerializer=g(ne);zone=g(G$2);viewportScroller=g(JV);transitions=g(jt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g(gr$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$2(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){kI();};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(pe$4);return n=>{let e=t.get(gr$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 w("",{factory:()=>new ue$4}),_r=new w("",{factory:()=>1});function mi$1(){let t=[{provide:zp,useValue:true},{provide:_r,useValue:0},Iw(()=>{let n=g(pe$4);return n.get(kT,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?Cr$1(void 0):o),i.initialNavigation();}))})];return Je(2,t)}function yi$1(){let t=[Iw(()=>{g(F).setUpLocationChangeListener();}),{provide:_r,useValue:2}];return Je(3,t)}var Ri$1=new w("");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(JV),n=g(ie);return n.scrollOffset&&t.setOffset(n.scrollOffset),new na(n)}}}function sa(){return {provide:yr$1,useClass:jT}}function ca(){return {provide:yr$1,useClass:hm}}function ua(t){return [t.initialNavigation==="disabled"?yi$1().\u0275providers:[],t.initialNavigation==="enabledBlocking"?mi$1().\u0275providers:[]]}var Dr=new w("");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$1(3e3,false)}function wn(){return new m$1(3100,false)}function An(){return new m$1(3101,false)}function Pn(i){return new m$1(3001,false)}function Nn(i){return new m$1(3003,false)}function Cn(i){return new m$1(3004,false)}function vs(i,e){return new m$1(3005,false)}function Ts(){return new m$1(3006,false)}function bs(){return new m$1(3007,false)}function ws(i,e){return new m$1(3008,false)}function As(i){return new m$1(3002,false)}function Ps(i,e,t,s,n){return new m$1(3010,false)}function Ns(){return new m$1(3011,false)}function Cs(){return new m$1(3012,false)}function Ms(){return new m$1(3200,false)}function Ds(){return new m$1(3202,false)}function Fs(){return new m$1(3013,false)}function ks(i){return new m$1(3014,false)}function Rs(i){return new m$1(3015,false)}function Os(i){return new m$1(3016,false)}function Is(i,e){return new m$1(3404,false)}function Mn(i){return new m$1(3502,false)}function Ls(i){return new m$1(3503,false)}function zs(){return new m$1(3300,false)}function Ks(i){return new m$1(3504,false)}function qs(i){return new m$1(3301,false)}function Bs(i,e){return new m$1(3302,false)}function Qs(i){return new m$1(3303,false)}function Vs(i,e){return new m$1(3400,false)}function Us(i){return new m$1(3401,false)}function $s(i){return new m$1(3402,false)}function js(i,e){return new m$1(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 d=y,g=S;if(y!=="offset")switch(d=i.normalizePropertyName(d,n),g){case he:g=t.get(y);break;case K:g=s.get(y);break;default:g=i.normalizeStyleValue(y,d,g,n);break}c.set(d,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",fe="ng-trigger",de=".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=ft(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(Pn());});}var it=new RegExp(`${ut}\\s*(.+?)\\s*${On}`,"g");function ft(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=>{ft(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,d=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=d+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,de).replace(/@\w+/g,t=>de+"-"+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 dt(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=dt(0,0,"");return r.dynamic=true,r.strValue=t,r}let n=me(t,e);return dt(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 dt(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(d=>d.containsAnimation());if(y.length&&a.size){let d;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){d=T;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([a],null,c.errors,l);}return y.length?y.map(d=>d.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"),d=t+y*s;S.set("offset",Js(d/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,d=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:fn(g,S),delay:this.ast.options?.delay},Q=h?[]:hn(e,t,this.ast.animation,r,o,d,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,d,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,d,T,Q,[...w.values()],A,M,D))}};function Jn(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}function fn(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=fn(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=[],dn={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,fe),z(e,fe+"-"+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,fe),z(e,fe+"-"+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),d=false;if(!y){if(!n)return;y=r.fallbackTransition,d=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:o,isFallbackTransition:d}),d||(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,de,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===dn)&&(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,de,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]=dn,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(f=>{h.add(f);let m=this.driver.query(f,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),d=new Map,g=0;y.forEach((f,m)=>{let p=ct+g++;d.set(m,p),f.forEach(E=>z(E,p));});let T=[],w=new Set,A=new Set;for(let f=0;f<this.collectedLeaveElements.length;f++){let m=this.collectedLeaveElements[f],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((f,m)=>{let p=Ce+g++;M.set(m,p),f.forEach(E=>z(E,p));}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(E=>le(E,p));}),N.forEach((f,m)=>{let p=M.get(m);f.forEach(E=>le(E,p));}),T.forEach(f=>{this.processLeaveNode(f);});});let se=[],Q=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].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=d.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 f=[];Q.forEach(m=>{f.push(js(m.triggerName,m.errors));}),se.forEach(m=>m.destroy()),this.reportError(f);}let D=new Map,F=new Map;o.forEach(f=>{let m=f.element;s.has(m)&&(F.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,D));}),n.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,false,f.namespaceId,f.triggerName,null).forEach(E=>{k(D,m,[]).push(E),E.destroy();});});let H=T.filter(f=>an(f,l,u)),ne=new Map;rn(ne,this.driver,A,u,K).forEach(f=>{an(f,l,u)&&H.push(f);});let Y=new Map;y.forEach((f,m)=>{rn(Y,this.driver,new Set(f),l,he);}),H.forEach(f=>{let m=ne.get(f),p=Y.get(f);ne.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]));});let Ge=[],Rt=[],Ot={};o.forEach(f=>{let{element:m,player:p,instruction:E}=f;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(f=>{let m=r.get(f.element);if(m&&m.length){let p=j(m);f.setRealPlayer(p);}}),n.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy();});for(let f=0;f<T.length;f++){let m=T[f],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?fi(this,m,P):this.processLeaveNode(m);}return T.length=0,Ge.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1);}),f.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 d=y.getRealPlayer();d.beforeDestroy&&d.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(d=>{let g=d.element;h.add(g);let T=g[B];if(T&&T.removedBeforeQueried)return new $(d.duration,d.delay);let w=g!==l,A=di((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,d.keyframes,M,N),Q=this._buildPlayer(d,se,A);if(d.subTimeline&&n&&c.add(g),w){let D=new _e(e,a,g);D.setRealPlayer(Q),u.push(D);}return Q});u.forEach(d=>{k(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>ui(this.playersByQueriedElement,d.element,d));}),h.forEach(d=>z(d,ht));let y=j(S);return y.onDestroy(()=>{h.forEach(d=>le(d,ht)),q(l,t.toStyles);}),c.forEach(d=>{k(n,d,[]).push(y);}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new $(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 fi(i,e,t){j(t).onDone(()=>i.processLeaveNode(e));}function di(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((d,g)=>u.set(g,d));});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$1(U$4),b$1(ee),b$1(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:Sn$3,useFactory:bi}],wi=[{provide:ee,useFactory:()=>new Ve},{provide:Av,useFactory:()=>"BrowserAnimations"},...gn];function yn(){return ut$2("NgEagerAnimations"),[...wi]}var Ai=i=>!!i&&i.mode==="laptop"&&i.setupEnabled&&!i.setupDone,Ft=false;var _n=()=>B$2(null,null,function*(){if(Ft)return true;let i=g(R$1),e=g(F),t=yield i.refreshStatus();return t?.setupDone&&(Ft=true),Ai(t)?e.parseUrl("/welcome"):true}),Sn=()=>B$2(null,null,function*(){return (yield g(R$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-a30sSJMH.js').then(i=>i.WelcomeComponent)},{path:"",pathMatch:"full",redirectTo:"welcome"},{path:"",canActivate:[_n],loadChildren:()=>import('./chunk-BiMuA5X-.js').then(function(n){return n.aa}).then(i=>i.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ci=5e3;function vn(t){return B$2(this,arguments,function*(i,e=Ci){yield hy(i.loadMe().pipe(My(e),da(s=>(console.warn("Failed to load current user",s),Cr$1(null)))),{defaultValue:null});})}function Mi(i){return ()=>B$2(null,null,function*(){let{UserStateService:e}=yield import('./chunk-BiMuA5X-.js').then(function(n){return n.aa});yield vn(i.get(e));})}function Di(i){return ()=>B$2(null,null,function*(){try{let{CompanionStateService:e,TabCoordinatorService:t}=yield import('./chunk-BiMuA5X-.js').then(function(n){return n.aa});qn$3(i,()=>{i.get(t).start();}),i.get(e).startSse();}catch(e){console.warn("Failed to start the companion notification stream",e);}})}var Tn={providers:[Nv(),bB({eventCoalescing:true}),ia(En),nS(),yn(),{provide:Ce$2,useValue:{duration:3e3}},{provide:cl,useFactory:Mi,deps:[pe$4],multi:true},Ol({basePath:"/api/agentos"}),{provide:cl,useFactory:Di,deps:[pe$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"),MC(3,"Loading Coday\u2026"),pl()());}function ki(i,e){if(i&1){let t=qw();Ds$1(0,"div",1)(1,"p"),MC(2,"Coday could not load this page."),pl(),Ds$1(3,"button",3),mg("click",function(){df(t);let n=Xw();return ff(n.reload())}),MC(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=mw({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&&(Pw(0,Fi,4,0,"div",0)(1,ki,5,0,"div",1),lg(2,"router-outlet")),t&2){let n;Lw((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})};Ab(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{wr$1 as $,Af as A,B$2 as B,C,Ds$1 as D,x$1 as E,F,ug as G,Hw as H,Ie$2 as I,J$1 as J,KC as K,Lw as L,MC as M,mg as N,Og as O,Pw as P,SI as Q,R$1 as R,Sg as S,MI as T,Ui$1 as U,Vw as V,W$1 as W,Xw as X,Y$2 as Y,br as Z,W$4 as _,pl as a,sC as a$,Me$2 as a0,fa as a1,da as a2,nn$2 as a3,je$2 as a4,yd as a5,x as a6,On$3 as a7,_$1 as a8,F$1 as a9,ie$2 as aA,T$1 as aB,Uy as aC,Z$1 as aD,ve$2 as aE,fe$4 as aF,ue$3 as aG,Y$3 as aH,ue$4 as aI,pb as aJ,Bg as aK,jg as aL,UC as aM,HC as aN,WC as aO,kC as aP,D$1 as aQ,hy as aR,L$2 as aS,Be$2 as aT,A$2 as aU,z$2 as aV,xe$2 as aW,xn$3 as aX,Yu as aY,al as aZ,yt$3 as a_,Cr$1 as aa,kw as ab,Bw as ac,G$1 as ad,U$3 as ae,Ne$2 as af,Ue$1 as ag,ke$3 as ah,md as ai,Ty as aj,Fe$2 as ak,jw as al,qe$2 as am,F$3 as an,k$1 as ao,$e$3 as ap,kg as aq,wy as ar,$t as as,$C as at,GC as au,ZD as av,N$1 as aw,Q as ax,Se$2 as ay,ne$3 as az,gl as b,G$2 as b$,Eg as b0,rC as b1,oC as b2,DB as b3,AT as b4,eC as b5,tC as b6,vB as b7,Ni$2 as b8,di$2 as b9,xe$1 as bA,Ay as bB,en$1 as bC,ig as bD,BC as bE,Dg as bF,U$4 as bG,we$1 as bH,L$1 as bI,Zn$2 as bJ,Os$1 as bK,gt$2 as bL,_t$3 as bM,Ke$2 as bN,Mo$1 as bO,ng as bP,_t$4 as bQ,Ce$5 as bR,Oe$1 as bS,si$2 as bT,by as bU,li$3 as bV,va as bW,b$1 as bX,Tf as bY,pr$1 as bZ,mt$3 as b_,EB as ba,IB as bb,wg as bc,iC as bd,pd as be,Id as bf,w as bg,Os$2 as bh,Br as bi,ze$2 as bj,Rp as bk,gr$1 as bl,sm as bm,hE as bn,Ea as bo,Se$3 as bp,ee$3 as bq,Yg as br,sn$2 as bs,qs$1 as bt,ri$2 as bu,W$2 as bv,$e$2 as bw,at$2 as bx,ss as by,pt$3 as bz,hg as c,fe$5 as c$,Cd as c0,Cn$2 as c1,Ht as c2,yn$1 as c3,Ot$1 as c4,Ft$1 as c5,kI as c6,wi$2 as c7,v as c8,Ln$2 as c9,re$3 as cA,Mn$2 as cB,De$2 as cC,fb as cD,SB as cE,We$1 as cF,My as cG,K$3 as cH,hd as cI,jy as cJ,Hy as cK,$y as cL,me$3 as cM,wB as cN,be$3 as cO,ky as cP,Mr$1 as cQ,ma as cR,cb as cS,Le$1 as cT,oe$2 as cU,JC as cV,ne$2 as cW,se$1 as cX,Ge$2 as cY,bf as cZ,R$2 as c_,ha as ca,ht$3 as cb,Oy as cc,Rs$1 as cd,Ye$1 as ce,hn$1 as cf,Ci$3 as cg,Du as ch,ww as ci,rS as cj,cr$1 as ck,m$1 as cl,ab as cm,og as cn,pg as co,qC as cp,He$1 as cq,ta as cr,xy as cs,pa as ct,Ly as cu,ui$3 as cv,hr$1 as cw,de$4 as cx,Pe$1 as cy,Ce$4 as cz,dg as d,_B as d0,_e$3 as d1,Je$2 as d2,dn$1 as d3,db as d4,te$3 as d5,ce as d6,pt$2 as d7,FC as d8,Pg as d9,Lg as da,CB as db,Ig as dc,le$3 as dd,Fg as de,cg as e,P$1 as f,g,hl as h,VC as i,jE as j,df as k,lg as l,mw as m,ff as n,oh as o,pe$4 as p,qw as q,yC as r,bg as s,Xm as t,y as u,vl as v,wo$1 as w,U$2 as x,yg as y,w$1 as z};
1252
+ `],encapsulation:2,changeDetection:1})}return i})(),Ce$2=new w("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new S$1}),Mn$2=(()=>{class i{_live=g(Ei$1);_injector=g(pe$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=pe$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 cr$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 pe$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(pe$4),o=new _r$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$1(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),KC(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new m$1(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 Sy(t)?t:Rs$1(t)?Ye$1(Promise.resolve(t)):Cr$1(t)}function Nn$1(t){return Sy(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 KC(()=>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$1(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$1(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$1(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$1(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$1(4003,false);let i=r.find(He);if(i&&i!==Ei(r))throw new m$1(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$1(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(fe$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 wr$1([new ee$1("",{})]),i=new wr$1({}),o=new wr$1({}),a=new wr$1({}),c=new wr$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]))??Cr$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 w(""),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=DB();parentContexts=g(pe$1);location=g(pr$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$1(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$1(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$1(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$1(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 w(""),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:Cr$1({}),r.params,r.data]).pipe(fa(([o,a,c],s)=>(c=w$1(w$1(w$1({},o),a),c),s===0?Cr$1(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=MB(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){kI();};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),Ir=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=mw({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 wr$1(t.url),new wr$1(t.params),new wr$1(t.queryParams),new wr$1(t.fragment),new wr$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"&&!Jy(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 qn$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(sn$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),sn$2(1)))}function po(t){return te$1(t)||t instanceof Te}function Jn$1(t){return t.aborted?Cr$1(void 0).pipe(sn$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 ht$4(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?Cr$1(x$1(w$1({},n),{guardsResult:true})):vo(o,e,r).pipe(ht$4(a=>a&&so(a)?mo(e,i,t):Cr$1(a)),ne$3(a=>x$1(w$1({},n),{guardsResult:a})))})}function vo(t,n,e){return Ye$1(t).pipe(ht$4(r=>wo(r.component,r.route,e,n)),By(r=>r!==true,true))}function mo(t,n,e){return Ye$1(n).pipe(ui$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)),Cr$1(true)}function Ro(t,n){return t!==null&&n&&n(new It(t)),Cr$1(true)}function So(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return Cr$1(true);let r=e.map(i=>xy(()=>{let o=n._environmentInjector,a=Me$1(i,o),c=uo(a)?a.canActivate(n,t):qn$3(o,()=>a(n,t));return fe$1(c).pipe(By())}));return Cr$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=>xy(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$1(c,s),d=lo(u)?u.canActivateChild(e,t):qn$3(s,()=>u(e,t));return fe$1(d).pipe(By())});return Cr$1(a).pipe(Ne$1())}));return Cr$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 Cr$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):qn$3(c,()=>s(t,n,e,r));return fe$1(u).pipe(By())});return Cr$1(o).pipe(Ne$1())}function bo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return Cr$1(true);let a=o.map(c=>{let s=Me$1(c,t),u=co(s)?s.canLoad(n,e):qn$3(t,()=>s(n,e)),d=fe$1(u);return i?d.pipe(Xn$1(i)):d});return Cr$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 Cr$1(true);let c=a.map(s=>{let u=Me$1(s,t),d=fo(u)?u.canMatch(n,e,i):qn$3(t,()=>u(n,e,i));return fe$1(d).pipe(Xn$1(o))});return Cr$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$1(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$2(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$2(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$1(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(qn$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 Cr$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$2(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$1(4002,`'${n.segmentGroup}'`)}recognize(){return B$2(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$2(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$2(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$2(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$2(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$2(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$2(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$2(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$2(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 ht$4(c=>B$2(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 ht$4(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return Cr$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$1(o).pipe(ui$3(c=>i.has(c)?Bo(c,e,t):(c.data=Cr(c,c.parent,t).resolve,Cr$1(void 0))),yd(()=>a++),Vy(1),ht$4(c=>a===o.size?Cr$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),xy(()=>(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 Cr$1({});let i={};return Ye$1(r).pipe(ht$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:by(o)))}function Go(t,n,e){let r=n._environmentInjector,i=Me$1(t,r),o=i.resolve?i.resolve(n,e):qn$3(r,()=>i(n,e));return fe$1(o)}function In$1(t){return fa(n=>{let e=t(n);return e?Ye$1(e).pipe(ne$3(()=>n)):Cr$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(SH))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ie=new w("",{factory:()=>({})}),ge$1=new w(""),Pt$1=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(ZC);loadComponent(e,r){return B$2(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$2(this,null,function*(){try{let o=yield Nn$1(qn$3(e,()=>r.loadComponent())),a=yield si$1(yB(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$2(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$2(this,null,function*(){let i=yield Nn$1(qn$3(e,()=>t.loadChildren())),o=yield si$1(yB(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$2(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 w(""),Nr=new w("");function ci$1(t,n,e){let r=t.get(Nr),i=t.get(U$4);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&&qn$3(t,()=>s({transition:c,from:n,to:e})),a}function Qo(t){return new Promise(n=>{hE({read:()=>setTimeout(n)},{injector:t});})}var ui$1=new w(""),Ko=()=>{},Mr=new w(""),jt=(()=>{class t{currentNavigation=Ui$1(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Ui$1(null);events=new ue$4;transitionAbortWithErrorSubject=new ue$4;configLoader=g(Pt$1);environmentInjector=g(fe$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=()=>Cr$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 wr$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 Cr$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 Cr$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$1(r.routesRecognizeHandler.deferredHandle??Cr$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)),Cr$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 Cr$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 Cr$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?Cr$1(s):Ye$1(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)),Cr$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$1(d).pipe(ne$3(()=>r)):Cr$1(r)}),sn$2(1),fa(s=>{i=false,this.events.next(new Ie$1);let u=r.beforeActivateHandler.deferredHandle;return u?Ye$1(u.then(()=>s)):Cr$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}))),li$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=qn$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 w("");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(fe$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),sn$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(fe$5);_events=new ue$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$3;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$1(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=JC(()=>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=DB(void 0);isAnchorElement;onChanges=new ue$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=KC(()=>{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(xn$3),ze$2(yr$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(),KD)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",AT],skipLocationChange:[2,"skipLocationChange","skipLocationChange",AT],replaceUrl:[2,"replaceUrl","replaceUrl",AT],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(){Cr$1(this.links.changes,Cr$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$1(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?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(xn$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;rC(a=oC())&&(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),ui$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$1(i).pipe(Sr$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return Cr$1(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ye$1(this.loader.loadChildren(e,r)):i=Cr$1(null);let o=i.pipe(ht$4(a=>a===null?Cr$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$1([o,a]).pipe(Sr$1())}else return o})}static \u0275fac=function(r){return new(r||t)(b$2(F),b$2(fe$5),b$2(Ze),b$2(Pt$1))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fi$1=new w(""),na=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se;restoredId=0;store={};isHydrating=g(yD,{optional:true})??false;urlSerializer=g(ne);zone=g(G$2);viewportScroller=g(JV);transitions=g(jt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g(gr$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$2(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){kI();};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(pe$4);return n=>{let e=t.get(gr$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 w("",{factory:()=>new ue$4}),_r=new w("",{factory:()=>1});function mi$1(){let t=[{provide:zp,useValue:true},{provide:_r,useValue:0},Iw(()=>{let n=g(pe$4);return n.get(kT,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?Cr$1(void 0):o),i.initialNavigation();}))})];return Je(2,t)}function yi$1(){let t=[Iw(()=>{g(F).setUpLocationChangeListener();}),{provide:_r,useValue:2}];return Je(3,t)}var Ri$1=new w("");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(JV),n=g(ie);return n.scrollOffset&&t.setOffset(n.scrollOffset),new na(n)}}}function sa(){return {provide:yr$1,useClass:jT}}function ca(){return {provide:yr$1,useClass:hm}}function ua(t){return [t.initialNavigation==="disabled"?yi$1().\u0275providers:[],t.initialNavigation==="enabledBlocking"?mi$1().\u0275providers:[]]}var Dr=new w("");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$1(3e3,false)}function wn(){return new m$1(3100,false)}function An(){return new m$1(3101,false)}function Pn(i){return new m$1(3001,false)}function Nn(i){return new m$1(3003,false)}function Cn(i){return new m$1(3004,false)}function vs(i,e){return new m$1(3005,false)}function Ts(){return new m$1(3006,false)}function bs(){return new m$1(3007,false)}function ws(i,e){return new m$1(3008,false)}function As(i){return new m$1(3002,false)}function Ps(i,e,t,s,n){return new m$1(3010,false)}function Ns(){return new m$1(3011,false)}function Cs(){return new m$1(3012,false)}function Ms(){return new m$1(3200,false)}function Ds(){return new m$1(3202,false)}function Fs(){return new m$1(3013,false)}function ks(i){return new m$1(3014,false)}function Rs(i){return new m$1(3015,false)}function Os(i){return new m$1(3016,false)}function Is(i,e){return new m$1(3404,false)}function Mn(i){return new m$1(3502,false)}function Ls(i){return new m$1(3503,false)}function zs(){return new m$1(3300,false)}function Ks(i){return new m$1(3504,false)}function qs(i){return new m$1(3301,false)}function Bs(i,e){return new m$1(3302,false)}function Qs(i){return new m$1(3303,false)}function Vs(i,e){return new m$1(3400,false)}function Us(i){return new m$1(3401,false)}function $s(i){return new m$1(3402,false)}function js(i,e){return new m$1(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 d=y,g=S;if(y!=="offset")switch(d=i.normalizePropertyName(d,n),g){case he:g=t.get(y);break;case K:g=s.get(y);break;default:g=i.normalizeStyleValue(y,d,g,n);break}c.set(d,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",fe="ng-trigger",de=".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=ft(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(Pn());});}var it=new RegExp(`${ut}\\s*(.+?)\\s*${On}`,"g");function ft(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=>{ft(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,d=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=d+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,de).replace(/@\w+/g,t=>de+"-"+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 dt(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=dt(0,0,"");return r.dynamic=true,r.strValue=t,r}let n=me(t,e);return dt(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 dt(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(d=>d.containsAnimation());if(y.length&&a.size){let d;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){d=T;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([a],null,c.errors,l);}return y.length?y.map(d=>d.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"),d=t+y*s;S.set("offset",Js(d/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,d=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:fn(g,S),delay:this.ast.options?.delay},Q=h?[]:hn(e,t,this.ast.animation,r,o,d,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,d,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,d,T,Q,[...w.values()],A,M,D))}};function Jn(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}function fn(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=fn(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=[],dn={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,fe),z(e,fe+"-"+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,fe),z(e,fe+"-"+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),d=false;if(!y){if(!n)return;y=r.fallbackTransition,d=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:o,isFallbackTransition:d}),d||(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,de,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===dn)&&(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,de,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]=dn,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(f=>{h.add(f);let m=this.driver.query(f,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),d=new Map,g=0;y.forEach((f,m)=>{let p=ct+g++;d.set(m,p),f.forEach(E=>z(E,p));});let T=[],w=new Set,A=new Set;for(let f=0;f<this.collectedLeaveElements.length;f++){let m=this.collectedLeaveElements[f],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((f,m)=>{let p=Ce+g++;M.set(m,p),f.forEach(E=>z(E,p));}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(E=>le(E,p));}),N.forEach((f,m)=>{let p=M.get(m);f.forEach(E=>le(E,p));}),T.forEach(f=>{this.processLeaveNode(f);});});let se=[],Q=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].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=d.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 f=[];Q.forEach(m=>{f.push(js(m.triggerName,m.errors));}),se.forEach(m=>m.destroy()),this.reportError(f);}let D=new Map,F=new Map;o.forEach(f=>{let m=f.element;s.has(m)&&(F.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,D));}),n.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,false,f.namespaceId,f.triggerName,null).forEach(E=>{k(D,m,[]).push(E),E.destroy();});});let H=T.filter(f=>an(f,l,u)),ne=new Map;rn(ne,this.driver,A,u,K).forEach(f=>{an(f,l,u)&&H.push(f);});let Y=new Map;y.forEach((f,m)=>{rn(Y,this.driver,new Set(f),l,he);}),H.forEach(f=>{let m=ne.get(f),p=Y.get(f);ne.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]));});let Ge=[],Rt=[],Ot={};o.forEach(f=>{let{element:m,player:p,instruction:E}=f;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(f=>{let m=r.get(f.element);if(m&&m.length){let p=j(m);f.setRealPlayer(p);}}),n.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy();});for(let f=0;f<T.length;f++){let m=T[f],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?fi(this,m,P):this.processLeaveNode(m);}return T.length=0,Ge.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1);}),f.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 d=y.getRealPlayer();d.beforeDestroy&&d.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(d=>{let g=d.element;h.add(g);let T=g[B];if(T&&T.removedBeforeQueried)return new $(d.duration,d.delay);let w=g!==l,A=di((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,d.keyframes,M,N),Q=this._buildPlayer(d,se,A);if(d.subTimeline&&n&&c.add(g),w){let D=new _e(e,a,g);D.setRealPlayer(Q),u.push(D);}return Q});u.forEach(d=>{k(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>ui(this.playersByQueriedElement,d.element,d));}),h.forEach(d=>z(d,ht));let y=j(S);return y.onDestroy(()=>{h.forEach(d=>le(d,ht)),q(l,t.toStyles);}),c.forEach(d=>{k(n,d,[]).push(y);}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new $(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 fi(i,e,t){j(t).onDone(()=>i.processLeaveNode(e));}function di(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((d,g)=>u.set(g,d));});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$4),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:Sn$3,useFactory:bi}],wi=[{provide:ee,useFactory:()=>new Ve},{provide:Av,useFactory:()=>"BrowserAnimations"},...gn];function yn(){return ut$2("NgEagerAnimations"),[...wi]}var Ai=i=>!!i&&i.mode==="laptop"&&i.setupEnabled&&!i.setupDone,Ft=false;var _n=()=>B$2(null,null,function*(){if(Ft)return true;let i=g(R$1),e=g(F),t=yield i.refreshStatus();return t?.setupDone&&(Ft=true),Ai(t)?e.parseUrl("/welcome"):true}),Sn=()=>B$2(null,null,function*(){return (yield g(R$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-DGRCsCJq.js').then(i=>i.WelcomeComponent)},{path:"",pathMatch:"full",redirectTo:"welcome"},{path:"",canActivate:[_n],loadChildren:()=>import('./chunk-DpGfd5zc.js').then(function(n){return n.aa}).then(i=>i.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ci=5e3;function vn(t){return B$2(this,arguments,function*(i,e=Ci){yield hy(i.loadMe().pipe(My(e),da(s=>(console.warn("Failed to load current user",s),Cr$1(null)))),{defaultValue:null});})}function Mi(i){return ()=>B$2(null,null,function*(){let{UserStateService:e}=yield import('./chunk-DpGfd5zc.js').then(function(n){return n.aa});yield vn(i.get(e));})}function Di(i){return ()=>B$2(null,null,function*(){try{let{CompanionStateService:e,TabCoordinatorService:t}=yield import('./chunk-DpGfd5zc.js').then(function(n){return n.aa});qn$3(i,()=>{i.get(t).start();}),i.get(e).startSse();}catch(e){console.warn("Failed to start the companion notification stream",e);}})}var Tn={providers:[Nv(),bB({eventCoalescing:true}),ia(En),nS(),yn(),{provide:Ce$2,useValue:{duration:3e3}},{provide:cl,useFactory:Mi,deps:[pe$4],multi:true},Ol({basePath:"/api/agentos"}),{provide:cl,useFactory:Di,deps:[pe$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"),MC(3,"Loading Coday\u2026"),pl()());}function ki(i,e){if(i&1){let t=qw();Ds$1(0,"div",1)(1,"p"),MC(2,"Coday could not load this page."),pl(),Ds$1(3,"button",3),mg("click",function(){df(t);let n=Xw();return ff(n.reload())}),MC(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=mw({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&&(Pw(0,Fi,4,0,"div",0)(1,ki,5,0,"div",1),lg(2,"router-outlet")),t&2){let n;Lw((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})};Ab(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{wr$1 as $,Af as A,B$2 as B,x$1 as C,Ds$1 as D,ug as E,F,mg as G,Hw as H,Ie$2 as I,J$1 as J,KC as K,Lw as L,MC as M,SI as N,Og as O,Pw as P,Q,R$1 as R,Sg as S,T$3 as T,Ui$1 as U,Vw as V,W$1 as W,Xw as X,MI as Y,br as Z,W$3 as _,pl as a,sC as a$,Me$2 as a0,fa as a1,da as a2,nn$2 as a3,je$2 as a4,yd as a5,x as a6,On$3 as a7,_$1 as a8,F$1 as a9,ie$2 as aA,T$1 as aB,Uy as aC,Z$1 as aD,ve$2 as aE,fe$4 as aF,ue$3 as aG,Y$2 as aH,ue$4 as aI,pb as aJ,Bg as aK,jg as aL,UC as aM,HC as aN,WC as aO,kC as aP,D$1 as aQ,hy as aR,L$2 as aS,Be$2 as aT,A$2 as aU,z$2 as aV,xe$2 as aW,xn$3 as aX,Yu as aY,al as aZ,yt$3 as a_,Cr$1 as aa,kw as ab,Bw as ac,G$1 as ad,U$3 as ae,Ne$2 as af,Ue$1 as ag,ke$3 as ah,md as ai,Ty as aj,Fe$2 as ak,jw as al,qe$2 as am,F$3 as an,k$1 as ao,$e$3 as ap,kg as aq,wy as ar,$t as as,$C as at,GC as au,ZD as av,N$1 as aw,Q$1 as ax,Se$2 as ay,ne$3 as az,gl as b,G$2 as b$,Eg as b0,rC as b1,oC as b2,DB as b3,AT as b4,eC as b5,tC as b6,vB as b7,Ni$2 as b8,di$2 as b9,xe$1 as bA,Ay as bB,en$1 as bC,ig as bD,BC as bE,Dg as bF,U$4 as bG,we$1 as bH,L$1 as bI,Zn$2 as bJ,Os$1 as bK,gt$2 as bL,_t$3 as bM,Ke$2 as bN,Mo$1 as bO,ng as bP,_t$4 as bQ,Ce$5 as bR,Oe$1 as bS,si$2 as bT,by as bU,li$3 as bV,va as bW,b$2 as bX,Tf as bY,pr$1 as bZ,mt$3 as b_,EB as ba,IB as bb,wg as bc,iC as bd,pd as be,Id as bf,w as bg,Os$2 as bh,Br as bi,ze$2 as bj,Rp as bk,gr$1 as bl,sm as bm,hE as bn,Ea as bo,Se$3 as bp,ee$3 as bq,Yg as br,sn$2 as bs,qs$1 as bt,ri$2 as bu,W$2 as bv,$e$2 as bw,at$2 as bx,ss as by,pt$3 as bz,hg as c,fe$5 as c$,Cd as c0,Cn$2 as c1,Ht as c2,yn$1 as c3,Ot$1 as c4,Ft$1 as c5,kI as c6,wi$2 as c7,v as c8,Ln$2 as c9,re$3 as cA,Mn$2 as cB,De$2 as cC,fb as cD,SB as cE,We$1 as cF,My as cG,K$3 as cH,hd as cI,jy as cJ,Hy as cK,$y as cL,me$3 as cM,wB as cN,be$3 as cO,ky as cP,Mr$1 as cQ,ma as cR,cb as cS,Le$1 as cT,oe$2 as cU,JC as cV,ne$2 as cW,se$1 as cX,Ge$2 as cY,bf as cZ,R$2 as c_,ha as ca,ht$3 as cb,Oy as cc,Rs$1 as cd,Ye$1 as ce,hn$1 as cf,Ci$3 as cg,Du as ch,ww as ci,rS as cj,cr$1 as ck,m$1 as cl,ab as cm,og as cn,pg as co,qC as cp,He$1 as cq,ta as cr,xy as cs,pa as ct,Ly as cu,ui$3 as cv,hr$1 as cw,de$4 as cx,Pe$1 as cy,Ce$4 as cz,dg as d,_B as d0,_e$3 as d1,Je$2 as d2,dn$1 as d3,db as d4,te$3 as d5,ce as d6,pt$2 as d7,FC as d8,Pg as d9,Lg as da,CB as db,Ig as dc,le$3 as dd,Fg as de,cg as e,b$1 as f,g,hl as h,VC as i,jE as j,df as k,lg as l,mw as m,ff as n,oh as o,pe$4 as p,qw as q,yC as r,bg as s,Xm as t,y as u,vl as v,wo$1 as w,U$2 as x,yg as y,w$1 as z};