git-history-ui 2.0.2 → 3.0.0

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 (67) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/README.md +100 -10
  3. package/build/frontend/chunk-2QTYGOOP.js +1 -0
  4. package/build/frontend/chunk-36NFLS3P.js +1 -0
  5. package/build/frontend/chunk-3FFYILBL.js +1 -0
  6. package/build/frontend/chunk-C56FFICU.js +2 -0
  7. package/build/frontend/chunk-HIERJLKT.js +1 -0
  8. package/build/frontend/chunk-HYRHOB47.js +7 -0
  9. package/build/frontend/chunk-ITIFFECZ.js +1 -0
  10. package/build/frontend/chunk-N7UHDKJ7.js +1 -0
  11. package/build/frontend/chunk-NUMLL3OZ.js +1 -0
  12. package/build/frontend/chunk-TQE5NWMZ.js +5 -0
  13. package/build/frontend/chunk-TQVUSJBM.js +1 -0
  14. package/build/frontend/chunk-YSTG766K.js +1 -0
  15. package/build/frontend/index.html +2 -2
  16. package/build/frontend/main-44WYBFGF.js +1 -0
  17. package/build/frontend/styles-GSJUSSXL.css +1 -0
  18. package/dist/backend/aggregations.d.ts +57 -0
  19. package/dist/backend/aggregations.js +130 -0
  20. package/dist/backend/aggregations.js.map +1 -0
  21. package/dist/backend/annotations.d.ts +30 -0
  22. package/dist/backend/annotations.js +90 -0
  23. package/dist/backend/annotations.js.map +1 -0
  24. package/dist/backend/gitService.d.ts +14 -0
  25. package/dist/backend/gitService.js +81 -0
  26. package/dist/backend/gitService.js.map +1 -1
  27. package/dist/backend/grouping/prGrouping.d.ts +39 -0
  28. package/dist/backend/grouping/prGrouping.js +210 -0
  29. package/dist/backend/grouping/prGrouping.js.map +1 -0
  30. package/dist/backend/impact.d.ts +16 -0
  31. package/dist/backend/impact.js +66 -0
  32. package/dist/backend/impact.js.map +1 -0
  33. package/dist/backend/insights.d.ts +9 -0
  34. package/dist/backend/insights.js +44 -0
  35. package/dist/backend/insights.js.map +1 -0
  36. package/dist/backend/llm/anthropicProvider.d.ts +13 -0
  37. package/dist/backend/llm/anthropicProvider.js +90 -0
  38. package/dist/backend/llm/anthropicProvider.js.map +1 -0
  39. package/dist/backend/llm/heuristicProvider.d.ts +15 -0
  40. package/dist/backend/llm/heuristicProvider.js +127 -0
  41. package/dist/backend/llm/heuristicProvider.js.map +1 -0
  42. package/dist/backend/llm/index.d.ts +17 -0
  43. package/dist/backend/llm/index.js +66 -0
  44. package/dist/backend/llm/index.js.map +1 -0
  45. package/dist/backend/llm/openaiProvider.d.ts +13 -0
  46. package/dist/backend/llm/openaiProvider.js +100 -0
  47. package/dist/backend/llm/openaiProvider.js.map +1 -0
  48. package/dist/backend/llm/types.d.ts +32 -0
  49. package/dist/backend/llm/types.js +3 -0
  50. package/dist/backend/llm/types.js.map +1 -0
  51. package/dist/backend/search/datePhrase.d.ts +20 -0
  52. package/dist/backend/search/datePhrase.js +113 -0
  53. package/dist/backend/search/datePhrase.js.map +1 -0
  54. package/dist/backend/search/nlSearch.d.ts +39 -0
  55. package/dist/backend/search/nlSearch.js +90 -0
  56. package/dist/backend/search/nlSearch.js.map +1 -0
  57. package/dist/backend/server.d.ts +3 -0
  58. package/dist/backend/server.js +137 -2
  59. package/dist/backend/server.js.map +1 -1
  60. package/dist/backend/snapshot.d.ts +16 -0
  61. package/dist/backend/snapshot.js +42 -0
  62. package/dist/backend/snapshot.js.map +1 -0
  63. package/docs/launch.md +66 -0
  64. package/docs/screenshot.png +0 -0
  65. package/package.json +13 -3
  66. package/build/frontend/main-GGMHSSIF.js +0 -11
  67. package/build/frontend/styles-CO6MLMTR.css +0 -1
@@ -0,0 +1 @@
1
+ import{$ as a,W as n,mc as r,nc as m}from"./chunk-TQE5NWMZ.js";var o=class s{http=a(m);base="/api";bundle(t={}){let i=new r;for(let[p,e]of Object.entries(t))e!=null&&(i=i.set(p,String(e)));return this.http.get(`${this.base}/insights`,{params:i})}fileStats(t){let i=new r().set("file",t);return this.http.get(`${this.base}/file-stats`,{params:i})}impact(t){return this.http.get(`${this.base}/impact/${t}`)}summarizeDiff(t){return this.http.post(`${this.base}/summarize-diff`,{text:t})}explainCommit(t){return this.http.post(`${this.base}/explain-commit/${t}`,{})}static \u0275fac=function(i){return new(i||s)};static \u0275prov=n({token:s,factory:s.\u0275fac,providedIn:"root"})};export{o as a};
@@ -0,0 +1 @@
1
+ import{Sb as g,W as i,a as l,b as d,oa as e}from"./chunk-TQE5NWMZ.js";var u=class a{filters=e({page:1,pageSize:100});commits=e([]);total=e(0);page=e(1);pageSize=e(100);loading=e(!1);error=e(null);authors=e([]);branches=e([]);tags=e([]);selectedHash=e(null);selected=g(()=>{let t=this.selectedHash();return t?this.commits().find(n=>n.hash===t)??null:null});paletteOpen=e(!1);shortcutsOpen=e(!1);graphVisible=e(!0);viewMode=e("flat");searchMode=e("classic");nlInterpretation=e(null);patchFilters(t){this.filters.update(n=>d(l(l({},n),t),{page:t.page??1}))}selectHash(t){this.selectedHash.set(t)}selectByOffset(t){let n=this.commits();if(n.length===0)return;let s=this.selectedHash(),r=s?n.findIndex(m=>m.hash===s):-1,o=r===-1?t>0?0:n.length-1:r+t;o=Math.max(0,Math.min(n.length-1,o)),this.selectedHash.set(n[o].hash)}static \u0275fac=function(n){return new(n||a)};static \u0275prov=i({token:a,factory:a.\u0275fac,providedIn:"root"})};export{u as a};
@@ -0,0 +1 @@
1
+ import{$ as n,W as a,mc as r,nc as m}from"./chunk-TQE5NWMZ.js";var o=class s{http=n(m);base="/api";getCommits(t={}){let e=new r;for(let[b,i]of Object.entries(t))i!=null&&i!==""&&(e=e.set(b,String(i)));return this.http.get(`${this.base}/commits`,{params:e})}getCommit(t){return this.http.get(`${this.base}/commit/${t}`)}getDiff(t){return this.http.get(`${this.base}/diff/${t}`)}getBlame(t){let e=new r().set("file",t);return this.http.get(`${this.base}/blame`,{params:e})}getTags(){return this.http.get(`${this.base}/tags`)}getBranches(){return this.http.get(`${this.base}/branches`)}getAuthors(){return this.http.get(`${this.base}/authors`)}static \u0275fac=function(e){return new(e||s)};static \u0275prov=a({token:s,factory:s.\u0275fac,providedIn:"root"})};export{o as a};
@@ -0,0 +1,5 @@
1
+ var gg=Object.create;var ps=Object.defineProperty,mg=Object.defineProperties,yg=Object.getOwnPropertyDescriptor,vg=Object.getOwnPropertyDescriptors,Dg=Object.getOwnPropertyNames,Hu=Object.getOwnPropertySymbols,Eg=Object.getPrototypeOf,Uu=Object.prototype.hasOwnProperty,Ig=Object.prototype.propertyIsEnumerable;var $u=(e,t,n)=>t in e?ps(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H=(e,t)=>{for(var n in t||={})Uu.call(t,n)&&$u(e,n,t[n]);if(Hu)for(var n of Hu(t))Ig.call(t,n)&&$u(e,n,t[n]);return e},Y=(e,t)=>mg(e,vg(t));var dC=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var wg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Dg(t))!Uu.call(e,o)&&o!==n&&ps(e,o,{get:()=>t[o],enumerable:!(r=yg(t,o))||r.enumerable});return e};var fC=(e,t,n)=>(n=e!=null?gg(Eg(e)):{},wg(t||!e||!e.__esModule?ps(n,"default",{value:e,enumerable:!0}):n,e));var en=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});var hs;function Ur(){return hs}function Re(e){let t=hs;return hs=e,t}var zu=Symbol("NotFound");function tn(e){return e===zu||e?.name==="\u0275NotFound"}function Zr(e,t){return Object.is(e,t)}var J=null,zr=!1,gs=1,Cg=null,X=Symbol("SIGNAL");function T(e){let t=J;return J=e,t}function Yr(){return J}var rt={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function nn(e){if(zr)throw new Error("");if(J===null)return;J.consumerOnSignalRead(e);let t=J.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=J.recomputing;if(r&&(n=t!==void 0?t.nextProducer:J.producers,n!==void 0&&n.producer===e)){J.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===J&&(!r||_g(o,J)))return;let i=on(J),s={producer:e,consumer:J,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};J.producersTail=s,t!==void 0?t.nextProducer=s:J.producers=s,i&&Wu(e,s)}function Gu(){gs++}function Qr(e){if(!(on(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===gs)){if(!e.producerMustRecompute(e)&&!rn(e)){qr(e);return}e.producerRecomputeValue(e),qr(e)}}function ms(e){if(e.consumers===void 0)return;let t=zr;zr=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||bg(r)}}finally{zr=t}}function ys(){return J?.consumerAllowSignalWrites!==!1}function bg(e){e.dirty=!0,ms(e),e.consumerMarkedDirty?.(e)}function qr(e){e.dirty=!1,e.lastCleanEpoch=gs}function ot(e){return e&&(e.producersTail=void 0,e.recomputing=!0),T(e)}function bt(e,t){if(T(t),!e)return;e.recomputing=!1;let n=e.producersTail,r=n!==void 0?n.nextProducer:e.producers;if(r!==void 0){if(on(e))do r=vs(r);while(r!==void 0);n!==void 0?n.nextProducer=void 0:e.producers=void 0}}function rn(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Qr(n),r!==n.version))return!0}return!1}function _t(e){if(on(e)){let t=e.producers;for(;t!==void 0;)t=vs(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Wu(e,t){let n=e.consumersTail,r=on(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)Wu(o.producer,o)}function vs(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,!on(t)){let i=t.producers;for(;i!==void 0;)i=vs(i)}return n}function on(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Kr(e){Cg?.(e)}function _g(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Jr(e,t){let n=Object.create(Tg);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Qr(n),nn(n),n.value===$n)throw n.error;return n.value};return r[X]=n,Kr(n),r}var Gr=Symbol("UNSET"),Wr=Symbol("COMPUTING"),$n=Symbol("ERRORED"),Tg=Y(H({},rt),{value:Gr,dirty:!0,error:null,equal:Zr,kind:"computed",producerMustRecompute(e){return e.value===Gr||e.value===Wr},producerRecomputeValue(e){if(e.value===Wr)throw new Error("");let t=e.value;e.value=Wr;let n=ot(e),r,o=!1;try{r=e.computation(),T(null),o=t!==Gr&&t!==$n&&r!==$n&&e.equal(t,r)}catch(i){r=$n,e.error=i}finally{bt(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Mg(){throw new Error}var qu=Mg;function Zu(e){qu(e)}function Ds(e){qu=e}var Ng=null;function Es(e,t){let n=Object.create(Xr);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Yu(n);return r[X]=n,Kr(n),[r,s=>sn(n,s),s=>Is(n,s)]}function Yu(e){return nn(e),e.value}function sn(e,t){ys()||Zu(e),e.equal(e.value,t)||(e.value=t,Sg(e))}function Is(e,t){ys()||Zu(e),sn(e,t(e.value))}var Xr=Y(H({},rt),{equal:Zr,value:void 0,kind:"signal"});function Sg(e){e.version++,Gu(),ms(e),Ng?.(e)}function M(e){return typeof e=="function"}function an(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 eo=an(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Tt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var j=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){t=i instanceof eo?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Qu(i)}catch(s){t=t??[],s instanceof eo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new eo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Qu(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)&&Tt(n,t)}remove(t){let{_finalizers:n}=this;n&&Tt(n,t),t instanceof e&&t._removeParent(this)}};j.EMPTY=(()=>{let e=new j;return e.closed=!0,e})();var ws=j.EMPTY;function to(e){return e instanceof j||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function Qu(e){M(e)?e():e.unsubscribe()}var Ie={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var cn={setTimeout(e,t,...n){let{delegate:r}=cn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=cn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function no(e){cn.setTimeout(()=>{let{onUnhandledError:t}=Ie;if(t)t(e);else throw e})}function Un(){}var Ku=Cs("C",void 0,void 0);function Ju(e){return Cs("E",void 0,e)}function Xu(e){return Cs("N",e,void 0)}function Cs(e,t,n){return{kind:e,value:t,error:n}}var Mt=null;function un(e){if(Ie.useDeprecatedSynchronousErrorHandling){let t=!Mt;if(t&&(Mt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Mt;if(Mt=null,n)throw r}}else e()}function el(e){Ie.useDeprecatedSynchronousErrorHandling&&Mt&&(Mt.errorThrown=!0,Mt.error=e)}var Nt=class extends j{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,to(t)&&t.add(this)):this.destination=Rg}static create(t,n,r){return new ze(t,n,r)}next(t){this.isStopped?_s(Xu(t),this):this._next(t)}error(t){this.isStopped?_s(Ju(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?_s(Ku,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},xg=Function.prototype.bind;function bs(e,t){return xg.call(e,t)}var Ts=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ro(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ro(r)}else ro(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ro(n)}}},ze=class extends Nt{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{let i;this&&Ie.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&bs(t.next,i),error:t.error&&bs(t.error,i),complete:t.complete&&bs(t.complete,i)}):o=t}this.destination=new Ts(o)}};function ro(e){Ie.useDeprecatedSynchronousErrorHandling?el(e):no(e)}function Ag(e){throw e}function _s(e,t){let{onStoppedNotification:n}=Ie;n&&cn.setTimeout(()=>n(e,t))}var Rg={closed:!0,next:Un,error:Ag,complete:Un};var ln=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ne(e){return e}function Og(...e){return Ms(e)}function Ms(e){return e.length===0?ne:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var S=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=kg(n)?n:new ze(n,r,o);return un(()=>{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=tl(r),new r((o,i)=>{let s=new ze({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](){return this}pipe(...n){return Ms(n)(this)}toPromise(n){return n=tl(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 tl(e){var t;return(t=e??Ie.Promise)!==null&&t!==void 0?t:Promise}function Fg(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function kg(e){return e&&e instanceof Nt||Fg(e)&&to(e)}function Ns(e){return M(e?.lift)}function C(e){return t=>{if(Ns(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 w(e,t,n,r,o){return new Ss(e,t,n,r,o)}var Ss=class extends Nt{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 xs(){return C((e,t)=>{let n=null;e._refCount++;let r=w(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var As=class extends S{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ns(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new j;let n=this.getSubject();t.add(this.source.subscribe(w(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=j.EMPTY)}return t}refCount(){return xs()(this)}};var dn={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=dn;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new j(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=dn;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=dn;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var nl=an(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=(()=>{class e extends S{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new oo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new nl}next(n){un(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){un(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){un(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ws:(this.currentObservers=null,i.push(n),new j(()=>{this.currentObservers=null,Tt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new S;return n.source=this,n}}return e.create=(t,n)=>new oo(t,n),e})(),oo=class extends ce{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ws}};var zn=class extends ce{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Gn={now(){return(Gn.delegate||Date).now()},delegate:void 0};var Wn=class extends ce{constructor(t=1/0,n=1/0,r=Gn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;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)}}};var io=class extends j{constructor(t,n){super()}schedule(t,n=0){return this}};var qn={setInterval(e,t,...n){let{delegate:r}=qn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=qn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var it=class extends io{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}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=!0,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 qn.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&qn.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,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=!1,Tt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Pg=1,Rs,Os={};function rl(e){return e in Os?(delete Os[e],!0):!1}var ol={setImmediate(e){let t=Pg++;return Os[t]=!0,Rs||(Rs=Promise.resolve()),Rs.then(()=>rl(t)&&e()),t},clearImmediate(e){rl(e)}};var{setImmediate:Lg,clearImmediate:jg}=ol,Zn={setImmediate(...e){let{delegate:t}=Zn;return(t?.setImmediate||Lg)(...e)},clearImmediate(e){let{delegate:t}=Zn;return(t?.clearImmediate||jg)(e)},delegate:void 0};var so=class extends it{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Zn.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Zn.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var fn=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)}};fn.now=Gn.now;var st=class extends fn{constructor(t,n=fn.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var ao=class extends st{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Vg=new ao(so);var Yn=new st(it),il=Yn;var co=class extends it{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=dn.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(dn.cancelAnimationFrame(n),t._scheduled=void 0)}};var uo=class extends st{flush(t){this._active=!0;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Bg=new uo(co);var Qn=new S(e=>e.complete());function lo(e){return e&&M(e.schedule)}function sl(e){return e[e.length-1]}function fo(e){return M(sl(e))?e.pop():void 0}function at(e){return lo(sl(e))?e.pop():void 0}function cl(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,t||[])).next())})}function al(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 St(e){return this instanceof St?(this.v=e,this):new St(e)}function ul(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(v){return new Promise(function(y,g){i.push([f,v,y,g])>1||c(f,v)})},h&&(o[f]=h(o[f])))}function c(f,h){try{u(r[f](h))}catch(v){p(i[0][3],v)}}function u(f){f.value instanceof St?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 ll(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 al=="function"?al(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 po=e=>e&&typeof e.length=="number"&&typeof e!="function";function ho(e){return M(e?.then)}function go(e){return M(e[ln])}function mo(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function yo(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 Hg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var vo=Hg();function Do(e){return M(e?.[vo])}function Eo(e){return ul(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield St(n.read());if(o)return yield St(void 0);yield yield St(r)}}finally{n.releaseLock()}})}function Io(e){return M(e?.getReader)}function k(e){if(e instanceof S)return e;if(e!=null){if(go(e))return $g(e);if(po(e))return Ug(e);if(ho(e))return zg(e);if(mo(e))return dl(e);if(Do(e))return Gg(e);if(Io(e))return Wg(e)}throw yo(e)}function $g(e){return new S(t=>{let n=e[ln]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ug(e){return new S(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function zg(e){return new S(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,no)})}function Gg(e){return new S(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function dl(e){return new S(t=>{qg(e,t).catch(n=>t.error(n))})}function Wg(e){return dl(Eo(e))}function qg(e,t){var n,r,o,i;return cl(this,void 0,void 0,function*(){try{for(n=ll(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 ue(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function wo(e,t=0){return C((n,r)=>{n.subscribe(w(r,o=>ue(r,e,()=>r.next(o),t),()=>ue(r,e,()=>r.complete(),t),o=>ue(r,e,()=>r.error(o),t)))})}function Co(e,t=0){return C((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function fl(e,t){return k(e).pipe(Co(t),wo(t))}function pl(e,t){return k(e).pipe(Co(t),wo(t))}function hl(e,t){return new S(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function gl(e,t){return new S(n=>{let r;return ue(n,t,()=>{r=e[vo](),ue(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function bo(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(n=>{ue(n,t,()=>{let r=e[Symbol.asyncIterator]();ue(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function ml(e,t){return bo(Eo(e),t)}function yl(e,t){if(e!=null){if(go(e))return fl(e,t);if(po(e))return hl(e,t);if(ho(e))return pl(e,t);if(mo(e))return bo(e,t);if(Do(e))return gl(e,t);if(Io(e))return ml(e,t)}throw yo(e)}function ct(e,t){return t?yl(e,t):k(e)}function _o(...e){let t=at(e);return ct(e,t)}function Zg(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new S(t?o=>t.schedule(r,0,o):r)}function Yg(e){return!!e&&(e instanceof S||M(e.lift)&&M(e.subscribe))}var xt=an(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function vl(e){return e instanceof Date&&!isNaN(e)}function me(e,t){return C((n,r)=>{let o=0;n.subscribe(w(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Qg}=Array;function Kg(e,t){return Qg(t)?e(...t):e(t)}function To(e){return me(t=>Kg(e,t))}var{isArray:Jg}=Array,{getPrototypeOf:Xg,prototype:em,keys:tm}=Object;function Mo(e){if(e.length===1){let t=e[0];if(Jg(t))return{args:t,keys:null};if(nm(t)){let n=tm(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function nm(e){return e&&typeof e=="object"&&Xg(e)===em}function No(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function rm(...e){let t=at(e),n=fo(e),{args:r,keys:o}=Mo(e);if(r.length===0)return ct([],t);let i=new S(om(r,t,o?s=>No(o,s):ne));return n?i.pipe(To(n)):i}function om(e,t,n=ne){return r=>{Dl(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Dl(t,()=>{let u=ct(e[c],t),l=!1;u.subscribe(w(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Dl(e,t,n){e?ue(n,e,t):t()}function El(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,p=()=>{d&&!c.length&&!u&&t.complete()},f=v=>u<r?h(v):c.push(v),h=v=>{i&&t.next(v),u++;let y=!1;k(n(v,l++)).subscribe(w(t,g=>{o?.(g),i?f(g):t.next(g)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;c.length&&u<r;){let g=c.shift();s?ue(t,s,()=>h(g)):h(g)}p()}catch(g){t.error(g)}}))};return e.subscribe(w(t,f,()=>{d=!0,p()})),()=>{a?.()}}function At(e,t,n=1/0){return M(t)?At((r,o)=>me((i,s)=>t(r,i,o,s))(k(e(r,o))),n):(typeof t=="number"&&(n=t),C((r,o)=>El(r,o,e,n)))}function Fs(e=1/0){return At(ne,e)}function Il(){return Fs(1)}function So(...e){return Il()(ct(e,at(e)))}function im(e){return new S(t=>{k(e()).subscribe(t)})}function sm(...e){let t=fo(e),{args:n,keys:r}=Mo(e),o=new S(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=!1;k(n[l]).subscribe(w(i,p=>{d||(d=!0,u--),a[l]=p},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?No(r,a):a),i.complete())}))}});return t?o.pipe(To(t)):o}function wl(e=0,t,n=il){let r=-1;return t!=null&&(lo(t)?n=t:r=t),new S(o=>{let i=vl(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 Rt(e,t){return C((n,r)=>{let o=0;n.subscribe(w(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Cl(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(w(n,u=>{r=!0,o=u,i||k(e(u)).subscribe(i=w(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function am(e,t=Yn){return Cl(()=>wl(e,t))}function ks(e){return C((t,n)=>{let r=null,o=!1,i;r=t.subscribe(w(n,void 0,void 0,s=>{i=k(e(s,ks(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function bl(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(w(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Ps(e,t){return M(t)?At(e,t,1):At(e,1)}function cm(e,t=Yn){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(w(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 Kn(e){return C((t,n)=>{let r=!1;t.subscribe(w(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Ls(e){return e<=0?()=>Qn:C((t,n)=>{let r=0;t.subscribe(w(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function um(e,t=ne){return e=e??lm,C((n,r)=>{let o,i=!0;n.subscribe(w(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function lm(e,t){return e===t}function xo(e=dm){return C((t,n)=>{let r=!1;t.subscribe(w(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function dm(){return new xt}function js(e){return C((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function fm(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Rt((o,i)=>e(o,i,r)):ne,Ls(1),n?Kn(t):xo(()=>new xt))}function Vs(e){return e<=0?()=>Qn:C((t,n)=>{let r=[];t.subscribe(w(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 pm(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Rt((o,i)=>e(o,i,r)):ne,Vs(1),n?Kn(t):xo(()=>new xt))}function hm(){return C((e,t)=>{let n,r=!1;e.subscribe(w(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function gm(e,t){return C(bl(e,t,arguments.length>=2,!0))}function _l(e={}){let{connector:t=()=>new ce,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,u=0,l=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,l=d=!1},h=()=>{let v=s;f(),v?.unsubscribe()};return C((v,y)=>{u++,!d&&!l&&p();let g=c=c??t();y.add(()=>{u--,u===0&&!d&&!l&&(a=Bs(h,o))}),g.subscribe(y),!s&&u>0&&(s=new ze({next:z=>g.next(z),error:z=>{d=!0,p(),a=Bs(f,n,z),g.error(z)},complete:()=>{l=!0,p(),a=Bs(f,r),g.complete()}}),k(v).subscribe(s))})(i)}}function Bs(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new ze({next:()=>{r.unsubscribe(),e()}});return k(t(...n)).subscribe(r)}function mm(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,_l({connector:()=>new Wn(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function ym(...e){let t=at(e);return C((n,r)=>{(t?So(e,n,t):So(e,n)).subscribe(r)})}function Ao(e,t){return C((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(w(r,c=>{o?.unsubscribe();let u=0,l=i++;k(e(c,l)).subscribe(o=w(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function vm(e){return C((t,n)=>{k(e).subscribe(w(n,()=>n.complete(),Un)),!n.closed&&t.subscribe(n)})}function Dm(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(w(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)}))}):ne}function Tl(e){let t=T(null);try{return e()}finally{T(t)}}var Po="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",D=class extends Error{code;constructor(t,n){super(Lt(t,n)),this.code=t}};function Em(e){return`NG0${Math.abs(e)}`}function Lt(e,t){return`${Em(e)}${t?": "+t:""}`}var Fe=globalThis;function A(e){for(let t in e)if(e[t]===A)return t;throw Error("")}function Sl(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function We(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(We).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 Lo(e,t){return e?t?`${e} ${t}`:e:t||""}var Im=A({__forward_ref__:A});function jo(e){return e.__forward_ref__=jo,e.toString=function(){return We(this())},e}function Q(e){return Js(e)?e():e}function Js(e){return typeof e=="function"&&e.hasOwnProperty(Im)&&e.__forward_ref__===jo}function xl(e,t){e==null&&Xs(t,e,null,"!=")}function Xs(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function rr(e){return{providers:e.providers||[],imports:e.imports||[]}}function or(e){return Cm(e,Vo)}function wm(e){return or(e)!==null}function Cm(e,t){return e.hasOwnProperty(t)&&e[t]||null}function bm(e){let t=e?.[Vo]??null;return t||null}function $s(e){return e&&e.hasOwnProperty(Oo)?e[Oo]:null}var Vo=A({\u0275prov:A}),Oo=A({\u0275inj:A}),b=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 ea(e){return e&&!!e.\u0275providers}var ta=A({\u0275cmp:A}),na=A({\u0275dir:A}),ra=A({\u0275pipe:A}),oa=A({\u0275mod:A}),er=A({\u0275fac:A}),jt=A({__NG_ELEMENT_ID__:A}),Ml=A({__NG_ENV_ID__:A});function ie(e){return typeof e=="string"?e:e==null?"":String(e)}function Fo(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ie(e)}var ia=A({ngErrorCode:A}),Al=A({ngErrorMessage:A}),Xn=A({ngTokenPath:A});function sa(e,t){return Rl("",-200,t)}function Bo(e,t){throw new D(-201,!1)}function _m(e,t){e[Xn]??=[];let n=e[Xn],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(xl(t.provide,"Token with multi: true should have a provide property"),r=Fo(t.provide)):r=Fo(t),n[0]!==r&&e[Xn].unshift(r)}function Tm(e,t){let n=e[Xn],r=e[ia],o=e[Al]||e.message;return e.message=Nm(o,r,n,t),e}function Rl(e,t,n){let r=new D(t,e);return r[ia]=t,r[Al]=e,n&&(r[Xn]=n),r}function Mm(e){return e[ia]}function Nm(e,t,n=[],r=null){let o="";n&&n.length>1&&(o=` Path: ${n.join(" -> ")}.`);let i=r?` Source: ${r}.`:"";return Lt(t,`${e}${i}${o}`)}var Us;function Ol(){return Us}function re(e){let t=Us;return Us=e,t}function aa(e,t,n){let r=or(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;Bo(e,"Injector")}var Sm={},Ot=Sm,zs="__NG_DI_FLAG__",Gs=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Ft(n)||0;try{return this.injector.get(t,r&8?null:Ot,r)}catch(o){if(tn(o))return o;throw o}}};function xm(e,t=0){let n=Ur();if(n===void 0)throw new D(-203,!1);if(n===null)return aa(e,void 0,t);{let r=Am(t),o=n.retrieve(e,r);if(tn(o)){if(r.optional)return null;throw o}return o}}function L(e,t=0){return(Ol()||xm)(Q(e),t)}function m(e,t){return L(e,Ft(t))}function Ft(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Am(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Ws(e){let t=[];for(let n=0;n<e.length;n++){let r=Q(e[n]);if(Array.isArray(r)){if(r.length===0)throw new D(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Rm(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(L(o,i))}else t.push(L(r))}return t}function Ho(e,t){return e[zs]=t,e.prototype[zs]=t,e}function Rm(e){return e[zs]}function ut(e,t){let n=e.hasOwnProperty(er);return n?e[er]:null}function Fl(e,t,n){if(e.length!==t.length)return!1;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!1}return!0}function kl(e){return e.flat(Number.POSITIVE_INFINITY)}function $o(e,t){e.forEach(n=>Array.isArray(n)?$o(n,t):t(n))}function ca(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ir(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Pl(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Ll(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 Uo(e,t,n){let r=hn(e,t);return r>=0?e[r|1]=n:(r=~r,Ll(e,r,t,n)),r}function zo(e,t){let n=hn(e,t);if(n>=0)return e[n|1]}function hn(e,t){return Om(e,t,1)}function Om(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 dt={},oe=[],Vt=new b(""),ua=new b("",-1),la=new b(""),tr=class{get(t,n=Ot){if(n===Ot){let o=Rl("",-201);throw o.name="\u0275NotFound",o}return n}};function da(e){return e[oa]||null}function ft(e){return e[ta]||null}function fa(e){return e[na]||null}function jl(e){return e[ra]||null}function sr(e){return{\u0275providers:e}}function Vl(...e){return{\u0275providers:pa(!0,e),\u0275fromNgModule:!0}}function pa(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return $o(t,s=>{let a=s;ko(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Bl(o,i),n}function Bl(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ha(o,i=>{t(i,r)})}}function ko(e,t,n,r){if(e=Q(e),!e)return!1;let o=null,i=$s(e),s=!i&&ft(e);if(!i&&!s){let c=e.ngModule;if(i=$s(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)ko(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{$o(i.imports,l=>{ko(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Bl(u,t)}if(!a){let u=ut(o)||(()=>new o);t({provide:o,useFactory:u,deps:oe},o),t({provide:la,useValue:o,multi:!0},o),t({provide:Vt,useValue:()=>L(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;ha(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function ha(e,t){for(let n of e)ea(n)&&(n=n.\u0275providers),Array.isArray(n)?ha(n,t):t(n)}var Fm=A({provide:String,useValue:A});function Hl(e){return e!==null&&typeof e=="object"&&Fm in e}function km(e){return!!(e&&e.useExisting)}function Pm(e){return!!(e&&e.useFactory)}function kt(e){return typeof e=="function"}function $l(e){return!!e.useClass}var ga=new b(""),Ro={},Nl={},Hs;function ar(){return Hs===void 0&&(Hs=new tr),Hs}var le=class{},Pt=class extends le{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Zs(t,s=>this.processProvider(s)),this.records.set(ua,pn(void 0,this)),o.has("environment")&&this.records.set(le,pn(void 0,this));let i=this.records.get(ga);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(la,oe,{self:!0}))}retrieve(t,n){let r=Ft(n)||0;try{return this.get(t,Ot,r)}catch(o){if(tn(o))return o;throw o}}destroy(){Jn(this),this._destroyed=!0;let t=T(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(),T(t)}}onDestroy(t){return Jn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Jn(this);let n=Re(this),r=re(void 0),o;try{return t()}finally{Re(n),re(r)}}get(t,n=Ot,r){if(Jn(this),t.hasOwnProperty(Ml))return t[Ml](this);let o=Ft(r),i,s=Re(this),a=re(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Hm(t)&&or(t);l&&this.injectableDefInScope(l)?u=pn(qs(t),Ro):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?ar():this.parent;return n=o&8&&n===Ot?null:n,c.get(t,n)}catch(c){let u=Mm(c);throw u===-200||u===-201?new D(u,null):c}finally{re(a),Re(s)}}resolveInjectorInitializers(){let t=T(null),n=Re(this),r=re(void 0),o;try{let i=this.get(Vt,oe,{self:!0});for(let s of i)s()}finally{Re(n),re(r),T(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(We(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Q(t);let n=kt(t)?t:Q(t&&t.provide),r=jm(t);if(!kt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=pn(void 0,Ro,!0),o.factory=()=>Ws(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=T(null);try{if(n.value===Nl)throw sa(We(t));return n.value===Ro&&(n.value=Nl,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Bm(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Q(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 qs(e){let t=or(e),n=t!==null?t.factory:ut(e);if(n!==null)return n;if(e instanceof b)throw new D(204,!1);if(e instanceof Function)return Lm(e);throw new D(204,!1)}function Lm(e){if(e.length>0)throw new D(204,!1);let n=bm(e);return n!==null?()=>n.factory(e):()=>new e}function jm(e){if(Hl(e))return pn(void 0,e.useValue);{let t=ma(e);return pn(t,Ro)}}function ma(e,t,n){let r;if(kt(e)){let o=Q(e);return ut(o)||qs(o)}else if(Hl(e))r=()=>Q(e.useValue);else if(Pm(e))r=()=>e.useFactory(...Ws(e.deps||[]));else if(km(e))r=(o,i)=>L(Q(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Q(e&&(e.useClass||e.provide));if(Vm(e))r=()=>new o(...Ws(e.deps));else return ut(o)||qs(o)}return r}function Jn(e){if(e.destroyed)throw new D(205,!1)}function pn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Vm(e){return!!e.deps}function Bm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Hm(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Zs(e,t){for(let n of e)Array.isArray(n)?Zs(n,t):n&&ea(n)?Zs(n.\u0275providers,t):t(n)}function gn(e,t){let n;e instanceof Pt?(Jn(e),n=e):n=new Gs(e);let r,o=Re(n),i=re(void 0);try{return t()}finally{Re(o),re(i)}}function Ul(){return Ol()!==void 0||Ur()!=null}var Ce=0,E=1,I=2,q=3,ye=4,se=5,mn=6,yn=7,ee=8,Bt=9,ke=10,P=11,vn=12,ya=13,Ht=14,de=15,pt=16,$t=17,Pe=18,cr=19,va=20,Ge=21,Go=22,Ze=23,he=24,Ut=25,V=26,zl=1;var ht=7,ur=8,zt=9,ae=10;function Le(e){return Array.isArray(e)&&typeof e[zl]=="object"}function be(e){return Array.isArray(e)&&e[zl]===!0}function Da(e){return(e.flags&4)!==0}function gt(e){return e.componentOffset>-1}function Dn(e){return(e.flags&1)===1}function je(e){return!!e.template}function En(e){return(e[I]&512)!==0}function Gt(e){return(e[I]&256)===256}var Ea="svg",Gl="math";function ve(e){for(;Array.isArray(e);)e=e[Ce];return e}function Ia(e,t){return ve(t[e])}function _e(e,t){return ve(t[e.index])}function Wo(e,t){return e.data[t]}function qo(e,t){return e[t]}function wa(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function De(e,t){let n=t[e];return Le(n)?n:n[Ce]}function Wl(e){return(e[I]&4)===4}function Zo(e){return(e[I]&128)===128}function ql(e){return be(e[q])}function mt(e,t){return t==null?null:e[t]}function Ca(e){e[$t]=0}function ba(e){e[I]&1024||(e[I]|=1024,Zo(e)&&yt(e))}function Zl(e,t){for(;e>0;)t=t[Ht],e--;return t}function lr(e){return!!(e[I]&9216||e[he]?.dirty)}function Yo(e){e[ke].changeDetectionScheduler?.notify(8),e[I]&64&&(e[I]|=1024),lr(e)&&yt(e)}function yt(e){e[ke].changeDetectionScheduler?.notify(0);let t=lt(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!Zo(t)));)t=lt(t)}function _a(e,t){if(Gt(e))throw new D(911,!1);e[Ge]===null&&(e[Ge]=[]),e[Ge].push(t)}function Yl(e,t){if(e[Ge]===null)return;let n=e[Ge].indexOf(t);n!==-1&&e[Ge].splice(n,1)}function lt(e){let t=e[q];return be(t)?t[q]:t}function Ta(e){return e[yn]??=[]}function Ma(e){return e.cleanup??=[]}function Ql(e,t,n,r){let o=Ta(t);o.push(n),e.firstCreatePass&&Ma(e).push(r,o.length-1)}var N={lFrame:ud(null),bindingsEnabled:!0,skipHydrationRootTNode:null},dr=(function(e){return e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews",e})(dr||{}),$m=0,Ys=!1;function Kl(){return N.lFrame.elementDepthCount}function Jl(){N.lFrame.elementDepthCount++}function Na(){N.lFrame.elementDepthCount--}function Qo(){return N.bindingsEnabled}function Sa(){return N.skipHydrationRootTNode!==null}function xa(e){return N.skipHydrationRootTNode===e}function Aa(){N.skipHydrationRootTNode=null}function _(){return N.lFrame.lView}function $(){return N.lFrame.tView}function Xl(e){return N.lFrame.contextLView=e,e[ee]}function ed(e){return N.lFrame.contextLView=null,e}function W(){let e=Ra();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ra(){return N.lFrame.currentTNode}function td(){let e=N.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function In(e,t){let n=N.lFrame;n.currentTNode=e,n.isParent=t}function Oa(){return N.lFrame.isParent}function Fa(){N.lFrame.isParent=!1}function nd(){return N.lFrame.contextLView}function ka(e){Xs("Must never be called in production mode"),$m=e}function Pa(){return Ys}function wn(e){let t=Ys;return Ys=e,t}function Ko(){let e=N.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Jo(){return N.lFrame.bindingIndex}function rd(e){return N.lFrame.bindingIndex=e}function fr(){return N.lFrame.bindingIndex++}function Cn(e){let t=N.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function od(){return N.lFrame.inI18n}function id(e,t){let n=N.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xo(t)}function sd(){return N.lFrame.currentDirectiveIndex}function Xo(e){N.lFrame.currentDirectiveIndex=e}function ad(e){let t=N.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function La(){return N.lFrame.currentQueryIndex}function ei(e){N.lFrame.currentQueryIndex=e}function Um(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[se]:null}function ja(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Um(i),o===null||(i=i[Ht],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=N.lFrame=cd();return r.currentTNode=t,r.lView=e,!0}function ti(e){let t=cd(),n=e[E];N.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function cd(){let e=N.lFrame,t=e===null?null:e.child;return t===null?ud(e):t}function ud(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function ld(){let e=N.lFrame;return N.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Va=ld;function ni(){let e=ld();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function dd(e){return(N.lFrame.contextLView=Zl(e,N.lFrame.contextLView))[ee]}function Te(){return N.lFrame.selectedIndex}function vt(e){N.lFrame.selectedIndex=e}function ri(){let e=N.lFrame;return Wo(e.tView,e.selectedIndex)}function fd(){N.lFrame.currentNamespace=Ea}function pd(){zm()}function zm(){N.lFrame.currentNamespace=null}function hd(){return N.lFrame.currentNamespace}var gd=!0;function oi(){return gd}function pr(e){gd=e}var Gm={elements:void 0};function md(){return Gm}function Qs(e,t=null,n=null,r){let o=Ba(e,t,n,r);return o.resolveInjectorInitializers(),o}function Ba(e,t=null,n=null,r,o=new Set){let i=[n||oe,Vl(e)];return r=r||(typeof e=="object"?void 0:We(e)),new Pt(i,t||ar(),r||null,o)}var Oe=class e{static THROW_IF_NOT_FOUND=Ot;static NULL=new tr;static create(t,n){if(Array.isArray(t))return Qs({name:""},n,t,"");{let r=t.name??"";return Qs({name:r},t.parent,t.providers,r)}}static \u0275prov=x({token:e,providedIn:"any",factory:()=>L(ua)});static __NG_ELEMENT_ID__=-1},Wt=new b(""),Ye=(()=>{class e{static __NG_ELEMENT_ID__=Wm;static __NG_ENV_ID__=n=>n}return e})(),nr=class extends Ye{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Gt(this._lView)}onDestroy(t){let n=this._lView;return _a(n,t),()=>Yl(n,t)}};function Wm(){return new nr(_())}var qe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Ve=new b("",{providedIn:"root",factory:()=>{let e=m(le),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(qe),t.handleError(n))}}}),yd={provide:Vt,useValue:()=>void m(qe),multi:!0};function Ha(e){return typeof e=="function"&&e[X]!==void 0}function $a(e,t){let[n,r,o]=Es(e,t?.equal),i=n,s=i[X];return i.set=r,i.update=o,i.asReadonly=Ua.bind(i),i}function Ua(){let e=this[X];if(e.readonlyFn===void 0){let t=()=>this();t[X]=e,e.readonlyFn=t}return e.readonlyFn}function za(e){return Ha(e)&&typeof e.set=="function"}var we=class{},hr=new b("",{providedIn:"root",factory:()=>!1});var Ga=new b(""),Wa=new b("");var bn=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=qm}return e})();function qm(){return new bn(_(),W())}var Dt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new zn(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new S(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),gr=(()=>{class e{internalPendingTasks=m(Dt);scheduler=m(we);errorHandler=m(Ve);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();n().catch(this.errorHandler).finally(r)}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function qt(...e){}var mr=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new Ks})}return e})(),Ks=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=!1;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=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}};function Rn(e){return{toString:e}.toString()}var ii="__parameters__";function ey(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Fc(e,t,n){return Rn(()=>{let r=ey(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(ii)?c[ii]:Object.defineProperty(c,ii,{value:[]})[ii];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var ty=Ho(Fc("Inject",e=>({token:e})),-1),Yd=Ho(Fc("Optional"),8);var Qd=Ho(Fc("SkipSelf"),4);function ny(e){return typeof e=="function"}var hi=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Kd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Jd=(()=>{let e=()=>Xd;return e.ngInherit=!0,e})();function Xd(e){return e.type.prototype.ngOnChanges&&(e.setInput=oy),ry}function ry(){let e=tf(this),t=e?.current;if(t){let n=e.previous;if(n===dt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function oy(e,t,n,r,o){let i=this.declaredInputs[r],s=tf(e)||iy(e,{previous:dt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new hi(u&&u.currentValue,n,c===dt),Kd(e,t,o,n)}var ef="__ngSimpleChanges__";function tf(e){return e[ef]||null}function iy(e,t){return e[ef]=t}var vd=[];var R=function(e,t=null,n){for(let r=0;r<vd.length;r++){let o=vd[r];o(e,t,n)}};function sy(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Xd(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 nf(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 li(e,t,n){rf(e,t,3,n)}function di(e,t,n,r){(e[I]&3)===n&&rf(e,t,n,r)}function qa(e,t){let n=e[I];(n&3)===t&&(n&=16383,n+=1,e[I]=n)}function rf(e,t,n,r){let o=r!==void 0?e[$t]&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[$t]+=65536),(a<i||i==-1)&&(ay(e,n,t,c),e[$t]=(e[$t]&4294901760)+c+2),c++}function Dd(e,t){R(4,e,t);let n=T(null);try{t.call(e)}finally{T(n),R(5,e,t)}}function ay(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[I]>>14<e[$t]>>16&&(e[I]&3)===t&&(e[I]+=16384,Dd(a,i)):Dd(a,i)}var Tn=-1,Qt=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function cy(e){return(e.flags&8)!==0}function uy(e){return(e.flags&16)!==0}function ly(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];dy(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function of(e){return e===3||e===4||e===6}function dy(e){return e.charCodeAt(0)===64}function Mn(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?Ed(e,n,o,null,t[++r]):Ed(e,n,o,null,null))}}return e}function Ed(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 sf(e){return e!==Tn}function gi(e){return e&32767}function fy(e){return e>>16}function mi(e,t){let n=fy(e),r=t;for(;n>0;)r=r[Ht],n--;return r}var oc=!0;function yi(e){let t=oc;return oc=e,t}var py=256,af=py-1,cf=5,hy=0,Be={};function gy(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(jt)&&(r=n[jt]),r==null&&(r=n[jt]=hy++);let o=r&af,i=1<<o;t.data[e+(o>>cf)]|=i}function vi(e,t){let n=uf(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,Za(r.data,e),Za(t,null),Za(r.blueprint,null));let o=kc(e,t),i=e.injectorIndex;if(sf(o)){let s=gi(o),a=mi(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 Za(e,t){e.push(0,0,0,0,0,0,0,0,t)}function uf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function kc(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=hf(o),r===null)return Tn;if(n++,o=o[Ht],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Tn}function ic(e,t,n){gy(e,t,n)}function my(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(of(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 lf(e,t,n){if(n&8||e!==void 0)return e;Bo(t,"NodeInjector")}function df(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Bt],i=re(void 0);try{return o?o.get(t,r,n&8):aa(t,r,n&8)}finally{re(i)}}return lf(r,t,n)}function ff(e,t,n,r=0,o){if(e!==null){if(t[I]&2048&&!(r&2)){let s=Iy(e,t,n,r,Be);if(s!==Be)return s}let i=pf(e,t,n,r,Be);if(i!==Be)return i}return df(t,n,r,o)}function pf(e,t,n,r,o){let i=vy(n);if(typeof i=="function"){if(!ja(t,e,r))return r&1?lf(o,n,r):df(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Bo(n);else return s}finally{Va()}}else if(typeof i=="number"){let s=null,a=uf(e,t),c=Tn,u=r&1?t[de][se]:null;for((a===-1||r&4)&&(c=a===-1?kc(e,t):t[a+8],c===Tn||!wd(r,!1)?a=-1:(s=t[E],a=gi(c),t=mi(c,t)));a!==-1;){let l=t[E];if(Id(i,a,l.data)){let d=yy(a,t,n,s,r,u);if(d!==Be)return d}c=t[a+8],c!==Tn&&wd(r,t[E].data[a+8]===u)&&Id(i,a,t)?(s=l,a=gi(c),t=mi(c,t)):a=-1}}return o}function yy(e,t,n,r,o,i){let s=t[E],a=s.data[e+8],c=r==null?gt(a)&&oc:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=fi(a,s,n,c,u);return l!==null?Dr(t,s,l,a,o):Be}function fi(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&&je(f)&&f.type===n)return c}return null}function Dr(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Qt){let a=i;if(a.resolving){let f=Fo(s[n]);throw sa(f)}let c=yi(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?re(a.injectImpl):null,p=ja(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&sy(n,s[n],t)}finally{d!==null&&re(d),yi(c),a.resolving=!1,Va()}}return i}function vy(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(jt)?e[jt]:void 0;return typeof t=="number"?t>=0?t&af:Dy:t}function Id(e,t,n){let r=1<<e;return!!(n[t+(e>>cf)]&r)}function wd(e,t){return!(e&2)&&!(e&1&&t)}var Yt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return ff(this._tNode,this._lView,t,Ft(r),n)}};function Dy(){return new Yt(W(),_())}function Ey(e){return Rn(()=>{let t=e.prototype.constructor,n=t[er]||sc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[er]||sc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function sc(e){return Js(e)?()=>{let t=sc(Q(e));return t&&t()}:ut(e)}function Iy(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[I]&2048&&!En(s);){let a=pf(i,s,n,r|2,Be);if(a!==Be)return a;let c=i.parent;if(!c){let u=s[va];if(u){let l=u.get(n,Be,r);if(l!==Be)return l}c=hf(s),s=s[Ht]}i=c}return o}function hf(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[se]:null}function Pc(e){return my(W(),e)}function wy(){return On(W(),_())}function On(e,t){return new Fn(_e(e,t))}var Fn=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=wy}return e})();function Cy(e){return e instanceof Fn?e.nativeElement:e}function by(){return this._results[Symbol.iterator]()}var Di=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ce}constructor(t=!1){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=!1;let r=kl(t);(this._changesDetected=!Fl(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=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=by};function gf(e){return(e.flags&128)===128}var Lc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Lc||{}),mf=new Map,_y=0;function Ty(){return _y++}function My(e){mf.set(e[cr],e)}function ac(e){mf.delete(e[cr])}var Cd="__ngContext__";function Nn(e,t){Le(t)?(e[Cd]=t[cr],My(t)):e[Cd]=t}function yf(e){return Df(e[vn])}function vf(e){return Df(e[ye])}function Df(e){for(;e!==null&&!be(e);)e=e[ye];return e}var cc;function Ny(e){cc=e}function jc(){if(cc!==void 0)return cc;if(typeof document<"u")return document;throw new D(210,!1)}var Sy=new b("",{providedIn:"root",factory:()=>xy}),xy="ng",Ef=new b(""),Ay=new b("",{providedIn:"platform",factory:()=>"unknown"});var Ry=new b("",{providedIn:"root",factory:()=>jc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Oy="h",Fy="b";var If=!1,wf=new b("",{providedIn:"root",factory:()=>If});var ky=(e,t,n,r)=>{};function Py(e,t,n,r){ky(e,t,n,r)}function Oi(e){return(e.flags&32)===32}var Ly=()=>null;function Cf(e,t,n=!1){return Ly(e,t,n)}function bf(e,t){let n=e.contentQueries;if(n!==null){let r=T(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];ei(i),a.contentQueries(2,t[s],s)}}}finally{T(r)}}}function uc(e,t,n){ei(0);let r=T(null);try{t(e,n)}finally{T(r)}}function Vc(e,t,n){if(Da(t)){let r=T(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{T(r)}}}var Sn=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(Sn||{}),si;function jy(){if(si===void 0&&(si=null,Fe.trustedTypes))try{si=Fe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return si}function Fi(e){return jy()?.createHTML(e)||e}var ai;function _f(){if(ai===void 0&&(ai=null,Fe.trustedTypes))try{ai=Fe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ai}function bd(e){return _f()?.createHTML(e)||e}function _d(e){return _f()?.createScriptURL(e)||e}var Ei=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Po})`}};function kn(e){return e instanceof Ei?e.changingThisBreaksApplicationSecurity:e}function ki(e,t){let n=Tf(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Po})`)}return n===t}function Tf(e){return e instanceof Ei&&e.getTypeName()||null}function Vy(e){let t=new dc(e);return By()?new lc(t):t}var lc=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Fi(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},dc=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=Fi(t),n}};function By(){try{return!!new window.DOMParser().parseFromString(Fi(""),"text/html")}catch{return!1}}var Hy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bc(e){return e=String(e),e.match(Hy)?e:"unsafe:"+e}function Je(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Tr(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Mf=Je("area,br,col,hr,img,wbr"),Nf=Je("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sf=Je("rp,rt"),$y=Tr(Sf,Nf),Uy=Tr(Nf,Je("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")),zy=Tr(Sf,Je("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")),Td=Tr(Mf,Uy,zy,$y),xf=Je("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gy=Je("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Wy=Je("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"),qy=Tr(xf,Gy,Wy),Zy=Je("script,style,template"),fc=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Ky(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Qy(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Md(t).toLowerCase();if(!Td.hasOwnProperty(n))return this.sanitizedSomething=!0,!Zy.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(!qy.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;xf[a]&&(c=Bc(c)),this.buf.push(" ",s,'="',Nd(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=Md(t).toLowerCase();Td.hasOwnProperty(n)&&!Mf.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Nd(t))}};function Yy(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Qy(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Af(t);return t}function Ky(e){let t=e.firstChild;if(t&&Yy(e,t))throw Af(t);return t}function Md(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Af(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Jy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xy=/([^\#-~ |!])/g;function Nd(e){return e.replace(/&/g,"&amp;").replace(Jy,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Xy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var ci;function Rf(e,t){let n=null;try{ci=ci||Vy(e);let r=t?String(t):"";n=ci.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=ci.getInertBodyElement(r)}while(r!==i);let a=new fc().sanitizeChildren(Sd(n)||n);return Fi(a)}finally{if(n){let r=Sd(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Sd(e){return"content"in e&&ev(e)?e.content:null}function ev(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Mr=(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})(Mr||{});function tv(e){let t=Hc();return t?bd(t.sanitize(Mr.HTML,e)||""):ki(e,"HTML")?bd(kn(e)):Rf(jc(),ie(e))}function Of(e){let t=Hc();return t?t.sanitize(Mr.URL,e)||"":ki(e,"URL")?kn(e):Bc(ie(e))}function Ff(e){let t=Hc();if(t)return _d(t.sanitize(Mr.RESOURCE_URL,e)||"");if(ki(e,"ResourceURL"))return _d(kn(e));throw new D(904,!1)}function nv(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Ff:Of}function rv(e,t,n){return nv(t,n)(e)}function Hc(){let e=_();return e&&e[ke].sanitizer}var ov=/^>|^->|<!--|-->|--!>|<!-$/g,iv=/(<|>)/g,sv="\u200B$1\u200B";function av(e){return e.replace(ov,t=>t.replace(iv,sv))}function cv(e){return e.ownerDocument.defaultView}function uv(e){return e.ownerDocument}function kf(e){return e instanceof Function?e():e}function lv(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 Pf="ng-template";function dv(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&lv(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if($c(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function $c(e){return e.type===4&&e.value!==Pf}function fv(e,t,n){let r=e.type===4&&!n?Pf:e.value;return t===r}function pv(e,t,n){let r=4,o=e.attrs,i=o!==null?mv(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Me(r)&&!Me(c))return!1;if(s&&Me(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!fv(e,c,n)||c===""&&t.length===1){if(Me(r))return!1;s=!0}}else if(r&8){if(o===null||!dv(e,o,c,n)){if(Me(r))return!1;s=!0}}else{let u=t[++a],l=hv(c,o,$c(e),n);if(l===-1){if(Me(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Me(r))return!1;s=!0}}}}return Me(r)||s}function Me(e){return(e&1)===0}function hv(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;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 yv(t,e)}function Lf(e,t,n=!1){for(let r=0;r<t.length;r++)if(pv(e,t[r],n))return!0;return!1}function gv(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function mv(e){for(let t=0;t<e.length;t++){let n=e[t];if(of(n))return t}return e.length}function yv(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 vv(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!0}}return!1}function xd(e,t){return e?":not("+t.trim()+")":t}function Dv(e){let t=e[0],n=1,r=2,o="",i=!1;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!==""&&!Me(s)&&(t+=xd(i,o),o=""),r=s,i=i||!Me(r);n++}return o!==""&&(t+=xd(i,o)),t}function Ev(e){return e.map(Dv).join(",")}function Iv(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(!Me(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Z={};function wv(e,t){return e.createText(t)}function Cv(e,t,n){e.setValue(t,n)}function bv(e,t){return e.createComment(av(t))}function jf(e,t,n){return e.createElement(t,n)}function Ii(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Vf(e,t,n){e.appendChild(t,n)}function Ad(e,t,n,r,o){r!==null?Ii(e,t,n,r,o):Vf(e,t,n)}function _v(e,t,n){e.removeChild(null,t,n)}function Tv(e,t,n){e.setAttribute(t,"style",n)}function Mv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Bf(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&ly(e,t,r),o!==null&&Mv(e,t,o),i!==null&&Tv(e,t,i)}function Uc(e,t,n,r,o,i,s,a,c,u,l){let d=V+r,p=d+o,f=Nv(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:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,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:!1,ssrId:l}}function Nv(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Z);return n}function Sv(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Uc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function zc(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Ce]=o,d[I]=r|4|128|8|64|1024,(u!==null||e&&e[I]&2048)&&(d[I]|=2048),Ca(d),d[q]=d[Ht]=e,d[ee]=n,d[ke]=s||e&&e[ke],d[P]=a||e&&e[P],d[Bt]=c||e&&e[Bt]||null,d[se]=i,d[cr]=Ty(),d[mn]=l,d[va]=u,d[de]=t.type==2?e[de]:d,d}function xv(e,t,n){let r=_e(t,e),o=Sv(n),i=e[ke].rendererFactory,s=Gc(e,zc(e,o,null,Hf(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Hf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function $f(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 Gc(e,t){return e[vn]?e[ya][ye]=t:e[vn]=t,e[ya]=t,t}function Av(e=1){Uf($(),_(),Te()+e,!1)}function Uf(e,t,n,r){if(!r)if((t[I]&3)===3){let i=e.preOrderCheckHooks;i!==null&&li(t,i,n)}else{let i=e.preOrderHooks;i!==null&&di(t,i,0,n)}vt(n)}var Pi=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Pi||{});function pc(e,t,n,r){let o=T(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Pi.SignalBased)!==0&&(c=t[i][X]),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):Kd(t,c,i,r)}finally{T(o)}}var Er=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Er||{}),Rv;function Wc(e,t){return Rv(e,t)}function _n(e,t,n,r,o){if(r!=null){let i,s=!1;be(r)?i=r:Le(r)&&(s=!0,r=r[Ce]);let a=ve(r);e===0&&n!==null?o==null?Vf(t,n,a):Ii(t,n,a,o||null,!0):e===1&&n!==null?Ii(t,n,a,o||null,!0):e===2?_v(t,a,s):e===3&&t.destroyNode(a),i!=null&&$v(t,e,i,n,o)}}function Ov(e,t){zf(e,t),t[Ce]=null,t[se]=null}function Fv(e,t,n,r,o,i){r[Ce]=o,r[se]=t,Li(e,r,n,1,o,i)}function zf(e,t){t[ke].changeDetectionScheduler?.notify(9),Li(e,t,t[P],2,null,null)}function kv(e){let t=e[vn];if(!t)return Ya(e[E],e);for(;t;){let n=null;if(Le(t))n=t[vn];else{let r=t[ae];r&&(n=r)}if(!n){for(;t&&!t[ye]&&t!==e;)Le(t)&&Ya(t[E],t),t=t[q];t===null&&(t=e),Le(t)&&Ya(t[E],t),n=t&&t[ye]}t=n}}function qc(e,t){let n=e[zt],r=n.indexOf(t);n.splice(r,1)}function Gf(e,t){if(Gt(t))return;let n=t[P];n.destroyNode&&Li(e,t,n,3,null,null),kv(t)}function Ya(e,t){if(Gt(t))return;let n=T(null);try{t[I]&=-129,t[I]|=256,t[he]&&_t(t[he]),Lv(e,t),Pv(e,t),t[E].type===1&&t[P].destroy();let r=t[pt];if(r!==null&&be(t[q])){r!==t[q]&&qc(r,t);let o=t[Pe];o!==null&&o.detachView(e)}ac(t)}finally{T(n)}}function Pv(e,t){let n=e.cleanup,r=t[yn];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[yn]=null);let o=t[Ge];if(o!==null){t[Ge]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Ze];if(i!==null){t[Ze]=null;for(let s of i)s.destroy()}}function Lv(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 Qt)){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];R(4,a,c);try{c.call(a)}finally{R(5,a,c)}}else{R(4,o,i);try{i.call(o)}finally{R(5,o,i)}}}}}function Wf(e,t,n){return jv(e,t.parent,n)}function jv(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ce];if(gt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Sn.None||o===Sn.Emulated)return null}return _e(r,n)}function qf(e,t,n){return Bv(e,t,n)}function Vv(e,t,n){return e.type&40?_e(e,n):null}var Bv=Vv,Rd;function Zc(e,t,n,r){let o=Wf(e,r,t),i=t[P],s=r.parent||t[se],a=qf(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Ad(i,o,n[c],a,!1);else Ad(i,o,n,a,!1);Rd!==void 0&&Rd(i,r,t,n,o)}function yr(e,t){if(t!==null){let n=t.type;if(n&3)return _e(t,e);if(n&4)return hc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return yr(e,r);{let o=e[t.index];return be(o)?hc(-1,o):ve(o)}}else{if(n&128)return yr(e,t.next);if(n&32)return Wc(t,e)()||ve(e[t.index]);{let r=Zf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=lt(e[de]);return yr(o,r)}else return yr(e,t.next)}}}return null}function Zf(e,t){if(t!==null){let r=e[de][se],o=t.projection;return r.projection[o]}return null}function hc(e,t){let n=ae+e+1;if(n<t.length){let r=t[n],o=r[E].firstChild;if(o!==null)return yr(r,o)}return t[ht]}function Yc(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&Nn(ve(a),r),n.flags|=2),!Oi(n))if(c&8)Yc(e,t,n.child,r,o,i,!1),_n(t,e,o,a,i);else if(c&32){let u=Wc(n,r),l;for(;l=u();)_n(t,e,o,l,i);_n(t,e,o,a,i)}else c&16?Yf(e,t,r,n,o,i):_n(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Li(e,t,n,r,o,i){Yc(n,r,e.firstChild,t,o,i,!1)}function Hv(e,t,n){let r=t[P],o=Wf(e,n,t),i=n.parent||t[se],s=qf(i,n,t);Yf(r,0,t,n,o,s)}function Yf(e,t,n,r,o,i){let s=n[de],c=s[se].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];_n(t,e,o,l,i)}else{let u=c,l=s[q];gf(r)&&(u.flags|=128),Yc(e,t,u,l,o,i,!0)}}function $v(e,t,n,r,o){let i=n[ht],s=ve(n);i!==s&&_n(t,e,r,i,o);for(let a=ae;a<n.length;a++){let c=n[a];Li(c[E],c,e,t,r,i)}}function Uv(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Er.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Er.Important),e.setStyle(n,r,o,i))}}function Qf(e,t,n,r,o){let i=Te(),s=r&2;try{vt(-1),s&&t.length>V&&Uf(e,t,V,!1),R(s?2:0,o,n),n(r,o)}finally{vt(i),R(s?3:1,o,n)}}function ji(e,t,n){Qv(e,t,n),(n.flags&64)===64&&Kv(e,t,n)}function Nr(e,t,n=_e){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 zv(e,t,n,r){let i=r.get(wf,If)||n===Sn.ShadowDom,s=e.selectRootElement(t,i);return Gv(s),s}function Gv(e){Wv(e)}var Wv=()=>null;function qv(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Kf(e,t,n,r,o,i){let s=t[E];if(Xc(e,s,t,n,r)){gt(e)&&Yv(t,e.index);return}e.type&3&&(n=qv(n)),Zv(e,t,n,r,o,i)}function Zv(e,t,n,r,o,i){if(e.type&3){let s=_e(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function Yv(e,t){let n=De(t,e);n[I]&16||(n[I]|=64)}function Qv(e,t,n){let r=n.directiveStart,o=n.directiveEnd;gt(n)&&xv(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||vi(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Dr(t,e,s,n);if(Nn(c,t),i!==null&&tD(t,s-r,c,a,n,i),je(a)){let u=De(n.index,t);u[ee]=Dr(t,e,s,n)}}}function Kv(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=sd();try{vt(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Xo(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Jv(c,u)}}finally{vt(-1),Xo(s)}}function Jv(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Qc(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Lf(t,i.selectors,!1)&&(r??=[],je(i)?r.unshift(i):r.push(i))}return r}function Xv(e,t,n,r,o,i){let s=_e(e,t);eD(t[P],s,i,e.value,n,r,o)}function eD(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?ie(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function tD(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];pc(r,n,c,u)}}function Kc(e,t,n,r,o){let i=V+n,s=t[E],a=o(s,t,e,r,n);t[i]=a,In(e,!0);let c=e.type===2;return c?(Bf(t[P],a,e),(Kl()===0||Dn(e))&&Nn(a,t),Jl()):Nn(a,t),oi()&&(!c||!Oi(e))&&Zc(s,t,a,e),e}function Jc(e){let t=e;return Oa()?Fa():(t=t.parent,In(t,!1)),t}function nD(e,t){let n=e[Bt];if(!n)return;n.get(Ve,null)?.(t)}function Xc(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];pc(d,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];pc(l,u,r,o),a=!0}return a}function rD(e,t){let n=De(t,e),r=n[E];oD(r,n);let o=n[Ce];o!==null&&n[mn]===null&&(n[mn]=Cf(o,n[Bt])),R(18),eu(r,n,n[ee]),R(19,n[ee])}function oD(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function eu(e,t,n){ti(t);try{let r=e.viewQuery;r!==null&&uc(1,r,n);let o=e.template;o!==null&&Qf(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Pe]?.finishViewCreation(e),e.staticContentQueries&&bf(e,t),e.staticViewQueries&&uc(2,e.viewQuery,n);let i=e.components;i!==null&&iD(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[I]&=-5,ni()}}function iD(e,t){for(let n=0;n<t.length;n++)rD(e,t[n])}function Jf(e,t,n,r){let o=T(null);try{let i=t.tView,a=e[I]&4096?4096:16,c=zc(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[pt]=u;let l=e[Pe];return l!==null&&(c[Pe]=l.createEmbeddedView(i)),eu(i,c,n),c}finally{T(o)}}function gc(e,t){return!t||t.firstChild===null||gf(e)}var Od=!1,sD=new b("");function Ir(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(ve(i)),be(i)&&Xf(i,r);let s=n.type;if(s&8)Ir(e,t,n.child,r);else if(s&32){let a=Wc(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Zf(t,n);if(Array.isArray(a))r.push(...a);else{let c=lt(t[de]);Ir(c[E],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Xf(e,t){for(let n=ae;n<e.length;n++){let r=e[n],o=r[E].firstChild;o!==null&&Ir(r[E],r,o,t)}e[ht]!==e[Ce]&&t.push(e[ht])}function ep(e){if(e[Ut]!==null){for(let t of e[Ut])t.impl.addSequence(t);e[Ut].length=0}}var tp=[];function aD(e){return e[he]??cD(e)}function cD(e){let t=tp.pop()??Object.create(lD);return t.lView=e,t}function uD(e){e.lView[he]!==e&&(e.lView=null,tp.push(e))}var lD=Y(H({},rt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{yt(e.lView)},consumerOnSignalRead(){this.lView[he]=this}});function dD(e){let t=e[he]??Object.create(fD);return t.lView=e,t}var fD=Y(H({},rt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=lt(e.lView);for(;t&&!np(t[E]);)t=lt(t);t&&ba(t)},consumerOnSignalRead(){this.lView[he]=this}});function np(e){return e.type!==2}function rp(e){if(e[Ze]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Ze])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[I]&8192)}}var pD=100;function tu(e,t=0){let r=e[ke].rendererFactory,o=!1;o||r.begin?.();try{hD(e,t)}finally{o||r.end?.()}}function hD(e,t){let n=Pa();try{wn(!0),mc(e,t);let r=0;for(;lr(e);){if(r===pD)throw new D(103,!1);r++,mc(e,1)}}finally{wn(n)}}function op(e,t){ka(t?dr.Exhaustive:dr.OnlyDirtyViews);try{tu(e)}finally{ka(dr.Off)}}function gD(e,t,n,r){if(Gt(t))return;let o=t[I],i=!1,s=!1;ti(t);let a=!0,c=null,u=null;i||(np(e)?(u=aD(t),c=ot(u)):Yr()===null?(a=!1,u=dD(t),c=ot(u)):t[he]&&(_t(t[he]),t[he]=null));try{Ca(t),rd(e.bindingStartIndex),n!==null&&Qf(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&li(t,f,null)}else{let f=e.preOrderHooks;f!==null&&di(t,f,0,null),qa(t,0)}if(s||mD(t),rp(t),ip(t,0),e.contentQueries!==null&&bf(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&li(t,f)}else{let f=e.contentHooks;f!==null&&di(t,f,1),qa(t,1)}vD(e,t);let d=e.components;d!==null&&ap(t,d,0);let p=e.viewQuery;if(p!==null&&uc(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&li(t,f)}else{let f=e.viewHooks;f!==null&&di(t,f,2),qa(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Go]){for(let f of t[Go])f();t[Go]=null}i||(ep(t),t[I]&=-73)}catch(l){throw i||yt(t),l}finally{u!==null&&(bt(u,c),a&&uD(u)),ni()}}function ip(e,t){for(let n=yf(e);n!==null;n=vf(n))for(let r=ae;r<n.length;r++){let o=n[r];sp(o,t)}}function mD(e){for(let t=yf(e);t!==null;t=vf(t)){if(!(t[I]&2))continue;let n=t[zt];for(let r=0;r<n.length;r++){let o=n[r];ba(o)}}}function yD(e,t,n){R(18);let r=De(t,e);sp(r,n),R(19,r[ee])}function sp(e,t){Zo(e)&&mc(e,t)}function mc(e,t){let r=e[E],o=e[I],i=e[he],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&rn(i)),s||=!1,i&&(i.dirty=!1),e[I]&=-9217,s)gD(r,e,r.template,e[ee]);else if(o&8192){let a=T(null);try{rp(e),ip(e,1);let c=r.components;c!==null&&ap(e,c,1),ep(e)}finally{T(a)}}}function ap(e,t,n){for(let r=0;r<t.length;r++)yD(e,t[r],n)}function vD(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)vt(~o);else{let i=o,s=n[++r],a=n[++r];id(s,i);let c=t[i];R(24,c),a(2,c),R(25,c)}}}finally{vt(-1)}}function nu(e,t){let n=Pa()?64:1088;for(e[ke].changeDetectionScheduler?.notify(t);e;){e[I]|=n;let r=lt(e);if(En(e)&&!r)return e;e=r}return null}function cp(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function up(e,t,n,r=!0){let o=t[E];if(DD(o,t,e,n),r){let s=hc(n,e),a=t[P],c=a.parentNode(e[ht]);c!==null&&Fv(o,e[se],a,t,c,s)}let i=t[mn];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function yc(e,t){if(e.length<=ae)return;let n=ae+t,r=e[n];if(r){let o=r[pt];o!==null&&o!==e&&qc(o,r),t>0&&(e[n-1][ye]=r[ye]);let i=ir(e,ae+t);Ov(r[E],r);let s=i[Pe];s!==null&&s.detachView(i[E]),r[q]=null,r[ye]=null,r[I]&=-129}return r}function DD(e,t,n,r){let o=ae+r,i=n.length;r>0&&(n[o-1][ye]=t),r<i-ae?(t[ye]=n[o],ca(n,ae+r,t)):(n.push(t),t[ye]=null),t[q]=n;let s=t[pt];s!==null&&n!==s&&lp(s,t);let a=t[Pe];a!==null&&a.insertView(e),Yo(t),t[I]|=128}function lp(e,t){let n=e[zt],r=t[q];if(Le(r))e[I]|=2;else{let o=r[q][de];t[de]!==o&&(e[I]|=2)}n===null?e[zt]=[t]:n.push(t)}var Et=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[E];return Ir(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[ee]}set context(t){this._lView[ee]=t}get destroyed(){return Gt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[q];if(be(t)){let n=t[ur],r=n?n.indexOf(this):-1;r>-1&&(yc(t,r),ir(n,r))}this._attachedToViewContainer=!1}Gf(this._lView[E],this._lView)}onDestroy(t){_a(this._lView,t)}markForCheck(){nu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[I]&=-129}reattach(){Yo(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,tu(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=En(this._lView),n=this._lView[pt];n!==null&&!t&&qc(n,this._lView),zf(this._lView[E],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=En(this._lView),r=this._lView[pt];r!==null&&!n&&lp(r,this._lView),Yo(this._lView)}};var It=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=ED;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=Jf(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Et(i)}}return e})();function ED(){return Vi(W(),_())}function Vi(e,t){return e.type&4?new It(t,e,On(e,t)):null}function Pn(e,t,n,r,o){let i=e.data[t];if(i===null)i=ID(e,t,n,r,o),od()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=td();i.injectorIndex=s===null?-1:s.injectorIndex}return In(i,!0),i}function ID(e,t,n,r,o){let i=Ra(),s=Oa(),a=s?i:i&&i.parent,c=e.data[t]=CD(e,a,n,t,r,o);return wD(e,c,i,s),c}function wD(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 CD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Sa()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs: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}}var tA=new RegExp(`^(\\d+)*(${Fy}|${Oy})*(.*)`);var bD=()=>null;function vc(e,t){return bD(e,t)}var dp=class{},Bi=class{},Dc=class{resolveComponentFactory(t){throw new D(917,!1)}},Sr=class{static NULL=new Dc},wr=class{},fp=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>_D()}return e})();function _D(){let e=_(),t=W(),n=De(t.index,e);return(Le(n)?n:e)[P]}var pp=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>null})}return e})();var pi={},Ec=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,pi,r);return o!==pi||n===pi?o:this.parentInjector.get(t,n,r)}};function wi(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=Lo(o,a);else if(i==2){let c=a,u=t[++s];r=Lo(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function fe(e,t=0){let n=_();if(n===null)return L(e,t);let r=W();return ff(r,n,Q(e),t)}function hp(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}ND(e,t,n,a,i,c,u)}i!==null&&r!==null&&TD(n,r,i)}function TD(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 D(-301,!1);r.push(t[o],i)}}function MD(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function ND(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let f=r[p];!c&&je(f)&&(c=!0,MD(e,n,p)),ic(vi(n,t),e,f.type)}FD(n,e.data.length,a);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let u=!1,l=!1,d=$f(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=Mn(n.mergedAttrs,f.hostAttrs),xD(e,n,t,d,f),OD(d,f,o),s!==null&&s.has(f)){let[v,y]=s.get(f);n.directiveToIndex.set(f.type,[d,v+n.directiveStart,y+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=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}SD(e,n,i)}function SD(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Fd(0,t,o,r),Fd(1,t,o,r),Pd(t,r,!1);else{let i=n.get(o);kd(0,t,i,r),kd(1,t,i,r),Pd(t,r,!0)}}}function Fd(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),gp(t,i)}}function kd(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),gp(t,s)}}function gp(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Pd(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||$c(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 xD(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=ut(o.type,!0)),s=new Qt(i,je(o),fe,null);e.blueprint[r]=s,n[r]=s,AD(e,t,r,$f(e,n,o.hostVars,Z),o)}function AD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;RD(s)!=a&&s.push(a),s.push(n,r,i)}}function RD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function OD(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;je(t)&&(n[""]=e)}}function FD(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ru(e,t,n,r,o,i,s,a){let c=t[E],u=c.consts,l=mt(u,s),d=Pn(c,e,n,r,l);return i&&hp(c,t,d,mt(u,a),o),d.mergedAttrs=Mn(d.mergedAttrs,d.attrs),d.attrs!==null&&wi(d,d.attrs,!1),d.mergedAttrs!==null&&wi(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function ou(e,t){nf(e,t),Da(t)&&e.queries.elementEnd(t)}function kD(e,t,n,r,o,i){let s=t.consts,a=mt(s,o),c=Pn(t,e,n,r,a);if(c.mergedAttrs=Mn(c.mergedAttrs,c.attrs),i!=null){let u=mt(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1)}return c.attrs!==null&&wi(c,c.attrs,!1),c.mergedAttrs!==null&&wi(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function iu(e){return yp(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function mp(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function yp(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function su(e,t,n){return e[t]=n}function PD(e,t){return e[t]}function Ke(e,t,n){if(n===Z)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Cr(e,t,n,r){let o=Ke(e,t,n);return Ke(e,t+1,r)||o}function vp(e,t,n,r,o){let i=Cr(e,t,n,r);return Ke(e,t+2,o)||i}function LD(e,t,n,r,o,i){let s=Cr(e,t,n,r);return Cr(e,t+2,o,i)||s}function Qa(e,t,n){return function r(o){let i=gt(e)?De(e.index,t):t;nu(i,5);let s=t[ee],a=Ld(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=Ld(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Ld(e,t,n,r){let o=T(null);try{return R(6,t,n),n(r)!==!1}catch(i){return nD(e,i),!1}finally{R(7,t,n),T(o)}}function jD(e,t,n,r,o,i,s,a){let c=Dn(e),u=!1,l=null;if(!r&&c&&(l=VD(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let d=_e(e,n),p=r?r(d):d;Py(n,p,i,a);let f=o.listen(p,i,a),h=r?v=>r(ve(v[e.index])):e.index;Dp(h,t,n,i,a,f,!1)}return u}function VD(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[yn],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Dp(e,t,n,r,o,i,s){let a=t.firstCreatePass?Ma(t):null,c=Ta(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function jd(e,t,n,r,o,i){let s=t[n],a=t[E],u=a.data[n].outputs[r],d=s[u].subscribe(i);Dp(e.index,a,t,o,i,d,!0)}var Ic=Symbol("BINDING");var Ci=class extends Sr{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=ft(t);return new xn(n,this.ngModule)}};function BD(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Pi.SignalBased)!==0};return o&&(i.transform=o),i})}function HD(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function $D(e,t,n){let r=t instanceof le?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ec(n,r):n}function UD(e){let t=e.get(wr,null);if(t===null)throw new D(407,!1);let n=e.get(pp,null),r=e.get(we,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function zD(e,t){let n=Ep(e);return jf(t,n,n==="svg"?Ea:n==="math"?Gl:null)}function Ep(e){return(e.selectors[0][0]||"div").toLowerCase()}var xn=class extends Bi{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=BD(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=HD(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Ev(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){R(22);let a=T(null);try{let c=this.componentDef,u=GD(r,c,s,i),l=$D(c,o||this.ngModule,t),d=UD(l),p=d.rendererFactory.createRenderer(null,c),f=r?zv(p,r,c.encapsulation,l):zD(c,p),h=s?.some(Vd)||i?.some(g=>typeof g!="function"&&g.bindings.some(Vd)),v=zc(null,u,null,512|Hf(c),null,null,d,p,l,null,Cf(f,l,!0));v[V]=f,ti(v);let y=null;try{let g=ru(V,v,2,"#host",()=>u.directiveRegistry,!0,0);f&&(Bf(p,f,g),Nn(f,v)),ji(u,v,g),Vc(u,g,v),ou(u,g),n!==void 0&&qD(g,this.ngContentSelectors,n),y=De(g.index,v),v[ee]=y[ee],eu(u,v,null)}catch(g){throw y!==null&&ac(y),ac(v),g}finally{R(23),ni()}return new bi(this.componentType,v,!!h)}finally{T(a)}}};function GD(e,t,n,r){let o=e?["ng-version","20.2.1"]:Iv(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[Ic].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[Ic].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=fa(d);c.push(p)}return Uc(0,null,WD(i,s),1,a,c,null,null,null,[o],null)}function WD(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 Vd(e){let t=e[Ic].kind;return t==="input"||t==="twoWay"}var bi=class extends dp{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Wo(n[E],V),this.location=On(this._tNode,n),this.instance=De(this._tNode.index,n)[ee],this.hostView=this.changeDetectorRef=new Et(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,i=Xc(r,o[E],o,t,n);this.previousInputValues.set(t,n);let s=De(r.index,o);nu(s,1)}get injector(){return new Yt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function qD(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 Xt=(()=>{class e{static __NG_ELEMENT_ID__=ZD}return e})();function ZD(){let e=W();return wp(e,_())}var YD=Xt,Ip=class extends YD{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return On(this._hostTNode,this._hostLView)}get injector(){return new Yt(this._hostTNode,this._hostLView)}get parentInjector(){let t=kc(this._hostTNode,this._hostLView);if(sf(t)){let n=mi(t,this._hostLView),r=gi(t),o=n[E].data[r+8];return new Yt(o,n)}else return new Yt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Bd(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ae}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=vc(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,gc(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!ny(t),u;if(c)u=n;else{let y=n||{};u=y.index,r=y.injector,o=y.projectableNodes,i=y.environmentInjector||y.ngModuleRef,s=y.directives,a=y.bindings}let l=c?t:new xn(ft(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let g=(c?d:this.parentInjector).get(le,null);g&&(i=g)}let p=ft(l.componentType??{}),f=vc(this._lContainer,p?.id??null),h=f?.firstChild??null,v=l.create(d,o,h,i,s,a);return this.insertImpl(v.hostView,u,gc(this._hostTNode,f)),v}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(ql(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[q],u=new Ip(c,c[se],c[q]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return up(s,o,i,r),t.attachToViewContainerRef(),ca(Ka(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Bd(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=yc(this._lContainer,n);r&&(ir(Ka(this._lContainer),n),Gf(r[E],r))}detach(t){let n=this._adjustIndex(t,-1),r=yc(this._lContainer,n);return r&&ir(Ka(this._lContainer),n)!=null?new Et(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Bd(e){return e[ur]}function Ka(e){return e[ur]||(e[ur]=[])}function wp(e,t){let n,r=t[e.index];return be(r)?n=r:(n=cp(r,t,null,e),t[e.index]=n,Gc(t,n)),KD(n,t,e,r),new Ip(n,e,t)}function QD(e,t){let n=e[P],r=n.createComment(""),o=_e(t,e),i=n.parentNode(o);return Ii(n,i,r,n.nextSibling(o),!1),r}var KD=eE,JD=()=>!1;function XD(e,t,n){return JD(e,t,n)}function eE(e,t,n,r){if(e[ht])return;let o;n.type&8?o=ve(r):o=QD(t,n),e[ht]=o}var wc=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Cc=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++)au(t,n).matches!==null&&this.queries[n].setDirty()}},_i=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=cE(t):this.predicate=t}},bc=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)}},_c=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;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=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,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,tE(n,i)),this.matchTNodeWithReadOption(t,n,fi(n,t,i,!1,!1))}else r===It?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,fi(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Fn||o===Xt||o===It&&n.type&4)this.addMatch(n.index,-2);else{let i=fi(n,t,o,!1,!1);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 tE(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 nE(e,t){return e.type&11?On(e,t):e.type&4?Vi(e,t):null}function rE(e,t,n,r){return n===-1?nE(t,e):n===-2?oE(e,t,r):Dr(e,e[E],n,t)}function oE(e,t,n){if(n===Fn)return On(t,e);if(n===It)return Vi(t,e);if(n===Xt)return wp(t,e)}function Cp(e,t,n,r){let o=t[Pe].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(rE(t,l,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Tc(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Cp(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=ae;d<l.length;d++){let p=l[d];p[pt]===p[q]&&Tc(p[E],p,u,r)}if(l[zt]!==null){let d=l[zt];for(let p=0;p<d.length;p++){let f=d[p];Tc(f[E],f,u,r)}}}}}return r}function iE(e,t){return e[Pe].queries[t].queryList}function bp(e,t,n){let r=new Di((n&4)===4);return Ql(e,t,r,r.destroy),(t[Pe]??=new Cc).queries.push(new wc(r))-1}function sE(e,t,n){let r=$();return r.firstCreatePass&&(_p(r,new _i(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),bp(r,_(),t)}function aE(e,t,n,r){let o=$();if(o.firstCreatePass){let i=W();_p(o,new _i(t,n,r),i.index),uE(o,e),(n&2)===2&&(o.staticContentQueries=!0)}return bp(o,_(),n)}function cE(e){return e.split(",").map(t=>t.trim())}function _p(e,t,n){e.queries===null&&(e.queries=new bc),e.queries.track(new _c(t,n))}function uE(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 au(e,t){return e.queries.getByIndex(t)}function lE(e,t){let n=e[E],r=au(n,t);return r.crossesNgTemplate?Tc(n,e,t,[]):Cp(n,e,r,t)}var Hd=new Set;function Hi(e){Hd.has(e)||(Hd.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Kt=class{},Tp=class{};var Ti=class extends Kt{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Ci(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=da(t);this._bootstrapComponents=kf(i.bootstrap),this._r3Injector=Ba(t,n,[{provide:Kt,useValue:this},{provide:Sr,useValue:this.componentFactoryResolver},...r],We(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)}},Mi=class extends Tp{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Ti(this.moduleType,t,[])}};var br=class extends Kt{injector;componentFactoryResolver=new Ci(this);instance=null;constructor(t){super();let n=new Pt([...t.providers,{provide:Kt,useValue:this},{provide:Sr,useValue:this.componentFactoryResolver}],t.parent||ar(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Mp(e,t,n=null){return new br({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var dE=(()=>{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=pa(!1,n.type),o=r.length>0?Mp([r],this._injector,`Standalone[${n.type.name}]`):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(L(le))})}return e})();function fE(e){return Rn(()=>{let t=Np(e),n=Y(H({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Lc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(dE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Sn.Emulated,styles:e.styles||oe,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Hi("NgStandalone"),Sp(n);let r=e.dependencies;return n.directiveDefs=$d(r,pE),n.pipeDefs=$d(r,jl),n.id=mE(n),n})}function pE(e){return ft(e)||fa(e)}function $i(e){return Rn(()=>({type:e.type,bootstrap:e.bootstrap||oe,declarations:e.declarations||oe,imports:e.imports||oe,exports:e.exports||oe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function hE(e,t){if(e==null)return dt;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=Pi.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function gE(e){if(e==null)return dt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ui(e){return Rn(()=>{let t=Np(e);return Sp(t),t})}function zi(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Np(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||dt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||oe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:hE(e.inputs,t),outputs:gE(e.outputs),debugInfo:null}}function Sp(e){e.features?.forEach(t=>t(e))}function $d(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 mE(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}function yE(e){return Object.getPrototypeOf(e.prototype).constructor}function xp(e){let t=yE(e.type),n=!0,r=[e];for(;t;){let o;if(je(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new D(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Ja(e.inputs),s.declaredInputs=Ja(e.declaredInputs),s.outputs=Ja(e.outputs);let a=o.hostBindings;a&&wE(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&EE(e,c),u&&IE(e,u),vE(e,o),Sl(e.outputs,o.outputs),je(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===xp&&(n=!1)}}t=Object.getPrototypeOf(t)}DE(r)}function vE(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 DE(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=Mn(o.hostAttrs,n=Mn(n,o.hostAttrs))}}function Ja(e){return e===dt?{}:e===oe?[]:e}function EE(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function IE(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function wE(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Ap(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Mn(e.mergedAttrs,e.attrs);let l=e.tView=Uc(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),In(e,!1);let c=_E(n,t,e,r);oi()&&Zc(n,t,c,e),Nn(c,t);let u=cp(c,t,c,e);t[r+V]=u,Gc(t,u),XD(u,e,t)}function CE(e,t,n,r,o,i,s,a,c,u,l){let d=n+V,p;return t.firstCreatePass?(p=Pn(t,d,4,s||null,a||null),Qo()&&hp(t,e,p,mt(t.consts,u),Qc),nf(t,p)):p=t.data[d],Ap(p,e,t,n,r,o,i,c),Dn(p)&&ji(t,e,p),u!=null&&Nr(e,p,l),p}function bE(e,t,n,r,o,i,s,a,c,u,l){let d=n+V,p;if(t.firstCreatePass){if(p=Pn(t,d,4,s||null,a||null),u!=null){let f=mt(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 Ap(p,e,t,n,r,o,i,c),u!=null&&Nr(e,p,l),p}function Rp(e,t,n,r,o,i,s,a){let c=_(),u=$(),l=mt(u.consts,i);return CE(c,u,e,t,n,r,o,l,void 0,s,a),Rp}var _E=TE;function TE(e,t,n,r){return pr(!0),t[P].createComment("")}var Gi=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Gi||{}),xr=new b(""),Op=!1,Mc=class extends ce{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Ul()&&(this.destroyRef=m(Ye,{optional:!0})??void 0,this.pendingTasks=m(Dt,{optional:!0})??void 0)}emit(t){let n=T(null);try{super.next(t)}finally{T(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 j&&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)}})}}},Qe=Mc;function Fp(e){let t,n;function r(){e=qt;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ud(e){return queueMicrotask(()=>e()),()=>{e=qt}}var cu="isAngularZone",Ni=cu+"_ID",ME=0,K=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Qe(!1);onMicrotaskEmpty=new Qe(!1);onStable=new Qe(!1);onError=new Qe(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Op}=t;if(typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,xE(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(cu)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,NE,qt,qt);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)}},NE={};function uu(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function SE(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Fp(()=>{e.callbackScheduled=!1,Nc(e),e.isCheckStableRunning=!0,uu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Nc(e)}function xE(e){let t=()=>{SE(e)},n=ME++;e._inner=e._inner.fork({name:"angular",properties:{[cu]:!0,[Ni]:n,[Ni+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(AE(c))return r.invokeTask(i,s,a,c);try{return zd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Gd(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return zd(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!RE(c)&&t(),Gd(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Nc(e),uu(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Nc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function zd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Gd(e){e._nesting--,uu(e)}var Si=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Qe;onMicrotaskEmpty=new Qe;onStable=new Qe;onError=new Qe;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 AE(e){return kp(e,"__ignore_ng_zone__")}function RE(e){return kp(e,"__scheduler_tick__")}function kp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var lu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),Pp=[0,1,2,3],Lp=(()=>{class e{ngZone=m(K);scheduler=m(we);errorHandler=m(qe,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){m(xr,{optional:!0})}execute(){let n=this.sequences.size>0;n&&R(16),this.executing=!0;for(let r of Pp)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&R(17)}register(n){let{view:r}=n;r!==void 0?((r[Ut]??=[]).push(n),yt(r),r[I]|=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=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Gi.AFTER_NEXT_RENDER,n):n()}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),xi=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;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=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Ut];t&&(this.view[Ut]=t.filter(n=>n!==this))}};function OE(e,t){let n=t?.injector??m(Oe);return Hi("NgAfterNextRender"),kE(e,n,t,!0)}function FE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function kE(e,t,n,r){let o=t.get(lu);o.impl??=t.get(Lp);let i=t.get(xr,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(Ye):null,a=t.get(bn,null,{optional:!0}),c=new xi(o.impl,FE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var PE=(()=>{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 jp=new b("");function Wi(e){return!!e&&typeof e.then=="function"}function du(e){return!!e&&typeof e.subscribe=="function"}var Vp=new b("");var fu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=m(Vp,{optional:!0})??[];injector=m(Oe);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=gn(this.injector,o);if(Wi(i))n.push(i);else if(du(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Bp=new b("");function Hp(){Ds(()=>{let e="";throw new D(600,e)})}function $p(e){return e.isBoundToModule}var LE=10;var Ar=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=m(Ve);afterRenderManager=m(lu);zonelessEnabled=m(hr);rootEffectScheduler=m(mr);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ce;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=m(Dt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(me(n=>!n))}constructor(){m(xr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=m(le);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Oe.NULL){return this._injector.get(K).run(()=>{R(10);let s=n instanceof Bi;if(!this._injector.get(fu).done){let h="";throw new D(405,h)}let c;s?c=n:c=this._injector.get(Sr).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=$p(c)?void 0:this._injector.get(Kt),l=r||c.selector,d=c.create(o,[],l,u),p=d.location.nativeElement,f=d.injector.get(jp,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),vr(this.components,d),f?.unregisterApplication(p)}),this._loadComponent(d),R(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){R(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Gi.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new D(101,!1);let n=T(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,T(n),this.afterTick.next(),R(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(wr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<LE;)R(14),this.synchronizeOnce(),R(15)}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!lr(o))continue;let i=r&&!this.zonelessEnabled?0:1;tu(o,i),n=!0}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})=>lr(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;vr(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(Bp,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>vr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);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=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Up(e,t,n,r){let o=_(),i=fr();if(Ke(o,i,t)){let s=$(),a=ri();Xv(a,o,e,t,n,r)}return Up}var jE=new b("",{providedIn:"root",factory:()=>!1}),VE=new b("",{providedIn:"root",factory:()=>BE}),BE=4e3;var cA=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function zp(e,t,n){let r=_(),o=fr();if(Ke(r,o,t)){let i=$(),s=ri();Kf(s,r,e,t,r[P],n)}return zp}function Sc(e,t,n,r,o){Xc(t,e,n,o?"class":"style",r)}function pu(e,t,n,r){let o=_(),i=o[E],s=e+V,a=i.firstCreatePass?ru(s,o,2,t,Qc,Qo(),n,r):i.data[s];if(Kc(a,o,e,t,qp),Dn(a)){let c=o[E];ji(c,o,a),Vc(c,a,o)}return r!=null&&Nr(o,a),pu}function hu(){let e=$(),t=W(),n=Jc(t);return e.firstCreatePass&&ou(e,n),xa(n)&&Aa(),Na(),n.classesWithoutHost!=null&&cy(n)&&Sc(e,n,_(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&uy(n)&&Sc(e,n,_(),n.stylesWithoutHost,!1),hu}function Gp(e,t,n,r){return pu(e,t,n,r),hu(),Gp}function gu(e,t,n,r){let o=_(),i=o[E],s=e+V,a=i.firstCreatePass?kD(s,i,2,t,n,r):i.data[s];return Kc(a,o,e,t,qp),r!=null&&Nr(o,a),gu}function mu(){let e=W(),t=Jc(e);return xa(t)&&Aa(),Na(),mu}function Wp(e,t,n,r){return gu(e,t,n,r),mu(),Wp}var qp=(e,t,n,r,o)=>(pr(!0),jf(t[P],r,hd()));function Zp(e,t,n){let r=_(),o=r[E],i=e+V,s=o.firstCreatePass?ru(i,r,8,"ng-container",Qc,Qo(),t,n):o.data[i];if(Kc(s,r,e,"ng-container",HE),Dn(s)){let a=r[E];ji(a,r,s),Vc(a,s,r)}return n!=null&&Nr(r,s),Zp}function Yp(){let e=$(),t=W(),n=Jc(t);return e.firstCreatePass&&ou(e,n),Yp}var HE=(e,t,n,r,o)=>(pr(!0),bv(t[P],""));function $E(){return _()}var Zt=void 0;function UE(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var zE=["en",[["a","p"],["AM","PM"],Zt],[["AM","PM"],Zt,Zt],[["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"]],Zt,[["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"]],Zt,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Zt,"{1} 'at' {0}",Zt],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",UE],Xa={};function ge(e){let t=GE(e),n=Wd(t);if(n)return n;let r=t.split("-")[0];if(n=Wd(r),n)return n;if(r==="en")return zE;throw new D(701,!1)}function Wd(e){return e in Xa||(Xa[e]=Fe.ng&&Fe.ng.common&&Fe.ng.common.locales&&Fe.ng.common.locales[e]),Xa[e]}var B=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(B||{});function GE(e){return e.toLowerCase().replace(/_/g,"-")}var Rr="en-US";var WE=Rr;function Qp(e){typeof e=="string"&&(WE=e.toLowerCase().replace(/_/g,"-"))}function Kp(e,t,n){let r=_(),o=$(),i=W();return Jp(o,r,r[P],i,e,t,n),Kp}function Jp(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Qa(r,t,i),jD(r,e,t,s,n,o,i,c)&&(a=!1)),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??=Qa(r,t,i),jd(r,t,p,f,o,c)}if(u&&u.length)for(let d of u)c??=Qa(r,t,i),jd(r,t,d,o,o,c)}}function qE(e=1){return dd(e)}function ZE(e,t){let n=null,r=gv(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?Lf(e,i,!0):vv(r,i))return o}return n}function YE(e){let t=_()[de][se];if(!t.projection){let n=e?e.length:1,r=t.projection=Pl(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?ZE(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function QE(e,t=0,n,r,o,i){let s=_(),a=$(),c=r?e+1:null;c!==null&&bE(s,a,c,r,o,i,null,n);let u=Pn(a,V+e,16,null,n||null);u.projection===null&&(u.projection=t),Fa();let d=!s[mn]||Sa();s[de][se].projection[u.projection]===null&&c!==null?KE(s,a,c):d&&!Oi(u)&&Hv(a,s,u)}function KE(e,t,n){let r=V+n,o=t.data[r],i=e[r],s=vc(i,o.tView.ssrId),a=Jf(e,o,void 0,{dehydratedView:s});up(i,a,0,gc(o,s))}function JE(e,t,n,r){aE(e,t,n,r)}function XE(e,t,n){sE(e,t,n)}function eI(e){let t=_(),n=$(),r=La();ei(r+1);let o=au(n,r);if(e.dirty&&Wl(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=lE(t,r);e.reset(i,Cy),e.notifyOnChanges()}return!0}return!1}function tI(){return iE(_(),La())}function nI(e){let t=nd();return qo(t,V+e)}function ui(e,t){return e<<17|t<<2}function Jt(e){return e>>17&32767}function rI(e){return(e&2)==2}function oI(e,t){return e&131071|t<<17}function xc(e){return e|2}function An(e){return(e&131068)>>2}function ec(e,t){return e&-131069|t<<2}function iI(e){return(e&1)===1}function Ac(e){return e|1}function sI(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Jt(s),c=An(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||hn(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let p=Jt(e[a+1]);e[r+1]=ui(p,a),p!==0&&(e[p+1]=ec(e[p+1],r)),e[a+1]=oI(e[a+1],r)}else e[r+1]=ui(a,0),a!==0&&(e[a+1]=ec(e[a+1],r)),a=r;else e[r+1]=ui(c,0),a===0?a=r:e[c+1]=ec(e[c+1],r),c=r;u&&(e[r+1]=xc(e[r+1])),qd(e,l,r,!0),qd(e,l,r,!1),aI(t,l,e,r,i),s=ui(a,c),i?t.classBindings=s:t.styleBindings=s}function aI(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&hn(i,t)>=0&&(n[r+1]=Ac(n[r+1]))}function qd(e,t,n,r){let o=e[n+1],i=t===null,s=r?Jt(o):An(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];cI(c,t)&&(a=!0,e[s+1]=r?Ac(u):xc(u)),s=r?Jt(u):An(u)}a&&(e[n+1]=r?xc(o):Ac(o))}function cI(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?hn(e,t)>=0:!1}var Ne={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function uI(e){return e.substring(Ne.key,Ne.keyEnd)}function lI(e){return dI(e),Xp(e,eh(e,0,Ne.textEnd))}function Xp(e,t){let n=Ne.textEnd;return n===t?-1:(t=Ne.keyEnd=fI(e,Ne.key=t,n),eh(e,t,n))}function dI(e){Ne.key=0,Ne.keyEnd=0,Ne.value=0,Ne.valueEnd=0,Ne.textEnd=e.length}function eh(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function fI(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function th(e,t,n){return rh(e,t,n,!1),th}function nh(e,t){return rh(e,t,null,!0),nh}function pI(e){gI(II,hI,e,!0)}function hI(e,t){for(let n=lI(t);n>=0;n=Xp(t,n))Uo(e,uI(t),!0)}function rh(e,t,n,r){let o=_(),i=$(),s=Cn(2);if(i.firstUpdatePass&&ih(i,e,s,r),t!==Z&&Ke(o,s,t)){let a=i.data[Te()];sh(i,a,o,o[P],e,o[s+1]=CI(t,n),r,s)}}function gI(e,t,n,r){let o=$(),i=Cn(2);o.firstUpdatePass&&ih(o,null,i,r);let s=_();if(n!==Z&&Ke(s,i,n)){let a=o.data[Te()];if(ah(a,r)&&!oh(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Lo(c,n||"")),Sc(o,a,s,n,r)}else wI(o,a,s,s[P],s[i+1],s[i+1]=EI(e,t,n),r,i)}}function oh(e,t){return t>=e.expandoStartIndex}function ih(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Te()],s=oh(e,n);ah(i,r)&&t===null&&!s&&(t=!1),t=mI(o,i,t,r),sI(o,i,t,n,s,r)}}function mI(e,t,n,r){let o=ad(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=tc(null,e,t,n,r),n=_r(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=tc(o,e,t,n,r),i===null){let c=yI(e,t,r);c!==void 0&&Array.isArray(c)&&(c=tc(null,e,t,c[1],r),c=_r(c,t.attrs,r),vI(e,t,r,c))}else i=DI(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function yI(e,t,n){let r=n?t.classBindings:t.styleBindings;if(An(r)!==0)return e[Jt(r)]}function vI(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Jt(o)]=r}function DI(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=_r(r,s,n)}return _r(r,t.attrs,n)}function tc(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=_r(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function _r(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]),Uo(e,s,n?!0:t[++i]))}return e===void 0?null:e}function EI(e,t,n){if(n==null||n==="")return oe;let r=[],o=kn(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function II(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Uo(e,r,n)}function wI(e,t,n,r,o,i,s,a){o===Z&&(o=oe);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,v;l===d?(c+=2,u+=2,p!==f&&(h=d,v=f)):d===null||l!==null&&l<d?(c+=2,h=l):(u+=2,h=d,v=f),h!==null&&sh(e,t,n,r,h,v,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null}}function sh(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=iI(u)?Zd(c,t,n,o,An(u),s):void 0;if(!Ai(l)){Ai(i)||rI(u)&&(i=Zd(c,null,n,o,a,s));let d=Ia(Te(),n);Uv(r,s,d,o,i)}}function Zd(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===Z&&(p=d?oe:void 0);let f=d?zo(p,r):l===r?p:void 0;if(u&&!Ai(f)&&(f=zo(c,r)),Ai(f)&&(a=f,s))return a;let h=e[o+1];o=s?Jt(h):An(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=zo(c,r))}return a}function Ai(e){return e!==void 0}function CI(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=We(kn(e)))),e}function ah(e,t){return(e.flags&(t?8:16))!==0}function bI(e,t=""){let n=_(),r=$(),o=e+V,i=r.firstCreatePass?Pn(r,o,1,t,null):r.data[o],s=_I(r,n,i,t,e);n[o]=s,oi()&&Zc(r,n,s,i),In(i,!1)}var _I=(e,t,n,r,o)=>(pr(!0),wv(t[P],r));function ch(e,t,n,r=""){return Ke(e,fr(),n)?t+ie(n)+r:Z}function TI(e,t,n,r,o,i=""){let s=Jo(),a=Cr(e,s,n,o);return Cn(2),a?t+ie(n)+r+ie(o)+i:Z}function MI(e,t,n,r,o,i,s,a=""){let c=Jo(),u=vp(e,c,n,o,s);return Cn(3),u?t+ie(n)+r+ie(o)+i+ie(s)+a:Z}function NI(e,t,n,r,o,i,s,a,c,u=""){let l=Jo(),d=LD(e,l,n,o,s,c);return Cn(4),d?t+ie(n)+r+ie(o)+i+ie(s)+a+ie(c)+u:Z}function uh(e){return yu("",e),uh}function yu(e,t,n){let r=_(),o=ch(r,e,t,n);return o!==Z&&qi(r,Te(),o),yu}function lh(e,t,n,r,o){let i=_(),s=TI(i,e,t,n,r,o);return s!==Z&&qi(i,Te(),s),lh}function dh(e,t,n,r,o,i,s){let a=_(),c=MI(a,e,t,n,r,o,i,s);return c!==Z&&qi(a,Te(),c),dh}function fh(e,t,n,r,o,i,s,a,c){let u=_(),l=NI(u,e,t,n,r,o,i,s,a,c);return l!==Z&&qi(u,Te(),l),fh}function qi(e,t,n){let r=Ia(t,e);Cv(e[P],r,n)}function ph(e,t,n){za(t)&&(t=t());let r=_(),o=fr();if(Ke(r,o,t)){let i=$(),s=ri();Kf(s,r,e,t,r[P],n)}return ph}function SI(e,t){let n=za(e);return n&&e.set(t),n}function hh(e,t){let n=_(),r=$(),o=W();return Jp(r,n,n[P],o,e,t),hh}function xI(e,t,n=""){return ch(_(),e,t,n)}function AI(e,t,n){let r=$();if(r.firstCreatePass){let o=je(e);Rc(n,r.data,r.blueprint,o,!0),Rc(t,r.data,r.blueprint,o,!1)}}function Rc(e,t,n,r,o){if(e=Q(e),Array.isArray(e))for(let i=0;i<e.length;i++)Rc(e[i],t,n,r,o);else{let i=$(),s=_(),a=W(),c=kt(e)?e:Q(e.provide),u=ma(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(kt(e)||!e.multi){let f=new Qt(u,o,fe,null),h=rc(c,t,o?l:l+p,d);h===-1?(ic(vi(a,s),i,c),nc(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=rc(c,t,l+p,d),h=rc(c,t,l,l+p),v=f>=0&&n[f],y=h>=0&&n[h];if(o&&!y||!o&&!v){ic(vi(a,s),i,c);let g=FI(o?OI:RI,n.length,o,r,u,e);!o&&y&&(n[h].providerFactory=g),nc(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(g),s.push(g)}else{let g=gh(n[o?h:f],u,!o&&r);nc(i,e,f>-1?f:h,g)}!o&&r&&y&&n[h].componentProviders++}}}function nc(e,t,n,r){let o=kt(t),i=$l(t);if(o||i){let c=(i?Q(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 gh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function rc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function RI(e,t,n,r,o){return Oc(this.multi,[])}function OI(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Dr(r,r[E],this.providerFactory.index,o);s=c.slice(0,a),Oc(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],Oc(i,s);return s}function Oc(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function FI(e,t,n,r,o,i){let s=new Qt(e,n,fe,null);return s.multi=[],s.index=t,s.componentProviders=0,gh(s,o,r&&!n),s}function kI(e,t=[]){return n=>{n.providersResolver=(r,o)=>AI(r,o?o(e):e,t)}}function PI(e,t,n){let r=Ko()+e,o=_();return o[r]===Z?su(o,r,n?t.call(n):t()):PD(o,r)}function mh(e,t){let n=e[t];return n===Z?void 0:n}function LI(e,t,n,r,o,i,s){let a=t+n;return Cr(e,a,o,i)?su(e,a+2,s?r.call(s,o,i):r(o,i)):mh(e,a+2)}function jI(e,t,n,r,o,i,s,a){let c=t+n;return vp(e,c,o,i,s)?su(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):mh(e,c+3)}function VI(e,t){let n=$(),r,o=e+V;n.firstCreatePass?(r=BI(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=ut(r.type,!0)),s,a=re(fe);try{let c=yi(!1),u=i();return yi(c),wa(n,_(),o,u),u}finally{re(a)}}function BI(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function HI(e,t,n,r){let o=e+V,i=_(),s=qo(i,o);return yh(i,o)?LI(i,Ko(),t,s.transform,n,r,s):s.transform(n,r)}function $I(e,t,n,r,o){let i=e+V,s=_(),a=qo(s,i);return yh(s,i)?jI(s,Ko(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function yh(e,t){return e[E].data[t].pure}function UI(e,t){return Vi(e,t)}var Ri=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},zI=(()=>{class e{compileModuleSync(n){return new Mi(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=da(n),i=kf(o.declarations).reduce((s,a)=>{let c=ft(a);return c&&s.push(new xn(c)),s},[]);return new Ri(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var GI=(()=>{class e{zone=m(K);changeDetectionScheduler=m(we);applicationRef=m(Ar);applicationErrorHandler=m(Ve);_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=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vh=new b("",{factory:()=>!1});function vu({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new K(Y(H({},Du()),{scheduleInRootZone:n})),[{provide:K,useFactory:e},{provide:Vt,multi:!0,useFactory:()=>{let r=m(GI,{optional:!0});return()=>r.initialize()}},{provide:Vt,multi:!0,useFactory:()=>{let r=m(qI);return()=>{r.initialize()}}},t===!0?{provide:Ga,useValue:!0}:[],{provide:Wa,useValue:n??Op},{provide:Ve,useFactory:()=>{let r=m(K),o=m(le),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(qe),i.handleError(s))})}}}]}function WI(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=vu({ngZoneFactory:()=>{let o=Du(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&Hi("NgZone_CoalesceEvent"),new K(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return sr([{provide:vh,useValue:!0},{provide:hr,useValue:!1},r])}function Du(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var qI=(()=>{class e{subscription=new j;initialized=!1;zone=m(K);pendingTasks=m(Dt);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{K.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{K.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Dh=(()=>{class e{applicationErrorHandler=m(Ve);appRef=m(Ar);taskService=m(Dt);ngZone=m(K);zonelessEnabled=m(hr);tracing=m(xr,{optional:!0});disableScheduling=m(Ga,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new j;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ni):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(m(Wa,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Si||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Ud:Fp;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ni+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.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ud(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,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=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ZI(){return typeof $localize<"u"&&$localize.locale||Rr}var Or=new b("",{providedIn:"root",factory:()=>m(Or,{optional:!0,skipSelf:!0})||ZI()});function Eh(e){return Tl(e)}function YI(e,t){return Jr(e,t?.equal)}var Eu=class{[X];constructor(t){this[X]=t}destroy(){this[X].destroy()}};function QI(e,t){let n=t?.injector??m(Oe),r=t?.manualCleanup!==!0?n.get(Ye):null,o,i=n.get(bn,null,{optional:!0}),s=n.get(we);return i!==null?(o=XI(i.view,s,e),r instanceof nr&&r._lView===i.view&&(r=null)):o=ew(e,n.get(mr),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new Eu(o)}var Ih=Y(H({},rt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:qt,run(){if(this.dirty=!1,this.hasRun&&!rn(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=ot(this),n=wn(!1);try{this.maybeCleanup(),this.fn(e)}finally{wn(n),bt(this,t)}},maybeCleanup(){if(!this.cleanupFns?.length)return;let e=T(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],T(e)}}}),KI=Y(H({},Ih),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){_t(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),JI=Y(H({},Ih),{consumerMarkedDirty(){this.view[I]|=8192,yt(this.view),this.notifier.notify(13)},destroy(){_t(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Ze]?.delete(this)}});function XI(e,t,n){let r=Object.create(JI);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[Ze]??=new Set,e[Ze].add(r),r.consumerMarkedDirty(r),r}function ew(e,t,n){let r=Object.create(KI);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}var Th=Symbol("InputSignalNode#UNSET"),aw=Y(H({},Xr),{transformFn:void 0,applyValueToInputSignal(e,t){sn(e,t)}});function Mh(e,t){let n=Object.create(aw);n.value=e,n.transformFn=t?.transform;function r(){if(nn(n),n.value===Th){let o=null;throw new D(-950,o)}return n.value}return r[X]=n,r}var wh=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>Pc(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},cw=new b("");cw.__NG_ELEMENT_ID__=e=>{let t=W();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new D(204,!1)};function Ch(e,t){return Mh(e,t)}function uw(e){return Mh(Th,e)}var IL=(Ch.required=uw,Ch);var Iu=new b(""),lw=new b("");function Fr(e){return!e.moduleRef}function dw(e){let t=Fr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(K);return n.run(()=>{Fr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ve),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Fr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Iu);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Iu);s.add(i),e.moduleRef.onDestroy(()=>{vr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return pw(r,n,()=>{let i=t.get(Dt),s=i.add(),a=t.get(fu);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Or,Rr);if(Qp(c||Rr),!t.get(lw,!0))return Fr(e)?t.get(Ar):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Fr(e)){let l=t.get(Ar);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return fw?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void i.remove(s))})})}var fw;function pw(e,t,n){try{let r=n();return Wi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Zi=null;function hw(e=[],t){return Oe.create({name:t,providers:[{provide:ga,useValue:"platform"},{provide:Iu,useValue:new Set([()=>Zi=null])},...e]})}function gw(e=[]){if(Zi)return Zi;let t=hw(e);return Zi=t,Hp(),mw(t),t}function mw(e){let t=e.get(Ef,null);gn(e,()=>{t?.forEach(n=>n())})}var yw=(()=>{class e{static __NG_ELEMENT_ID__=vw}return e})();function vw(e){return Dw(W(),_(),(e&16)===16)}function Dw(e,t,n){if(gt(e)&&!n){let r=De(e.index,t);return new Et(r,r)}else if(e.type&175){let r=t[de];return new Et(r,t)}return null}var wu=class{constructor(){}supports(t){return iu(t)}create(t){return new Cu(t)}},Ew=(e,t)=>t,Cu=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Ew}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<bh(r,o,i)?n:r,a=bh(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let p=0;p<u;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;l<=h&&h<u&&(i[p]=f+1)}let d=s.previousIndex;i[d]=l-u}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!iu(t))throw new D(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,mp(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new bu(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Yi),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Yi),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},bu=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},_u=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Yi=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new _u,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function bh(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function _h(){return new Tu([new wu])}var Tu=(()=>{class e{factories;static \u0275prov=x({token:e,providedIn:"root",factory:_h});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||_h()),deps:[[e,new Qd,new Yd]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new D(901,!1)}}return e})();function wL(e){R(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=gw(r),i=[vu({}),{provide:we,useExisting:Dh},yd,...n||[]],s=new br({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return dw({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{R(9)}}function CL(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var xh=null;function Qi(){return xh}function Iw(e){xh??=e}var Nu=class{},Su=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>m(Ah),providedIn:"platform"})}return e})();var Ah=(()=>{class e extends Su{_location;_history;_doc=m(Wt);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qi().getBaseHref(this._doc)}onPopState(n){let r=Qi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Qi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>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 Rh(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Nh(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function wt(e){return e&&e[0]!=="?"?`?${e}`:e}var Ki=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>m(Fh),providedIn:"root"})}return e})(),Oh=new b(""),Fh=(()=>{class e extends Ki{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??m(Wt).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 Rh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+wt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+wt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+wt(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)(L(Su),L(Oh,8))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),kh=(()=>{class e{_subject=new ce;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=bw(Nh(Sh(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+wt(r))}normalize(n){return e.stripTrailingSlash(Cw(this._basePath,Sh(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+wt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+wt(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=wt;static joinWithSlash=Rh;static stripTrailingSlash=Nh;static \u0275fac=function(r){return new(r||e)(L(Ki))};static \u0275prov=x({token:e,factory:()=>ww(),providedIn:"root"})}return e})();function ww(){return new kh(L(Ki))}function Cw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Sh(e){return e.replace(/\/index.html$/,"")}function bw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var te=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(te||{}),O=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(O||{}),pe=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(pe||{}),et={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Vh(e){return ge(e)[B.LocaleId]}function Bh(e,t,n){let r=ge(e),o=[r[B.DayPeriodsFormat],r[B.DayPeriodsStandalone]],i=Ee(o,t);return Ee(i,n)}function Hh(e,t,n){let r=ge(e),o=[r[B.DaysFormat],r[B.DaysStandalone]],i=Ee(o,t);return Ee(i,n)}function $h(e,t,n){let r=ge(e),o=[r[B.MonthsFormat],r[B.MonthsStandalone]],i=Ee(o,t);return Ee(i,n)}function Uh(e,t){let r=ge(e)[B.Eras];return Ee(r,t)}function kr(e,t){let n=ge(e);return Ee(n[B.DateFormat],t)}function Pr(e,t){let n=ge(e);return Ee(n[B.TimeFormat],t)}function Lr(e,t){let r=ge(e)[B.DateTimeFormat];return Ee(r,t)}function jr(e,t){let n=ge(e),r=n[B.NumberSymbols][t];if(typeof r>"u"){if(t===et.CurrencyDecimal)return n[B.NumberSymbols][et.Decimal];if(t===et.CurrencyGroup)return n[B.NumberSymbols][et.Group]}return r}function zh(e){if(!e[B.ExtraData])throw new D(2303,!1)}function Gh(e){let t=ge(e);return zh(t),(t[B.ExtraData][2]||[]).map(r=>typeof r=="string"?xu(r):[xu(r[0]),xu(r[1])])}function Wh(e,t,n){let r=ge(e);zh(r);let o=[r[B.ExtraData][0],r[B.ExtraData][1]],i=Ee(o,t)||[];return Ee(i,n)||[]}function Ee(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new D(2304,!1)}function xu(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var _w=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ji={},Tw=/((?:[^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]*)/;function qh(e,t,n,r){let o=kw(e);t=Xe(n,t)||t;let s=[],a;for(;t;)if(a=Tw.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=Yh(r,c),o=Fw(o,r));let u="";return s.forEach(l=>{let d=Rw(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function rs(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Xe(e,t){let n=Vh(e);if(Ji[n]??={},Ji[n][t])return Ji[n][t];let r="";switch(t){case"shortDate":r=kr(e,pe.Short);break;case"mediumDate":r=kr(e,pe.Medium);break;case"longDate":r=kr(e,pe.Long);break;case"fullDate":r=kr(e,pe.Full);break;case"shortTime":r=Pr(e,pe.Short);break;case"mediumTime":r=Pr(e,pe.Medium);break;case"longTime":r=Pr(e,pe.Long);break;case"fullTime":r=Pr(e,pe.Full);break;case"short":let o=Xe(e,"shortTime"),i=Xe(e,"shortDate");r=Xi(Lr(e,pe.Short),[o,i]);break;case"medium":let s=Xe(e,"mediumTime"),a=Xe(e,"mediumDate");r=Xi(Lr(e,pe.Medium),[s,a]);break;case"long":let c=Xe(e,"longTime"),u=Xe(e,"longDate");r=Xi(Lr(e,pe.Long),[c,u]);break;case"full":let l=Xe(e,"fullTime"),d=Xe(e,"fullDate");r=Xi(Lr(e,pe.Full),[l,d]);break}return r&&(Ji[n][t]=r),r}function Xi(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Se(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 Mw(e,t){return Se(e,3).substring(0,t)}function U(e,t,n=0,r=!1,o=!1){return function(i,s){let a=Nw(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return Mw(a,t);let c=jr(s,et.MinusSign);return Se(a,t,c,r,o)}}function Nw(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 D(2301,!1)}}function F(e,t,n=te.Format,r=!1){return function(o,i){return Sw(o,i,e,t,n,r)}}function Sw(e,t,n,r,o,i){switch(n){case 2:return $h(t,o,r)[e.getMonth()];case 1:return Hh(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Gh(t),l=Wh(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,v=s>=f.hours&&a>=f.minutes,y=s<h.hours||s===h.hours&&a<h.minutes;if(f.hours<h.hours){if(v&&y)return!0}else if(v||y)return!0}else if(p.hours===s&&p.minutes===a)return!0;return!1});if(d!==-1)return l[d]}return Bh(t,o,r)[s<12?0:1];case 3:return Uh(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new D(2302,!1)}}function es(e){return function(t,n,r){let o=-1*r,i=jr(n,et.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+Se(s,2,i)+Se(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+Se(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+Se(s,2,i)+":"+Se(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Se(s,2,i)+":"+Se(Math.abs(o%60),2,i);default:throw new D(2302,!1)}}}var xw=0,ns=4;function Aw(e){let t=rs(e,xw,1).getDay();return rs(e,0,1+(t<=ns?ns:ns+7)-t)}function Zh(e){let t=e.getDay(),n=t===0?-3:ns-t;return rs(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Au(e,t=!1){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=Zh(n),s=Aw(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Se(o,e,jr(r,et.MinusSign))}}function ts(e,t=!1){return function(n,r){let i=Zh(n).getFullYear();return Se(i,e,jr(r,et.MinusSign),t)}}var Ru={};function Rw(e){if(Ru[e])return Ru[e];let t;switch(e){case"G":case"GG":case"GGG":t=F(3,O.Abbreviated);break;case"GGGG":t=F(3,O.Wide);break;case"GGGGG":t=F(3,O.Narrow);break;case"y":t=U(0,1,0,!1,!0);break;case"yy":t=U(0,2,0,!0,!0);break;case"yyy":t=U(0,3,0,!1,!0);break;case"yyyy":t=U(0,4,0,!1,!0);break;case"Y":t=ts(1);break;case"YY":t=ts(2,!0);break;case"YYY":t=ts(3);break;case"YYYY":t=ts(4);break;case"M":case"L":t=U(1,1,1);break;case"MM":case"LL":t=U(1,2,1);break;case"MMM":t=F(2,O.Abbreviated);break;case"MMMM":t=F(2,O.Wide);break;case"MMMMM":t=F(2,O.Narrow);break;case"LLL":t=F(2,O.Abbreviated,te.Standalone);break;case"LLLL":t=F(2,O.Wide,te.Standalone);break;case"LLLLL":t=F(2,O.Narrow,te.Standalone);break;case"w":t=Au(1);break;case"ww":t=Au(2);break;case"W":t=Au(1,!0);break;case"d":t=U(2,1);break;case"dd":t=U(2,2);break;case"c":case"cc":t=U(7,1);break;case"ccc":t=F(1,O.Abbreviated,te.Standalone);break;case"cccc":t=F(1,O.Wide,te.Standalone);break;case"ccccc":t=F(1,O.Narrow,te.Standalone);break;case"cccccc":t=F(1,O.Short,te.Standalone);break;case"E":case"EE":case"EEE":t=F(1,O.Abbreviated);break;case"EEEE":t=F(1,O.Wide);break;case"EEEEE":t=F(1,O.Narrow);break;case"EEEEEE":t=F(1,O.Short);break;case"a":case"aa":case"aaa":t=F(0,O.Abbreviated);break;case"aaaa":t=F(0,O.Wide);break;case"aaaaa":t=F(0,O.Narrow);break;case"b":case"bb":case"bbb":t=F(0,O.Abbreviated,te.Standalone,!0);break;case"bbbb":t=F(0,O.Wide,te.Standalone,!0);break;case"bbbbb":t=F(0,O.Narrow,te.Standalone,!0);break;case"B":case"BB":case"BBB":t=F(0,O.Abbreviated,te.Format,!0);break;case"BBBB":t=F(0,O.Wide,te.Format,!0);break;case"BBBBB":t=F(0,O.Narrow,te.Format,!0);break;case"h":t=U(3,1,-12);break;case"hh":t=U(3,2,-12);break;case"H":t=U(3,1);break;case"HH":t=U(3,2);break;case"m":t=U(4,1);break;case"mm":t=U(4,2);break;case"s":t=U(5,1);break;case"ss":t=U(5,2);break;case"S":t=U(6,1);break;case"SS":t=U(6,2);break;case"SSS":t=U(6,3);break;case"Z":case"ZZ":case"ZZZ":t=es(0);break;case"ZZZZZ":t=es(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=es(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=es(2);break;default:return null}return Ru[e]=t,t}function Yh(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Ow(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Fw(e,t,n){let o=e.getTimezoneOffset(),i=Yh(t,o);return Ow(e,-1*(i-o))}function kw(e){if(Ph(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 rs(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(_w))return Pw(r)}let t=new Date(e);if(!Ph(t))throw new D(2302,!1);return t}function Pw(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 Ph(e){return e instanceof Date&&!isNaN(e.valueOf())}var os=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Qh=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new os(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Lh(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Lh(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(fe(Xt),fe(It),fe(Tu))};static \u0275dir=Ui({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Lh(e,t){e.context.$implicit=t.item}var Lw=(()=>{class e{_viewContainer;_context=new is;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){jh(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){jh(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(fe(Xt),fe(It))};static \u0275dir=Ui({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),is=class{$implicit=null;ngIf=null};function jh(e,t){if(e&&!e.createEmbeddedView)throw new D(2020,!1)}function Kh(e,t){return new D(2100,!1)}var jw="mediumDate",Jh=new b(""),Xh=new b(""),Vw=(()=>{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??jw,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return qh(n,s,i||this.locale,a)}catch(s){throw Kh(e,s.message)}}static \u0275fac=function(r){return new(r||e)(fe(Or,16),fe(Jh,24),fe(Xh,24))};static \u0275pipe=zi({name:"date",type:e,pure:!0})}return e})();var Bw=(()=>{class e{transform(n,r,o){if(n==null)return null;if(!(typeof n=="string"||Array.isArray(n)))throw Kh(e,n);return n.slice(r,o)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=zi({name:"slice",type:e,pure:!1})}return e})();var Hw=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=$i({type:e});static \u0275inj=rr({})}return e})();function Ou(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 Vr=class{};var $w="browser";function F1(e){return e===$w}var jn=class{},Vn=class{},$e=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 cs=class{encodeKey(t){return eg(t)}encodeValue(t){return eg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Uw(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 zw=/%(\d[a-f0-9])/gi,Gw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function eg(e){return encodeURIComponent(e).replace(zw,(t,n)=>Gw[n]??t)}function ss(e){return`${e}`}var tt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new cs,t.fromString){if(t.fromObject)throw new D(2805,!1);this.map=Uw(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(ss):[ss(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(ss(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(ss(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)}};var us=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Ww(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function tg(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function ng(e){return typeof Blob<"u"&&e instanceof Blob}function rg(e){return typeof FormData<"u"&&e instanceof FormData}function qw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Br="Content-Type",ls="Accept",ju="X-Request-URL",ig="text/plain",sg="application/json",ag=`${sg}, ${ig}, */*`,Ln=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(Ww(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,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 D(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&&(this.referrer=i.referrer),this.transferCache=i.transferCache}if(this.headers??=new $e,this.context??=new us,!this.params)this.params=new tt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||tg(this.body)||ng(this.body)||rg(this.body)||qw(this.body)?this.body:this.body instanceof tt?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||rg(this.body)?null:ng(this.body)?this.body.type||null:tg(this.body)?null:typeof this.body=="string"?ig:this.body instanceof tt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?sg: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.transferCache??this.transferCache,h=t.timeout??this.timeout,v=t.body!==void 0?t.body:this.body,y=t.withCredentials??this.withCredentials,g=t.reportProgress??this.reportProgress,z=t.headers||this.headers,xe=t.params||this.params,G=t.context??this.context;return t.setHeaders!==void 0&&(z=Object.keys(t.setHeaders).reduce((Ae,Ue)=>Ae.set(Ue,t.setHeaders[Ue]),z)),t.setParams&&(xe=Object.keys(t.setParams).reduce((Ae,Ue)=>Ae.set(Ue,t.setParams[Ue]),xe)),new e(n,r,v,{params:xe,headers:z,context:G,reportProgress:g,responseType:o,withCredentials:y,transferCache:f,keepalive:i,cache:a,priority:s,timeout:h,mode:c,redirect:u,credentials:l,referrer:d,integrity:p})}},nt=(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})(nt||{}),Bn=class{headers;status;statusText;url;ok;type;redirected;constructor(t,n=200,r="OK"){this.headers=t.headers||new $e,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.ok=this.status>=200&&this.status<300}},Hr=class e extends Bn{constructor(t={}){super(t)}type=nt.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})}},Hn=class e extends Bn{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=nt.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})}},He=class extends Bn{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},cg=200,Zw=204;function Fu(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer}}var ug=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Ln)i=n;else{let c;o.headers instanceof $e?c=o.headers:c=new $e(o.headers);let u;o.params&&(o.params instanceof tt?u=o.params:u=new tt({fromObject:o.params})),i=new Ln(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,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,integrity:o.integrity,timeout:o.timeout})}let s=_o(i).pipe(Ps(c=>this.handler.handle(c)));if(n instanceof Ln||o.observe==="events")return s;let a=s.pipe(Rt(c=>c instanceof Hn));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(me(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new D(2806,!1);return c.body}));case"blob":return a.pipe(me(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new D(2807,!1);return c.body}));case"text":return a.pipe(me(c=>{if(c.body!==null&&typeof c.body!="string")throw new D(2808,!1);return c.body}));case"json":default:return a.pipe(me(c=>c.body))}case"response":return a;default:throw new D(2809,!1)}}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 tt().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,Fu(o,r))}post(n,r,o={}){return this.request("POST",n,Fu(o,r))}put(n,r,o={}){return this.request("PUT",n,Fu(o,r))}static \u0275fac=function(r){return new(r||e)(L(jn))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Yw=/^\)\]\}',?\n/;function og(e){if(e.url)return e.url;let t=ju.toLocaleLowerCase();return e.headers.get(t)}var lg=new b(""),as=(()=>{class e{fetchImpl=m(ku,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=m(K);destroyRef=m(Ye);destroyed=!1;constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0})}handle(n){return new S(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(Pu,s=>r.error(new He({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 en(this,null,function*(){let i=this.createRequestInit(n),s;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,H({signal:r},i)));Qw(h),o.next({type:nt.Sent}),s=yield h}catch(h){o.error(new He({error:h,status:h.status??0,statusText:h.statusText,url:n.urlWithParams,headers:h.headers}));return}let a=new $e(s.headers),c=s.statusText,u=og(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new Hr({headers:a,status:l,statusText:c,url:u})),s.body){let h=s.headers.get("content-length"),v=[],y=s.body.getReader(),g=0,z,xe,G=typeof Zone<"u"&&Zone.current,Ae=!1;if(yield this.ngZone.runOutsideAngular(()=>en(this,null,function*(){for(;;){if(this.destroyed){yield y.cancel(),Ae=!0;break}let{done:Ct,value:fs}=yield y.read();if(Ct)break;if(v.push(fs),g+=fs.length,n.reportProgress){xe=n.responseType==="text"?(xe??"")+(z??=new TextDecoder).decode(fs,{stream:!0}):void 0;let Bu=()=>o.next({type:nt.DownloadProgress,total:h?+h:void 0,loaded:g,partialText:xe});G?G.run(Bu):Bu()}}})),Ae){o.complete();return}let Ue=this.concatChunks(v,g);try{let Ct=s.headers.get(Br)??"";d=this.parseBody(n,Ue,Ct,l)}catch(Ct){o.error(new He({error:Ct,headers:new $e(s.headers),status:s.status,statusText:s.statusText,url:og(s)??n.urlWithParams}));return}}l===0&&(l=d?cg:0);let p=l>=200&&l<300,f=s.redirected;p?(o.next(new Hn({body:d,headers:a,status:l,statusText:c,url:u,redirected:f})),o.complete()):o.error(new He({error:d,headers:a,status:l,statusText:c,url:u,redirected:f}))})}parseBody(n,r,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(Yw,"");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){let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(ls)||(r[ls]=ag),!n.headers.has(Br)){let i=n.detectContentTypeHeader();i!==null&&(r[Br]=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}}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=x({token:e,factory:e.\u0275fac})}return e})(),ku=class{};function Pu(){}function Qw(e){e.then(Pu,Pu)}function Kw(e,t){return t(e)}function Jw(e,t,n){return(r,o)=>gn(n,()=>t(r,i=>e(i,o)))}var dg=new b(""),fg=new b(""),pg=new b("",{providedIn:"root",factory:()=>!0});var ds=(()=>{class e extends jn{backend;injector;chain=null;pendingTasks=m(gr);contributeToStability=m(pg);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(dg),...this.injector.get(fg,[])]));this.chain=r.reduceRight((o,i)=>Jw(o,i,this.injector),Kw)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(js(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(L(Vn),L(le))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();var Xw=/^\)\]\}',?\n/,eC=RegExp(`^${ju}:`,"m");function tC(e){return"responseURL"in e&&e.responseURL?e.responseURL:eC.test(e.getAllResponseHeaders())?e.getResponseHeader(ju):null}var Lu=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new D(-2800,!1);let r=this.xhrFactory;return _o(null).pipe(Ao(()=>new S(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((y,g)=>s.setRequestHeader(y,g.join(","))),n.headers.has(ls)||s.setRequestHeader(ls,ag),!n.headers.has(Br)){let y=n.detectContentTypeHeader();y!==null&&s.setRequestHeader(Br,y)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let y=n.responseType.toLowerCase();s.responseType=y!=="json"?y:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let y=s.statusText||"OK",g=new $e(s.getAllResponseHeaders()),z=tC(s)||n.url;return c=new Hr({headers:g,status:s.status,statusText:y,url:z}),c},l=()=>{let{headers:y,status:g,statusText:z,url:xe}=u(),G=null;g!==Zw&&(G=typeof s.response>"u"?s.responseText:s.response),g===0&&(g=G?cg:0);let Ae=g>=200&&g<300;if(n.responseType==="json"&&typeof G=="string"){let Ue=G;G=G.replace(Xw,"");try{G=G!==""?JSON.parse(G):null}catch(Ct){G=Ue,Ae&&(Ae=!1,G={error:Ct,text:G})}}Ae?(i.next(new Hn({body:G,headers:y,status:g,statusText:z,url:xe||void 0})),i.complete()):i.error(new He({error:G,headers:y,status:g,statusText:z,url:xe||void 0}))},d=y=>{let{url:g}=u(),z=new He({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:g||void 0});i.error(z)},p=d;n.timeout&&(p=y=>{let{url:g}=u(),z=new He({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:g||void 0});i.error(z)});let f=!1,h=y=>{f||(i.next(u()),f=!0);let g={type:nt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(g.total=y.total),n.responseType==="text"&&s.responseText&&(g.partialText=s.responseText),i.next(g)},v=y=>{let g={type:nt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(g.total=y.total),i.next(g)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",p),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),a!==null&&s.upload&&s.upload.addEventListener("progress",v)),s.send(a),i.next({type:nt.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",p),n.reportProgress&&(s.removeEventListener("progress",h),a!==null&&s.upload&&s.upload.removeEventListener("progress",v)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(L(Vr))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),hg=new b(""),nC="XSRF-TOKEN",rC=new b("",{providedIn:"root",factory:()=>nC}),oC="X-XSRF-TOKEN",iC=new b("",{providedIn:"root",factory:()=>oC}),$r=class{},sC=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ou(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(L(Wt),L(rC))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function aC(e,t){let n=e.url.toLowerCase();if(!m(hg)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=m($r).getToken(),o=m(iC);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Vu=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(Vu||{});function cC(e,t){return{\u0275kind:e,\u0275providers:t}}function uC(...e){let t=[ug,Lu,ds,{provide:jn,useExisting:ds},{provide:Vn,useFactory:()=>m(lg,{optional:!0})??m(Lu)},{provide:dg,useValue:aC,multi:!0},{provide:hg,useValue:!0},{provide:$r,useClass:sC}];for(let n of e)t.push(...n.\u0275providers);return sr(t)}function lC(){return cC(Vu.Fetch,[as,{provide:lg,useExisting:as},{provide:Vn,useExisting:as}])}export{H as a,Y as b,dC as c,fC as d,j as e,Og as f,S as g,xs as h,As as i,ce as j,zn as k,Wn as l,Vg as m,Bg as n,Qn as o,ct as p,_o as q,Zg as r,Yg as s,xt as t,me as u,rm as v,At as w,Fs as x,So as y,im as z,sm as A,Rt as B,am as C,ks as D,Ps as E,cm as F,Kn as G,Ls as H,um as I,js as J,fm as K,Vs as L,pm as M,hm as N,gm as O,mm as P,ym as Q,Ao as R,vm as S,Dm as T,D as U,jo as V,x as W,rr as X,wm as Y,b as Z,L as _,m as $,sr as aa,ga as ba,le as ca,gn as da,Xl as ea,ed as fa,fd as ga,pd as ha,md as ia,Oe as ja,Wt as ka,Ye as la,qe as ma,Ve as na,$a as oa,Dt as pa,ty as qa,Yd as ra,Jd as sa,Ey as ta,Pc as ua,Fn as va,Ny as wa,Sy as xa,Ef as ya,Ay as za,Ry as Aa,Sn as Ba,tv as Ca,rv as Da,cv as Ea,uv as Fa,Av as Ga,Er as Ha,It as Ia,wr as Ja,fp as Ka,fe as La,Xt as Ma,Tp as Na,Mp as Oa,fE as Pa,$i as Qa,Ui as Ra,xp as Sa,Rp as Ta,xr as Ua,Qe as Va,K as Wa,OE as Xa,PE as Ya,Wi as Za,Bp as _a,Ar as $a,Up as ab,jE as bb,VE as cb,zp as db,pu as eb,hu as fb,Gp as gb,gu as hb,mu as ib,Wp as jb,Zp as kb,Yp as lb,$E as mb,Kp as nb,qE as ob,YE as pb,QE as qb,JE as rb,XE as sb,eI as tb,tI as ub,nI as vb,th as wb,nh as xb,pI as yb,bI as zb,uh as Ab,yu as Bb,lh as Cb,dh as Db,fh as Eb,ph as Fb,SI as Gb,hh as Hb,xI as Ib,kI as Jb,PI as Kb,VI as Lb,HI as Mb,$I as Nb,UI as Ob,zI as Pb,WI as Qb,Eh as Rb,YI as Sb,QI as Tb,wh as Ub,IL as Vb,yw as Wb,Tu as Xb,wL as Yb,CL as Zb,Qi as _b,Iw as $b,Nu as ac,Ki as bc,kh as cc,Qh as dc,Lw as ec,Vw as fc,Bw as gc,Hw as hc,Ou as ic,Vr as jc,$w as kc,F1 as lc,tt as mc,ug as nc,uC as oc,lC as pc};
@@ -0,0 +1 @@
1
+ import{a as k}from"./chunk-NUMLL3OZ.js";import{a as V}from"./chunk-N7UHDKJ7.js";import{b as z,d as L}from"./chunk-3FFYILBL.js";import{a as R}from"./chunk-ITIFFECZ.js";import{$ as p,Ab as m,Bb as _,Cb as T,Ga as i,Lb as y,Nb as M,Pa as C,Sb as D,Ta as g,Tb as N,a as B,b as F,db as s,dc as P,ea as h,eb as o,ec as S,fa as b,fb as r,gb as E,gc as H,hc as O,mb as x,nb as f,oa as c,ob as d,xb as v,zb as l}from"./chunk-TQE5NWMZ.js";function U(n,t){n&1&&(o(0,"div",3),l(1,"Loading blame\u2026"),r())}function q(n,t){if(n&1&&(o(0,"div",4),l(1),r()),n&2){let e=t.ngIf;i(),m(e)}}function J(n,t){n&1&&(o(0,"div",3),l(1," No blame data (file may be binary or freshly created). "),r())}function K(n,t){if(n&1){let e=x();o(0,"div",7)(1,"div",8)(2,"code",9),f("click",function(){let u=h(e).$implicit,w=d(2);return b(w.onSelectCommit(u.hash))}),l(3),r(),o(4,"span",10),l(5),r(),o(6,"span",11),l(7),r()(),o(8,"span",12),l(9),r(),o(10,"pre",13),l(11),r()()}if(n&2){let e=t.$implicit,a=d(2);i(),v("invisible",!e.isFirstOfBlock),i(2),m(e.hash.slice(0,7)),i(2),m(e.author),i(2),m(a.shortDate(e.date)),i(2),m(e.line),i(2),m(e.content)}}function Q(n,t){if(n&1&&(o(0,"div",5),g(1,K,12,7,"div",6),r()),n&2){let e=d();i(),s("ngForOf",e.rows())("ngForTrackBy",e.trackByLine)}}var I=class n{gitService=p(k);set file(t){this._file=t,t?this.load(t):this.lines.set([])}get file(){return this._file}_file=null;onCommitClick=null;lines=c([]);loading=c(!1);error=c(null);rows=D(()=>{let t=[],e="";for(let a of this.lines())t.push(F(B({},a),{isFirstOfBlock:a.hash!==e})),e=a.hash;return t});trackByLine(t,e){return e.line}shortDate(t){return(t||"").slice(0,10)}onSelectCommit(t){this.onCommitClick&&this.onCommitClick(t)}load(t){this.loading.set(!0),this.error.set(null),this.gitService.getBlame(t).subscribe({next:e=>{this.lines.set(e),this.loading.set(!1)},error:e=>{this.error.set(e?.error?.error??"Failed to load blame"),this.loading.set(!1)}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=C({type:n,selectors:[["app-blame"]],inputs:{file:"file",onCommitClick:"onCommitClick"},decls:4,vars:4,consts:[["class","empty",4,"ngIf"],["class","empty error",4,"ngIf"],["class","blame",4,"ngIf"],[1,"empty"],[1,"empty","error"],[1,"blame"],["class","row",4,"ngFor","ngForOf","ngForTrackBy"],[1,"row"],[1,"meta"],[1,"hash",3,"click"],[1,"author"],[1,"date"],[1,"line-no"],[1,"code"]],template:function(e,a){e&1&&g(0,U,2,0,"div",0)(1,q,2,1,"div",1)(2,J,2,0,"div",0)(3,Q,2,2,"div",2),e&2&&(s("ngIf",a.loading()),i(),s("ngIf",a.error()),i(),s("ngIf",!a.loading()&&!a.error()&&a.rows().length===0&&a.file),i(),s("ngIf",a.rows().length>0))},dependencies:[O,P,S],styles:["[_nghost-%COMP%]{display:block;font-family:var(--font-mono, monospace);font-size:12.5px}.empty[_ngcontent-%COMP%]{padding:1.5rem;color:var(--fg-muted);text-align:center}.empty.error[_ngcontent-%COMP%]{color:var(--danger)}.blame[_ngcontent-%COMP%]{display:block;background:var(--bg-surface);border:1px solid var(--border-soft);border-radius:var(--radius-md);overflow:auto;max-height:70vh}.row[_ngcontent-%COMP%]{display:grid;grid-template-columns:220px 50px 1fr;align-items:center;gap:.5rem;padding:0 .5rem;border-bottom:1px solid color-mix(in oklab,var(--border-soft) 50%,transparent)}.row[_ngcontent-%COMP%]:hover{background:var(--bg-elevated)}.meta[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;font-size:11px;color:var(--fg-muted);padding:.15rem 0;border-right:1px solid var(--border-soft)}.meta.invisible[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{visibility:hidden}.hash[_ngcontent-%COMP%]{color:var(--accent);cursor:pointer;text-decoration:none}.hash[_ngcontent-%COMP%]:hover{text-decoration:underline}.author[_ngcontent-%COMP%]{max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.date[_ngcontent-%COMP%]{color:var(--fg-subtle)}.line-no[_ngcontent-%COMP%]{color:var(--fg-subtle);text-align:right;font-variant-numeric:tabular-nums;font-size:11px}.code[_ngcontent-%COMP%]{margin:0;padding:.15rem 0;white-space:pre;overflow-x:auto;color:var(--fg-primary)}"],changeDetection:0})};function W(n,t){if(n&1&&(o(0,"div",9)(1,"span"),l(2),r(),o(3,"span"),l(4,"\xB7"),r(),o(5,"span"),l(6),r(),o(7,"span"),l(8,"\xB7"),r(),o(9,"span"),l(10),y(11,"slice"),r(),o(12,"span"),l(13,"\xB7"),r(),o(14,"span"),l(15),y(16,"slice"),r()()),n&2){let e=t.ngIf;i(2),_("",e.totalCommits," commits"),i(4),_("",e.contributors.length," contributors"),i(4),_("first: ",M(11,4,e.firstSeen,0,10)),i(5),_("last: ",M(16,8,e.lastTouched,0,10))}}function X(n,t){n&1&&(o(0,"div",15),l(1,"Loading commits\u2026"),r())}function Y(n,t){if(n&1&&(o(0,"div",16),l(1),r()),n&2){let e=t.ngIf;i(),m(e)}}function Z(n,t){if(n&1){let e=x();o(0,"li",17),f("click",function(){let u=h(e).$implicit,w=d(2);return b(w.onSelectCommit(u.hash))}),o(1,"code",18),l(2),r(),o(3,"div",19)(4,"span",20),l(5),r(),o(6,"span",21),l(7),y(8,"slice"),r()()()}if(n&2){let e=t.$implicit,a=d(2);v("selected",e.hash===a.state.selectedHash()),i(2),m(e.shortHash),i(3),m(e.subject),i(2),T("",e.author," \xB7 ",M(8,6,e.date,0,10))}}function ee(n,t){if(n&1&&(o(0,"section",10),g(1,X,2,0,"div",11)(2,Y,2,1,"div",12),o(3,"ul",13),g(4,Z,9,10,"li",14),r()()),n&2){let e=d();i(),s("ngIf",e.loading()),i(),s("ngIf",e.error()),i(2),s("ngForOf",e.commits())}}function te(n,t){if(n&1&&(o(0,"section",22),E(1,"app-blame",23),r()),n&2){let e=d();i(),s("file",e.filePath())("onCommitClick",e.onSelectCommit.bind(e))}}var j=class n{route=p(z);router=p(L);git=p(k);insightsApi=p(R);state=p(V);filePath=c("");stats=c(null);commits=c([]);loading=c(!1);error=c(null);tab=c("history");constructor(){N(()=>{let t=this.route.snapshot.paramMap.get("path")??"",e=decodeURIComponent(t);this.filePath.set(e),e&&this.load(e)})}onSelectCommit(t){this.state.selectHash(t),this.router.navigate(["/"],{queryParams:{commit:t}})}goBack(){this.router.navigate(["/"])}load(t){this.loading.set(!0),this.error.set(null),this.insightsApi.fileStats(t).subscribe({next:e=>this.stats.set(e),error:()=>this.stats.set(null)}),this.git.getCommits({file:t,page:1,pageSize:200}).subscribe({next:e=>{this.commits.set(e.commits),this.loading.set(!1)},error:e=>{this.error.set(e?.error?.error??"Failed to load file history"),this.loading.set(!1)}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=C({type:n,selectors:[["app-file-history"]],decls:15,vars:8,consts:[[1,"page"],[1,"head"],[1,"btn","btn-ghost",3,"click"],[1,"title-block"],["class","meta",4,"ngIf"],[1,"tabs"],[1,"tab",3,"click"],["class","history",4,"ngIf"],["class","blame-tab",4,"ngIf"],[1,"meta"],[1,"history"],["class","empty",4,"ngIf"],["class","empty error",4,"ngIf"],[1,"commits"],["class","commit",3,"selected","click",4,"ngFor","ngForOf"],[1,"empty"],[1,"empty","error"],[1,"commit",3,"click"],[1,"hash"],[1,"info"],[1,"subject"],[1,"byline"],[1,"blame-tab"],[3,"file","onCommitClick"]],template:function(e,a){e&1&&(o(0,"div",0)(1,"header",1)(2,"button",2),f("click",function(){return a.goBack()}),l(3,"\u2190 Back"),r(),o(4,"div",3)(5,"h2"),l(6),r(),g(7,W,17,12,"div",4),r()(),o(8,"nav",5)(9,"button",6),f("click",function(){return a.tab.set("history")}),l(10," History "),r(),o(11,"button",6),f("click",function(){return a.tab.set("blame")}),l(12," Blame "),r()(),g(13,ee,5,3,"section",7)(14,te,2,2,"section",8),r()),e&2&&(i(6),m(a.filePath()),i(),s("ngIf",a.stats()),i(2),v("active",a.tab()==="history"),i(2),v("active",a.tab()==="blame"),i(2),s("ngIf",a.tab()==="history"),i(),s("ngIf",a.tab()==="blame"))},dependencies:[O,P,S,I,H],styles:["[_nghost-%COMP%]{display:block;flex:1;min-height:0;overflow-y:auto}.page[_ngcontent-%COMP%]{padding:1rem 1.25rem;max-width:1200px;margin:0 auto}.head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}.head[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:16px;font-family:var(--font-mono, monospace);word-break:break-all}.meta[_ngcontent-%COMP%]{color:var(--fg-muted);font-size:12px;display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.25rem}.tabs[_ngcontent-%COMP%]{display:flex;gap:.5rem;border-bottom:1px solid var(--border-soft);margin-bottom:1rem}.tab[_ngcontent-%COMP%]{background:transparent;border:0;padding:.5rem .75rem;cursor:pointer;color:var(--fg-muted);border-bottom:2px solid transparent;font-size:13px}.tab.active[_ngcontent-%COMP%]{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}.empty[_ngcontent-%COMP%]{padding:1.5rem;color:var(--fg-muted);text-align:center;font-size:13px}.empty.error[_ngcontent-%COMP%]{color:var(--danger)}.commits[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}.commit[_ngcontent-%COMP%]{display:flex;gap:.75rem;align-items:flex-start;padding:.55rem .85rem;border-radius:var(--radius-sm);cursor:pointer}.commit[_ngcontent-%COMP%]:hover{background:var(--bg-elevated)}.commit.selected[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--accent) 18%,transparent)}.commit[_ngcontent-%COMP%] .hash[_ngcontent-%COMP%]{font-family:var(--font-mono, monospace);font-size:11px;color:var(--fg-muted);padding-top:2px}.commit[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0}.commit[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.commit[_ngcontent-%COMP%] .byline[_ngcontent-%COMP%]{font-size:11px;color:var(--fg-muted);margin-top:2px}"],changeDetection:0})};export{j as FileHistoryComponent};