@letscooee/web-sdk 9.3.14 → 9.3.15

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.
@@ -1,10 +1,10 @@
1
- "use strict";(()=>{var Hu=Object.create,ri=Object.defineProperty,zu=Object.defineProperties,Uu=Object.getOwnPropertyDescriptor,Bu=Object.getOwnPropertyDescriptors,Zu=Object.getOwnPropertyNames,lo=Object.getOwnPropertySymbols,$u=Object.getPrototypeOf,fs=Object.prototype.hasOwnProperty,Gu=Object.prototype.propertyIsEnumerable,ao=(e,t,n)=>t in e?ri(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qe=(e,t)=>{for(var n in t||={})fs.call(t,n)&&ao(e,n,t[n]);if(lo)for(var n of lo(t))Gu.call(t,n)&&ao(e,n,t[n]);return e},Et=(e,t)=>zu(e,Bu(t)),Wu=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Zu(t))!fs.call(e,i)&&i!==n&&ri(e,i,{get:()=>t[i],enumerable:!(r=Uu(t,i))||r.enumerable});return e},Ku=(e,t,n)=>(n=e!=null?Hu($u(e)):{},qu(t||!e||!e.__esModule?ri(n,"default",{value:e,enumerable:!0}):n,e)),Qu=Wu((e,t)=>{"use strict";(function(n){"use strict";var r={};r.VERSION="1.6.1";var i,o={},s=function(c,g){return function(){return g.apply(c,arguments)}},l=function(){var c=arguments,g=c[0],p,m;for(m=1;m<c.length;m++)for(p in c[m])!(p in g)&&c[m].hasOwnProperty(p)&&(g[p]=c[m][p]);return g},a=function(c,g){return{value:c,name:g}};r.TRACE=a(1,"TRACE"),r.DEBUG=a(2,"DEBUG"),r.INFO=a(3,"INFO"),r.TIME=a(4,"TIME"),r.WARN=a(5,"WARN"),r.ERROR=a(8,"ERROR"),r.OFF=a(99,"OFF");var u=function(c){this.context=c,this.setLevel(c.filterLevel),this.log=this.info};u.prototype={setLevel:function(c){c&&"value"in c&&(this.context.filterLevel=c)},getLevel:function(){return this.context.filterLevel},enabledFor:function(c){var g=this.context.filterLevel;return c.value>=g.value},trace:function(){this.invoke(r.TRACE,arguments)},debug:function(){this.invoke(r.DEBUG,arguments)},info:function(){this.invoke(r.INFO,arguments)},warn:function(){this.invoke(r.WARN,arguments)},error:function(){this.invoke(r.ERROR,arguments)},time:function(c){typeof c=="string"&&c.length>0&&this.invoke(r.TIME,[c,"start"])},timeEnd:function(c){typeof c=="string"&&c.length>0&&this.invoke(r.TIME,[c,"end"])},invoke:function(c,g){i&&this.enabledFor(c)&&i(g,l({level:c},this.context))}};var f=new u({filterLevel:r.OFF});(function(){var c=r;c.enabledFor=s(f,f.enabledFor),c.trace=s(f,f.trace),c.debug=s(f,f.debug),c.time=s(f,f.time),c.timeEnd=s(f,f.timeEnd),c.info=s(f,f.info),c.warn=s(f,f.warn),c.error=s(f,f.error),c.log=c.info})(),r.setHandler=function(c){i=c},r.setLevel=function(c){f.setLevel(c);for(var g in o)o.hasOwnProperty(g)&&o[g].setLevel(c)},r.getLevel=function(){return f.getLevel()},r.get=function(c){return o[c]||(o[c]=new u(l({name:c},f.context)))},r.createDefaultHandler=function(c){c=c||{},c.formatter=c.formatter||function(m,y){y.name&&m.unshift("["+y.name+"]")};var g={},p=function(m,y){Function.prototype.apply.call(m,console,y)};return typeof console>"u"?function(){}:function(m,y){m=Array.prototype.slice.call(m);var w=console.log,S;y.level===r.TIME?(S=(y.name?"["+y.name+"] ":"")+m[0],m[1]==="start"?console.time?console.time(S):g[S]=new Date().getTime():console.timeEnd?console.timeEnd(S):p(w,[S+": "+(new Date().getTime()-g[S])+"ms"])):(y.level===r.WARN&&console.warn?w=console.warn:y.level===r.ERROR&&console.error?w=console.error:y.level===r.INFO&&console.info?w=console.info:y.level===r.DEBUG&&console.debug?w=console.debug:y.level===r.TRACE&&console.trace&&(w=console.trace),c.formatter(m,y),p(w,m))}},r.useDefaults=function(c){r.setLevel(c&&c.defaultLevel||r.DEBUG),r.setHandler(r.createDefaultHandler(c))},r.setDefaults=r.useDefaults,typeof define=="function"&&define.amd?define(r):typeof t<"u"&&t.exports?t.exports=r:(r._prevLogger=n.Logger,r.noConflict=function(){return n.Logger=r._prevLogger,r},n.Logger=r)})(e)});function Yu(e,t){return Object.is(e,t)}var $=null,sn=!1,ii=1,Me=Symbol("SIGNAL");function A(e){let t=$;return $=e,t}function Xu(){return $}var oi={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ju(e){if(sn)throw new Error("");if($===null)return;$.consumerOnSignalRead(e);let t=$.nextProducerIndex++;if(An($),t<$.producerNode.length&&$.producerNode[t]!==e&&Nt($)){let n=$.producerNode[t];Nn(n,$.producerIndexOfThis[t])}$.producerNode[t]!==e&&($.producerNode[t]=e,$.producerIndexOfThis[t]=Nt($)?ms(e,$,t):0),$.producerLastReadVersion[t]=e.version}function ec(){ii++}function tc(e){if(!(Nt(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ii)){if(!e.producerMustRecompute(e)&&!ps(e)){uo(e);return}e.producerRecomputeValue(e),uo(e)}}function hs(e){if(e.liveConsumerNode===void 0)return;let t=sn;sn=!0;try{for(let n of e.liveConsumerNode)n.dirty||nc(n)}finally{sn=t}}function ds(){return $?.consumerAllowSignalWrites!==!1}function nc(e){e.dirty=!0,hs(e),e.consumerMarkedDirty?.(e)}function uo(e){e.dirty=!1,e.lastCleanEpoch=ii}function co(e){return e&&(e.nextProducerIndex=0),A(e)}function rc(e,t){if(A(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Nt(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Nn(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ps(e){An(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(tc(n),r!==n.version))return!0}return!1}function gs(e){if(An(e),Nt(e))for(let t=0;t<e.producerNode.length;t++)Nn(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function ms(e,t,n){if(ys(e),e.liveConsumerNode.length===0&&vs(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=ms(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Nn(e,t){if(ys(e),e.liveConsumerNode.length===1&&vs(e))for(let r=0;r<e.producerNode.length;r++)Nn(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];An(i),i.producerIndexOfThis[r]=t}}function Nt(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function An(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ys(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function vs(e){return e.producerNode!==void 0}function ic(){throw new Error}var ws=ic;function bs(e){ws(e)}function oc(e){ws=e}var sc=null;function lc(e){let t=Object.create(uc);t.value=e;let n=()=>(Ju(t),t.value);return n[Me]=t,n}function Es(e,t){ds()||bs(e),e.equal(e.value,t)||(e.value=t,cc(e))}function ac(e,t){ds()||bs(e),Es(e,t(e.value))}var uc=Et(Qe({},oi),{equal:Yu,value:void 0,kind:"signal"});function cc(e){e.version++,ec(),hs(e),sc?.()}function G(e){return typeof e=="function"}function Is(e){let t=e(n=>{Error.call(n),n.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Xn=Is(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:
1
+ "use strict";(()=>{var pf=Object.create,eo=Object.defineProperty,gf=Object.defineProperties,mf=Object.getOwnPropertyDescriptor,yf=Object.getOwnPropertyDescriptors,vf=Object.getOwnPropertyNames,ls=Object.getOwnPropertySymbols,bf=Object.getPrototypeOf,ha=Object.prototype.hasOwnProperty,wf=Object.prototype.propertyIsEnumerable,us=(e,t,n)=>t in e?eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xt=(e,t)=>{for(var n in t||={})ha.call(t,n)&&us(e,n,t[n]);if(ls)for(var n of ls(t))wf.call(t,n)&&us(e,n,t[n]);return e},nn=(e,t)=>gf(e,yf(t)),Gn=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),pa=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ef=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of vf(t))!ha.call(e,i)&&i!==n&&eo(e,i,{get:()=>t[i],enumerable:!(r=mf(t,i))||r.enumerable});return e},ga=(e,t,n)=>(n=e!=null?pf(bf(e)):{},Ef(t||!e||!e.__esModule?eo(n,"default",{value:e,enumerable:!0}):n,e)),_f=pa((e,t)=>{"use strict";(function(n){"use strict";var r={};r.VERSION="1.6.1";var i,o={},s=function(p,_){return function(){return _.apply(p,arguments)}},a=function(){var p=arguments,_=p[0],w,E;for(E=1;E<p.length;E++)for(w in p[E])!(w in _)&&p[E].hasOwnProperty(w)&&(_[w]=p[E][w]);return _},l=function(p,_){return{value:p,name:_}};r.TRACE=l(1,"TRACE"),r.DEBUG=l(2,"DEBUG"),r.INFO=l(3,"INFO"),r.TIME=l(4,"TIME"),r.WARN=l(5,"WARN"),r.ERROR=l(8,"ERROR"),r.OFF=l(99,"OFF");var d=function(p){this.context=p,this.setLevel(p.filterLevel),this.log=this.info};d.prototype={setLevel:function(p){p&&"value"in p&&(this.context.filterLevel=p)},getLevel:function(){return this.context.filterLevel},enabledFor:function(p){var _=this.context.filterLevel;return p.value>=_.value},trace:function(){this.invoke(r.TRACE,arguments)},debug:function(){this.invoke(r.DEBUG,arguments)},info:function(){this.invoke(r.INFO,arguments)},warn:function(){this.invoke(r.WARN,arguments)},error:function(){this.invoke(r.ERROR,arguments)},time:function(p){typeof p=="string"&&p.length>0&&this.invoke(r.TIME,[p,"start"])},timeEnd:function(p){typeof p=="string"&&p.length>0&&this.invoke(r.TIME,[p,"end"])},invoke:function(p,_){i&&this.enabledFor(p)&&i(_,a({level:p},this.context))}};var h=new d({filterLevel:r.OFF});(function(){var p=r;p.enabledFor=s(h,h.enabledFor),p.trace=s(h,h.trace),p.debug=s(h,h.debug),p.time=s(h,h.time),p.timeEnd=s(h,h.timeEnd),p.info=s(h,h.info),p.warn=s(h,h.warn),p.error=s(h,h.error),p.log=p.info})(),r.setHandler=function(p){i=p},r.setLevel=function(p){h.setLevel(p);for(var _ in o)o.hasOwnProperty(_)&&o[_].setLevel(p)},r.getLevel=function(){return h.getLevel()},r.get=function(p){return o[p]||(o[p]=new d(a({name:p},h.context)))},r.createDefaultHandler=function(p){p=p||{},p.formatter=p.formatter||function(E,I){I.name&&E.unshift("["+I.name+"]")};var _={},w=function(E,I){Function.prototype.apply.call(E,console,I)};return typeof console>"u"?function(){}:function(E,I){E=Array.prototype.slice.call(E);var O=console.log,N;I.level===r.TIME?(N=(I.name?"["+I.name+"] ":"")+E[0],E[1]==="start"?console.time?console.time(N):_[N]=new Date().getTime():console.timeEnd?console.timeEnd(N):w(O,[N+": "+(new Date().getTime()-_[N])+"ms"])):(I.level===r.WARN&&console.warn?O=console.warn:I.level===r.ERROR&&console.error?O=console.error:I.level===r.INFO&&console.info?O=console.info:I.level===r.DEBUG&&console.debug?O=console.debug:I.level===r.TRACE&&console.trace&&(O=console.trace),p.formatter(E,I),w(O,E))}},r.useDefaults=function(p){r.setLevel(p&&p.defaultLevel||r.DEBUG),r.setHandler(r.createDefaultHandler(p))},r.setDefaults=r.useDefaults,typeof define=="function"&&define.amd?define(r):typeof t<"u"&&t.exports?t.exports=r:(r._prevLogger=n.Logger,r.noConflict=function(){return n.Logger=r._prevLogger,r},n.Logger=r)})(e)}),Sf=pa((e,t)=>{"use strict";(function(n){if(typeof e=="object"&&typeof t<"u")t.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var r;typeof window<"u"?r=window:typeof global<"u"?r=global:typeof self<"u"?r=self:r=this,r.localforage=n()}})(function(){var n,r,i;return function o(s,a,l){function d(_,w){if(!a[_]){if(!s[_]){var E=typeof Gn=="function"&&Gn;if(!w&&E)return E(_,!0);if(h)return h(_,!0);var I=new Error("Cannot find module '"+_+"'");throw I.code="MODULE_NOT_FOUND",I}var O=a[_]={exports:{}};s[_][0].call(O.exports,function(N){var Q=s[_][1][N];return d(Q||N)},O,O.exports,o,s,a,l)}return a[_].exports}for(var h=typeof Gn=="function"&&Gn,p=0;p<l.length;p++)d(l[p]);return d}({1:[function(o,s,a){(function(l){"use strict";var d=l.MutationObserver||l.WebKitMutationObserver,h;if(d){var p=0,_=new d(N),w=l.document.createTextNode("");_.observe(w,{characterData:!0}),h=function(){w.data=p=++p%2}}else if(!l.setImmediate&&typeof l.MessageChannel<"u"){var E=new l.MessageChannel;E.port1.onmessage=N,h=function(){E.port2.postMessage(0)}}else"document"in l&&"onreadystatechange"in l.document.createElement("script")?h=function(){var X=l.document.createElement("script");X.onreadystatechange=function(){N(),X.onreadystatechange=null,X.parentNode.removeChild(X),X=null},l.document.documentElement.appendChild(X)}:h=function(){setTimeout(N,0)};var I,O=[];function N(){I=!0;for(var X,Ee,ne=O.length;ne;){for(Ee=O,O=[],X=-1;++X<ne;)Ee[X]();ne=O.length}I=!1}s.exports=Q;function Q(X){O.push(X)===1&&!I&&h()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(o,s,a){"use strict";var l=o(1);function d(){}var h={},p=["REJECTED"],_=["FULFILLED"],w=["PENDING"];s.exports=E;function E(D){if(typeof D!="function")throw new TypeError("resolver must be a function");this.state=w,this.queue=[],this.outcome=void 0,D!==d&&Q(this,D)}E.prototype.catch=function(D){return this.then(null,D)},E.prototype.then=function(D,$){if(typeof D!="function"&&this.state===_||typeof $!="function"&&this.state===p)return this;var H=new this.constructor(d);if(this.state!==w){var J=this.state===_?D:$;O(H,J,this.outcome)}else this.queue.push(new I(H,D,$));return H};function I(D,$,H){this.promise=D,typeof $=="function"&&(this.onFulfilled=$,this.callFulfilled=this.otherCallFulfilled),typeof H=="function"&&(this.onRejected=H,this.callRejected=this.otherCallRejected)}I.prototype.callFulfilled=function(D){h.resolve(this.promise,D)},I.prototype.otherCallFulfilled=function(D){O(this.promise,this.onFulfilled,D)},I.prototype.callRejected=function(D){h.reject(this.promise,D)},I.prototype.otherCallRejected=function(D){O(this.promise,this.onRejected,D)};function O(D,$,H){l(function(){var J;try{J=$(H)}catch(ge){return h.reject(D,ge)}J===D?h.reject(D,new TypeError("Cannot resolve promise with itself")):h.resolve(D,J)})}h.resolve=function(D,$){var H=X(N,$);if(H.status==="error")return h.reject(D,H.value);var J=H.value;if(J)Q(D,J);else{D.state=_,D.outcome=$;for(var ge=-1,Ce=D.queue.length;++ge<Ce;)D.queue[ge].callFulfilled($)}return D},h.reject=function(D,$){D.state=p,D.outcome=$;for(var H=-1,J=D.queue.length;++H<J;)D.queue[H].callRejected($);return D};function N(D){var $=D&&D.then;if(D&&(typeof D=="object"||typeof D=="function")&&typeof $=="function")return function(){$.apply(D,arguments)}}function Q(D,$){var H=!1;function J(_e){H||(H=!0,h.reject(D,_e))}function ge(_e){H||(H=!0,h.resolve(D,_e))}function Ce(){$(ge,J)}var Te=X(Ce);Te.status==="error"&&J(Te.value)}function X(D,$){var H={};try{H.value=D($),H.status="success"}catch(J){H.status="error",H.value=J}return H}E.resolve=Ee;function Ee(D){return D instanceof this?D:h.resolve(new this(d),D)}E.reject=ne;function ne(D){var $=new this(d);return h.reject($,D)}E.all=Ye;function Ye(D){var $=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var H=D.length,J=!1;if(!H)return this.resolve([]);for(var ge=new Array(H),Ce=0,Te=-1,_e=new this(d);++Te<H;)Fe(D[Te],Te);return _e;function Fe(yt,Vt){$.resolve(yt).then(an,function(b){J||(J=!0,h.reject(_e,b))});function an(b){ge[Vt]=b,++Ce===H&&!J&&(J=!0,h.resolve(_e,ge))}}}E.race=ze;function ze(D){var $=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var H=D.length,J=!1;if(!H)return this.resolve([]);for(var ge=-1,Ce=new this(d);++ge<H;)Te(D[ge]);return Ce;function Te(_e){$.resolve(_e).then(function(Fe){J||(J=!0,h.resolve(Ce,Fe))},function(Fe){J||(J=!0,h.reject(Ce,Fe))})}}},{1:1}],3:[function(o,s,a){(function(l){"use strict";typeof l.Promise!="function"&&(l.Promise=o(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(o,s,a){"use strict";var l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u};function d(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function h(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var p=h();function _(){try{if(!p||!p.open)return!1;var u=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),c=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!u||c)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function w(u,c){u=u||[],c=c||{};try{return new Blob(u,c)}catch(v){if(v.name!=="TypeError")throw v;for(var f=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,y=new f,m=0;m<u.length;m+=1)y.append(u[m]);return y.getBlob(c.type)}}typeof Promise>"u"&&o(3);var E=Promise;function I(u,c){c&&u.then(function(f){c(null,f)},function(f){c(f)})}function O(u,c,f){typeof c=="function"&&u.then(c),typeof f=="function"&&u.catch(f)}function N(u){return typeof u!="string"&&(console.warn(u+" used as a key, but it is not a string."),u=String(u)),u}function Q(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var X="local-forage-detect-blob-support",Ee=void 0,ne={},Ye=Object.prototype.toString,ze="readonly",D="readwrite";function $(u){for(var c=u.length,f=new ArrayBuffer(c),y=new Uint8Array(f),m=0;m<c;m++)y[m]=u.charCodeAt(m);return f}function H(u){return new E(function(c){var f=u.transaction(X,D),y=w([""]);f.objectStore(X).put(y,"key"),f.onabort=function(m){m.preventDefault(),m.stopPropagation(),c(!1)},f.oncomplete=function(){var m=navigator.userAgent.match(/Chrome\/(\d+)/),v=navigator.userAgent.match(/Edge\//);c(v||!m||parseInt(m[1],10)>=43)}}).catch(function(){return!1})}function J(u){return typeof Ee=="boolean"?E.resolve(Ee):H(u).then(function(c){return Ee=c,Ee})}function ge(u){var c=ne[u.name],f={};f.promise=new E(function(y,m){f.resolve=y,f.reject=m}),c.deferredOperations.push(f),c.dbReady?c.dbReady=c.dbReady.then(function(){return f.promise}):c.dbReady=f.promise}function Ce(u){var c=ne[u.name],f=c.deferredOperations.pop();if(f)return f.resolve(),f.promise}function Te(u,c){var f=ne[u.name],y=f.deferredOperations.pop();if(y)return y.reject(c),y.promise}function _e(u,c){return new E(function(f,y){if(ne[u.name]=ne[u.name]||L(),u.db)if(c)ge(u),u.db.close();else return f(u.db);var m=[u.name];c&&m.push(u.version);var v=p.open.apply(p,m);c&&(v.onupgradeneeded=function(S){var C=v.result;try{C.createObjectStore(u.storeName),S.oldVersion<=1&&C.createObjectStore(X)}catch(k){if(k.name==="ConstraintError")console.warn('The database "'+u.name+'" has been upgraded from version '+S.oldVersion+" to version "+S.newVersion+', but the storage "'+u.storeName+'" already exists.');else throw k}}),v.onerror=function(S){S.preventDefault(),y(v.error)},v.onsuccess=function(){var S=v.result;S.onversionchange=function(C){C.target.close()},f(S),Ce(u)}})}function Fe(u){return _e(u,!1)}function yt(u){return _e(u,!0)}function Vt(u,c){if(!u.db)return!0;var f=!u.db.objectStoreNames.contains(u.storeName),y=u.version<u.db.version,m=u.version>u.db.version;if(y&&(u.version!==c&&console.warn('The database "'+u.name+`" can't be downgraded from version `+u.db.version+" to version "+u.version+"."),u.version=u.db.version),m||f){if(f){var v=u.db.version+1;v>u.version&&(u.version=v)}return!0}return!1}function an(u){return new E(function(c,f){var y=new FileReader;y.onerror=f,y.onloadend=function(m){var v=btoa(m.target.result||"");c({__local_forage_encoded_blob:!0,data:v,type:u.type})},y.readAsBinaryString(u)})}function b(u){var c=$(atob(u.data));return w([c],{type:u.type})}function g(u){return u&&u.__local_forage_encoded_blob}function R(u){var c=this,f=c._initReady().then(function(){var y=ne[c._dbInfo.name];if(y&&y.dbReady)return y.dbReady});return O(f,u,u),f}function V(u){ge(u);for(var c=ne[u.name],f=c.forages,y=0;y<f.length;y++){var m=f[y];m._dbInfo.db&&(m._dbInfo.db.close(),m._dbInfo.db=null)}return u.db=null,Fe(u).then(function(v){return u.db=v,Vt(u)?yt(u):v}).then(function(v){u.db=c.db=v;for(var S=0;S<f.length;S++)f[S]._dbInfo.db=v}).catch(function(v){throw Te(u,v),v})}function M(u,c,f,y){y===void 0&&(y=1);try{var m=u.db.transaction(u.storeName,c);f(null,m)}catch(v){if(y>0&&(!u.db||v.name==="InvalidStateError"||v.name==="NotFoundError"))return E.resolve().then(function(){if(!u.db||v.name==="NotFoundError"&&!u.db.objectStoreNames.contains(u.storeName)&&u.version<=u.db.version)return u.db&&(u.version=u.db.version+1),yt(u)}).then(function(){return V(u).then(function(){M(u,c,f,y-1)})}).catch(f);f(v)}}function L(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function F(u){var c=this,f={db:null};if(u)for(var y in u)f[y]=u[y];var m=ne[f.name];m||(m=L(),ne[f.name]=m),m.forages.push(c),c._initReady||(c._initReady=c.ready,c.ready=R);var v=[];function S(){return E.resolve()}for(var C=0;C<m.forages.length;C++){var k=m.forages[C];k!==c&&v.push(k._initReady().catch(S))}var x=m.forages.slice(0);return E.all(v).then(function(){return f.db=m.db,Fe(f)}).then(function(T){return f.db=T,Vt(f,c._defaultConfig.version)?yt(f):T}).then(function(T){f.db=m.db=T,c._dbInfo=f;for(var A=0;A<x.length;A++){var B=x[A];B!==c&&(B._dbInfo.db=f.db,B._dbInfo.version=f.version)}})}function P(u,c){var f=this;u=N(u);var y=new E(function(m,v){f.ready().then(function(){M(f._dbInfo,ze,function(S,C){if(S)return v(S);try{var k=C.objectStore(f._dbInfo.storeName),x=k.get(u);x.onsuccess=function(){var T=x.result;T===void 0&&(T=null),g(T)&&(T=b(T)),m(T)},x.onerror=function(){v(x.error)}}catch(T){v(T)}})}).catch(v)});return I(y,c),y}function z(u,c){var f=this,y=new E(function(m,v){f.ready().then(function(){M(f._dbInfo,ze,function(S,C){if(S)return v(S);try{var k=C.objectStore(f._dbInfo.storeName),x=k.openCursor(),T=1;x.onsuccess=function(){var A=x.result;if(A){var B=A.value;g(B)&&(B=b(B));var ie=u(B,A.key,T++);ie!==void 0?m(ie):A.continue()}else m()},x.onerror=function(){v(x.error)}}catch(A){v(A)}})}).catch(v)});return I(y,c),y}function G(u,c,f){var y=this;u=N(u);var m=new E(function(v,S){var C;y.ready().then(function(){return C=y._dbInfo,Ye.call(c)==="[object Blob]"?J(C.db).then(function(k){return k?c:an(c)}):c}).then(function(k){M(y._dbInfo,D,function(x,T){if(x)return S(x);try{var A=T.objectStore(y._dbInfo.storeName);k===null&&(k=void 0);var B=A.put(k,u);T.oncomplete=function(){k===void 0&&(k=null),v(k)},T.onabort=T.onerror=function(){var ie=B.error?B.error:B.transaction.error;S(ie)}}catch(ie){S(ie)}})}).catch(S)});return I(m,f),m}function de(u,c){var f=this;u=N(u);var y=new E(function(m,v){f.ready().then(function(){M(f._dbInfo,D,function(S,C){if(S)return v(S);try{var k=C.objectStore(f._dbInfo.storeName),x=k.delete(u);C.oncomplete=function(){m()},C.onerror=function(){v(x.error)},C.onabort=function(){var T=x.error?x.error:x.transaction.error;v(T)}}catch(T){v(T)}})}).catch(v)});return I(y,c),y}function ee(u){var c=this,f=new E(function(y,m){c.ready().then(function(){M(c._dbInfo,D,function(v,S){if(v)return m(v);try{var C=S.objectStore(c._dbInfo.storeName),k=C.clear();S.oncomplete=function(){y()},S.onabort=S.onerror=function(){var x=k.error?k.error:k.transaction.error;m(x)}}catch(x){m(x)}})}).catch(m)});return I(f,u),f}function ce(u){var c=this,f=new E(function(y,m){c.ready().then(function(){M(c._dbInfo,ze,function(v,S){if(v)return m(v);try{var C=S.objectStore(c._dbInfo.storeName),k=C.count();k.onsuccess=function(){y(k.result)},k.onerror=function(){m(k.error)}}catch(x){m(x)}})}).catch(m)});return I(f,u),f}function be(u,c){var f=this,y=new E(function(m,v){if(u<0){m(null);return}f.ready().then(function(){M(f._dbInfo,ze,function(S,C){if(S)return v(S);try{var k=C.objectStore(f._dbInfo.storeName),x=!1,T=k.openKeyCursor();T.onsuccess=function(){var A=T.result;if(!A){m(null);return}u===0||x?m(A.key):(x=!0,A.advance(u))},T.onerror=function(){v(T.error)}}catch(A){v(A)}})}).catch(v)});return I(y,c),y}function Z(u){var c=this,f=new E(function(y,m){c.ready().then(function(){M(c._dbInfo,ze,function(v,S){if(v)return m(v);try{var C=S.objectStore(c._dbInfo.storeName),k=C.openKeyCursor(),x=[];k.onsuccess=function(){var T=k.result;if(!T){y(x);return}x.push(T.key),T.continue()},k.onerror=function(){m(k.error)}}catch(T){m(T)}})}).catch(m)});return I(f,u),f}function Se(u,c){c=Q.apply(this,arguments);var f=this.config();u=typeof u!="function"&&u||{},u.name||(u.name=u.name||f.name,u.storeName=u.storeName||f.storeName);var y=this,m;if(!u.name)m=E.reject("Invalid arguments");else{var v=u.name===f.name&&y._dbInfo.db,S=v?E.resolve(y._dbInfo.db):Fe(u).then(function(C){var k=ne[u.name],x=k.forages;k.db=C;for(var T=0;T<x.length;T++)x[T]._dbInfo.db=C;return C});u.storeName?m=S.then(function(C){if(C.objectStoreNames.contains(u.storeName)){var k=C.version+1;ge(u);var x=ne[u.name],T=x.forages;C.close();for(var A=0;A<T.length;A++){var B=T[A];B._dbInfo.db=null,B._dbInfo.version=k}var ie=new E(function(te,he){var ue=p.open(u.name,k);ue.onerror=function(je){var $r=ue.result;$r.close(),he(je)},ue.onupgradeneeded=function(){var je=ue.result;je.deleteObjectStore(u.storeName)},ue.onsuccess=function(){var je=ue.result;je.close(),te(je)}});return ie.then(function(te){x.db=te;for(var he=0;he<T.length;he++){var ue=T[he];ue._dbInfo.db=te,Ce(ue._dbInfo)}}).catch(function(te){throw(Te(u,te)||E.resolve()).catch(function(){}),te})}}):m=S.then(function(C){ge(u);var k=ne[u.name],x=k.forages;C.close();for(var T=0;T<x.length;T++){var A=x[T];A._dbInfo.db=null}var B=new E(function(ie,te){var he=p.deleteDatabase(u.name);he.onerror=function(){var ue=he.result;ue&&ue.close(),te(he.error)},he.onblocked=function(){console.warn('dropInstance blocked for database "'+u.name+'" until all open connections are closed')},he.onsuccess=function(){var ue=he.result;ue&&ue.close(),ie(ue)}});return B.then(function(ie){k.db=ie;for(var te=0;te<x.length;te++){var he=x[te];Ce(he._dbInfo)}}).catch(function(ie){throw(Te(u,ie)||E.resolve()).catch(function(){}),ie})})}return I(m,c),m}var Oe={_driver:"asyncStorage",_initStorage:F,_support:_(),iterate:z,getItem:P,setItem:G,removeItem:de,clear:ee,length:ce,key:be,keys:Z,dropInstance:Se};function Ne(){return typeof openDatabase=="function"}var ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xe="~~local_forage_type~",Re=/^~~local_forage_type~([^~]+)~/,Pt="__lfsc__:",ln=Pt.length,un="arbf",Ft="blob",zn="si08",cn="ui08",Un="uic8",Zn="si16",fn="si32",dn="ur16",jt="ui32",Wn="fl32",qn="fl64",Jo=ln+un.length,es=Object.prototype.toString;function ts(u){var c=u.length*.75,f=u.length,y,m=0,v,S,C,k;u[u.length-1]==="="&&(c--,u[u.length-2]==="="&&c--);var x=new ArrayBuffer(c),T=new Uint8Array(x);for(y=0;y<f;y+=4)v=ve.indexOf(u[y]),S=ve.indexOf(u[y+1]),C=ve.indexOf(u[y+2]),k=ve.indexOf(u[y+3]),T[m++]=v<<2|S>>4,T[m++]=(S&15)<<4|C>>2,T[m++]=(C&3)<<6|k&63;return x}function Ur(u){var c=new Uint8Array(u),f="",y;for(y=0;y<c.length;y+=3)f+=ve[c[y]>>2],f+=ve[(c[y]&3)<<4|c[y+1]>>4],f+=ve[(c[y+1]&15)<<2|c[y+2]>>6],f+=ve[c[y+2]&63];return c.length%3===2?f=f.substring(0,f.length-1)+"=":c.length%3===1&&(f=f.substring(0,f.length-2)+"=="),f}function Oc(u,c){var f="";if(u&&(f=es.call(u)),u&&(f==="[object ArrayBuffer]"||u.buffer&&es.call(u.buffer)==="[object ArrayBuffer]")){var y,m=Pt;u instanceof ArrayBuffer?(y=u,m+=un):(y=u.buffer,f==="[object Int8Array]"?m+=zn:f==="[object Uint8Array]"?m+=cn:f==="[object Uint8ClampedArray]"?m+=Un:f==="[object Int16Array]"?m+=Zn:f==="[object Uint16Array]"?m+=dn:f==="[object Int32Array]"?m+=fn:f==="[object Uint32Array]"?m+=jt:f==="[object Float32Array]"?m+=Wn:f==="[object Float64Array]"?m+=qn:c(new Error("Failed to get type for BinaryArray"))),c(m+Ur(y))}else if(f==="[object Blob]"){var v=new FileReader;v.onload=function(){var S=Xe+u.type+"~"+Ur(this.result);c(Pt+Ft+S)},v.readAsArrayBuffer(u)}else try{c(JSON.stringify(u))}catch(S){console.error("Couldn't convert value into a JSON string: ",u),c(null,S)}}function Nc(u){if(u.substring(0,ln)!==Pt)return JSON.parse(u);var c=u.substring(Jo),f=u.substring(ln,Jo),y;if(f===Ft&&Re.test(c)){var m=c.match(Re);y=m[1],c=c.substring(m[0].length)}var v=ts(c);switch(f){case un:return v;case Ft:return w([v],{type:y});case zn:return new Int8Array(v);case cn:return new Uint8Array(v);case Un:return new Uint8ClampedArray(v);case Zn:return new Int16Array(v);case dn:return new Uint16Array(v);case fn:return new Int32Array(v);case jt:return new Uint32Array(v);case Wn:return new Float32Array(v);case qn:return new Float64Array(v);default:throw new Error("Unkown type: "+f)}}var Zr={serialize:Oc,deserialize:Nc,stringToBuffer:ts,bufferToString:Ur};function ns(u,c,f,y){u.executeSql("CREATE TABLE IF NOT EXISTS "+c.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],f,y)}function Rc(u){var c=this,f={db:null};if(u)for(var y in u)f[y]=typeof u[y]!="string"?u[y].toString():u[y];var m=new E(function(v,S){try{f.db=openDatabase(f.name,String(f.version),f.description,f.size)}catch(C){return S(C)}f.db.transaction(function(C){ns(C,f,function(){c._dbInfo=f,v()},function(k,x){S(x)})},S)});return f.serializer=Zr,m}function st(u,c,f,y,m,v){u.executeSql(f,y,m,function(S,C){C.code===C.SYNTAX_ERR?S.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[c.storeName],function(k,x){x.rows.length?v(k,C):ns(k,c,function(){k.executeSql(f,y,m,v)},v)},v):v(S,C)},v)}function Ac(u,c){var f=this;u=N(u);var y=new E(function(m,v){f.ready().then(function(){var S=f._dbInfo;S.db.transaction(function(C){st(C,S,"SELECT * FROM "+S.storeName+" WHERE key = ? LIMIT 1",[u],function(k,x){var T=x.rows.length?x.rows.item(0).value:null;T&&(T=S.serializer.deserialize(T)),m(T)},function(k,x){v(x)})})}).catch(v)});return I(y,c),y}function Mc(u,c){var f=this,y=new E(function(m,v){f.ready().then(function(){var S=f._dbInfo;S.db.transaction(function(C){st(C,S,"SELECT * FROM "+S.storeName,[],function(k,x){for(var T=x.rows,A=T.length,B=0;B<A;B++){var ie=T.item(B),te=ie.value;if(te&&(te=S.serializer.deserialize(te)),te=u(te,ie.key,B+1),te!==void 0){m(te);return}}m()},function(k,x){v(x)})})}).catch(v)});return I(y,c),y}function rs(u,c,f,y){var m=this;u=N(u);var v=new E(function(S,C){m.ready().then(function(){c===void 0&&(c=null);var k=c,x=m._dbInfo;x.serializer.serialize(c,function(T,A){A?C(A):x.db.transaction(function(B){st(B,x,"INSERT OR REPLACE INTO "+x.storeName+" (key, value) VALUES (?, ?)",[u,T],function(){S(k)},function(ie,te){C(te)})},function(B){if(B.code===B.QUOTA_ERR){if(y>0){S(rs.apply(m,[u,k,f,y-1]));return}C(B)}})})}).catch(C)});return I(v,f),v}function Vc(u,c,f){return rs.apply(this,[u,c,f,1])}function Pc(u,c){var f=this;u=N(u);var y=new E(function(m,v){f.ready().then(function(){var S=f._dbInfo;S.db.transaction(function(C){st(C,S,"DELETE FROM "+S.storeName+" WHERE key = ?",[u],function(){m()},function(k,x){v(x)})})}).catch(v)});return I(y,c),y}function Fc(u){var c=this,f=new E(function(y,m){c.ready().then(function(){var v=c._dbInfo;v.db.transaction(function(S){st(S,v,"DELETE FROM "+v.storeName,[],function(){y()},function(C,k){m(k)})})}).catch(m)});return I(f,u),f}function jc(u){var c=this,f=new E(function(y,m){c.ready().then(function(){var v=c._dbInfo;v.db.transaction(function(S){st(S,v,"SELECT COUNT(key) as c FROM "+v.storeName,[],function(C,k){var x=k.rows.item(0).c;y(x)},function(C,k){m(k)})})}).catch(m)});return I(f,u),f}function Lc(u,c){var f=this,y=new E(function(m,v){f.ready().then(function(){var S=f._dbInfo;S.db.transaction(function(C){st(C,S,"SELECT key FROM "+S.storeName+" WHERE id = ? LIMIT 1",[u+1],function(k,x){var T=x.rows.length?x.rows.item(0).key:null;m(T)},function(k,x){v(x)})})}).catch(v)});return I(y,c),y}function Hc(u){var c=this,f=new E(function(y,m){c.ready().then(function(){var v=c._dbInfo;v.db.transaction(function(S){st(S,v,"SELECT key FROM "+v.storeName,[],function(C,k){for(var x=[],T=0;T<k.rows.length;T++)x.push(k.rows.item(T).key);y(x)},function(C,k){m(k)})})}).catch(m)});return I(f,u),f}function Bc(u){return new E(function(c,f){u.transaction(function(y){y.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(m,v){for(var S=[],C=0;C<v.rows.length;C++)S.push(v.rows.item(C).name);c({db:u,storeNames:S})},function(m,v){f(v)})},function(y){f(y)})})}function zc(u,c){c=Q.apply(this,arguments);var f=this.config();u=typeof u!="function"&&u||{},u.name||(u.name=u.name||f.name,u.storeName=u.storeName||f.storeName);var y=this,m;return u.name?m=new E(function(v){var S;u.name===f.name?S=y._dbInfo.db:S=openDatabase(u.name,"","",0),u.storeName?v({db:S,storeNames:[u.storeName]}):v(Bc(S))}).then(function(v){return new E(function(S,C){v.db.transaction(function(k){function x(ie){return new E(function(te,he){k.executeSql("DROP TABLE IF EXISTS "+ie,[],function(){te()},function(ue,je){he(je)})})}for(var T=[],A=0,B=v.storeNames.length;A<B;A++)T.push(x(v.storeNames[A]));E.all(T).then(function(){S()}).catch(function(ie){C(ie)})},function(k){C(k)})})}):m=E.reject("Invalid arguments"),I(m,c),m}var Uc={_driver:"webSQLStorage",_initStorage:Rc,_support:Ne(),iterate:Mc,getItem:Ac,setItem:Vc,removeItem:Pc,clear:Fc,length:jc,key:Lc,keys:Hc,dropInstance:zc};function Zc(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function is(u,c){var f=u.name+"/";return u.storeName!==c.storeName&&(f+=u.storeName+"/"),f}function Wc(){var u="_localforage_support_test";try{return localStorage.setItem(u,!0),localStorage.removeItem(u),!1}catch{return!0}}function qc(){return!Wc()||localStorage.length>0}function $c(u){var c=this,f={};if(u)for(var y in u)f[y]=u[y];return f.keyPrefix=is(u,c._defaultConfig),qc()?(c._dbInfo=f,f.serializer=Zr,E.resolve()):E.reject()}function Gc(u){var c=this,f=c.ready().then(function(){for(var y=c._dbInfo.keyPrefix,m=localStorage.length-1;m>=0;m--){var v=localStorage.key(m);v.indexOf(y)===0&&localStorage.removeItem(v)}});return I(f,u),f}function Kc(u,c){var f=this;u=N(u);var y=f.ready().then(function(){var m=f._dbInfo,v=localStorage.getItem(m.keyPrefix+u);return v&&(v=m.serializer.deserialize(v)),v});return I(y,c),y}function Qc(u,c){var f=this,y=f.ready().then(function(){for(var m=f._dbInfo,v=m.keyPrefix,S=v.length,C=localStorage.length,k=1,x=0;x<C;x++){var T=localStorage.key(x);if(T.indexOf(v)===0){var A=localStorage.getItem(T);if(A&&(A=m.serializer.deserialize(A)),A=u(A,T.substring(S),k++),A!==void 0)return A}}});return I(y,c),y}function Yc(u,c){var f=this,y=f.ready().then(function(){var m=f._dbInfo,v;try{v=localStorage.key(u)}catch{v=null}return v&&(v=v.substring(m.keyPrefix.length)),v});return I(y,c),y}function Xc(u){var c=this,f=c.ready().then(function(){for(var y=c._dbInfo,m=localStorage.length,v=[],S=0;S<m;S++){var C=localStorage.key(S);C.indexOf(y.keyPrefix)===0&&v.push(C.substring(y.keyPrefix.length))}return v});return I(f,u),f}function Jc(u){var c=this,f=c.keys().then(function(y){return y.length});return I(f,u),f}function ef(u,c){var f=this;u=N(u);var y=f.ready().then(function(){var m=f._dbInfo;localStorage.removeItem(m.keyPrefix+u)});return I(y,c),y}function tf(u,c,f){var y=this;u=N(u);var m=y.ready().then(function(){c===void 0&&(c=null);var v=c;return new E(function(S,C){var k=y._dbInfo;k.serializer.serialize(c,function(x,T){if(T)C(T);else try{localStorage.setItem(k.keyPrefix+u,x),S(v)}catch(A){(A.name==="QuotaExceededError"||A.name==="NS_ERROR_DOM_QUOTA_REACHED")&&C(A),C(A)}})})});return I(m,f),m}function nf(u,c){if(c=Q.apply(this,arguments),u=typeof u!="function"&&u||{},!u.name){var f=this.config();u.name=u.name||f.name,u.storeName=u.storeName||f.storeName}var y=this,m;return u.name?m=new E(function(v){u.storeName?v(is(u,y._defaultConfig)):v(u.name+"/")}).then(function(v){for(var S=localStorage.length-1;S>=0;S--){var C=localStorage.key(S);C.indexOf(v)===0&&localStorage.removeItem(C)}}):m=E.reject("Invalid arguments"),I(m,c),m}var rf={_driver:"localStorageWrapper",_initStorage:$c,_support:Zc(),iterate:Qc,getItem:Kc,setItem:tf,removeItem:ef,clear:Gc,length:Jc,key:Yc,keys:Xc,dropInstance:nf},of=function(u,c){return u===c||typeof u=="number"&&typeof c=="number"&&isNaN(u)&&isNaN(c)},sf=function(u,c){for(var f=u.length,y=0;y<f;){if(of(u[y],c))return!0;y++}return!1},os=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"},hn={},ss={},Lt={INDEXEDDB:Oe,WEBSQL:Uc,LOCALSTORAGE:rf},af=[Lt.INDEXEDDB._driver,Lt.WEBSQL._driver,Lt.LOCALSTORAGE._driver],$n=["dropInstance"],Wr=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat($n),lf={description:"",driver:af.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function uf(u,c){u[c]=function(){var f=arguments;return u.ready().then(function(){return u[c].apply(u,f)})}}function qr(){for(var u=1;u<arguments.length;u++){var c=arguments[u];if(c)for(var f in c)c.hasOwnProperty(f)&&(os(c[f])?arguments[0][f]=c[f].slice():arguments[0][f]=c[f])}return arguments[0]}var cf=function(){function u(c){d(this,u);for(var f in Lt)if(Lt.hasOwnProperty(f)){var y=Lt[f],m=y._driver;this[f]=m,hn[m]||this.defineDriver(y)}this._defaultConfig=qr({},lf),this._config=qr({},this._defaultConfig,c),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return u.prototype.config=function(c){if((typeof c>"u"?"undefined":l(c))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var f in c){if(f==="storeName"&&(c[f]=c[f].replace(/\W/g,"_")),f==="version"&&typeof c[f]!="number")return new Error("Database version must be a number.");this._config[f]=c[f]}return"driver"in c&&c.driver?this.setDriver(this._config.driver):!0}else return typeof c=="string"?this._config[c]:this._config},u.prototype.defineDriver=function(c,f,y){var m=new E(function(v,S){try{var C=c._driver,k=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!c._driver){S(k);return}for(var x=Wr.concat("_initStorage"),T=0,A=x.length;T<A;T++){var B=x[T],ie=!sf($n,B);if((ie||c[B])&&typeof c[B]!="function"){S(k);return}}var te=function(){for(var ue=function(df){return function(){var hf=new Error("Method "+df+" is not implemented by the current driver"),as=E.reject(hf);return I(as,arguments[arguments.length-1]),as}},je=0,$r=$n.length;je<$r;je++){var Gr=$n[je];c[Gr]||(c[Gr]=ue(Gr))}};te();var he=function(ue){hn[C]&&console.info("Redefining LocalForage driver: "+C),hn[C]=c,ss[C]=ue,v()};"_support"in c?c._support&&typeof c._support=="function"?c._support().then(he,S):he(!!c._support):he(!0)}catch(ue){S(ue)}});return O(m,f,y),m},u.prototype.driver=function(){return this._driver||null},u.prototype.getDriver=function(c,f,y){var m=hn[c]?E.resolve(hn[c]):E.reject(new Error("Driver not found."));return O(m,f,y),m},u.prototype.getSerializer=function(c){var f=E.resolve(Zr);return O(f,c),f},u.prototype.ready=function(c){var f=this,y=f._driverSet.then(function(){return f._ready===null&&(f._ready=f._initDriver()),f._ready});return O(y,c,c),y},u.prototype.setDriver=function(c,f,y){var m=this;os(c)||(c=[c]);var v=this._getSupportedDrivers(c);function S(){m._config.driver=m.driver()}function C(T){return m._extend(T),S(),m._ready=m._initStorage(m._config),m._ready}function k(T){return function(){var A=0;function B(){for(;A<T.length;){var ie=T[A];return A++,m._dbInfo=null,m._ready=null,m.getDriver(ie).then(C).catch(B)}S();var te=new Error("No available storage method found.");return m._driverSet=E.reject(te),m._driverSet}return B()}}var x=this._driverSet!==null?this._driverSet.catch(function(){return E.resolve()}):E.resolve();return this._driverSet=x.then(function(){var T=v[0];return m._dbInfo=null,m._ready=null,m.getDriver(T).then(function(A){m._driver=A._driver,S(),m._wrapLibraryMethodsWithReady(),m._initDriver=k(v)})}).catch(function(){S();var T=new Error("No available storage method found.");return m._driverSet=E.reject(T),m._driverSet}),O(this._driverSet,f,y),this._driverSet},u.prototype.supports=function(c){return!!ss[c]},u.prototype._extend=function(c){qr(this,c)},u.prototype._getSupportedDrivers=function(c){for(var f=[],y=0,m=c.length;y<m;y++){var v=c[y];this.supports(v)&&f.push(v)}return f},u.prototype._wrapLibraryMethodsWithReady=function(){for(var c=0,f=Wr.length;c<f;c++)uf(this,Wr[c])},u.prototype.createInstance=function(c){return new u(c)},u}(),ff=new cf;s.exports=ff},{3:3}]},{},[4])(4)})});function If(e,t){return Object.is(e,t)}var me=null,er=!1,to=1,ct=Symbol("SIGNAL");function K(e){let t=me;return me=e,t}function Cf(){return me}var no={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Tf(e){if(er)throw new Error("");if(me===null)return;me.consumerOnSignalRead(e);let t=me.nextProducerIndex++;if(Tr(me),t<me.producerNode.length&&me.producerNode[t]!==e&&bn(me)){let n=me.producerNode[t];Cr(n,me.producerIndexOfThis[t])}me.producerNode[t]!==e&&(me.producerNode[t]=e,me.producerIndexOfThis[t]=bn(me)?wa(e,me,t):0),me.producerLastReadVersion[t]=e.version}function xf(){to++}function kf(e){if(!(bn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===to)){if(!e.producerMustRecompute(e)&&!va(e)){cs(e);return}e.producerRecomputeValue(e),cs(e)}}function ma(e){if(e.liveConsumerNode===void 0)return;let t=er;er=!0;try{for(let n of e.liveConsumerNode)n.dirty||Df(n)}finally{er=t}}function ya(){return me?.consumerAllowSignalWrites!==!1}function Df(e){e.dirty=!0,ma(e),e.consumerMarkedDirty?.(e)}function cs(e){e.dirty=!1,e.lastCleanEpoch=to}function fs(e){return e&&(e.nextProducerIndex=0),K(e)}function Of(e,t){if(K(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(bn(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Cr(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function va(e){Tr(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(kf(n),r!==n.version))return!0}return!1}function ba(e){if(Tr(e),bn(e))for(let t=0;t<e.producerNode.length;t++)Cr(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function wa(e,t,n){if(Ea(e),e.liveConsumerNode.length===0&&_a(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=wa(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Cr(e,t){if(Ea(e),e.liveConsumerNode.length===1&&_a(e))for(let r=0;r<e.producerNode.length;r++)Cr(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];Tr(i),i.producerIndexOfThis[r]=t}}function bn(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Tr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ea(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function _a(e){return e.producerNode!==void 0}function Nf(){throw new Error}var Sa=Nf;function Ia(e){Sa(e)}function Rf(e){Sa=e}var Af=null;function Mf(e){let t=Object.create(Pf);t.value=e;let n=()=>(Tf(t),t.value);return n[ct]=t,n}function Ca(e,t){ya()||Ia(e),e.equal(e.value,t)||(e.value=t,Ff(e))}function Vf(e,t){ya()||Ia(e),Ca(e,t(e.value))}var Pf=nn(xt({},no),{equal:If,value:void 0,kind:"signal"});function Ff(e){e.version++,xf(),ma(e),Af?.()}function ye(e){return typeof e=="function"}function Ta(e){let t=e(n=>{Error.call(n),n.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Kr=Ta(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:
2
2
  ${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=t});function mr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Te=class yr{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 o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(G(r))try{r()}catch(o){t=o instanceof Xn?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{fo(o)}catch(s){t=t??[],s instanceof Xn?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Xn(t)}}add(t){var n;if(t&&t!==this)if(this.closed)fo(t);else{if(t instanceof yr){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)&&mr(n,t)}remove(t){let{_finalizers:n}=this;n&&mr(n,t),t instanceof yr&&t._removeParent(this)}};Te.EMPTY=(()=>{let e=new Te;return e.closed=!0,e})();var _s=Te.EMPTY;function Ss(e){return e instanceof Te||e&&"closed"in e&&G(e.remove)&&G(e.add)&&G(e.unsubscribe)}function fo(e){G(e)?e():e.unsubscribe()}var Ye={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},gn={setTimeout(e,t,...n){let{delegate:r}=gn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=gn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Cs(e){gn.setTimeout(()=>{let{onUnhandledError:t}=Ye;if(t)t(e);else throw e})}function ho(){}var fc=si("C",void 0,void 0);function hc(e){return si("E",void 0,e)}function dc(e){return si("N",e,void 0)}function si(e,t,n){return{kind:e,value:t,error:n}}var Ue=null;function ln(e){if(Ye.useDeprecatedSynchronousErrorHandling){let t=!Ue;if(t&&(Ue={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ue;if(Ue=null,n)throw r}}else e()}function pc(e){Ye.useDeprecatedSynchronousErrorHandling&&Ue&&(Ue.errorThrown=!0,Ue.error=e)}var li=class extends Te{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ss(e)&&e.add(this)):this.destination=vc}static create(e,t,n){return new vr(e,t,n)}next(e){this.isStopped?er(dc(e),this):this._next(e)}error(e){this.isStopped?er(hc(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?er(fc,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},gc=Function.prototype.bind;function Jn(e,t){return gc.call(e,t)}var mc=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){en(n)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){en(n)}else en(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){en(t)}}},vr=class extends li{constructor(e,t,n){super();let r;if(G(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&Ye.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Jn(e.next,i),error:e.error&&Jn(e.error,i),complete:e.complete&&Jn(e.complete,i)}):r=e}this.destination=new mc(r)}};function en(e){Ye.useDeprecatedSynchronousErrorHandling?pc(e):Cs(e)}function yc(e){throw e}function er(e,t){let{onStoppedNotification:n}=Ye;n&&gn.setTimeout(()=>n(e,t))}var vc={closed:!0,next:ho,error:yc,complete:ho},ai=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ts(e){return e}function wc(e){return e.length===0?Ts:e.length===1?e[0]:function(t){return e.reduce((n,r)=>r(n),t)}}var re=(()=>{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,i){let o=Ec(n)?n:new vr(n,r,i);return ln(()=>{let{operator:s,source:l}=this;o.add(s?s.call(o,l):l?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=po(r),new r((i,o)=>{let s=new vr({next:l=>{try{n(l)}catch(a){o(a),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ai](){return this}pipe(...n){return wc(n)(this)}toPromise(n){return n=po(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function po(e){var t;return(t=e??Ye.Promise)!==null&&t!==void 0?t:Promise}function bc(e){return e&&G(e.next)&&G(e.error)&&G(e.complete)}function Ec(e){return e&&e instanceof li||bc(e)&&Ss(e)}function Ic(e){return G(e?.lift)}function Bt(e){return t=>{if(Ic(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 ht(e,t,n,r,i){return new _c(e,t,n,r,i)}var _c=class extends li{constructor(e,t,n,r,i,o){super(e),this.onFinalize=i,this.shouldUnsubscribe=o,this._next=t?function(s){try{t(s)}catch(l){e.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){e.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}},Sc=Is(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),Zt=(()=>{class e extends re{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new go(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Sc}next(n){ln(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){ln(()=>{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(){ln(()=>{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:i,observers:o}=this;return r||i?_s:(this.currentObservers=null,o.push(n),new Te(()=>{this.currentObservers=null,mr(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new re;return n.source=this,n}}return e.create=(t,n)=>new go(t,n),e})(),go=class extends Zt{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.next)===null||n===void 0||n.call(t,e)}error(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.error)===null||n===void 0||n.call(t,e)}complete(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0||t.call(e)}_subscribe(e){var t,n;return(n=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&n!==void 0?n:_s}},Cc=class extends Zt{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}},xs={now(){return(xs.delegate||Date).now()},delegate:void 0},Tc=class extends Zt{constructor(e=1/0,t=1/0,n=xs){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:o}=this;t||(n.push(e),!r&&n.push(i.now()+o)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,i=r.slice();for(let o=0;o<i.length&&!e.closed;o+=n?1:2)e.next(i[o]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){let{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:r}=this,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){let o=t.now(),s=0;for(let l=1;l<n.length&&n[l]<=o;l+=2)s=l;s&&n.splice(0,s+1)}}},xc=new re(e=>e.complete());function kc(e){return e&&G(e.schedule)}function ks(e){return e[e.length-1]}function Oc(e){return kc(ks(e))?e.pop():void 0}function Dc(e,t){return typeof ks(e)=="number"?e.pop():t}function Nc(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(f){try{u(r.next(f))}catch(c){s(c)}}function a(f){try{u(r.throw(f))}catch(c){s(c)}}function u(f){f.done?o(f.value):i(f.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function mo(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 at(e){return this instanceof at?(this.v=e,this):new at(e)}function Ac(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(p){return function(m){return Promise.resolve(m).then(p,c)}}function l(p,m){r[p]&&(i[p]=function(y){return new Promise(function(w,S){o.push([p,y,w,S])>1||a(p,y)})},m&&(i[p]=m(i[p])))}function a(p,m){try{u(r[p](m))}catch(y){g(o[0][3],y)}}function u(p){p.value instanceof at?Promise.resolve(p.value.v).then(f,c):g(o[0][2],p)}function f(p){a("next",p)}function c(p){a("throw",p)}function g(p,m){p(m),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Mc(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 mo=="function"?mo(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(l,a){s=e[o](s),i(l,a,s.done,s.value)})}}function i(o,s,l,a){Promise.resolve(a).then(function(u){o({value:u,done:l})},s)}}var Os=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ds(e){return G(e?.then)}function Ns(e){return G(e[ai])}function As(e){return Symbol.asyncIterator&&G(e?.[Symbol.asyncIterator])}function Ms(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 Rc(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Rs=Rc();function Vs(e){return G(e?.[Rs])}function Ps(e){return Ac(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield at(t.read());if(r)return yield at(void 0);yield yield at(n)}}finally{t.releaseLock()}})}function Fs(e){return G(e?.getReader)}function Xe(e){if(e instanceof re)return e;if(e!=null){if(Ns(e))return Vc(e);if(Os(e))return Pc(e);if(Ds(e))return Fc(e);if(As(e))return Ls(e);if(Vs(e))return Lc(e);if(Fs(e))return jc(e)}throw Ms(e)}function Vc(e){return new re(t=>{let n=e[ai]();if(G(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Pc(e){return new re(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Fc(e){return new re(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Cs)})}function Lc(e){return new re(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Ls(e){return new re(t=>{Hc(e,t).catch(n=>t.error(n))})}function jc(e){return Ls(Ps(e))}function Hc(e,t){var n,r,i,o;return Nc(this,void 0,void 0,function*(){try{for(n=Mc(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function Re(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function js(e,t=0){return Bt((n,r)=>{n.subscribe(ht(r,i=>Re(r,e,()=>r.next(i),t),()=>Re(r,e,()=>r.complete(),t),i=>Re(r,e,()=>r.error(i),t)))})}function Hs(e,t=0){return Bt((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function zc(e,t){return Xe(e).pipe(Hs(t),js(t))}function Uc(e,t){return Xe(e).pipe(Hs(t),js(t))}function Bc(e,t){return new re(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Zc(e,t){return new re(n=>{let r;return Re(n,t,()=>{r=e[Rs](),Re(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>G(r?.return)&&r.return()})}function zs(e,t){if(!e)throw new Error("Iterable cannot be null");return new re(n=>{Re(n,t,()=>{let r=e[Symbol.asyncIterator]();Re(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function $c(e,t){return zs(Ps(e),t)}function Gc(e,t){if(e!=null){if(Ns(e))return zc(e,t);if(Os(e))return Bc(e,t);if(Ds(e))return Uc(e,t);if(As(e))return zs(e,t);if(Vs(e))return Zc(e,t);if(Fs(e))return $c(e,t)}throw Ms(e)}function Wc(e,t){return t?Gc(e,t):Xe(e)}function Us(e,t){return Bt((n,r)=>{let i=0;n.subscribe(ht(r,o=>{r.next(e.call(t,o,i++))}))})}function qc(e,t,n,r,i,o,s,l){let a=[],u=0,f=0,c=!1,g=()=>{c&&!a.length&&!u&&t.complete()},p=y=>u<r?m(y):a.push(y),m=y=>{o&&t.next(y),u++;let w=!1;Xe(n(y,f++)).subscribe(ht(t,S=>{i?.(S),o?p(S):t.next(S)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;a.length&&u<r;){let S=a.shift();s?Re(t,s,()=>m(S)):m(S)}g()}catch(S){t.error(S)}}))};return e.subscribe(ht(t,p,()=>{c=!0,g()})),()=>{l?.()}}function Bs(e,t,n=1/0){return G(t)?Bs((r,i)=>Us((o,s)=>t(r,o,i,s))(Xe(e(r,i))),n):(typeof t=="number"&&(n=t),Bt((r,i)=>qc(r,i,e,n)))}function Kc(e=1/0){return Bs(Ts,e)}function Qc(...e){let t=Oc(e),n=Dc(e,1/0),r=e;return r.length?r.length===1?Xe(r[0]):Kc(n)(Wc(r,t)):xc}function Yc(e,t){return Bt((n,r)=>{let i=null,o=0,s=!1,l=()=>s&&!i&&r.complete();n.subscribe(ht(r,a=>{i?.unsubscribe();let u=0,f=o++;Xe(e(a,f)).subscribe(i=ht(r,c=>r.next(t?t(a,c,f,u++):c),()=>{i=null,l()}))},()=>{s=!0,l()}))})}var Zs="https://g.co/ng/security#xss",R=class extends Error{code;constructor(e,t){super(Xc(e,t)),this.code=e}};function Xc(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Jc(e){return{toString:e}.toString()}var mn=globalThis;function j(e){for(let t in e)if(e[t]===j)return t;throw Error("Could not find renamed property on target object.")}function de(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(de).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 yo(e,t){return e?t?`${e} ${t}`:e:t||""}var ef=j({__forward_ref__:j});function $s(e){return e.__forward_ref__=$s,e.toString=function(){return de(this())},e}function he(e){return tf(e)?e():e}function tf(e){return typeof e=="function"&&e.hasOwnProperty(ef)&&e.__forward_ref__===$s}function Z(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ui(e){return vo(e,Gs)||vo(e,Ws)}function vo(e,t){return e.hasOwnProperty(t)?e[t]:null}function nf(e){return e&&(e[Gs]||e[Ws])||null}function wo(e){return e&&(e.hasOwnProperty(bo)||e.hasOwnProperty(rf))?e[bo]:null}var Gs=j({\u0275prov:j}),bo=j({\u0275inj:j}),Ws=j({ngInjectableDef:j}),rf=j({ngInjectorDef:j}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,t){this._desc=e,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=Z({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function qs(e){return e&&!!e.\u0275providers}var of=j({\u0275cmp:j}),sf=j({\u0275dir:j}),lf=j({\u0275pipe:j}),Eo=j({\u0275fac:j}),Dt=j({__NG_ELEMENT_ID__:j}),Io=j({__NG_ENV_ID__:j});function Mn(e){return typeof e=="string"?e:e==null?"":String(e)}function af(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Mn(e)}function uf(e,t){throw new R(-200,e)}function ci(e,t){throw new R(-201,!1)}var x=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(x||{}),wr;function Ks(){return wr}function J(e){let t=wr;return wr=e,t}function Qs(e,t,n){let r=ui(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&x.Optional)return null;if(t!==void 0)return t;ci(e,"Injector")}var cf={},At=cf,ff="__NG_DI_FLAG__",yn="ngTempTokenPath",hf="ngTokenPath",df=/\n/gm,pf="\u0275",_o="__source",ut;function gf(){return ut}function De(e){let t=ut;return ut=e,t}function mf(e,t=x.Default){if(ut===void 0)throw new R(-203,!1);return ut===null?Qs(e,void 0,t):ut.get(e,t&x.Optional?null:void 0,t)}function F(e,t=x.Default){return(Ks()||mf)(he(e),t)}function V(e,t=x.Default){return F(e,Rn(t))}function Rn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function br(e){let t=[];for(let n=0;n<e.length;n++){let r=he(e[n]);if(Array.isArray(r)){if(r.length===0)throw new R(900,!1);let i,o=x.Default;for(let s=0;s<r.length;s++){let l=r[s],a=yf(l);typeof a=="number"?a===-1?i=l.token:o|=a:i=l}t.push(F(i,o))}else t.push(F(r))}return t}function yf(e){return e[ff]}function vf(e,t,n,r){let i=e[yn];throw t[_o]&&i.unshift(t[_o]),e.message=wf(`
5
- `+e.message,i,n,r),e[hf]=i,e[yn]=null,e}function wf(e,t,n,r=null){e=e&&e.charAt(0)===`
6
- `&&e.charAt(1)==pf?e.slice(2):e;let i=de(t);if(Array.isArray(t))i=t.map(de).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let l=t[s];o.push(s+":"+(typeof l=="string"?JSON.stringify(l):de(l)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(df,`
7
- `)}`}function dt(e,t){return e.hasOwnProperty(Eo)?e[Eo]:null}function fi(e,t){e.forEach(n=>Array.isArray(n)?fi(n,t):t(n))}function bf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ys(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ef(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function If(e,t,n){let r=$t(e,t);return r>=0?e[r|1]=n:(r=~r,Ef(e,r,t,n)),r}function tr(e,t){let n=$t(e,t);if(n>=0)return e[n|1]}function $t(e,t){return _f(e,t,1)}function _f(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var pt={},$e=[],vn=new L(""),Xs=new L("",-1),Js=new L(""),el=class{get(e,t=At){if(t===At){let n=new Error(`NullInjectorError: No provider for ${de(e)}!`);throw n.name="NullInjectorError",n}return t}};function Vn(e){return e[of]||null}function tl(e){return e[sf]||null}function nl(e){return e[lf]||null}function Sf(e){let t=Vn(e)||tl(e)||nl(e);return t!==null&&t.standalone}function Cf(e){return{\u0275providers:e}}function Tf(...e){return{\u0275providers:rl(!0,e),\u0275fromNgModule:!0}}function rl(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return fi(t,s=>{let l=s;Er(l,o,[],r)&&(i||=[],i.push(l))}),i!==void 0&&il(i,o),n}function il(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];hi(i,o=>{t(o,r)})}}function Er(e,t,n,r){if(e=he(e),!e)return!1;let i=null,o=wo(e),s=!o&&Vn(e);if(!o&&!s){let a=e.ngModule;if(o=wo(a),o)i=a;else return!1}else{if(s&&!s.standalone)return!1;i=e}let l=r.has(i);if(s){if(l)return!1;if(r.add(i),s.dependencies){let a=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of a)Er(u,t,n,r)}}else if(o){if(o.imports!=null&&!l){r.add(i);let u;try{fi(o.imports,f=>{Er(f,t,n,r)&&(u||=[],u.push(f))})}finally{}u!==void 0&&il(u,t)}if(!l){let u=dt(i)||(()=>new i);t({provide:i,useFactory:u,deps:$e},i),t({provide:Js,useValue:i,multi:!0},i),t({provide:vn,useValue:()=>F(i),multi:!0},i)}let a=o.providers;if(a!=null&&!l){let u=e;hi(a,f=>{t(f,u)})}}else return!1;return i!==e&&e.providers!==void 0}function hi(e,t){for(let n of e)qs(n)&&(n=n.\u0275providers),Array.isArray(n)?hi(n,t):t(n)}var xf=j({provide:String,useValue:j});function ol(e){return e!==null&&typeof e=="object"&&xf in e}function kf(e){return!!(e&&e.useExisting)}function Of(e){return!!(e&&e.useFactory)}function Ir(e){return typeof e=="function"}var di=new L(""),an={},Df={},nr;function pi(){return nr===void 0&&(nr=new el),nr}var Mt=class{},gi=class extends Mt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Sr(e,o=>this.processProvider(o)),this.records.set(Xs,ot(void 0,this)),r.has("environment")&&this.records.set(Mt,ot(void 0,this));let i=this.records.get(di);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Js,$e,x.Self))}destroy(){xt(this),this._destroyed=!0;let e=A(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),A(e)}}onDestroy(e){return xt(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){xt(this);let t=De(this),n=J(void 0),r;try{return e()}finally{De(t),J(n)}}get(e,t=At,n=x.Default){if(xt(this),e.hasOwnProperty(Io))return e[Io](this);n=Rn(n);let r,i=De(this),o=J(void 0);try{if(!(n&x.SkipSelf)){let l=this.records.get(e);if(l===void 0){let a=Pf(e)&&ui(e);a&&this.injectableDefInScope(a)?l=ot(_r(e),an):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let s=n&x.Self?pi():this.parent;return t=n&x.Optional&&t===At?null:t,s.get(e,t)}catch(s){if(s.name==="NullInjectorError"){if((s[yn]=s[yn]||[]).unshift(de(e)),i)throw s;return vf(s,e,"R3InjectorError",this.source)}else throw s}finally{J(o),De(i)}}resolveInjectorInitializers(){let e=A(null),t=De(this),n=J(void 0),r;try{let i=this.get(vn,$e,x.Self);for(let o of i)o()}finally{De(t),J(n),A(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(de(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=he(e);let t=Ir(e)?e:he(e&&e.provide),n=Af(e);if(!Ir(e)&&e.multi===!0){let r=this.records.get(t);r||(r=ot(void 0,an,!0),r.factory=()=>br(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t){let n=A(null);try{return t.value===an&&(t.value=Df,t.value=t.factory()),typeof t.value=="object"&&t.value&&Vf(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{A(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=he(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function _r(e){let t=ui(e),n=t!==null?t.factory:dt(e);if(n!==null)return n;if(e instanceof L)throw new R(204,!1);if(e instanceof Function)return Nf(e);throw new R(204,!1)}function Nf(e){if(e.length>0)throw new R(204,!1);let t=nf(e);return t!==null?()=>t.factory(e):()=>new e}function Af(e){if(ol(e))return ot(void 0,e.useValue);{let t=Mf(e);return ot(t,an)}}function Mf(e,t,n){let r;if(Ir(e)){let i=he(e);return dt(i)||_r(i)}else if(ol(e))r=()=>he(e.useValue);else if(Of(e))r=()=>e.useFactory(...br(e.deps||[]));else if(kf(e))r=()=>F(he(e.useExisting));else{let i=he(e&&(e.useClass||e.provide));if(Rf(e))r=()=>new i(...br(e.deps));else return dt(i)||_r(i)}return r}function xt(e){if(e.destroyed)throw new R(205,!1)}function ot(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Rf(e){return!!e.deps}function Vf(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Pf(e){return typeof e=="function"||typeof e=="object"&&e instanceof L}function Sr(e,t){for(let n of e)Array.isArray(n)?Sr(n,t):n&&qs(n)?Sr(n.\u0275providers,t):t(n)}function sl(e,t){e instanceof gi&&xt(e);let n,r=De(e),i=J(void 0);try{return t()}finally{De(r),J(i)}}function Ff(){return Ks()!==void 0||gf()!=null}var ke=0,k=1,I=2,se=3,pe=4,ve=5,Rt=6,So=7,q=8,Vt=9,xe=10,ie=11,Pt=12,Co=13,It=14,ye=15,gt=16,st=17,mt=18,Pn=19,ll=20,Ve=21,rr=22,wn=23,te=24,ir=25,K=26,al=1,Ft=7,Lf=8,bn=9,ee=10;function Ze(e){return Array.isArray(e)&&typeof e[al]=="object"}function Je(e){return Array.isArray(e)&&e[al]===!0}function ul(e){return(e.flags&4)!==0}function Fn(e){return e.componentOffset>-1}function cl(e){return(e.flags&1)===1}function et(e){return!!e.template}function En(e){return(e[I]&512)!==0}function Gt(e){return(e[I]&256)===256}var jf=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function fl(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Hf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Uf),zf}function zf(){let e=dl(this),t=e?.current;if(t){let n=e.previous;if(n===pt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Uf(e,t,n,r,i){let o=this.declaredInputs[r],s=dl(e)||Bf(e,{previous:pt,current:null}),l=s.current||(s.current={}),a=s.previous,u=a[o];l[o]=new jf(u&&u.currentValue,n,a===pt),fl(e,t,i,n)}var hl="__ngSimpleChanges__";function dl(e){return e[hl]||null}function Bf(e,t){return e[hl]=t}var Zf=null,H=function(e,t=null,n){Zf?.(e,t,n)},$f="svg",Gf="math";function Pe(e){for(;Array.isArray(e);)e=e[ke];return e}function pl(e,t){return Pe(t[e])}function tt(e,t){return Pe(t[e.index])}function mi(e,t){return e.data[t]}function gl(e,t){return e[t]}function Ge(e,t){let n=t[e];return Ze(n)?n:n[ke]}function yi(e){return(e[I]&128)===128}function yt(e,t){return t==null?null:e[t]}function ml(e){e[st]=0}function vi(e){e[I]&1024||(e[I]|=1024,yi(e)&&jn(e))}function Wf(e,t){for(;e>0;)t=t[It],e--;return t}function Ln(e){return!!(e[I]&9216||e[te]?.dirty)}function Cr(e){e[xe].changeDetectionScheduler?.notify(8),e[I]&64&&(e[I]|=1024),Ln(e)&&jn(e)}function jn(e){e[xe].changeDetectionScheduler?.notify(0);let t=We(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!yi(t)));)t=We(t)}function yl(e,t){if(Gt(e))throw new R(911,!1);e[Ve]===null&&(e[Ve]=[]),e[Ve].push(t)}function qf(e,t){if(e[Ve]===null)return;let n=e[Ve].indexOf(t);n!==-1&&e[Ve].splice(n,1)}function We(e){let t=e[se];return Je(t)?t[se]:t}var O={lFrame:Tl(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Tr=!1;function Kf(){return O.lFrame.elementDepthCount}function Qf(){O.lFrame.elementDepthCount++}function Yf(){O.lFrame.elementDepthCount--}function vl(){return O.bindingsEnabled}function Xf(){return O.skipHydrationRootTNode!==null}function Jf(e){return O.skipHydrationRootTNode===e}function eh(){O.skipHydrationRootTNode=null}function z(){return O.lFrame.lView}function we(){return O.lFrame.tView}function Wt(){let e=wl();for(;e!==null&&e.type===64;)e=e.parent;return e}function wl(){return O.lFrame.currentTNode}function th(){let e=O.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _t(e,t){let n=O.lFrame;n.currentTNode=e,n.isParent=t}function bl(){return O.lFrame.isParent}function nh(){O.lFrame.isParent=!1}function El(){return Tr}function To(e){let t=Tr;return Tr=e,t}function Il(){let e=O.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function rh(e){return O.lFrame.bindingIndex=e}function Hn(){return O.lFrame.bindingIndex++}function ih(e){let t=O.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function oh(){return O.lFrame.inI18n}function sh(e,t){let n=O.lFrame;n.bindingIndex=n.bindingRootIndex=e,xr(t)}function lh(){return O.lFrame.currentDirectiveIndex}function xr(e){O.lFrame.currentDirectiveIndex=e}function ah(e){let t=O.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _l(e){O.lFrame.currentQueryIndex=e}function uh(e){let t=e[k];return t.type===2?t.declTNode:t.type===1?e[ve]:null}function Sl(e,t,n){if(n&x.SkipSelf){let i=t,o=e;for(;(i=i.parent,i===null&&!(n&x.Host))&&(i=uh(o),!(i===null||(o=o[It],i.type&10))););if(i===null)return!1;t=i,e=o}let r=O.lFrame=Cl();return r.currentTNode=t,r.lView=e,!0}function wi(e){let t=Cl(),n=e[k];O.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Cl(){let e=O.lFrame,t=e===null?null:e.child;return t===null?Tl(e):t}function Tl(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 xl(){let e=O.lFrame;return O.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var kl=xl;function bi(){let e=xl();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 ch(e){return(O.lFrame.contextLView=Wf(e,O.lFrame.contextLView))[q]}function nt(){return O.lFrame.selectedIndex}function qe(e){O.lFrame.selectedIndex=e}function fh(){let e=O.lFrame;return mi(e.tView,e.selectedIndex)}function hh(){return O.lFrame.currentNamespace}var Ol=!0;function Ei(){return Ol}function Ii(e){Ol=e}function dh(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=Hf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function Dl(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:l,ngAfterViewChecked:a,ngOnDestroy:u}=i;o&&(e.contentHooks??=[]).push(-n,o),s&&((e.contentHooks??=[]).push(n,s),(e.contentCheckHooks??=[]).push(n,s)),l&&(e.viewHooks??=[]).push(-n,l),a&&((e.viewHooks??=[]).push(n,a),(e.viewCheckHooks??=[]).push(n,a)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function un(e,t,n){Nl(e,t,3,n)}function cn(e,t,n,r){(e[I]&3)===n&&Nl(e,t,n,r)}function or(e,t){let n=e[I];(n&3)===t&&(n&=16383,n+=1,e[I]=n)}function Nl(e,t,n,r){let i=r!==void 0?e[st]&65535:0,o=r??-1,s=t.length-1,l=0;for(let a=i;a<s;a++)if(typeof t[a+1]=="number"){if(l=t[a],r!=null&&l>=r)break}else t[a]<0&&(e[st]+=65536),(l<o||o==-1)&&(ph(e,n,t,a),e[st]=(e[st]&4294901760)+a+2),a++}function xo(e,t){H(4,e,t);let n=A(null);try{t.call(e)}finally{A(n),H(5,e,t)}}function ph(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],l=e[s];i?e[I]>>14<e[st]>>16&&(e[I]&3)===t&&(e[I]+=16384,xo(l,o)):xo(l,o)}var ct=-1,_i=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n){this.factory=e,this.canSeeViewProviders=t,this.injectImpl=n}};function gh(e){return e instanceof _i}function mh(e){return(e.flags&8)!==0}function yh(e){return(e.flags&16)!==0}function vh(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],l=n[r++];e.setAttribute(t,s,l,o)}else{let o=i,s=n[++r];bh(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function wh(e){return e===3||e===4||e===6}function bh(e){return e.charCodeAt(0)===64}function Si(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 i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?ko(e,n,i,null,t[++r]):ko(e,n,i,null,null))}}return e}function ko(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let l=e[o++];if(typeof l=="number"){if(l===t){s=-1;break}else if(l>t){s=o-1;break}}}for(;o<e.length;){let l=e[o];if(typeof l=="number")break;if(l===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var sr={},Eh=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){n=Rn(n);let r=this.injector.get(e,sr,n);return r!==sr||t===sr?r:this.parentInjector.get(e,t,n)}};function Ih(e){return e!==ct}function kr(e){return e&32767}function _h(e){return e>>16}function Or(e,t){let n=_h(e),r=t;for(;n>0;)r=r[It],n--;return r}var Dr=!0;function In(e){let t=Dr;return Dr=e,t}var Sh=256,Al=Sh-1,Ml=5,Ch=0,me={};function Th(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Dt)&&(r=n[Dt]),r==null&&(r=n[Dt]=Ch++);let i=r&Al,o=1<<i;t.data[e+(i>>Ml)]|=o}function Rl(e,t){let n=Vl(e,t);if(n!==-1)return n;let r=t[k];r.firstCreatePass&&(e.injectorIndex=t.length,lr(r.data,e),lr(t,null),lr(r.blueprint,null));let i=Pl(e,t),o=e.injectorIndex;if(Ih(i)){let s=kr(i),l=Or(i,t),a=l[k].data;for(let u=0;u<8;u++)t[o+u]=l[s+u]|a[s+u]}return t[o+8]=i,o}function lr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Vl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Pl(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Ul(i),r===null)return ct;if(n++,i=i[It],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ct}function xh(e,t,n){Th(e,t,n)}function Fl(e,t,n){if(n&x.Optional||e!==void 0)return e;ci(t,"NodeInjector")}function Ll(e,t,n,r){if(n&x.Optional&&r===void 0&&(r=null),(n&(x.Self|x.Host))===0){let i=e[Vt],o=J(void 0);try{return i?i.get(t,r,n&x.Optional):Qs(t,r,n&x.Optional)}finally{J(o)}}return Fl(r,t,n)}function jl(e,t,n,r=x.Default,i){if(e!==null){if(t[I]&2048&&!(r&x.Self)){let s=Ah(e,t,n,r,me);if(s!==me)return s}let o=Hl(e,t,n,r,me);if(o!==me)return o}return Ll(t,n,r,i)}function Hl(e,t,n,r,i){let o=Dh(n);if(typeof o=="function"){if(!Sl(t,e,r))return r&x.Host?Fl(i,n,r):Ll(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&x.Optional))ci(n);else return s}finally{kl()}}else if(typeof o=="number"){let s=null,l=Vl(e,t),a=ct,u=r&x.Host?t[ye][ve]:null;for((l===-1||r&x.SkipSelf)&&(a=l===-1?Pl(e,t):t[l+8],a===ct||!Do(r,!1)?l=-1:(s=t[k],l=kr(a),t=Or(a,t)));l!==-1;){let f=t[k];if(Oo(o,l,f.data)){let c=kh(l,t,n,s,r,u);if(c!==me)return c}a=t[l+8],a!==ct&&Do(r,t[k].data[l+8]===u)&&Oo(o,l,t)?(s=f,l=kr(a),t=Or(a,t)):l=-1}}return i}function kh(e,t,n,r,i,o){let s=t[k],l=s.data[e+8],a=r==null?Fn(l)&&Dr:r!=s&&(l.type&3)!==0,u=i&x.Host&&o===l,f=Oh(l,s,n,a,u);return f!==null?Nr(t,s,f,l):me}function Oh(e,t,n,r,i){let o=e.providerIndexes,s=t.data,l=o&1048575,a=e.directiveStart,u=e.directiveEnd,f=o>>20,c=r?l:l+f,g=i?l+f:u;for(let p=c;p<g;p++){let m=s[p];if(p<a&&n===m||p>=a&&m.type===n)return p}if(i){let p=s[a];if(p&&et(p)&&p.type===n)return a}return null}function Nr(e,t,n,r){let i=e[n],o=t.data;if(gh(i)){let s=i;s.resolving&&uf(af(o[n]));let l=In(s.canSeeViewProviders);s.resolving=!0;let a,u=s.injectImpl?J(s.injectImpl):null,f=Sl(e,r,x.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&dh(n,o[n],t)}finally{u!==null&&J(u),In(l),s.resolving=!1,kl()}}return i}function Dh(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Dt)?e[Dt]:void 0;return typeof t=="number"?t>=0?t&Al:Nh:t}function Oo(e,t,n){let r=1<<e;return!!(n[t+(e>>Ml)]&r)}function Do(e,t){return!(e&x.Self)&&!(e&x.Host&&t)}var zl=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return jl(this._tNode,this._lView,e,Rn(n),t)}};function Nh(){return new zl(Wt(),z())}function Ah(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[I]&2048&&!En(s);){let l=Hl(o,s,n,r|x.Self,me);if(l!==me)return l;let a=o.parent;if(!a){let u=s[ll];if(u){let f=u.get(n,me,r);if(f!==me)return f}a=Ul(s),s=s[It]}o=a}return i}function Ul(e){let t=e[k],n=t.type;return n===2?t.declTNode:n===1?e[ve]:null}function No(e,t=null,n=null,r){let i=Mh(e,t,n,r);return i.resolveInjectorInitializers(),i}function Mh(e,t=null,n=null,r,i=new Set){let o=[n||$e,Tf(e)];return r=r||(typeof e=="object"?void 0:de(e)),new gi(o,t||pi(),r||null,i)}var zn=class Bl{static THROW_IF_NOT_FOUND=At;static NULL=new el;static create(t,n){if(Array.isArray(t))return No({name:""},n,t,"");{let r=t.name??"";return No({name:r},t.parent,t.providers,r)}}static \u0275prov=Z({token:Bl,providedIn:"any",factory:()=>F(Xs)});static __NG_ELEMENT_ID__=-1},Rh=new L("");Rh.__NG_ELEMENT_ID__=e=>{let t=Wt();if(t===null)throw new R(204,!1);if(t.type&2)return t.value;if(e&x.Optional)return null;throw new R(204,!1)};var Zl=!1,$l=(()=>{class e{static __NG_ELEMENT_ID__=Ph;static __NG_ENV_ID__=n=>n}return e})(),Vh=class extends $l{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return yl(this._lView,e),()=>qf(this._lView,e)}};function Ph(){return new Vh(z())}var qt=class{},Ci=new L("",{providedIn:"root",factory:()=>!1}),Gl=new L(""),Ti=new L(""),Un=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Cc(!1);add(){this._hasPendingTasks||this.hasPendingTasks.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.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=Z({token:e,providedIn:"root",factory:()=>new e})}return e})(),Fh=class extends Zt{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Ff()&&(this.destroyRef=V($l,{optional:!0})??void 0,this.pendingTasks=V(Un,{optional:!0})??void 0)}emit(e){let t=A(null);try{super.next(e)}finally{A(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),o=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),i=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:i,complete:o});return e instanceof Te&&e.add(s),s}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(t),n!==void 0&&this.pendingTasks?.remove(n)})}}},Ae=Fh;function _n(...e){}function Wl(e){let t,n;function r(){e=_n;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 Ao(e){return queueMicrotask(()=>e()),()=>{e=_n}}var xi="isAngularZone",Sn=xi+"_ID",Lh=0,ne=class Ar{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ae(!1);onMicrotaskEmpty=new Ae(!1);onStable=new Ae(!1);onError=new Ae(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Zl}=t;if(typeof Zone>"u")throw new R(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=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,zh(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(xi)===!0}static assertInAngularZone(){if(!Ar.isInAngularZone())throw new R(909,!1)}static assertNotInAngularZone(){if(Ar.isInAngularZone())throw new R(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,jh,_n,_n);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},jh={};function ki(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 Hh(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Wl(()=>{e.callbackScheduled=!1,Mr(e),e.isCheckStableRunning=!0,ki(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Mr(e)}function zh(e){let t=()=>{Hh(e)},n=Lh++;e._inner=e._inner.fork({name:"angular",properties:{[xi]:!0,[Sn]:n,[Sn+n]:!0},onInvokeTask:(r,i,o,s,l,a)=>{if(Uh(a))return r.invokeTask(o,s,l,a);try{return Mo(e),r.invokeTask(o,s,l,a)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ro(e)}},onInvoke:(r,i,o,s,l,a,u)=>{try{return Mo(e),r.invoke(o,s,l,a,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Bh(a)&&t(),Ro(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Mr(e),ki(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Mr(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Mo(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ro(e){e._nesting--,ki(e)}var ql=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ae;onMicrotaskEmpty=new Ae;onStable=new Ae;onError=new Ae;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function Uh(e){return Kl(e,"__ignore_ng_zone__")}function Bh(e){return Kl(e,"__scheduler_tick__")}function Kl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Kt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},Zh=new L("",{providedIn:"root",factory:()=>{let e=V(ne),t=V(Kt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function $h(){return Ql(Wt(),z())}function Ql(e,t){return new Yl(tt(e,t))}var Yl=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=$h}return e})();function Vo(e,t){let n=lc(e),r=n[Me];return t?.equal&&(r.equal=t.equal),n.set=i=>Es(r,i),n.update=i=>ac(r,i),n.asReadonly=Gh.bind(n),n}function Gh(){let e=this[Me];if(e.readonlyFn===void 0){let t=()=>this();t[Me]=e,e.readonlyFn=t}return e.readonlyFn}function Xl(e){return(e.flags&128)===128}var Jl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Jl||{}),ea=new Map,Wh=0;function qh(){return Wh++}function Kh(e){ea.set(e[Pn],e)}function Rr(e){ea.delete(e[Pn])}var Po="__ngContext__";function Qt(e,t){Ze(t)?(e[Po]=t[Pn],Kh(t)):e[Po]=t}function ta(e){return ra(e[Pt])}function na(e){return ra(e[pe])}function ra(e){for(;e!==null&&!Je(e);)e=e[pe];return e}var Vr;function Qh(e){Vr=e}function ia(){if(Vr!==void 0)return Vr;if(typeof document<"u")return document;throw new R(210,!1)}var oa=new L("",{providedIn:"root",factory:()=>Yh}),Yh="ng",sa=new L(""),Oi=new L("",{providedIn:"platform",factory:()=>"unknown"}),la=new L("",{providedIn:"root",factory:()=>ia().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Xh="h",Jh="b",aa=!1,ed=new L("",{providedIn:"root",factory:()=>aa}),ua=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(ua||{}),Di=new L(""),Fo=new Set;function Bn(e){Fo.has(e)||(Fo.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var td=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=Z({token:e,providedIn:"root",factory:()=>new e})}return e})(),nd=()=>null;function ca(e,t,n=!1){return nd(e,t,n)}function fa(e,t){let n=e.contentQueries;if(n!==null){let r=A(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let l=e.data[s];_l(o),l.contentQueries(2,t[s],s)}}}finally{A(r)}}}function Pr(e,t,n){_l(0);let r=A(null);try{t(e,n)}finally{A(r)}}function ha(e,t,n){if(ul(t)){let r=A(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let l=e.data[s];if(l.contentQueries){let a=n[s];l.contentQueries(1,a,s)}}}finally{A(r)}}}var Ce=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ce||{}),tn;function rd(){if(tn===void 0&&(tn=null,mn.trustedTypes))try{tn=mn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return tn}function Zn(e){return rd()?.createHTML(e)||e}var nn;function id(){if(nn===void 0&&(nn=null,mn.trustedTypes))try{nn=mn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return nn}function Lo(e){return id()?.createHTML(e)||e}var rt=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Zs})`}},od=class extends rt{getTypeName(){return"HTML"}},sd=class extends rt{getTypeName(){return"Style"}},ld=class extends rt{getTypeName(){return"Script"}},ad=class extends rt{getTypeName(){return"URL"}},ud=class extends rt{getTypeName(){return"ResourceURL"}};function Ne(e){return e instanceof rt?e.changingThisBreaksApplicationSecurity:e}function ze(e,t){let n=cd(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Zs})`)}return n===t}function cd(e){return e instanceof rt&&e.getTypeName()||null}function fd(e){return new od(e)}function hd(e){return new sd(e)}function dd(e){return new ld(e)}function pd(e){return new ad(e)}function gd(e){return new ud(e)}function md(e){let t=new vd(e);return wd()?new yd(t):t}var yd=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(Zn(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},vd=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=Zn(e),t}};function wd(){try{return!!new window.DOMParser().parseFromString(Zn(""),"text/html")}catch{return!1}}var bd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ni(e){return e=String(e),e.match(bd)?e:"unsafe:"+e}function Oe(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Yt(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var da=Oe("area,br,col,hr,img,wbr"),pa=Oe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ga=Oe("rp,rt"),Ed=Yt(ga,pa),Id=Yt(pa,Oe("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")),_d=Yt(ga,Oe("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")),jo=Yt(da,Id,_d,Ed),ma=Oe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Sd=Oe("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"),Cd=Oe("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"),Td=Yt(ma,Sd,Cd),xd=Oe("script,style,template"),kd=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){r.push(t),t=Nd(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=Dd(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=Ho(e).toLowerCase();if(!jo.hasOwnProperty(t))return this.sanitizedSomething=!0,!xd.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),o=i.name,s=o.toLowerCase();if(!Td.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let l=i.value;ma[s]&&(l=Ni(l)),this.buf.push(" ",o,'="',zo(l),'"')}return this.buf.push(">"),!0}endElement(e){let t=Ho(e).toLowerCase();jo.hasOwnProperty(t)&&!da.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(zo(e))}};function Od(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Dd(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw ya(t);return t}function Nd(e){let t=e.firstChild;if(t&&Od(e,t))throw ya(t);return t}function Ho(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function ya(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Ad=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Md=/([^\#-~ |!])/g;function zo(e){return e.replace(/&/g,"&amp;").replace(Ad,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Md,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var rn;function va(e,t){let n=null;try{rn=rn||md(e);let r=t?String(t):"";n=rn.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=rn.getInertBodyElement(r)}while(r!==o);let s=new kd().sanitizeChildren(Uo(n)||n);return Zn(s)}finally{if(n){let r=Uo(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Uo(e){return"content"in e&&Rd(e)?e.content:null}function Rd(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var _e=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(_e||{});function wa(e){let t=ba();return t?Lo(t.sanitize(_e.HTML,e)||""):ze(e,"HTML")?Lo(Ne(e)):va(ia(),Mn(e))}function Vd(e){let t=ba();return t?t.sanitize(_e.URL,e)||"":ze(e,"URL")?Ne(e):Ni(Mn(e))}function ba(){let e=z();return e&&e[xe].sanitizer}function Pd(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var Ea="ng-template";function Fd(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&Pd(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Ai(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function Ai(e){return e.type===4&&e.value!==Ea}function Ld(e,t,n){let r=e.type===4&&!n?Ea:e.value;return t===r}function jd(e,t,n){let r=4,i=e.attrs,o=i!==null?Ud(i):0,s=!1;for(let l=0;l<t.length;l++){let a=t[l];if(typeof a=="number"){if(!s&&!fe(r)&&!fe(a))return!1;if(s&&fe(a))continue;s=!1,r=a|r&1;continue}if(!s)if(r&4){if(r=2|r&1,a!==""&&!Ld(e,a,n)||a===""&&t.length===1){if(fe(r))return!1;s=!0}}else if(r&8){if(i===null||!Fd(e,i,a,n)){if(fe(r))return!1;s=!0}}else{let u=t[++l],f=Hd(a,i,Ai(e),n);if(f===-1){if(fe(r))return!1;s=!0;continue}if(u!==""){let c;if(f>o?c="":c=i[f+1].toLowerCase(),r&2&&u!==c){if(fe(r))return!1;s=!0}}}}return fe(r)||s}function fe(e){return(e&1)===0}function Hd(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let l=t[++i];for(;typeof l=="string";)l=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return Bd(t,e)}function zd(e,t,n=!1){for(let r=0;r<t.length;r++)if(jd(e,t[r],n))return!0;return!1}function Ud(e){for(let t=0;t<e.length;t++){let n=e[t];if(wh(n))return t}return e.length}function Bd(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 Bo(e,t){return e?":not("+t.trim()+")":t}function Zd(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let l=e[++n];i+="["+s+(l.length>0?'="'+l+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!fe(s)&&(t+=Bo(o,i),i=""),r=s,o=o||!fe(r);n++}return i!==""&&(t+=Bo(o,i)),t}function $d(e){return e.map(Zd).join(",")}function Gd(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!fe(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var je={};function Wd(e,t){return e.createText(t)}function qd(e,t,n){e.setValue(t,n)}function Ia(e,t,n){return e.createElement(t,n)}function Fr(e,t,n,r,i){e.insertBefore(t,n,r,i)}function _a(e,t,n){e.appendChild(t,n)}function Zo(e,t,n,r,i){r!==null?Fr(e,t,n,r,i):_a(e,t,n)}function Kd(e,t,n){e.removeChild(null,t,n)}function Qd(e,t,n){e.setAttribute(t,"style",n)}function Yd(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Sa(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&vh(e,t,r),i!==null&&Yd(e,t,i),o!==null&&Qd(e,t,o)}function Mi(e,t,n,r,i,o,s,l,a,u,f){let c=K+r,g=c+i,p=Xd(c,g),m=typeof u=="function"?u():u;return p[k]={type:e,blueprint:p,template:n,queries:null,viewQuery:l,declTNode:t,data:p.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:g,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 o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:a,consts:m,incompleteFirstPass:!1,ssrId:f}}function Xd(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:je);return n}function Jd(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Mi(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ri(e,t,n,r,i,o,s,l,a,u,f){let c=t.blueprint.slice();return c[ke]=i,c[I]=r|4|128|8|64|1024,(u!==null||e&&e[I]&2048)&&(c[I]|=2048),ml(c),c[se]=c[It]=e,c[q]=n,c[xe]=s||e&&e[xe],c[ie]=l||e&&e[ie],c[Vt]=a||e&&e[Vt]||null,c[ve]=o,c[Pn]=qh(),c[Rt]=f,c[ll]=u,c[ye]=t.type==2?e[ye]:c,c}function ep(e,t,n){let r=tt(t,e),i=Jd(n),o=e[xe].rendererFactory,s=xa(e,Ri(e,i,null,Ca(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function Ca(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Ta(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function xa(e,t){return e[Pt]?e[Co][pe]=t:e[Pt]=t,e[Co]=t,t}function ft(e=1){ka(we(),z(),nt()+e,!1)}function ka(e,t,n,r){if(!r)if((t[I]&3)===3){let i=e.preOrderCheckHooks;i!==null&&un(t,i,n)}else{let i=e.preOrderHooks;i!==null&&cn(t,i,0,n)}qe(n)}var $n=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}($n||{});function Lr(e,t,n,r){let i=A(null);try{let[o,s,l]=e.inputs[n],a=null;(s&$n.SignalBased)!==0&&(a=t[o][Me]),a!==null&&a.transformFn!==void 0?r=a.transformFn(r):l!==null&&(r=l.call(t,r)),e.setInput!==null?e.setInput(t,a,r,n,o):fl(t,a,o,r)}finally{A(i)}}function Oa(e,t,n,r,i){let o=nt(),s=r&2;try{qe(-1),s&&t.length>K&&ka(e,t,K,!1),H(s?2:0,i),n(r,i)}finally{qe(o),H(s?3:1,i)}}function Vi(e,t,n){lp(e,t,n),(n.flags&64)===64&&ap(e,t,n)}function Da(e,t,n=tt){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],l=s===-1?n(t,e):e[s];e[i++]=l}}}function tp(e,t,n,r){let i=r.get(ed,aa)||n===Ce.ShadowDom,o=e.selectRootElement(t,i);return np(o),o}function np(e){rp(e)}var rp=()=>null;function ip(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function op(e,t,n,r,i,o,s,l){if(!l&&Pi(t,e,n,r,i)){Fn(t)&&sp(n,t.index);return}if(t.type&3){let a=tt(t,n);r=ip(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(a,r,i)}else t.type&12}function sp(e,t){let n=Ge(t,e);n[I]&16||(n[I]|=64)}function lp(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Fn(n)&&ep(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Rl(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let l=e.data[s],a=Nr(t,e,s,n);if(Qt(a,t),o!==null&&cp(t,s-r,a,l,n,o),et(l)){let u=Ge(n.index,t);u[q]=Nr(t,e,s,n)}}}function ap(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=lh();try{qe(o);for(let l=r;l<i;l++){let a=e.data[l],u=t[l];xr(l),(a.hostBindings!==null||a.hostVars!==0||a.hostAttrs!==null)&&up(a,u)}}finally{qe(-1),xr(s)}}function up(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Na(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];zd(t,o.selectors,!1)&&(r??=[],et(o)?r.unshift(o):r.push(o))}return r}function cp(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let l=0;l<s.length;l+=2){let a=s[l],u=s[l+1];Lr(r,n,a,u)}}function fp(e,t){let n=e[Vt],r=n?n.get(Kt,null):null;r&&r.handleError(t)}function Pi(e,t,n,r,i){let o=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],l=!1;if(s)for(let a=0;a<s.length;a+=2){let u=s[a],f=s[a+1],c=t.data[u];Lr(c,n[u],f,i),l=!0}if(o)for(let a of o){let u=n[a],f=t.data[a];Lr(f,u,r,i),l=!0}return l}function hp(e,t){let n=Ge(t,e),r=n[k];dp(r,n);let i=n[ke];i!==null&&n[Rt]===null&&(n[Rt]=ca(i,n[Vt])),H(18),Fi(r,n,n[q]),H(19,n[q])}function dp(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Fi(e,t,n){wi(t);try{let r=e.viewQuery;r!==null&&Pr(1,r,n);let i=e.template;i!==null&&Oa(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[mt]?.finishViewCreation(e),e.staticContentQueries&&fa(e,t),e.staticViewQueries&&Pr(2,e.viewQuery,n);let o=e.components;o!==null&&pp(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[I]&=-5,bi()}}function pp(e,t){for(let n=0;n<t.length;n++)hp(e,t[n])}function Li(e,t,n,r){let i=A(null);try{let o=t.tView,s=e[I]&4096?4096:16,l=Ri(e,o,n,s,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),a=e[t.index];l[gt]=a;let u=e[mt];return u!==null&&(l[mt]=u.createEmbeddedView(o)),Fi(o,l,n),l}finally{A(i)}}function ji(e,t){return!t||t.firstChild===null||Xl(e)}var gp;function Hi(e,t){return gp(e,t)}var Be=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Be||{});function Aa(e){return(e.flags&32)===32}function lt(e,t,n,r,i){if(r!=null){let o,s=!1;Je(r)?o=r:Ze(r)&&(s=!0,r=r[ke]);let l=Pe(r);e===0&&n!==null?i==null?_a(t,n,l):Fr(t,n,l,i||null,!0):e===1&&n!==null?Fr(t,n,l,i||null,!0):e===2?Kd(t,l,s):e===3&&t.destroyNode(l),o!=null&&xp(t,e,o,n,i)}}function mp(e,t){Ma(e,t),t[ke]=null,t[ve]=null}function yp(e,t,n,r,i,o){r[ke]=i,r[ve]=t,Gn(e,r,n,1,i,o)}function Ma(e,t){t[xe].changeDetectionScheduler?.notify(9),Gn(e,t,t[ie],2,null,null)}function vp(e){let t=e[Pt];if(!t)return ar(e[k],e);for(;t;){let n=null;if(Ze(t))n=t[Pt];else{let r=t[ee];r&&(n=r)}if(!n){for(;t&&!t[pe]&&t!==e;)Ze(t)&&ar(t[k],t),t=t[se];t===null&&(t=e),Ze(t)&&ar(t[k],t),n=t&&t[pe]}t=n}}function zi(e,t){let n=e[bn],r=n.indexOf(t);n.splice(r,1)}function Ui(e,t){if(Gt(t))return;let n=t[ie];n.destroyNode&&Gn(e,t,n,3,null,null),vp(t)}function ar(e,t){if(Gt(t))return;let n=A(null);try{t[I]&=-129,t[I]|=256,t[te]&&gs(t[te]),bp(e,t),wp(e,t),t[k].type===1&&t[ie].destroy();let r=t[gt];if(r!==null&&Je(t[se])){r!==t[se]&&zi(r,t);let i=t[mt];i!==null&&i.detachView(e)}Rr(t)}finally{A(n)}}function wp(e,t){let n=e.cleanup,r=t[So];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let l=n[s+3];l>=0?r[l]():r[-l].unsubscribe(),s+=2}else{let l=r[n[s+1]];n[s].call(l)}r!==null&&(t[So]=null);let i=t[Ve];if(i!==null){t[Ve]=null;for(let s=0;s<i.length;s++){let l=i[s];l()}}let o=t[wn];if(o!==null){t[wn]=null;for(let s of o)s.destroy()}}function bp(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof _i)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let l=i[o[s]],a=o[s+1];H(4,l,a);try{a.call(l)}finally{H(5,l,a)}}else{H(4,i,o);try{o.call(i)}finally{H(5,i,o)}}}}}function Ep(e,t,n){return Ip(e,t.parent,n)}function Ip(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[ke];if(Fn(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===Ce.None||i===Ce.Emulated)return null}return tt(r,n)}function _p(e,t,n){return Cp(e,t,n)}function Sp(e,t,n){return e.type&40?tt(e,n):null}var Cp=Sp,$o;function Bi(e,t,n,r){let i=Ep(e,r,t),o=t[ie],s=r.parent||t[ve],l=_p(s,r,t);if(i!=null)if(Array.isArray(n))for(let a=0;a<n.length;a++)Zo(o,i,n[a],l,!1);else Zo(o,i,n,l,!1);$o!==void 0&&$o(o,r,t,n,i)}function kt(e,t){if(t!==null){let n=t.type;if(n&3)return tt(t,e);if(n&4)return jr(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return kt(e,r);{let i=e[t.index];return Je(i)?jr(-1,i):Pe(i)}}else{if(n&128)return kt(e,t.next);if(n&32)return Hi(t,e)()||Pe(e[t.index]);{let r=Ra(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=We(e[ye]);return kt(i,r)}else return kt(e,t.next)}}}return null}function Ra(e,t){if(t!==null){let n=e[ye][ve],r=t.projection;return n.projection[r]}return null}function jr(e,t){let n=ee+e+1;if(n<t.length){let r=t[n],i=r[k].firstChild;if(i!==null)return kt(r,i)}return t[Ft]}function Zi(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let l=r[n.index],a=n.type;if(s&&t===0&&(l&&Qt(Pe(l),r),n.flags|=2),!Aa(n))if(a&8)Zi(e,t,n.child,r,i,o,!1),lt(t,e,i,l,o);else if(a&32){let u=Hi(n,r),f;for(;f=u();)lt(t,e,i,f,o);lt(t,e,i,l,o)}else a&16?Tp(e,t,r,n,i,o):lt(t,e,i,l,o);n=s?n.projectionNext:n.next}}function Gn(e,t,n,r,i,o){Zi(n,r,e.firstChild,t,i,o,!1)}function Tp(e,t,n,r,i,o){let s=n[ye],l=s[ve].projection[r.projection];if(Array.isArray(l))for(let a=0;a<l.length;a++){let u=l[a];lt(t,e,i,u,o)}else{let a=l,u=s[se];Xl(r)&&(a.flags|=128),Zi(e,t,a,u,i,o,!0)}}function xp(e,t,n,r,i){let o=n[Ft],s=Pe(n);o!==s&&lt(t,e,r,o,i);for(let l=ee;l<n.length;l++){let a=n[l];Gn(a[k],a,e,t,r,o)}}function kp(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:Be.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Be.Important),e.setStyle(n,r,i,o))}}function Cn(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(Pe(o)),Je(o)&&Op(o,r);let s=n.type;if(s&8)Cn(e,t,n.child,r);else if(s&32){let l=Hi(n,t),a;for(;a=l();)r.push(a)}else if(s&16){let l=Ra(t,n);if(Array.isArray(l))r.push(...l);else{let a=We(t[ye]);Cn(a[k],a,l,r,!0)}}n=i?n.projectionNext:n.next}return r}function Op(e,t){for(let n=ee;n<e.length;n++){let r=e[n],i=r[k].firstChild;i!==null&&Cn(r[k],r,i,t)}e[Ft]!==e[ke]&&t.push(e[Ft])}function Va(e){if(e[ir]!==null){for(let t of e[ir])t.impl.addSequence(t);e[ir].length=0}}var Pa=[];function Dp(e){return e[te]??Np(e)}function Np(e){let t=Pa.pop()??Object.create(Mp);return t.lView=e,t}function Ap(e){e.lView[te]!==e&&(e.lView=null,Pa.push(e))}var Mp=Et(Qe({},oi),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{jn(e.lView)},consumerOnSignalRead(){this.lView[te]=this}});function Rp(e){let t=e[te]??Object.create(Vp);return t.lView=e,t}var Vp=Et(Qe({},oi),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=We(e.lView);for(;t&&!Fa(t[k]);)t=We(t);t&&vi(t)},consumerOnSignalRead(){this.lView[te]=this}});function Fa(e){return e.type!==2}function La(e){if(e[wn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[wn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[I]&8192)}}var Pp=100;function ja(e,t=!0,n=0){let r=e[xe].rendererFactory,i=!1;i||r.begin?.();try{Fp(e,n)}catch(o){throw t&&fp(e,o),o}finally{i||r.end?.()}}function Fp(e,t){let n=El();try{To(!0),Hr(e,t);let r=0;for(;Ln(e);){if(r===Pp)throw new R(103,!1);r++,Hr(e,1)}}finally{To(n)}}function Lp(e,t,n,r){if(Gt(t))return;let i=t[I],o=!1,s=!1;wi(t);let l=!0,a=null,u=null;o||(Fa(e)?(u=Dp(t),a=co(u)):Xu()===null?(l=!1,u=Rp(t),a=co(u)):t[te]&&(gs(t[te]),t[te]=null));try{ml(t),rh(e.bindingStartIndex),n!==null&&Oa(e,t,n,2,r);let f=(i&3)===3;if(!o)if(f){let p=e.preOrderCheckHooks;p!==null&&un(t,p,null)}else{let p=e.preOrderHooks;p!==null&&cn(t,p,0,null),or(t,0)}if(s||jp(t),La(t),Ha(t,0),e.contentQueries!==null&&fa(e,t),!o)if(f){let p=e.contentCheckHooks;p!==null&&un(t,p)}else{let p=e.contentHooks;p!==null&&cn(t,p,1),or(t,1)}zp(e,t);let c=e.components;c!==null&&Ua(t,c,0);let g=e.viewQuery;if(g!==null&&Pr(2,g,r),!o)if(f){let p=e.viewCheckHooks;p!==null&&un(t,p)}else{let p=e.viewHooks;p!==null&&cn(t,p,2),or(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[rr]){for(let p of t[rr])p();t[rr]=null}o||(Va(t),t[I]&=-73)}catch(f){throw o||jn(t),f}finally{u!==null&&(rc(u,a),l&&Ap(u)),bi()}}function Ha(e,t){for(let n=ta(e);n!==null;n=na(n))for(let r=ee;r<n.length;r++){let i=n[r];za(i,t)}}function jp(e){for(let t=ta(e);t!==null;t=na(t)){if(!(t[I]&2))continue;let n=t[bn];for(let r=0;r<n.length;r++){let i=n[r];vi(i)}}}function Hp(e,t,n){H(18);let r=Ge(t,e);za(r,n),H(19,r[q])}function za(e,t){yi(e)&&Hr(e,t)}function Hr(e,t){let n=e[k],r=e[I],i=e[te],o=!!(t===0&&r&16);if(o||=!!(r&64&&t===0),o||=!!(r&1024),o||=!!(i?.dirty&&ps(i)),o||=!1,i&&(i.dirty=!1),e[I]&=-9217,o)Lp(n,e,n.template,e[q]);else if(r&8192){La(e),Ha(e,1);let s=n.components;s!==null&&Ua(e,s,1),Va(e)}}function Ua(e,t,n){for(let r=0;r<t.length;r++)Hp(e,t[r],n)}function zp(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)qe(~i);else{let o=i,s=n[++r],l=n[++r];sh(s,o);let a=t[o];H(24,a),l(2,a),H(25,a)}}}finally{qe(-1)}}function Ba(e,t){let n=El()?64:1088;for(e[xe].changeDetectionScheduler?.notify(t);e;){e[I]|=n;let r=We(e);if(En(e)&&!r)return e;e=r}return null}function Up(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Za(e,t){let n=ee+t;if(n<e.length)return e[n]}function $i(e,t,n,r=!0){let i=t[k];if(Bp(i,t,e,n),r){let s=jr(n,e),l=t[ie],a=l.parentNode(e[Ft]);a!==null&&yp(i,e[ve],l,t,a,s)}let o=t[Rt];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function $a(e,t){let n=Gi(e,t);return n!==void 0&&Ui(n[k],n),n}function Gi(e,t){if(e.length<=ee)return;let n=ee+t,r=e[n];if(r){let i=r[gt];i!==null&&i!==e&&zi(i,r),t>0&&(e[n-1][pe]=r[pe]);let o=Ys(e,ee+t);mp(r[k],r);let s=o[mt];s!==null&&s.detachView(o[k]),r[se]=null,r[pe]=null,r[I]&=-129}return r}function Bp(e,t,n,r){let i=ee+r,o=n.length;r>0&&(n[i-1][pe]=t),r<o-ee?(t[pe]=n[i],bf(n,ee+r,t)):(n.push(t),t[pe]=null),t[se]=n;let s=t[gt];s!==null&&n!==s&&Ga(s,t);let l=t[mt];l!==null&&l.insertView(e),Cr(t),t[I]|=128}function Ga(e,t){let n=e[bn],r=t[se];if(Ze(r))e[I]|=2;else{let i=r[se][ye];t[ye]!==i&&(e[I]|=2)}n===null?e[bn]=[t]:n.push(t)}var Zp=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,t=e[k];return Cn(t,e,t.firstChild,[])}constructor(e,t,n=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=n}get context(){return this._lView[q]}get dirty(){return!!(this._lView[I]&9280)||!!this._lView[te]?.dirty}set context(e){this._lView[q]=e}get destroyed(){return Gt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[se];if(Je(e)){let t=e[Lf],n=t?t.indexOf(this):-1;n>-1&&(Gi(e,n),Ys(t,n))}this._attachedToViewContainer=!1}Ui(this._lView[k],this._lView)}onDestroy(e){yl(this._lView,e)}markForCheck(){Ba(this._cdRefInjectingView||this._lView,4)}markForRefresh(){vi(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){Cr(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,ja(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new R(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=En(this._lView),t=this._lView[gt];t!==null&&!e&&zi(t,this._lView),Ma(this._lView[k],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new R(902,!1);this._appRef=e;let t=En(this._lView),n=this._lView[gt];n!==null&&!t&&Ga(n,this._lView),Cr(this._lView)}};function Wn(e,t,n,r,i){let o=e.data[t];if(o===null)o=$p(e,t,n,r,i),oh()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=th();o.injectorIndex=s===null?-1:s.injectorIndex}return _t(o,!0),o}function $p(e,t,n,r,i){let o=wl(),s=bl(),l=s?o:o&&o.parent,a=e.data[t]=Wp(e,l,n,t,r,i);return Gp(e,a,o,s),a}function Gp(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 Wp(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,l=0;return Xf()&&(l|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var fv=new RegExp(`^(\\d+)*(${Jh}|${Xh})*(.*)`),qp=()=>null;function Wi(e,t){return qp(e,t)}var Kp=class{},Wa=class{},Qp=class{resolveComponentFactory(e){throw Error(`No component factory found for ${de(e)}.`)}},Xt=class{static NULL=new Qp},qi=class{},Yp=(()=>{class e{static \u0275prov=Z({token:e,providedIn:"root",factory:()=>null})}return e})();function Go(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let l=t[s];if(typeof l=="number")o=l;else if(o==1)i=yo(i,l);else if(o==2){let a=l,u=t[++s];r=yo(r,a+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function qn(e,t=x.Default){let n=z();if(n===null)return F(e,t);let r=Wt();return jl(r,n,he(e),t)}function qa(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let l,a=null,u=null,f=Jp(s);f===null?l=s:[l,a,u]=f,ng(e,t,n,l,o,a,u)}o!==null&&r!==null&&Xp(n,r,o)}function Xp(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new R(-301,!1);r.push(t[i],o)}}function Jp(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let l=e[s];if(s===0&&et(l)&&(t=l),l.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,eg(s,r,o,i)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,i,o]):null}function eg(e,t,n,r){let i=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[i,t.length-1])}function tg(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function ng(e,t,n,r,i,o,s){let l=r.length,a=!1;for(let g=0;g<l;g++){let p=r[g];!a&&et(p)&&(a=!0,tg(e,n,g)),xh(Rl(n,t),e,p.type)}ag(n,e.data.length,l);for(let g=0;g<l;g++){let p=r[g];p.providersResolver&&p.providersResolver(p)}let u=!1,f=!1,c=Ta(e,t,l,null);l>0&&(n.directiveToIndex=new Map);for(let g=0;g<l;g++){let p=r[g];if(n.mergedAttrs=Si(n.mergedAttrs,p.hostAttrs),ig(e,n,t,c,p),lg(c,p,i),s!==null&&s.has(p)){let[y,w]=s.get(p);n.directiveToIndex.set(p.type,[c,y+n.directiveStart,w+n.directiveStart])}else(o===null||!o.has(p))&&n.directiveToIndex.set(p.type,c);p.contentQueries!==null&&(n.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(n.flags|=64);let m=p.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!f&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),f=!0),c++}rg(e,n,o)}function rg(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Wo(0,t,i,r),Wo(1,t,i,r),Ko(t,r,!1);else{let o=n.get(i);qo(0,t,o,r),qo(1,t,o,r),Ko(t,r,!0)}}}function Wo(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[o]??=[],s[o].push(r),Ka(t,o)}}function qo(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],l;e===0?l=t.hostDirectiveInputs??={}:l=t.hostDirectiveOutputs??={},l[s]??=[],l[s].push(r,o),Ka(t,s)}}function Ka(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Ko(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||Ai(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,l=0;for(;l<r.length;){let a=r[l];if(a===0){l+=4;continue}else if(a===5){l+=2;continue}else if(typeof a=="number")break;if(!n&&i.hasOwnProperty(a)){let u=i[a];for(let f of u)if(f===t){s??=[],s.push(a,r[l+1]);break}}else if(n&&o.hasOwnProperty(a)){let u=o[a];for(let f=0;f<u.length;f+=2)if(u[f]===t){s??=[],s.push(u[f+1],r[l+1]);break}}l+=2}e.initialInputs??=[],e.initialInputs.push(s)}function ig(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=dt(i.type,!0)),s=new _i(o,et(i),qn);e.blueprint[r]=s,n[r]=s,og(e,t,r,Ta(e,n,i.hostVars,je),i)}function og(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let l=~t.index;sg(s)!=l&&s.push(l),s.push(n,r,o)}}function sg(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function lg(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;et(t)&&(n[""]=e)}}function ag(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Qa(e,t,n,r,i,o,s,l){let a=t.consts,u=yt(a,s),f=Wn(t,e,2,r,u);return o&&qa(t,n,f,yt(a,l),i),f.mergedAttrs=Si(f.mergedAttrs,f.attrs),f.attrs!==null&&Go(f,f.attrs,!1),f.mergedAttrs!==null&&Go(f,f.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,f),f}function Ya(e,t){Dl(e,t),ul(t)&&e.queries.elementEnd(t)}var ug=class extends Xt{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=Vn(e);return new gg(t,this.ngModule)}};function cg(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&$n.SignalBased)!==0};return i&&(o.transform=i),o})}function fg(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function hg(e,t,n){let r=t instanceof Mt?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Eh(n,r):n}function dg(e){let t=e.get(qi,null);if(t===null)throw new R(407,!1);let n=e.get(Yp,null),r=e.get(qt,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function pg(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Ia(t,n,n==="svg"?$f:n==="math"?Gf:null)}var gg=class extends Wa{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return cg(this.componentDef.inputs)}get outputs(){return fg(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=$d(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r){H(22);let i=A(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:Gd(this.componentDef.selectors[0]),l=Mi(0,null,null,1,0,null,null,null,null,[s],null),a=hg(o,r||this.ngModule,e),u=dg(a),f=u.rendererFactory.createRenderer(null,o),c=n?tp(f,n,o.encapsulation,a):pg(o,f),g=Ri(null,l,null,512|Ca(o),null,null,u,f,a,null,ca(c,a,!0));g[K]=c,wi(g);let p=null;try{let m=Qa(K,l,g,"#host",()=>[this.componentDef],!0,0);c&&(Sa(f,c,m),Qt(c,g)),Vi(l,g,m),ha(l,m,g),Ya(l,m),t!==void 0&&yg(m,this.ngContentSelectors,t),p=Ge(m.index,g),g[q]=p[q],Fi(l,g,null)}catch(m){throw p!==null&&Rr(p),Rr(g),m}finally{H(23),bi()}return new mg(this.componentType,g)}finally{A(i)}}},mg=class extends Kp{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t){super(),this._rootLView=t,this._tNode=mi(t[k],K),this.location=Ql(this._tNode,t),this.instance=Ge(this._tNode.index,t)[q],this.hostView=this.changeDetectorRef=new Zp(t,void 0,!1),this.componentType=e}setInput(e,t){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=Pi(n,r[k],r,e,t);this.previousInputValues.set(e,t);let o=Ge(n.index,r);Ba(o,1)}get injector(){return new zl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function yg(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var vg=()=>!1;function wg(e,t,n){return vg(e,t,n)}var zr=class{},Xa=class extends zr{injector;componentFactoryResolver=new ug(this);instance=null;constructor(e){super();let t=new gi([...e.providers,{provide:zr,useValue:this},{provide:Xt,useValue:this.componentFactoryResolver}],e.parent||pi(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function bg(e,t,n=null){return new Xa({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Eg=(()=>{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=rl(!1,n.type),i=r.length>0?bg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Z({token:e,providedIn:"environment",factory:()=>new e(F(Mt))})}return e})();function Ig(e){return Jc(()=>{let t=xg(e),n=Et(Qe({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Jl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(Eg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ce.Emulated,styles:e.styles||$e,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Bn("NgStandalone"),kg(n);let r=e.dependencies;return n.directiveDefs=Qo(r,!1),n.pipeDefs=Qo(r,!0),n.id=Og(n),n})}function _g(e){return Vn(e)||tl(e)}function Sg(e){return e!==null}function Cg(e,t){if(e==null)return pt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,l,a;Array.isArray(i)?(l=i[0],o=i[1],s=i[2]??o,a=i[3]||null):(o=i,s=i,l=$n.None,a=null),n[o]=[r,l,a],t[o]=s}return n}function Tg(e){if(e==null)return pt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ki(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 xg(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||pt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||$e,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Cg(e.inputs,t),outputs:Tg(e.outputs),debugInfo:null}}function kg(e){e.features?.forEach(t=>t(e))}function Qo(e,t){if(!e)return null;let n=t?nl:_g;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Sg)}function Og(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 Ja(e,t,n){return e[t]=n}function Fe(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Dg(e,t,n,r){let i=Fe(e,t,n);return Fe(e,t+1,r)||i}function Ng(e,t,n,r,i,o,s,l,a){let u=t.consts,f=Wn(t,e,4,s||null,l||null);vl()&&qa(t,n,f,yt(u,a),Na),f.mergedAttrs=Si(f.mergedAttrs,f.attrs),Dl(t,f);let c=f.tView=Mi(2,f,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,f),c.queries=t.queries.embeddedTView(f)),f}function Ur(e,t,n,r,i,o,s,l,a,u){let f=n+K,c=t.firstCreatePass?Ng(f,t,e,r,i,o,s,l,a):t.data[f];_t(c,!1);let g=Ag(t,e,c,n);Ei()&&Bi(t,e,g,c),Qt(g,e);let p=Up(g,e,g,c);return e[f]=p,xa(e,p),wg(p,c,e),cl(c)&&Vi(t,e,c),a!=null&&Da(e,c,u),c}function eu(e,t,n,r,i,o,s,l){let a=z(),u=we(),f=yt(u.consts,o);return Ur(a,u,e,t,n,r,i,f,s,l),eu}var Ag=Mg;function Mg(e,t,n,r){return Ii(!0),t[ie].createComment("")}var Rg=new L(""),Vg=(()=>{class e{static \u0275prov=Z({token:e,providedIn:"root",factory:()=>new Pg})}return e})(),Pg=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),this.queuedEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,t]of this.queues)e===null?this.flushQueue(t):e.run(()=>this.flushQueue(t))}flushQueue(e){for(let t of e)e.delete(t),this.queuedEffectCount--,t.run()}};function tu(e){return!!e&&typeof e.then=="function"}function Fg(e){return!!e&&typeof e.subscribe=="function"}var Lg=new L(""),nu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=V(Lg,{optional:!0})??[];injector=V(zn);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=sl(this.injector,i);if(tu(o))n.push(o);else if(Fg(o)){let s=new Promise((l,a)=>{o.subscribe({complete:l,error:a})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jg=new L("");function Hg(){oc(()=>{throw new R(600,!1)})}function zg(e){return e.isBoundToModule}var Ug=10,vt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=V(Zh);afterRenderManager=V(td);zonelessEnabled=V(Ci);rootEffectScheduler=V(Vg);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Zt;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=V(Un).hasPendingTasks.pipe(Us(n=>!n));constructor(){V(Di,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=V(Mt);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){H(10);let i=n instanceof Wa;if(!this._injector.get(nu).done){let c=!i&&Sf(n),g=!1;throw new R(405,g)}let o;i?o=n:o=this._injector.get(Xt).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=zg(o)?void 0:this._injector.get(zr),l=r||o.selector,a=o.create(zn.NULL,[],l,s),u=a.location.nativeElement,f=a.injector.get(Rg,null);return f?.registerApplication(u),a.onDestroy(()=>{this.detachView(a.hostView),fn(this.components,a),f?.unregisterApplication(u)}),this._loadComponent(a),H(11,a),a}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){H(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(ua.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new R(101,!1);let n=A(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,A(n),this.afterTick.next(),H(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(qi,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Ug;)H(14),this.synchronizeOnce(),H(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:i}of this.allViews)Bg(r,i,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Ln(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;fn(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(jg,[]).forEach(r=>r(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),()=>fn(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new R(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Bg(e,t,n,r){!n&&!Ln(e)||ja(e,t,n&&!r?0:1)}function Zg(e,t,n,r){return Fe(e,Hn(),n)?t+Mn(n)+r:je}function on(e,t){return e<<17|t<<2}function Ke(e){return e>>17&32767}function $g(e){return(e&2)==2}function Gg(e,t){return e&131071|t<<17}function Br(e){return e|2}function wt(e){return(e&131068)>>2}function ur(e,t){return e&-131069|t<<2}function Wg(e){return(e&1)===1}function Zr(e){return e|1}function qg(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,l=Ke(s),a=wt(s);e[r]=n;let u=!1,f;if(Array.isArray(n)){let c=n;f=c[1],(f===null||$t(c,f)>0)&&(u=!0)}else f=n;if(i)if(a!==0){let c=Ke(e[l+1]);e[r+1]=on(c,l),c!==0&&(e[c+1]=ur(e[c+1],r)),e[l+1]=Gg(e[l+1],r)}else e[r+1]=on(l,0),l!==0&&(e[l+1]=ur(e[l+1],r)),l=r;else e[r+1]=on(a,0),l===0?l=r:e[a+1]=ur(e[a+1],r),a=r;u&&(e[r+1]=Br(e[r+1])),Yo(e,f,r,!0),Yo(e,f,r,!1),Kg(t,f,e,r,o),s=on(l,a),o?t.classBindings=s:t.styleBindings=s}function Kg(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&$t(o,t)>=0&&(n[r+1]=Zr(n[r+1]))}function Yo(e,t,n,r){let i=e[n+1],o=t===null,s=r?Ke(i):wt(i),l=!1;for(;s!==0&&(l===!1||o);){let a=e[s],u=e[s+1];Qg(a,t)&&(l=!0,e[s+1]=r?Zr(u):Br(u)),s=r?Ke(u):wt(u)}l&&(e[n+1]=r?Br(i):Zr(i))}function Qg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?$t(e,t)>=0:!1}function Tn(e,t,n){let r=z(),i=Hn();if(Fe(r,i,t)){let o=we(),s=fh();op(o,s,r,e,t,r[ie],n,!1)}return Tn}function Xo(e,t,n,r,i){Pi(t,e,n,i?"class":"style",r)}function Qi(e,t,n){return Yg(e,t,n,!1),Qi}function Yg(e,t,n,r){let i=z(),o=we(),s=ih(2);if(o.firstUpdatePass&&Jg(o,e,s,r),t!==je&&Fe(i,s,t)){let l=o.data[nt()];im(o,l,i,i[ie],e,i[s+1]=om(t,n),r,s)}}function Xg(e,t){return t>=e.expandoStartIndex}function Jg(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[nt()],s=Xg(e,n);sm(o,r)&&t===null&&!s&&(t=!1),t=em(i,o,t,r),qg(i,o,t,n,s,r)}}function em(e,t,n,r){let i=ah(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=cr(null,e,t,n,r),n=Lt(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=cr(i,e,t,n,r),o===null){let l=tm(e,t,r);l!==void 0&&Array.isArray(l)&&(l=cr(null,e,t,l[1],r),l=Lt(l,t.attrs,r),nm(e,t,r,l))}else o=rm(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function tm(e,t,n){let r=n?t.classBindings:t.styleBindings;if(wt(r)!==0)return e[Ke(r)]}function nm(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Ke(i)]=r}function rm(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=Lt(r,s,n)}return Lt(r,t.attrs,n)}function cr(e,t,n,r,i){let o=null,s=n.directiveEnd,l=n.directiveStylingLast;for(l===-1?l=n.directiveStart:l++;l<s&&(o=t[l],r=Lt(r,o.hostAttrs,i),o!==e);)l++;return e!==null&&(n.directiveStylingLast=l),r}function Lt(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),If(e,s,n?!0:t[++o]))}return e===void 0?null:e}function im(e,t,n,r,i,o,s,l){if(!(t.type&3))return;let a=e.data,u=a[l+1],f=Wg(u)?Jo(a,t,n,i,wt(u),s):void 0;if(!xn(f)){xn(o)||$g(u)&&(o=Jo(a,null,n,i,l,s));let c=pl(nt(),n);kp(r,s,c,i,o)}}function Jo(e,t,n,r,i,o){let s=t===null,l;for(;i>0;){let a=e[i],u=Array.isArray(a),f=u?a[1]:a,c=f===null,g=n[i+1];g===je&&(g=c?$e:void 0);let p=c?tr(g,r):f===r?g:void 0;if(u&&!xn(p)&&(p=tr(a,r)),xn(p)&&(l=p,s))return l;let m=e[i+1];i=s?Ke(m):wt(m)}if(t!==null){let a=o?t.residualClasses:t.residualStyles;a!=null&&(l=tr(a,r))}return l}function xn(e){return e!==void 0}function om(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=de(Ne(e)))),e}function sm(e,t){return(e.flags&(t?8:16))!==0}var lm=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,i),this.attach(r,o)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function fr(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function am(e,t,n){let r,i,o=0,s=e.length-1,l;if(Array.isArray(t)){let a=t.length-1;for(;o<=s&&o<=a;){let u=e.at(o),f=t[o],c=fr(o,u,o,f,n);if(c!==0){c<0&&e.updateValue(o,f),o++;continue}let g=e.at(s),p=t[a],m=fr(s,g,a,p,n);if(m!==0){m<0&&e.updateValue(s,p),s--,a--;continue}let y=n(o,u),w=n(s,g),S=n(o,f);if(Object.is(S,w)){let U=n(a,p);Object.is(U,y)?(e.swap(o,s),e.updateValue(s,p),a--,s--):e.move(s,o),e.updateValue(o,f),o++;continue}if(r??=new ns,i??=ts(e,o,s,n),$r(e,r,o,S))e.updateValue(o,f),o++,s++;else if(i.has(S))r.set(y,e.detach(o)),s--;else{let U=e.create(o,t[o]);e.attach(o,U),o++,s++}}for(;o<=a;)es(e,r,n,o,t[o]),o++}else if(t!=null){let a=t[Symbol.iterator](),u=a.next();for(;!u.done&&o<=s;){let f=e.at(o),c=u.value,g=fr(o,f,o,c,n);if(g!==0)g<0&&e.updateValue(o,c),o++,u=a.next();else{r??=new ns,i??=ts(e,o,s,n);let p=n(o,c);if($r(e,r,o,p))e.updateValue(o,c),o++,s++,u=a.next();else if(!i.has(p))e.attach(o,e.create(o,c)),o++,s++,u=a.next();else{let m=n(o,f);r.set(m,e.detach(o)),s--}}}for(;!u.done;)es(e,r,n,e.length,u.value),u=a.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(a=>{e.destroy(a)})}function $r(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function es(e,t,n,r,i){if($r(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function ts(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var ns=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function um(e,t){Bn("NgControlFlow");let n=z(),r=Hn(),i=n[r]!==je?n[r]:-1,o=i!==-1?kn(n,K+i):void 0,s=0;if(Fe(n,r,e)){let l=A(null);try{if(o!==void 0&&$a(o,s),e!==-1){let a=K+e,u=kn(n,a),f=Gr(n[k],a),c=Wi(u,f.tView.ssrId),g=Li(n,f,t,{dehydratedView:c});$i(u,g,s,ji(f,c))}}finally{A(l)}}else if(o!==void 0){let l=Za(o,s);l!==void 0&&(l[q]=t)}}var cm=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-ee}},fm=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function hm(e,t,n,r,i,o,s,l,a,u,f,c,g){Bn("NgControlFlow");let p=z(),m=we(),y=a!==void 0,w=z(),S=l?s.bind(w[ye][q]):s,U=new fm(y,S);w[K+e]=U,Ur(p,m,e+1,t,n,r,i,yt(m.consts,o)),y&&Ur(p,m,e+2,a,u,f,c,yt(m.consts,g))}var dm=class extends lm{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-ee}at(e){return this.getLView(e)[q].$implicit}attach(e,t){let n=t[Rt];this.needsIndexUpdate||=e!==this.length,$i(this.lContainer,t,e,ji(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,gm(this.lContainer,e)}create(e,t){let n=Wi(this.lContainer,this.templateTNode.tView.ssrId),r=Li(this.hostLView,this.templateTNode,new cm(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){Ui(e[k],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[q].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[q].$index=e}getLView(e){return mm(this.lContainer,e)}};function pm(e){let t=A(null),n=nt();try{let r=z(),i=r[k],o=r[n],s=n+1,l=kn(r,s);if(o.liveCollection===void 0){let u=Gr(i,s);o.liveCollection=new dm(l,r,u)}else o.liveCollection.reset();let a=o.liveCollection;if(am(a,e,o.trackByFn),a.updateIndexes(),o.hasEmptyBlock){let u=Hn(),f=a.length===0;if(Fe(r,u,f)){let c=n+2,g=kn(r,c);if(f){let p=Gr(i,c),m=Wi(g,p.tView.ssrId),y=Li(r,p,void 0,{dehydratedView:m});$i(g,y,0,ji(p,m))}else $a(g,0)}}}finally{A(t)}}function kn(e,t){return e[t]}function gm(e,t){return Gi(e,t)}function mm(e,t){return Za(e,t)}function Gr(e,t){return mi(e,t)}function jt(e,t,n,r){let i=z(),o=we(),s=K+e,l=i[ie],a=o.firstCreatePass?Qa(s,o,i,t,Na,vl(),n,r):o.data[s],u=ym(o,i,a,l,t,e);i[s]=u;let f=cl(a);return _t(a,!0),Sa(l,u,a),!Aa(a)&&Ei()&&Bi(o,i,u,a),(Kf()===0||f)&&Qt(u,i),Qf(),f&&(Vi(o,i,a),ha(o,a,i)),r!==null&&Da(i,a),jt}function Ht(){let e=Wt();bl()?nh():(e=e.parent,_t(e,!1));let t=e;Jf(t)&&eh(),Yf();let n=we();return n.firstCreatePass&&Ya(n,t),t.classesWithoutHost!=null&&mh(t)&&Xo(n,t,z(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&yh(t)&&Xo(n,t,z(),t.stylesWithoutHost,!1),Ht}function zt(e,t,n,r){return jt(e,t,n,r),Ht(),zt}var ym=(e,t,n,r,i,o)=>(Ii(!0),Ia(r,i,hh())),On="en-US",vm=On;function wm(e){typeof e=="string"&&(vm=e.toLowerCase().replace(/_/g,"-"))}function ru(e=1){return ch(e)}function iu(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function bm(e,t=""){let n=z(),r=we(),i=e+K,o=r.firstCreatePass?Wn(r,i,1,t,null):r.data[i],s=Em(r,n,o,t,e);n[i]=s,Ei()&&Bi(r,n,s,o),_t(o,!1)}var Em=(e,t,n,r,i)=>(Ii(!0),Wd(t[ie],r));function ou(e){return su("",e,""),ou}function su(e,t,n){let r=z(),i=Zg(r,e,t,n);return i!==je&&Im(r,nt(),i),su}function Im(e,t,n){let r=pl(t,e);qd(e[ie],r,n)}var _m={};function lu(e){let t=we(),n=z(),r=e+K,i=Wn(t,r,128,null,null);return _t(i,!1),iu(t,n,r,_m),lu}function au(e,t){let n=e[t];return n===je?void 0:n}function Sm(e,t,n,r,i,o){let s=t+n;return Fe(e,s,i)?Ja(e,s+1,o?r.call(o,i):r(i)):au(e,s+1)}function Cm(e,t,n,r,i,o,s){let l=t+n;return Dg(e,l,i,o)?Ja(e,l+2,s?r.call(s,i,o):r(i,o)):au(e,l+2)}function Dn(e,t){let n=we(),r,i=e+K;n.firstCreatePass?(r=Tm(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=dt(r.type,!0)),s,l=J(qn);try{let a=In(!1),u=o();return In(a),iu(n,z(),i,u),u}finally{J(l)}}function Tm(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Wr(e,t,n){let r=e+K,i=z(),o=gl(i,r);return uu(i,r)?Sm(i,Il(),t,o.transform,n,o):o.transform(n)}function xm(e,t,n,r){let i=e+K,o=z(),s=gl(o,i);return uu(o,i)?Cm(o,Il(),t,s.transform,n,r,s):s.transform(n,r)}function uu(e,t){return e[k].data[t].pure}var km=(()=>{class e{zone=V(ne);changeDetectionScheduler=V(qt);applicationRef=V(vt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Om({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ne(Et(Qe({},Dm()),{scheduleInRootZone:n})),[{provide:ne,useFactory:e},{provide:vn,multi:!0,useFactory:()=>{let r=V(km,{optional:!0});return()=>r.initialize()}},{provide:vn,multi:!0,useFactory:()=>{let r=V(Nm);return()=>{r.initialize()}}},t===!0?{provide:Gl,useValue:!0}:[],{provide:Ti,useValue:n??Zl}]}function Dm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Nm=(()=>{class e{subscription=new Te;initialized=!1;zone=V(ne);pendingTasks=V(Un);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(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ne.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cu=(()=>{class e{appRef=V(vt);taskService=V(Un);ngZone=V(ne);zonelessEnabled=V(Ci);tracing=V(Di,{optional:!0});disableScheduling=V(Gl,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Te;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Sn):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(V(Ti,{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 ql||!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 i=this.useMicrotaskScheduler?Ao:Wl;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>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(Sn+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){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ao(()=>{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(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Am(){return Bn("NgZoneless"),Cf([{provide:qt,useExisting:cu},{provide:ne,useClass:ql},{provide:Ci,useValue:!0},{provide:Ti,useValue:!1},[]])}function Mm(){return typeof $localize<"u"&&$localize.locale||On}var fu=new L("",{providedIn:"root",factory:()=>V(fu,x.Optional|x.SkipSelf)||Mm()}),qr=new L(""),Rm=new L("");function Tt(e){return!e.moduleRef}function Vm(e){let t=Tt(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ne);return n.run(()=>{Tt(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Kt,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Tt(e)){let o=()=>t.destroy(),s=e.platformInjector.get(qr);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(qr);s.add(o),e.moduleRef.onDestroy(()=>{fn(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return Fm(r,n,()=>{let o=t.get(nu);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(fu,On);if(wm(s||On),!t.get(Rm,!0))return Tt(e)?t.get(vt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Tt(e)){let l=t.get(vt);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return Pm(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Pm(e,t){let n=e.injector.get(vt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new R(-403,!1);t.push(e)}function Fm(e,t,n){try{let r=n();return tu(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var hn=null;function Lm(e=[],t){return zn.create({name:t,providers:[{provide:di,useValue:"platform"},{provide:qr,useValue:new Set([()=>hn=null])},...e]})}function jm(e=[]){if(hn)return hn;let t=Lm(e);return hn=t,Hg(),Hm(t),t}function Hm(e){let t=e.get(sa,null);sl(e,()=>{t?.forEach(n=>n())})}function zm(e){H(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=jm(r),o=[Om({}),{provide:qt,useExisting:cu},...n||[]],s=new Xa({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return Vm({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}finally{H(9)}}var hv=class{[Me];constructor(e){this[Me]=e}destroy(){this[Me].destroy()}},Um={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function Bm(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Zm(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var hr;function $m(e,t){if(!hr){let n=Element.prototype;hr=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?hr.call(e,t):!1}function Gm(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[Bm(r)]=[n,i]}),t}function Wm(e,t){return t.get(Xt).resolveComponentFactory(e).inputs}function qm(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let l=n[o],a=Km(l,t,i);a!==-1&&r[a].push(l)}return r}function Km(e,t,n){let r=n;return Zm(e)&&t.some((i,o)=>i!=="*"&&$m(e,i)?(r=o,!0):!1),r}var Qm=10,Ym=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(Xt).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Xm(this.componentFactory,e,this.inputMap)}},Xm=class{componentFactory;injector;inputMap;eventEmitters=new Tc(1);events=this.eventEmitters.pipe(Yc(e=>Qc(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(ne),this.appRef=this.injector.get(vt),this.cdScheduler=t.get(qt),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=Um.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Qm))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(e){let t=zn.create({providers:[],parent:this.injector}),n=qm(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new re(o=>{let s=i.subscribe(l=>o.next({name:r,value:l}));return()=>s.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},Jm=class extends HTMLElement{ngElementEventsSubscription=null};function ey(e,t){let n=Wm(e,t.injector),r=t.strategyFactory||new Ym(e,t.injector),i=Gm(n);class o extends Jm{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let l=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:a,transform:u})=>{if(!this.hasOwnProperty(a))return;let f=this[a];delete this[a],l.setInputValue(a,f,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(l){super(),this.injector=l}attributeChangedCallback(l,a,u,f){let[c,g]=i[l];this.ngElementStrategy.setInputValue(c,u,g)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{let a=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(a)})}}return n.forEach(({propName:s,transform:l})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a,l)},configurable:!0,enumerable:!0})}),o}var hu=null;function du(){return hu}function ty(e){hu??=e}var ny=class{},Le=new L("");function ry(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var iy="browser",oy="server";function pu(e){return e===oy}var sy=class{},ly=class extends ny{supportsDOMEvents=!0},ay=class gu extends ly{static makeCurrent(){ty(new gu)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=uy();return n==null?null:cy(n)}resetBaseElement(){Ot=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ry(document.cookie,t)}},Ot=null;function uy(){return Ot=Ot||document.querySelector("base"),Ot?Ot.getAttribute("href"):null}function cy(e){return new URL(e,document.baseURI).pathname}var fy=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),Kr=new L(""),mu=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new R(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(F(Kr),F(ne))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),yu=class{_doc;constructor(e){this._doc=e}manager},dn="ng-app-id";function rs(e){for(let t of e)t.remove()}function is(e,t){let n=t.createElement("style");return n.textContent=e,n}function hy(e,t,n,r){let i=e.head?.querySelectorAll(`style[${dn}="${t}"],link[${dn}="${t}"]`);if(i)for(let o of i)o.removeAttribute(dn),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function Qr(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var vu=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=pu(o),hy(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,is);r?.forEach(i=>this.addUsage(i,this.external,Qr))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(rs(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])rs(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,is(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Qr(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(dn,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||e)(F(Le),F(oa),F(la,8),F(Oi))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),dr={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Yi=/%COMP%/g,wu="%COMP%",dy=`_nghost-${wu}`,py=`_ngcontent-${wu}`,gy=!0,my=new L("",{providedIn:"root",factory:()=>gy});function yy(e){return py.replace(Yi,e)}function vy(e){return dy.replace(Yi,e)}function bu(e,t){return t.map(n=>n.replace(Yi,e))}var os=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,l,a,u=null,f=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=l,this.ngZone=a,this.nonce=u,this.tracingService=f,this.platformIsServer=pu(l),this.defaultRenderer=new Xi(n,s,a,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ce.ShadowDom&&(r=Et(Qe({},r),{encapsulation:Ce.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof ls?i.applyToHost(n):i instanceof Yr&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,l=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,c=this.platformIsServer,g=this.tracingService;switch(r.encapsulation){case Ce.Emulated:o=new ls(a,u,r,this.appId,f,s,l,c,g);break;case Ce.ShadowDom:return new wy(a,u,n,r,s,l,this.nonce,c,g);default:o=new Yr(a,u,r,f,s,l,c,g);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(F(mu),F(vu),F(oa),F(my),F(Le),F(Oi),F(ne),F(la),F(Di,8))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),Xi=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(dr[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(ss(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(ss(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new R(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=dr[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=dr[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(Be.DashCase|Be.Important)?e.style.setProperty(t,n,r&Be.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Be.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=du().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${t}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))===!1&&t.preventDefault()}}};function ss(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var wy=class extends Xi{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,o,s,l,a){super(e,i,o,l,a),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=bu(r.id,u);for(let c of u){let g=document.createElement("style");s&&g.setAttribute("nonce",s),g.textContent=c,this.shadowRoot.appendChild(g)}let f=r.getExternalStyles?.();if(f)for(let c of f){let g=Qr(c,i);s&&g.setAttribute("nonce",s),this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Yr=class extends Xi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,o,s,l,a){super(e,i,o,s,l),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let u=n.styles;this.styles=a?bu(a,u):u,this.styleUrls=n.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ls=class extends Yr{contentAttr;hostAttr;constructor(e,t,n,r,i,o,s,l,a){let u=r+"-"+n.id;super(e,t,n,i,o,s,l,a,u),this.contentAttr=yy(u),this.hostAttr=vy(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},by=(()=>{class e extends yu{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(n){return new(n||e)(F(Le))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),as=["alt","control","meta","shift"],Ey={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Iy={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},_y=(()=>{class e extends yu{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),l=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>du().onAndCancel(n,s.domEventName,l,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),s="code."),as.forEach(u=>{let f=r.indexOf(u);f>-1&&(r.splice(f,1),s+=u+".")}),s+=o,r.length!=0||o.length===0)return null;let a={};return a.domEventName=i,a.fullKey=s,a}static matchEventFullKeyCode(n,r){let i=Ey[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),as.forEach(s=>{if(s!==i){let l=Iy[s];l(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(F(Le))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();function Sy(e){return zm(Cy(e))}function Cy(e){return{appProviders:[...Dy,...e?.providers??[]],platformProviders:Oy}}function Ty(){ay.makeCurrent()}function xy(){return new Kt}function ky(){return Qh(document),document}var Oy=[{provide:Oi,useValue:iy},{provide:sa,useValue:Ty,multi:!0},{provide:Le,useFactory:ky,deps:[]}],Dy=[{provide:di,useValue:"root"},{provide:Kt,useFactory:xy,deps:[]},{provide:Kr,useClass:by,multi:!0,deps:[Le]},{provide:Kr,useClass:_y,multi:!0,deps:[Le]},os,vu,mu,{provide:qi,useExisting:os},{provide:sy,useClass:fy,deps:[]},[]],Eu=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=F(Ny),r},providedIn:"root"})}return e})(),Ny=(()=>{class e extends Eu{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case _e.NONE:return r;case _e.HTML:return ze(r,"HTML")?Ne(r):va(this._doc,String(r)).toString();case _e.STYLE:return ze(r,"Style")?Ne(r):r;case _e.SCRIPT:if(ze(r,"Script"))return Ne(r);throw new R(5200,!1);case _e.URL:return ze(r,"URL")?Ne(r):Ni(String(r));case _e.RESOURCE_URL:if(ze(r,"ResourceURL"))return Ne(r);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(n){return fd(n)}bypassSecurityTrustStyle(n){return hd(n)}bypassSecurityTrustScript(n){return dd(n)}bypassSecurityTrustUrl(n){return pd(n)}bypassSecurityTrustResourceUrl(n){return gd(n)}static \u0275fac=function(n){return new(n||e)(F(Le))};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ay={apiURL:"http://localhost:3003",debug:!0,mode:"local",styleURL:"http://localhost:8002/styles.css"},oe=Ku(Qu()),My="9.3.14",pr=class Xr{static SDK_VERSION=My;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static SHADOW_SPLITTER=":shadow";static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static{let t=Xr.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");Xr.SDK_VERSION_CODE=parseInt(t,10)}},Se=class{static log(...e){oe.default.info(...e)}static debug(...e){oe.default.debug(...e)}static error(...e){oe.default.error(...e)}static warn(...e){oe.default.warn(...e)}static info(...e){oe.default.info(...e)}static trace(...e){oe.default.trace(...e)}static configure(e=pr.LOG_PREFIX){oe.default.useDefaults({formatter:function(n){n.unshift(`${e} (v${pr.SDK_VERSION}):`)}});let t=this.getDebugParam();(t==="1"||t==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?oe.default.setLevel(oe.default[localStorage.cooeeLogLevel]):oe.default.setLevel(Ay.debug?oe.default.TRACE:oe.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let e=`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=t});function hi(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var nt=class pi{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 o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(ye(r))try{r()}catch(o){t=o instanceof Kr?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{ds(o)}catch(s){t=t??[],s instanceof Kr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Kr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ds(t);else{if(t instanceof pi){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)&&hi(n,t)}remove(t){let{_finalizers:n}=this;n&&hi(n,t),t instanceof pi&&t._removeParent(this)}};nt.EMPTY=(()=>{let e=new nt;return e.closed=!0,e})();var xa=nt.EMPTY;function ka(e){return e instanceof nt||e&&"closed"in e&&ye(e.remove)&&ye(e.add)&&ye(e.unsubscribe)}function ds(e){ye(e)?e():e.unsubscribe()}var kt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ur={setTimeout(e,t,...n){let{delegate:r}=ur;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=ur;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Da(e){ur.setTimeout(()=>{let{onUnhandledError:t}=kt;if(t)t(e);else throw e})}function hs(){}var jf=ro("C",void 0,void 0);function Lf(e){return ro("E",void 0,e)}function Hf(e){return ro("N",e,void 0)}function ro(e,t,n){return{kind:e,value:t,error:n}}var bt=null;function tr(e){if(kt.useDeprecatedSynchronousErrorHandling){let t=!bt;if(t&&(bt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=bt;if(bt=null,n)throw r}}else e()}function Bf(e){kt.useDeprecatedSynchronousErrorHandling&&bt&&(bt.errorThrown=!0,bt.error=e)}var io=class extends nt{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,ka(e)&&e.add(this)):this.destination=Wf}static create(e,t,n){return new gi(e,t,n)}next(e){this.isStopped?Yr(Hf(e),this):this._next(e)}error(e){this.isStopped?Yr(Lf(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Yr(jf,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},zf=Function.prototype.bind;function Qr(e,t){return zf.call(e,t)}var Uf=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){Kn(n)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){Kn(n)}else Kn(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Kn(t)}}},gi=class extends io{constructor(e,t,n){super();let r;if(ye(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&kt.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Qr(e.next,i),error:e.error&&Qr(e.error,i),complete:e.complete&&Qr(e.complete,i)}):r=e}this.destination=new Uf(r)}};function Kn(e){kt.useDeprecatedSynchronousErrorHandling?Bf(e):Da(e)}function Zf(e){throw e}function Yr(e,t){let{onStoppedNotification:n}=kt;n&&ur.setTimeout(()=>n(e,t))}var Wf={closed:!0,next:hs,error:Zf,complete:hs},oo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Oa(e){return e}function qf(e){return e.length===0?Oa:e.length===1?e[0]:function(t){return e.reduce((n,r)=>r(n),t)}}var Ve=(()=>{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,i){let o=Gf(n)?n:new gi(n,r,i);return tr(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ps(r),new r((i,o)=>{let s=new gi({next:a=>{try{n(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[oo](){return this}pipe(...n){return qf(n)(this)}toPromise(n){return n=ps(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function ps(e){var t;return(t=e??kt.Promise)!==null&&t!==void 0?t:Promise}function $f(e){return e&&ye(e.next)&&ye(e.error)&&ye(e.complete)}function Gf(e){return e&&e instanceof io||$f(e)&&ka(e)}function Kf(e){return ye(e?.lift)}function Nn(e){return t=>{if(Kf(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function $t(e,t,n,r,i){return new Qf(e,t,n,r,i)}var Qf=class extends io{constructor(e,t,n,r,i,o){super(e),this.onFinalize=i,this.shouldUnsubscribe=o,this._next=t?function(s){try{t(s)}catch(a){e.error(a)}}:super._next,this._error=r?function(s){try{r(s)}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){e.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}},Yf=Ta(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),Rn=(()=>{class e extends Ve{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new gs(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Yf}next(n){tr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){tr(()=>{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(){tr(()=>{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:i,observers:o}=this;return r||i?xa:(this.currentObservers=null,o.push(n),new nt(()=>{this.currentObservers=null,hi(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new Ve;return n.source=this,n}}return e.create=(t,n)=>new gs(t,n),e})(),gs=class extends Rn{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.next)===null||n===void 0||n.call(t,e)}error(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.error)===null||n===void 0||n.call(t,e)}complete(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0||t.call(e)}_subscribe(e){var t,n;return(n=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&n!==void 0?n:xa}},Xf=class extends Rn{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}},Na={now(){return(Na.delegate||Date).now()},delegate:void 0},Jf=class extends Rn{constructor(e=1/0,t=1/0,n=Na){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:o}=this;t||(n.push(e),!r&&n.push(i.now()+o)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,i=r.slice();for(let o=0;o<i.length&&!e.closed;o+=n?1:2)e.next(i[o]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){let{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:r}=this,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){let o=t.now(),s=0;for(let a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}}},ed=new Ve(e=>e.complete());function td(e){return e&&ye(e.schedule)}function Ra(e){return e[e.length-1]}function nd(e){return td(Ra(e))?e.pop():void 0}function rd(e,t){return typeof Ra(e)=="number"?e.pop():t}function id(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{d(r.next(h))}catch(p){s(p)}}function l(h){try{d(r.throw(h))}catch(p){s(p)}}function d(h){h.done?o(h.value):i(h.value).then(a,l)}d((r=r.apply(e,t||[])).next())})}function ms(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 Ut(e){return this instanceof Ut?(this.v=e,this):new Ut(e)}function od(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(w){return function(E){return Promise.resolve(E).then(w,p)}}function a(w,E){r[w]&&(i[w]=function(I){return new Promise(function(O,N){o.push([w,I,O,N])>1||l(w,I)})},E&&(i[w]=E(i[w])))}function l(w,E){try{d(r[w](E))}catch(I){_(o[0][3],I)}}function d(w){w.value instanceof Ut?Promise.resolve(w.value.v).then(h,p):_(o[0][2],w)}function h(w){l("next",w)}function p(w){l("throw",w)}function _(w,E){w(E),o.shift(),o.length&&l(o[0][0],o[0][1])}}function sd(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 ms=="function"?ms(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(d){o({value:d,done:a})},s)}}var Aa=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ma(e){return ye(e?.then)}function Va(e){return ye(e[oo])}function Pa(e){return Symbol.asyncIterator&&ye(e?.[Symbol.asyncIterator])}function Fa(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 ad(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ja=ad();function La(e){return ye(e?.[ja])}function Ha(e){return od(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield Ut(t.read());if(r)return yield Ut(void 0);yield yield Ut(n)}}finally{t.releaseLock()}})}function Ba(e){return ye(e?.getReader)}function Dt(e){if(e instanceof Ve)return e;if(e!=null){if(Va(e))return ld(e);if(Aa(e))return ud(e);if(Ma(e))return cd(e);if(Pa(e))return za(e);if(La(e))return fd(e);if(Ba(e))return dd(e)}throw Fa(e)}function ld(e){return new Ve(t=>{let n=e[oo]();if(ye(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ud(e){return new Ve(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function cd(e){return new Ve(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Da)})}function fd(e){return new Ve(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function za(e){return new Ve(t=>{hd(e,t).catch(n=>t.error(n))})}function dd(e){return za(Ha(e))}function hd(e,t){var n,r,i,o;return id(this,void 0,void 0,function*(){try{for(n=sd(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function ft(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Ua(e,t=0){return Nn((n,r)=>{n.subscribe($t(r,i=>ft(r,e,()=>r.next(i),t),()=>ft(r,e,()=>r.complete(),t),i=>ft(r,e,()=>r.error(i),t)))})}function Za(e,t=0){return Nn((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function pd(e,t){return Dt(e).pipe(Za(t),Ua(t))}function gd(e,t){return Dt(e).pipe(Za(t),Ua(t))}function md(e,t){return new Ve(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function yd(e,t){return new Ve(n=>{let r;return ft(n,t,()=>{r=e[ja](),ft(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>ye(r?.return)&&r.return()})}function Wa(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ve(n=>{ft(n,t,()=>{let r=e[Symbol.asyncIterator]();ft(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function vd(e,t){return Wa(Ha(e),t)}function bd(e,t){if(e!=null){if(Va(e))return pd(e,t);if(Aa(e))return md(e,t);if(Ma(e))return gd(e,t);if(Pa(e))return Wa(e,t);if(La(e))return yd(e,t);if(Ba(e))return vd(e,t)}throw Fa(e)}function wd(e,t){return t?bd(e,t):Dt(e)}function qa(e,t){return Nn((n,r)=>{let i=0;n.subscribe($t(r,o=>{r.next(e.call(t,o,i++))}))})}function Ed(e,t,n,r,i,o,s,a){let l=[],d=0,h=0,p=!1,_=()=>{p&&!l.length&&!d&&t.complete()},w=I=>d<r?E(I):l.push(I),E=I=>{o&&t.next(I),d++;let O=!1;Dt(n(I,h++)).subscribe($t(t,N=>{i?.(N),o?w(N):t.next(N)},()=>{O=!0},void 0,()=>{if(O)try{for(d--;l.length&&d<r;){let N=l.shift();s?ft(t,s,()=>E(N)):E(N)}_()}catch(N){t.error(N)}}))};return e.subscribe($t(t,w,()=>{p=!0,_()})),()=>{a?.()}}function $a(e,t,n=1/0){return ye(t)?$a((r,i)=>qa((o,s)=>t(r,o,i,s))(Dt(e(r,i))),n):(typeof t=="number"&&(n=t),Nn((r,i)=>Ed(r,i,e,n)))}function _d(e=1/0){return $a(Oa,e)}function Sd(...e){let t=nd(e),n=rd(e,1/0),r=e;return r.length?r.length===1?Dt(r[0]):_d(n)(wd(r,t)):ed}function Id(e,t){return Nn((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe($t(r,l=>{i?.unsubscribe();let d=0,h=o++;Dt(e(l,h)).subscribe(i=$t(r,p=>r.next(t?t(l,p,h,d++):p),()=>{i=null,a()}))},()=>{s=!0,a()}))})}var Ga="https://g.co/ng/security#xss",Y=class extends Error{code;constructor(e,t){super(Cd(e,t)),this.code=e}};function Cd(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Td(e){return{toString:e}.toString()}var cr=globalThis;function ae(e){for(let t in e)if(e[t]===ae)return t;throw Error("Could not find renamed property on target object.")}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 ys(e,t){return e?t?`${e} ${t}`:e:t||""}var xd=ae({__forward_ref__:ae});function Ka(e){return e.__forward_ref__=Ka,e.toString=function(){return We(this())},e}function Ze(e){return kd(e)?e():e}function kd(e){return typeof e=="function"&&e.hasOwnProperty(xd)&&e.__forward_ref__===Ka}function pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function so(e){return vs(e,Qa)||vs(e,Ya)}function vs(e,t){return e.hasOwnProperty(t)?e[t]:null}function Dd(e){return e&&(e[Qa]||e[Ya])||null}function bs(e){return e&&(e.hasOwnProperty(ws)||e.hasOwnProperty(Od))?e[ws]:null}var Qa=ae({\u0275prov:ae}),ws=ae({\u0275inj:ae}),Ya=ae({ngInjectableDef:ae}),Od=ae({ngInjectorDef:ae}),se=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,t){this._desc=e,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=pe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Xa(e){return e&&!!e.\u0275providers}var Nd=ae({\u0275cmp:ae}),Rd=ae({\u0275dir:ae}),Ad=ae({\u0275pipe:ae}),Es=ae({\u0275fac:ae}),vn=ae({__NG_ELEMENT_ID__:ae}),_s=ae({__NG_ENV_ID__:ae});function xr(e){return typeof e=="string"?e:e==null?"":String(e)}function Md(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():xr(e)}function Vd(e,t){throw new Y(-200,e)}function ao(e,t){throw new Y(-201,!1)}var U=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(U||{}),mi;function Ja(){return mi}function ke(e){let t=mi;return mi=e,t}function el(e,t,n){let r=so(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&U.Optional)return null;if(t!==void 0)return t;ao(e,"Injector")}var Pd={},wn=Pd,Fd="__NG_DI_FLAG__",fr="ngTempTokenPath",jd="ngTokenPath",Ld=/\n/gm,Hd="\u0275",Ss="__source",Zt;function Bd(){return Zt}function at(e){let t=Zt;return Zt=e,t}function zd(e,t=U.Default){if(Zt===void 0)throw new Y(-203,!1);return Zt===null?el(e,void 0,t):Zt.get(e,t&U.Optional?null:void 0,t)}function oe(e,t=U.Default){return(Ja()||zd)(Ze(e),t)}function re(e,t=U.Default){return oe(e,kr(t))}function kr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function yi(e){let t=[];for(let n=0;n<e.length;n++){let r=Ze(e[n]);if(Array.isArray(r)){if(r.length===0)throw new Y(900,!1);let i,o=U.Default;for(let s=0;s<r.length;s++){let a=r[s],l=Ud(a);typeof l=="number"?l===-1?i=a.token:o|=l:i=a}t.push(oe(i,o))}else t.push(oe(r))}return t}function Ud(e){return e[Fd]}function Zd(e,t,n,r){let i=e[fr];throw t[Ss]&&i.unshift(t[Ss]),e.message=Wd(`
5
+ `+e.message,i,n,r),e[jd]=i,e[fr]=null,e}function Wd(e,t,n,r=null){e=e&&e.charAt(0)===`
6
+ `&&e.charAt(1)==Hd?e.slice(2):e;let i=We(t);if(Array.isArray(t))i=t.map(We).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):We(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Ld,`
7
+ `)}`}function Gt(e,t){return e.hasOwnProperty(Es)?e[Es]:null}function lo(e,t){e.forEach(n=>Array.isArray(n)?lo(n,t):t(n))}function qd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function tl(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function $d(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function Gd(e,t,n){let r=An(e,t);return r>=0?e[r|1]=n:(r=~r,$d(e,r,t,n)),r}function Xr(e,t){let n=An(e,t);if(n>=0)return e[n|1]}function An(e,t){return Kd(e,t,1)}function Kd(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var Kt={},_t=[],dr=new se(""),nl=new se("",-1),rl=new se(""),il=class{get(e,t=wn){if(t===wn){let n=new Error(`NullInjectorError: No provider for ${We(e)}!`);throw n.name="NullInjectorError",n}return t}};function Dr(e){return e[Nd]||null}function ol(e){return e[Rd]||null}function sl(e){return e[Ad]||null}function Qd(e){let t=Dr(e)||ol(e)||sl(e);return t!==null&&t.standalone}function Yd(e){return{\u0275providers:e}}function Xd(...e){return{\u0275providers:al(!0,e),\u0275fromNgModule:!0}}function al(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return lo(t,s=>{let a=s;vi(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&ll(i,o),n}function ll(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];uo(i,o=>{t(o,r)})}}function vi(e,t,n,r){if(e=Ze(e),!e)return!1;let i=null,o=bs(e),s=!o&&Dr(e);if(!o&&!s){let l=e.ngModule;if(o=bs(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let d of l)vi(d,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let d;try{lo(o.imports,h=>{vi(h,t,n,r)&&(d||=[],d.push(h))})}finally{}d!==void 0&&ll(d,t)}if(!a){let d=Gt(i)||(()=>new i);t({provide:i,useFactory:d,deps:_t},i),t({provide:rl,useValue:i,multi:!0},i),t({provide:dr,useValue:()=>oe(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let d=e;uo(l,h=>{t(h,d)})}}else return!1;return i!==e&&e.providers!==void 0}function uo(e,t){for(let n of e)Xa(n)&&(n=n.\u0275providers),Array.isArray(n)?uo(n,t):t(n)}var Jd=ae({provide:String,useValue:ae});function ul(e){return e!==null&&typeof e=="object"&&Jd in e}function eh(e){return!!(e&&e.useExisting)}function th(e){return!!(e&&e.useFactory)}function bi(e){return typeof e=="function"}var co=new se(""),nr={},nh={},Jr;function fo(){return Jr===void 0&&(Jr=new il),Jr}var En=class{},ho=class extends En{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Ei(e,o=>this.processProvider(o)),this.records.set(nl,Ht(void 0,this)),r.has("environment")&&this.records.set(En,Ht(void 0,this));let i=this.records.get(co);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(rl,_t,U.Self))}destroy(){gn(this),this._destroyed=!0;let e=K(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),K(e)}}onDestroy(e){return gn(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){gn(this);let t=at(this),n=ke(void 0),r;try{return e()}finally{at(t),ke(n)}}get(e,t=wn,n=U.Default){if(gn(this),e.hasOwnProperty(_s))return e[_s](this);n=kr(n);let r,i=at(this),o=ke(void 0);try{if(!(n&U.SkipSelf)){let a=this.records.get(e);if(a===void 0){let l=lh(e)&&so(e);l&&this.injectableDefInScope(l)?a=Ht(wi(e),nr):a=null,this.records.set(e,a)}if(a!=null)return this.hydrate(e,a)}let s=n&U.Self?fo():this.parent;return t=n&U.Optional&&t===wn?null:t,s.get(e,t)}catch(s){if(s.name==="NullInjectorError"){if((s[fr]=s[fr]||[]).unshift(We(e)),i)throw s;return Zd(s,e,"R3InjectorError",this.source)}else throw s}finally{ke(o),at(i)}}resolveInjectorInitializers(){let e=K(null),t=at(this),n=ke(void 0),r;try{let i=this.get(dr,_t,U.Self);for(let o of i)o()}finally{at(t),ke(n),K(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(We(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=Ze(e);let t=bi(e)?e:Ze(e&&e.provide),n=ih(e);if(!bi(e)&&e.multi===!0){let r=this.records.get(t);r||(r=Ht(void 0,nr,!0),r.factory=()=>yi(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t){let n=K(null);try{return t.value===nr&&(t.value=nh,t.value=t.factory()),typeof t.value=="object"&&t.value&&ah(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{K(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=Ze(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function wi(e){let t=so(e),n=t!==null?t.factory:Gt(e);if(n!==null)return n;if(e instanceof se)throw new Y(204,!1);if(e instanceof Function)return rh(e);throw new Y(204,!1)}function rh(e){if(e.length>0)throw new Y(204,!1);let t=Dd(e);return t!==null?()=>t.factory(e):()=>new e}function ih(e){if(ul(e))return Ht(void 0,e.useValue);{let t=oh(e);return Ht(t,nr)}}function oh(e,t,n){let r;if(bi(e)){let i=Ze(e);return Gt(i)||wi(i)}else if(ul(e))r=()=>Ze(e.useValue);else if(th(e))r=()=>e.useFactory(...yi(e.deps||[]));else if(eh(e))r=()=>oe(Ze(e.useExisting));else{let i=Ze(e&&(e.useClass||e.provide));if(sh(e))r=()=>new i(...yi(e.deps));else return Gt(i)||wi(i)}return r}function gn(e){if(e.destroyed)throw new Y(205,!1)}function Ht(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function sh(e){return!!e.deps}function ah(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function lh(e){return typeof e=="function"||typeof e=="object"&&e instanceof se}function Ei(e,t){for(let n of e)Array.isArray(n)?Ei(n,t):n&&Xa(n)?Ei(n.\u0275providers,t):t(n)}function cl(e,t){e instanceof ho&&gn(e);let n,r=at(e),i=ke(void 0);try{return t()}finally{at(r),ke(i)}}function uh(){return Ja()!==void 0||Bd()!=null}var it=0,W=1,j=2,He=3,qe=4,Ke=5,_n=6,Is=7,we=8,Sn=9,rt=10,Pe=11,In=12,Cs=13,rn=14,Ge=15,Qt=16,Bt=17,Yt=18,Or=19,fl=20,dt=21,ei=22,hr=23,Ae=24,ti=25,Ie=26,dl=1,Cn=7,ch=8,pr=9,De=10;function Et(e){return Array.isArray(e)&&typeof e[dl]=="object"}function Ot(e){return Array.isArray(e)&&e[dl]===!0}function hl(e){return(e.flags&4)!==0}function Nr(e){return e.componentOffset>-1}function pl(e){return(e.flags&1)===1}function Nt(e){return!!e.template}function gr(e){return(e[j]&512)!==0}function Mn(e){return(e[j]&256)===256}var fh=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function gl(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function dh(e){return e.type.prototype.ngOnChanges&&(e.setInput=ph),hh}function hh(){let e=yl(this),t=e?.current;if(t){let n=e.previous;if(n===Kt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ph(e,t,n,r,i){let o=this.declaredInputs[r],s=yl(e)||gh(e,{previous:Kt,current:null}),a=s.current||(s.current={}),l=s.previous,d=l[o];a[o]=new fh(d&&d.currentValue,n,l===Kt),gl(e,t,i,n)}var ml="__ngSimpleChanges__";function yl(e){return e[ml]||null}function gh(e,t){return e[ml]=t}var mh=null,le=function(e,t=null,n){mh?.(e,t,n)},yh="svg",vh="math";function ht(e){for(;Array.isArray(e);)e=e[it];return e}function vl(e,t){return ht(t[e])}function Rt(e,t){return ht(t[e.index])}function po(e,t){return e.data[t]}function bl(e,t){return e[t]}function St(e,t){let n=t[e];return Et(n)?n:n[it]}function go(e){return(e[j]&128)===128}function Xt(e,t){return t==null?null:e[t]}function wl(e){e[Bt]=0}function mo(e){e[j]&1024||(e[j]|=1024,go(e)&&Ar(e))}function bh(e,t){for(;e>0;)t=t[rn],e--;return t}function Rr(e){return!!(e[j]&9216||e[Ae]?.dirty)}function _i(e){e[rt].changeDetectionScheduler?.notify(8),e[j]&64&&(e[j]|=1024),Rr(e)&&Ar(e)}function Ar(e){e[rt].changeDetectionScheduler?.notify(0);let t=It(e);for(;t!==null&&!(t[j]&8192||(t[j]|=8192,!go(t)));)t=It(t)}function El(e,t){if(Mn(e))throw new Y(911,!1);e[dt]===null&&(e[dt]=[]),e[dt].push(t)}function wh(e,t){if(e[dt]===null)return;let n=e[dt].indexOf(t);n!==-1&&e[dt].splice(n,1)}function It(e){let t=e[He];return Ot(t)?t[He]:t}var q={lFrame:Ol(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Si=!1;function Eh(){return q.lFrame.elementDepthCount}function _h(){q.lFrame.elementDepthCount++}function Sh(){q.lFrame.elementDepthCount--}function _l(){return q.bindingsEnabled}function Ih(){return q.skipHydrationRootTNode!==null}function Ch(e){return q.skipHydrationRootTNode===e}function Th(){q.skipHydrationRootTNode=null}function fe(){return q.lFrame.lView}function Qe(){return q.lFrame.tView}function Vn(){let e=Sl();for(;e!==null&&e.type===64;)e=e.parent;return e}function Sl(){return q.lFrame.currentTNode}function xh(){let e=q.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function on(e,t){let n=q.lFrame;n.currentTNode=e,n.isParent=t}function Il(){return q.lFrame.isParent}function kh(){q.lFrame.isParent=!1}function Cl(){return Si}function Ts(e){let t=Si;return Si=e,t}function Tl(){let e=q.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Dh(e){return q.lFrame.bindingIndex=e}function Mr(){return q.lFrame.bindingIndex++}function Oh(e){let t=q.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Nh(){return q.lFrame.inI18n}function Rh(e,t){let n=q.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ii(t)}function Ah(){return q.lFrame.currentDirectiveIndex}function Ii(e){q.lFrame.currentDirectiveIndex=e}function Mh(e){let t=q.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function xl(e){q.lFrame.currentQueryIndex=e}function Vh(e){let t=e[W];return t.type===2?t.declTNode:t.type===1?e[Ke]:null}function kl(e,t,n){if(n&U.SkipSelf){let i=t,o=e;for(;(i=i.parent,i===null&&!(n&U.Host))&&(i=Vh(o),!(i===null||(o=o[rn],i.type&10))););if(i===null)return!1;t=i,e=o}let r=q.lFrame=Dl();return r.currentTNode=t,r.lView=e,!0}function yo(e){let t=Dl(),n=e[W];q.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Dl(){let e=q.lFrame,t=e===null?null:e.child;return t===null?Ol(e):t}function Ol(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 Nl(){let e=q.lFrame;return q.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Rl=Nl;function vo(){let e=Nl();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 Ph(e){return(q.lFrame.contextLView=bh(e,q.lFrame.contextLView))[we]}function At(){return q.lFrame.selectedIndex}function Ct(e){q.lFrame.selectedIndex=e}function Fh(){let e=q.lFrame;return po(e.tView,e.selectedIndex)}function jh(){return q.lFrame.currentNamespace}var Al=!0;function bo(){return Al}function wo(e){Al=e}function Lh(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=dh(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function Ml(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:a,ngAfterViewChecked:l,ngOnDestroy:d}=i;o&&(e.contentHooks??=[]).push(-n,o),s&&((e.contentHooks??=[]).push(n,s),(e.contentCheckHooks??=[]).push(n,s)),a&&(e.viewHooks??=[]).push(-n,a),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),d!=null&&(e.destroyHooks??=[]).push(n,d)}}function rr(e,t,n){Vl(e,t,3,n)}function ir(e,t,n,r){(e[j]&3)===n&&Vl(e,t,n,r)}function ni(e,t){let n=e[j];(n&3)===t&&(n&=16383,n+=1,e[j]=n)}function Vl(e,t,n,r){let i=r!==void 0?e[Bt]&65535:0,o=r??-1,s=t.length-1,a=0;for(let l=i;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[Bt]+=65536),(a<o||o==-1)&&(Hh(e,n,t,l),e[Bt]=(e[Bt]&4294901760)+l+2),l++}function xs(e,t){le(4,e,t);let n=K(null);try{t.call(e)}finally{K(n),le(5,e,t)}}function Hh(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[j]>>14<e[Bt]>>16&&(e[j]&3)===t&&(e[j]+=16384,xs(a,o)):xs(a,o)}var Wt=-1,Eo=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n){this.factory=e,this.canSeeViewProviders=t,this.injectImpl=n}};function Bh(e){return e instanceof Eo}function zh(e){return(e.flags&8)!==0}function Uh(e){return(e.flags&16)!==0}function Zh(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];qh(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function Wh(e){return e===3||e===4||e===6}function qh(e){return e.charCodeAt(0)===64}function _o(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 i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?ks(e,n,i,null,t[++r]):ks(e,n,i,null,null))}}return e}function ks(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var ri={},$h=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){n=kr(n);let r=this.injector.get(e,ri,n);return r!==ri||t===ri?r:this.parentInjector.get(e,t,n)}};function Gh(e){return e!==Wt}function Ci(e){return e&32767}function Kh(e){return e>>16}function Ti(e,t){let n=Kh(e),r=t;for(;n>0;)r=r[rn],n--;return r}var xi=!0;function mr(e){let t=xi;return xi=e,t}var Qh=256,Pl=Qh-1,Fl=5,Yh=0,$e={};function Xh(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(vn)&&(r=n[vn]),r==null&&(r=n[vn]=Yh++);let i=r&Pl,o=1<<i;t.data[e+(i>>Fl)]|=o}function jl(e,t){let n=Ll(e,t);if(n!==-1)return n;let r=t[W];r.firstCreatePass&&(e.injectorIndex=t.length,ii(r.data,e),ii(t,null),ii(r.blueprint,null));let i=Hl(e,t),o=e.injectorIndex;if(Gh(i)){let s=Ci(i),a=Ti(i,t),l=a[W].data;for(let d=0;d<8;d++)t[o+d]=a[s+d]|l[s+d]}return t[o+8]=i,o}function ii(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ll(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Hl(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=ql(i),r===null)return Wt;if(n++,i=i[rn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Wt}function Jh(e,t,n){Xh(e,t,n)}function Bl(e,t,n){if(n&U.Optional||e!==void 0)return e;ao(t,"NodeInjector")}function zl(e,t,n,r){if(n&U.Optional&&r===void 0&&(r=null),(n&(U.Self|U.Host))===0){let i=e[Sn],o=ke(void 0);try{return i?i.get(t,r,n&U.Optional):el(t,r,n&U.Optional)}finally{ke(o)}}return Bl(r,t,n)}function Ul(e,t,n,r=U.Default,i){if(e!==null){if(t[j]&2048&&!(r&U.Self)){let s=ip(e,t,n,r,$e);if(s!==$e)return s}let o=Zl(e,t,n,r,$e);if(o!==$e)return o}return zl(t,n,r,i)}function Zl(e,t,n,r,i){let o=np(n);if(typeof o=="function"){if(!kl(t,e,r))return r&U.Host?Bl(i,n,r):zl(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&U.Optional))ao(n);else return s}finally{Rl()}}else if(typeof o=="number"){let s=null,a=Ll(e,t),l=Wt,d=r&U.Host?t[Ge][Ke]:null;for((a===-1||r&U.SkipSelf)&&(l=a===-1?Hl(e,t):t[a+8],l===Wt||!Os(r,!1)?a=-1:(s=t[W],a=Ci(l),t=Ti(l,t)));a!==-1;){let h=t[W];if(Ds(o,a,h.data)){let p=ep(a,t,n,s,r,d);if(p!==$e)return p}l=t[a+8],l!==Wt&&Os(r,t[W].data[a+8]===d)&&Ds(o,a,t)?(s=h,a=Ci(l),t=Ti(l,t)):a=-1}}return i}function ep(e,t,n,r,i,o){let s=t[W],a=s.data[e+8],l=r==null?Nr(a)&&xi:r!=s&&(a.type&3)!==0,d=i&U.Host&&o===a,h=tp(a,s,n,l,d);return h!==null?ki(t,s,h,a):$e}function tp(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,l=e.directiveStart,d=e.directiveEnd,h=o>>20,p=r?a:a+h,_=i?a+h:d;for(let w=p;w<_;w++){let E=s[w];if(w<l&&n===E||w>=l&&E.type===n)return w}if(i){let w=s[l];if(w&&Nt(w)&&w.type===n)return l}return null}function ki(e,t,n,r){let i=e[n],o=t.data;if(Bh(i)){let s=i;s.resolving&&Vd(Md(o[n]));let a=mr(s.canSeeViewProviders);s.resolving=!0;let l,d=s.injectImpl?ke(s.injectImpl):null,h=kl(e,r,U.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&Lh(n,o[n],t)}finally{d!==null&&ke(d),mr(a),s.resolving=!1,Rl()}}return i}function np(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(vn)?e[vn]:void 0;return typeof t=="number"?t>=0?t&Pl:rp:t}function Ds(e,t,n){let r=1<<e;return!!(n[t+(e>>Fl)]&r)}function Os(e,t){return!(e&U.Self)&&!(e&U.Host&&t)}var Wl=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return Ul(this._tNode,this._lView,e,kr(n),t)}};function rp(){return new Wl(Vn(),fe())}function ip(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[j]&2048&&!gr(s);){let a=Zl(o,s,n,r|U.Self,$e);if(a!==$e)return a;let l=o.parent;if(!l){let d=s[fl];if(d){let h=d.get(n,$e,r);if(h!==$e)return h}l=ql(s),s=s[rn]}o=l}return i}function ql(e){let t=e[W],n=t.type;return n===2?t.declTNode:n===1?e[Ke]:null}function Ns(e,t=null,n=null,r){let i=op(e,t,n,r);return i.resolveInjectorInitializers(),i}function op(e,t=null,n=null,r,i=new Set){let o=[n||_t,Xd(e)];return r=r||(typeof e=="object"?void 0:We(e)),new ho(o,t||fo(),r||null,i)}var Vr=class $l{static THROW_IF_NOT_FOUND=wn;static NULL=new il;static create(t,n){if(Array.isArray(t))return Ns({name:""},n,t,"");{let r=t.name??"";return Ns({name:r},t.parent,t.providers,r)}}static \u0275prov=pe({token:$l,providedIn:"any",factory:()=>oe(nl)});static __NG_ELEMENT_ID__=-1},sp=new se("");sp.__NG_ELEMENT_ID__=e=>{let t=Vn();if(t===null)throw new Y(204,!1);if(t.type&2)return t.value;if(e&U.Optional)return null;throw new Y(204,!1)};var Gl=!1,Kl=(()=>{class e{static __NG_ELEMENT_ID__=lp;static __NG_ENV_ID__=n=>n}return e})(),ap=class extends Kl{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return El(this._lView,e),()=>wh(this._lView,e)}};function lp(){return new ap(fe())}var Pn=class{},So=new se("",{providedIn:"root",factory:()=>!1}),Ql=new se(""),Io=new se(""),Pr=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Xf(!1);add(){this._hasPendingTasks||this.hasPendingTasks.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.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=pe({token:e,providedIn:"root",factory:()=>new e})}return e})(),up=class extends Rn{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,uh()&&(this.destroyRef=re(Kl,{optional:!0})??void 0,this.pendingTasks=re(Pr,{optional:!0})??void 0)}emit(e){let t=K(null);try{super.next(e)}finally{K(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),o=n;if(e&&typeof e=="object"){let a=e;r=a.next?.bind(a),i=a.error?.bind(a),o=a.complete?.bind(a)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:i,complete:o});return e instanceof nt&&e.add(s),s}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(t),n!==void 0&&this.pendingTasks?.remove(n)})}}},ut=up;function yr(...e){}function Yl(e){let t,n;function r(){e=yr;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 Rs(e){return queueMicrotask(()=>e()),()=>{e=yr}}var Co="isAngularZone",vr=Co+"_ID",cp=0,Me=class Di{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ut(!1);onMicrotaskEmpty=new ut(!1);onStable=new ut(!1);onError=new ut(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Gl}=t;if(typeof Zone>"u")throw new Y(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=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,hp(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Co)===!0}static assertInAngularZone(){if(!Di.isInAngularZone())throw new Y(909,!1)}static assertNotInAngularZone(){if(Di.isInAngularZone())throw new Y(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,fp,yr,yr);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},fp={};function To(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 dp(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Yl(()=>{e.callbackScheduled=!1,Oi(e),e.isCheckStableRunning=!0,To(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Oi(e)}function hp(e){let t=()=>{dp(e)},n=cp++;e._inner=e._inner.fork({name:"angular",properties:{[Co]:!0,[vr]:n,[vr+n]:!0},onInvokeTask:(r,i,o,s,a,l)=>{if(pp(l))return r.invokeTask(o,s,a,l);try{return As(e),r.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ms(e)}},onInvoke:(r,i,o,s,a,l,d)=>{try{return As(e),r.invoke(o,s,a,l,d)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!gp(l)&&t(),Ms(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Oi(e),To(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Oi(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function As(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ms(e){e._nesting--,To(e)}var Xl=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ut;onMicrotaskEmpty=new ut;onStable=new ut;onError=new ut;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function pp(e){return Jl(e,"__ignore_ng_zone__")}function gp(e){return Jl(e,"__scheduler_tick__")}function Jl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Fn=class{_console=console;handleError(e){this._console.error("ERROR",e)}},mp=new se("",{providedIn:"root",factory:()=>{let e=re(Me),t=re(Fn);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function yp(){return eu(Vn(),fe())}function eu(e,t){return new tu(Rt(e,t))}var tu=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=yp}return e})();function Vs(e,t){let n=Mf(e),r=n[ct];return t?.equal&&(r.equal=t.equal),n.set=i=>Ca(r,i),n.update=i=>Vf(r,i),n.asReadonly=vp.bind(n),n}function vp(){let e=this[ct];if(e.readonlyFn===void 0){let t=()=>this();t[ct]=e,e.readonlyFn=t}return e.readonlyFn}function nu(e){return(e.flags&128)===128}var ru=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ru||{}),iu=new Map,bp=0;function wp(){return bp++}function Ep(e){iu.set(e[Or],e)}function Ni(e){iu.delete(e[Or])}var Ps="__ngContext__";function jn(e,t){Et(t)?(e[Ps]=t[Or],Ep(t)):e[Ps]=t}function ou(e){return au(e[In])}function su(e){return au(e[qe])}function au(e){for(;e!==null&&!Ot(e);)e=e[qe];return e}var Ri;function _p(e){Ri=e}function lu(){if(Ri!==void 0)return Ri;if(typeof document<"u")return document;throw new Y(210,!1)}var uu=new se("",{providedIn:"root",factory:()=>Sp}),Sp="ng",cu=new se(""),xo=new se("",{providedIn:"platform",factory:()=>"unknown"}),fu=new se("",{providedIn:"root",factory:()=>lu().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Ip="h",Cp="b",du=!1,Tp=new se("",{providedIn:"root",factory:()=>du}),hu=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(hu||{}),ko=new se(""),Fs=new Set;function Fr(e){Fs.has(e)||(Fs.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var xp=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=pe({token:e,providedIn:"root",factory:()=>new e})}return e})(),kp=()=>null;function pu(e,t,n=!1){return kp(e,t,n)}function gu(e,t){let n=e.contentQueries;if(n!==null){let r=K(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];xl(o),a.contentQueries(2,t[s],s)}}}finally{K(r)}}}function Ai(e,t,n){xl(0);let r=K(null);try{t(e,n)}finally{K(r)}}function mu(e,t,n){if(hl(t)){let r=K(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{K(r)}}}var tt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(tt||{}),Qn;function Dp(){if(Qn===void 0&&(Qn=null,cr.trustedTypes))try{Qn=cr.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Qn}function jr(e){return Dp()?.createHTML(e)||e}var Yn;function Op(){if(Yn===void 0&&(Yn=null,cr.trustedTypes))try{Yn=cr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Yn}function js(e){return Op()?.createHTML(e)||e}var Mt=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ga})`}},Np=class extends Mt{getTypeName(){return"HTML"}},Rp=class extends Mt{getTypeName(){return"Style"}},Ap=class extends Mt{getTypeName(){return"Script"}},Mp=class extends Mt{getTypeName(){return"URL"}},Vp=class extends Mt{getTypeName(){return"ResourceURL"}};function lt(e){return e instanceof Mt?e.changingThisBreaksApplicationSecurity:e}function vt(e,t){let n=Pp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ga})`)}return n===t}function Pp(e){return e instanceof Mt&&e.getTypeName()||null}function Fp(e){return new Np(e)}function jp(e){return new Rp(e)}function Lp(e){return new Ap(e)}function Hp(e){return new Mp(e)}function Bp(e){return new Vp(e)}function zp(e){let t=new Zp(e);return Wp()?new Up(t):t}var Up=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(jr(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},Zp=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=jr(e),t}};function Wp(){try{return!!new window.DOMParser().parseFromString(jr(""),"text/html")}catch{return!1}}var qp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Do(e){return e=String(e),e.match(qp)?e:"unsafe:"+e}function ot(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Ln(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var yu=ot("area,br,col,hr,img,wbr"),vu=ot("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),bu=ot("rp,rt"),$p=Ln(bu,vu),Gp=Ln(vu,ot("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")),Kp=Ln(bu,ot("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")),Ls=Ln(yu,Gp,Kp,$p),wu=ot("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Qp=ot("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"),Yp=ot("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"),Xp=Ln(wu,Qp,Yp),Jp=ot("script,style,template"),eg=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){r.push(t),t=rg(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=ng(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=Hs(e).toLowerCase();if(!Ls.hasOwnProperty(t))return this.sanitizedSomething=!0,!Jp.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),o=i.name,s=o.toLowerCase();if(!Xp.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let a=i.value;wu[s]&&(a=Do(a)),this.buf.push(" ",o,'="',Bs(a),'"')}return this.buf.push(">"),!0}endElement(e){let t=Hs(e).toLowerCase();Ls.hasOwnProperty(t)&&!yu.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Bs(e))}};function tg(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function ng(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Eu(t);return t}function rg(e){let t=e.firstChild;if(t&&tg(e,t))throw Eu(t);return t}function Hs(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Eu(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var ig=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,og=/([^\#-~ |!])/g;function Bs(e){return e.replace(/&/g,"&amp;").replace(ig,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(og,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Xn;function _u(e,t){let n=null;try{Xn=Xn||zp(e);let r=t?String(t):"";n=Xn.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Xn.getInertBodyElement(r)}while(r!==o);let s=new eg().sanitizeChildren(zs(n)||n);return jr(s)}finally{if(n){let r=zs(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function zs(e){return"content"in e&&sg(e)?e.content:null}function sg(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Je=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}(Je||{});function Su(e){let t=Iu();return t?js(t.sanitize(Je.HTML,e)||""):vt(e,"HTML")?js(lt(e)):_u(lu(),xr(e))}function ag(e){let t=Iu();return t?t.sanitize(Je.URL,e)||"":vt(e,"URL")?lt(e):Do(xr(e))}function Iu(){let e=fe();return e&&e[rt].sanitizer}function lg(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var Cu="ng-template";function ug(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&lg(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Oo(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function Oo(e){return e.type===4&&e.value!==Cu}function cg(e,t,n){let r=e.type===4&&!n?Cu:e.value;return t===r}function fg(e,t,n){let r=4,i=e.attrs,o=i!==null?pg(i):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!Ue(r)&&!Ue(l))return!1;if(s&&Ue(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!cg(e,l,n)||l===""&&t.length===1){if(Ue(r))return!1;s=!0}}else if(r&8){if(i===null||!ug(e,i,l,n)){if(Ue(r))return!1;s=!0}}else{let d=t[++a],h=dg(l,i,Oo(e),n);if(h===-1){if(Ue(r))return!1;s=!0;continue}if(d!==""){let p;if(h>o?p="":p=i[h+1].toLowerCase(),r&2&&d!==p){if(Ue(r))return!1;s=!0}}}}return Ue(r)||s}function Ue(e){return(e&1)===0}function dg(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return gg(t,e)}function hg(e,t,n=!1){for(let r=0;r<t.length;r++)if(fg(e,t[r],n))return!0;return!1}function pg(e){for(let t=0;t<e.length;t++){let n=e[t];if(Wh(n))return t}return e.length}function gg(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 Us(e,t){return e?":not("+t.trim()+")":t}function mg(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!Ue(s)&&(t+=Us(o,i),i=""),r=s,o=o||!Ue(r);n++}return i!==""&&(t+=Us(o,i)),t}function yg(e){return e.map(mg).join(",")}function vg(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!Ue(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var mt={};function bg(e,t){return e.createText(t)}function wg(e,t,n){e.setValue(t,n)}function Tu(e,t,n){return e.createElement(t,n)}function Mi(e,t,n,r,i){e.insertBefore(t,n,r,i)}function xu(e,t,n){e.appendChild(t,n)}function Zs(e,t,n,r,i){r!==null?Mi(e,t,n,r,i):xu(e,t,n)}function Eg(e,t,n){e.removeChild(null,t,n)}function _g(e,t,n){e.setAttribute(t,"style",n)}function Sg(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function ku(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&Zh(e,t,r),i!==null&&Sg(e,t,i),o!==null&&_g(e,t,o)}function No(e,t,n,r,i,o,s,a,l,d,h){let p=Ie+r,_=p+i,w=Ig(p,_),E=typeof d=="function"?d():d;return w[W]={type:e,blueprint:w,template:n,queries:null,viewQuery:a,declTNode:t,data:w.slice().fill(null,p),bindingStartIndex:p,expandoStartIndex:_,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 o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:E,incompleteFirstPass:!1,ssrId:h}}function Ig(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:mt);return n}function Cg(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=No(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ro(e,t,n,r,i,o,s,a,l,d,h){let p=t.blueprint.slice();return p[it]=i,p[j]=r|4|128|8|64|1024,(d!==null||e&&e[j]&2048)&&(p[j]|=2048),wl(p),p[He]=p[rn]=e,p[we]=n,p[rt]=s||e&&e[rt],p[Pe]=a||e&&e[Pe],p[Sn]=l||e&&e[Sn]||null,p[Ke]=o,p[Or]=wp(),p[_n]=h,p[fl]=d,p[Ge]=t.type==2?e[Ge]:p,p}function Tg(e,t,n){let r=Rt(t,e),i=Cg(n),o=e[rt].rendererFactory,s=Nu(e,Ro(e,i,null,Du(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function Du(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Ou(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Nu(e,t){return e[In]?e[Cs][qe]=t:e[In]=t,e[Cs]=t,t}function qt(e=1){Ru(Qe(),fe(),At()+e,!1)}function Ru(e,t,n,r){if(!r)if((t[j]&3)===3){let i=e.preOrderCheckHooks;i!==null&&rr(t,i,n)}else{let i=e.preOrderHooks;i!==null&&ir(t,i,0,n)}Ct(n)}var Lr=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Lr||{});function Vi(e,t,n,r){let i=K(null);try{let[o,s,a]=e.inputs[n],l=null;(s&Lr.SignalBased)!==0&&(l=t[o][ct]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,o):gl(t,l,o,r)}finally{K(i)}}function Au(e,t,n,r,i){let o=At(),s=r&2;try{Ct(-1),s&&t.length>Ie&&Ru(e,t,Ie,!1),le(s?2:0,i),n(r,i)}finally{Ct(o),le(s?3:1,i)}}function Ao(e,t,n){Ag(e,t,n),(n.flags&64)===64&&Mg(e,t,n)}function Mu(e,t,n=Rt){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function xg(e,t,n,r){let i=r.get(Tp,du)||n===tt.ShadowDom,o=e.selectRootElement(t,i);return kg(o),o}function kg(e){Dg(e)}var Dg=()=>null;function Og(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Ng(e,t,n,r,i,o,s,a){if(!a&&Mo(t,e,n,r,i)){Nr(t)&&Rg(n,t.index);return}if(t.type&3){let l=Rt(t,n);r=Og(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(l,r,i)}else t.type&12}function Rg(e,t){let n=St(t,e);n[j]&16||(n[j]|=64)}function Ag(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Nr(n)&&Tg(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||jl(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let a=e.data[s],l=ki(t,e,s,n);if(jn(l,t),o!==null&&Pg(t,s-r,l,a,n,o),Nt(a)){let d=St(n.index,t);d[we]=ki(t,e,s,n)}}}function Mg(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=Ah();try{Ct(o);for(let a=r;a<i;a++){let l=e.data[a],d=t[a];Ii(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&Vg(l,d)}}finally{Ct(-1),Ii(s)}}function Vg(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Vu(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];hg(t,o.selectors,!1)&&(r??=[],Nt(o)?r.unshift(o):r.push(o))}return r}function Pg(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],d=s[a+1];Vi(r,n,l,d)}}function Fg(e,t){let n=e[Sn],r=n?n.get(Fn,null):null;r&&r.handleError(t)}function Mo(e,t,n,r,i){let o=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let d=s[l],h=s[l+1],p=t.data[d];Vi(p,n[d],h,i),a=!0}if(o)for(let l of o){let d=n[l],h=t.data[l];Vi(h,d,r,i),a=!0}return a}function jg(e,t){let n=St(t,e),r=n[W];Lg(r,n);let i=n[it];i!==null&&n[_n]===null&&(n[_n]=pu(i,n[Sn])),le(18),Vo(r,n,n[we]),le(19,n[we])}function Lg(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Vo(e,t,n){yo(t);try{let r=e.viewQuery;r!==null&&Ai(1,r,n);let i=e.template;i!==null&&Au(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Yt]?.finishViewCreation(e),e.staticContentQueries&&gu(e,t),e.staticViewQueries&&Ai(2,e.viewQuery,n);let o=e.components;o!==null&&Hg(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[j]&=-5,vo()}}function Hg(e,t){for(let n=0;n<t.length;n++)jg(e,t[n])}function Po(e,t,n,r){let i=K(null);try{let o=t.tView,s=e[j]&4096?4096:16,a=Ro(e,o,n,s,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];a[Qt]=l;let d=e[Yt];return d!==null&&(a[Yt]=d.createEmbeddedView(o)),Vo(o,a,n),a}finally{K(i)}}function Fo(e,t){return!t||t.firstChild===null||nu(e)}var Bg;function jo(e,t){return Bg(e,t)}var wt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(wt||{});function Pu(e){return(e.flags&32)===32}function zt(e,t,n,r,i){if(r!=null){let o,s=!1;Ot(r)?o=r:Et(r)&&(s=!0,r=r[it]);let a=ht(r);e===0&&n!==null?i==null?xu(t,n,a):Mi(t,n,a,i||null,!0):e===1&&n!==null?Mi(t,n,a,i||null,!0):e===2?Eg(t,a,s):e===3&&t.destroyNode(a),o!=null&&Jg(t,e,o,n,i)}}function zg(e,t){Fu(e,t),t[it]=null,t[Ke]=null}function Ug(e,t,n,r,i,o){r[it]=i,r[Ke]=t,Hr(e,r,n,1,i,o)}function Fu(e,t){t[rt].changeDetectionScheduler?.notify(9),Hr(e,t,t[Pe],2,null,null)}function Zg(e){let t=e[In];if(!t)return oi(e[W],e);for(;t;){let n=null;if(Et(t))n=t[In];else{let r=t[De];r&&(n=r)}if(!n){for(;t&&!t[qe]&&t!==e;)Et(t)&&oi(t[W],t),t=t[He];t===null&&(t=e),Et(t)&&oi(t[W],t),n=t&&t[qe]}t=n}}function Lo(e,t){let n=e[pr],r=n.indexOf(t);n.splice(r,1)}function Ho(e,t){if(Mn(t))return;let n=t[Pe];n.destroyNode&&Hr(e,t,n,3,null,null),Zg(t)}function oi(e,t){if(Mn(t))return;let n=K(null);try{t[j]&=-129,t[j]|=256,t[Ae]&&ba(t[Ae]),qg(e,t),Wg(e,t),t[W].type===1&&t[Pe].destroy();let r=t[Qt];if(r!==null&&Ot(t[He])){r!==t[He]&&Lo(r,t);let i=t[Yt];i!==null&&i.detachView(e)}Ni(t)}finally{K(n)}}function Wg(e,t){let n=e.cleanup,r=t[Is];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[Is]=null);let i=t[dt];if(i!==null){t[dt]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=t[hr];if(o!==null){t[hr]=null;for(let s of o)s.destroy()}}function qg(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof Eo)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],l=o[s+1];le(4,a,l);try{l.call(a)}finally{le(5,a,l)}}else{le(4,i,o);try{o.call(i)}finally{le(5,i,o)}}}}}function $g(e,t,n){return Gg(e,t.parent,n)}function Gg(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[it];if(Nr(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===tt.None||i===tt.Emulated)return null}return Rt(r,n)}function Kg(e,t,n){return Yg(e,t,n)}function Qg(e,t,n){return e.type&40?Rt(e,n):null}var Yg=Qg,Ws;function Bo(e,t,n,r){let i=$g(e,r,t),o=t[Pe],s=r.parent||t[Ke],a=Kg(s,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Zs(o,i,n[l],a,!1);else Zs(o,i,n,a,!1);Ws!==void 0&&Ws(o,r,t,n,i)}function mn(e,t){if(t!==null){let n=t.type;if(n&3)return Rt(t,e);if(n&4)return Pi(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return mn(e,r);{let i=e[t.index];return Ot(i)?Pi(-1,i):ht(i)}}else{if(n&128)return mn(e,t.next);if(n&32)return jo(t,e)()||ht(e[t.index]);{let r=ju(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=It(e[Ge]);return mn(i,r)}else return mn(e,t.next)}}}return null}function ju(e,t){if(t!==null){let n=e[Ge][Ke],r=t.projection;return n.projection[r]}return null}function Pi(e,t){let n=De+e+1;if(n<t.length){let r=t[n],i=r[W].firstChild;if(i!==null)return mn(r,i)}return t[Cn]}function zo(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&jn(ht(a),r),n.flags|=2),!Pu(n))if(l&8)zo(e,t,n.child,r,i,o,!1),zt(t,e,i,a,o);else if(l&32){let d=jo(n,r),h;for(;h=d();)zt(t,e,i,h,o);zt(t,e,i,a,o)}else l&16?Xg(e,t,r,n,i,o):zt(t,e,i,a,o);n=s?n.projectionNext:n.next}}function Hr(e,t,n,r,i,o){zo(n,r,e.firstChild,t,i,o,!1)}function Xg(e,t,n,r,i,o){let s=n[Ge],a=s[Ke].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){let d=a[l];zt(t,e,i,d,o)}else{let l=a,d=s[He];nu(r)&&(l.flags|=128),zo(e,t,l,d,i,o,!0)}}function Jg(e,t,n,r,i){let o=n[Cn],s=ht(n);o!==s&&zt(t,e,r,o,i);for(let a=De;a<n.length;a++){let l=n[a];Hr(l[W],l,e,t,r,o)}}function em(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:wt.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=wt.Important),e.setStyle(n,r,i,o))}}function br(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(ht(o)),Ot(o)&&tm(o,r);let s=n.type;if(s&8)br(e,t,n.child,r);else if(s&32){let a=jo(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=ju(t,n);if(Array.isArray(a))r.push(...a);else{let l=It(t[Ge]);br(l[W],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function tm(e,t){for(let n=De;n<e.length;n++){let r=e[n],i=r[W].firstChild;i!==null&&br(r[W],r,i,t)}e[Cn]!==e[it]&&t.push(e[Cn])}function Lu(e){if(e[ti]!==null){for(let t of e[ti])t.impl.addSequence(t);e[ti].length=0}}var Hu=[];function nm(e){return e[Ae]??rm(e)}function rm(e){let t=Hu.pop()??Object.create(om);return t.lView=e,t}function im(e){e.lView[Ae]!==e&&(e.lView=null,Hu.push(e))}var om=nn(xt({},no),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Ar(e.lView)},consumerOnSignalRead(){this.lView[Ae]=this}});function sm(e){let t=e[Ae]??Object.create(am);return t.lView=e,t}var am=nn(xt({},no),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=It(e.lView);for(;t&&!Bu(t[W]);)t=It(t);t&&mo(t)},consumerOnSignalRead(){this.lView[Ae]=this}});function Bu(e){return e.type!==2}function zu(e){if(e[hr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[hr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[j]&8192)}}var lm=100;function Uu(e,t=!0,n=0){let r=e[rt].rendererFactory,i=!1;i||r.begin?.();try{um(e,n)}catch(o){throw t&&Fg(e,o),o}finally{i||r.end?.()}}function um(e,t){let n=Cl();try{Ts(!0),Fi(e,t);let r=0;for(;Rr(e);){if(r===lm)throw new Y(103,!1);r++,Fi(e,1)}}finally{Ts(n)}}function cm(e,t,n,r){if(Mn(t))return;let i=t[j],o=!1,s=!1;yo(t);let a=!0,l=null,d=null;o||(Bu(e)?(d=nm(t),l=fs(d)):Cf()===null?(a=!1,d=sm(t),l=fs(d)):t[Ae]&&(ba(t[Ae]),t[Ae]=null));try{wl(t),Dh(e.bindingStartIndex),n!==null&&Au(e,t,n,2,r);let h=(i&3)===3;if(!o)if(h){let w=e.preOrderCheckHooks;w!==null&&rr(t,w,null)}else{let w=e.preOrderHooks;w!==null&&ir(t,w,0,null),ni(t,0)}if(s||fm(t),zu(t),Zu(t,0),e.contentQueries!==null&&gu(e,t),!o)if(h){let w=e.contentCheckHooks;w!==null&&rr(t,w)}else{let w=e.contentHooks;w!==null&&ir(t,w,1),ni(t,1)}hm(e,t);let p=e.components;p!==null&&qu(t,p,0);let _=e.viewQuery;if(_!==null&&Ai(2,_,r),!o)if(h){let w=e.viewCheckHooks;w!==null&&rr(t,w)}else{let w=e.viewHooks;w!==null&&ir(t,w,2),ni(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ei]){for(let w of t[ei])w();t[ei]=null}o||(Lu(t),t[j]&=-73)}catch(h){throw o||Ar(t),h}finally{d!==null&&(Of(d,l),a&&im(d)),vo()}}function Zu(e,t){for(let n=ou(e);n!==null;n=su(n))for(let r=De;r<n.length;r++){let i=n[r];Wu(i,t)}}function fm(e){for(let t=ou(e);t!==null;t=su(t)){if(!(t[j]&2))continue;let n=t[pr];for(let r=0;r<n.length;r++){let i=n[r];mo(i)}}}function dm(e,t,n){le(18);let r=St(t,e);Wu(r,n),le(19,r[we])}function Wu(e,t){go(e)&&Fi(e,t)}function Fi(e,t){let n=e[W],r=e[j],i=e[Ae],o=!!(t===0&&r&16);if(o||=!!(r&64&&t===0),o||=!!(r&1024),o||=!!(i?.dirty&&va(i)),o||=!1,i&&(i.dirty=!1),e[j]&=-9217,o)cm(n,e,n.template,e[we]);else if(r&8192){zu(e),Zu(e,1);let s=n.components;s!==null&&qu(e,s,1),Lu(e)}}function qu(e,t,n){for(let r=0;r<t.length;r++)dm(e,t[r],n)}function hm(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)Ct(~i);else{let o=i,s=n[++r],a=n[++r];Rh(s,o);let l=t[o];le(24,l),a(2,l),le(25,l)}}}finally{Ct(-1)}}function $u(e,t){let n=Cl()?64:1088;for(e[rt].changeDetectionScheduler?.notify(t);e;){e[j]|=n;let r=It(e);if(gr(e)&&!r)return e;e=r}return null}function pm(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Gu(e,t){let n=De+t;if(n<e.length)return e[n]}function Uo(e,t,n,r=!0){let i=t[W];if(gm(i,t,e,n),r){let s=Pi(n,e),a=t[Pe],l=a.parentNode(e[Cn]);l!==null&&Ug(i,e[Ke],a,t,l,s)}let o=t[_n];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Ku(e,t){let n=Zo(e,t);return n!==void 0&&Ho(n[W],n),n}function Zo(e,t){if(e.length<=De)return;let n=De+t,r=e[n];if(r){let i=r[Qt];i!==null&&i!==e&&Lo(i,r),t>0&&(e[n-1][qe]=r[qe]);let o=tl(e,De+t);zg(r[W],r);let s=o[Yt];s!==null&&s.detachView(o[W]),r[He]=null,r[qe]=null,r[j]&=-129}return r}function gm(e,t,n,r){let i=De+r,o=n.length;r>0&&(n[i-1][qe]=t),r<o-De?(t[qe]=n[i],qd(n,De+r,t)):(n.push(t),t[qe]=null),t[He]=n;let s=t[Qt];s!==null&&n!==s&&Qu(s,t);let a=t[Yt];a!==null&&a.insertView(e),_i(t),t[j]|=128}function Qu(e,t){let n=e[pr],r=t[He];if(Et(r))e[j]|=2;else{let i=r[He][Ge];t[Ge]!==i&&(e[j]|=2)}n===null?e[pr]=[t]:n.push(t)}var mm=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,t=e[W];return br(t,e,t.firstChild,[])}constructor(e,t,n=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=n}get context(){return this._lView[we]}get dirty(){return!!(this._lView[j]&9280)||!!this._lView[Ae]?.dirty}set context(e){this._lView[we]=e}get destroyed(){return Mn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[He];if(Ot(e)){let t=e[ch],n=t?t.indexOf(this):-1;n>-1&&(Zo(e,n),tl(t,n))}this._attachedToViewContainer=!1}Ho(this._lView[W],this._lView)}onDestroy(e){El(this._lView,e)}markForCheck(){$u(this._cdRefInjectingView||this._lView,4)}markForRefresh(){mo(this._cdRefInjectingView||this._lView)}detach(){this._lView[j]&=-129}reattach(){_i(this._lView),this._lView[j]|=128}detectChanges(){this._lView[j]|=1024,Uu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=gr(this._lView),t=this._lView[Qt];t!==null&&!e&&Lo(t,this._lView),Fu(this._lView[W],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Y(902,!1);this._appRef=e;let t=gr(this._lView),n=this._lView[Qt];n!==null&&!t&&Qu(n,this._lView),_i(this._lView)}};function Br(e,t,n,r,i){let o=e.data[t];if(o===null)o=ym(e,t,n,r,i),Nh()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=xh();o.injectorIndex=s===null?-1:s.injectorIndex}return on(o,!0),o}function ym(e,t,n,r,i){let o=Sl(),s=Il(),a=s?o:o&&o.parent,l=e.data[t]=bm(e,a,n,t,r,i);return vm(e,l,o,s),l}function vm(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 bm(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return Ih()&&(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:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var Hb=new RegExp(`^(\\d+)*(${Cp}|${Ip})*(.*)`),wm=()=>null;function Wo(e,t){return wm(e,t)}var Em=class{},Yu=class{},_m=class{resolveComponentFactory(e){throw Error(`No component factory found for ${We(e)}.`)}},Hn=class{static NULL=new _m},qo=class{},Sm=(()=>{class e{static \u0275prov=pe({token:e,providedIn:"root",factory:()=>null})}return e})();function qs(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=ys(i,a);else if(o==2){let l=a,d=t[++s];r=ys(r,l+": "+d+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function zr(e,t=U.Default){let n=fe();if(n===null)return oe(e,t);let r=Vn();return Ul(r,n,Ze(e),t)}function Xu(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let a,l=null,d=null,h=Cm(s);h===null?a=s:[a,l,d]=h,km(e,t,n,a,o,l,d)}o!==null&&r!==null&&Im(n,r,o)}function Im(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new Y(-301,!1);r.push(t[i],o)}}function Cm(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&Nt(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,Tm(s,r,o,i)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,i,o]):null}function Tm(e,t,n,r){let i=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[i,t.length-1])}function xm(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function km(e,t,n,r,i,o,s){let a=r.length,l=!1;for(let _=0;_<a;_++){let w=r[_];!l&&Nt(w)&&(l=!0,xm(e,n,_)),Jh(jl(n,t),e,w.type)}Mm(n,e.data.length,a);for(let _=0;_<a;_++){let w=r[_];w.providersResolver&&w.providersResolver(w)}let d=!1,h=!1,p=Ou(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let _=0;_<a;_++){let w=r[_];if(n.mergedAttrs=_o(n.mergedAttrs,w.hostAttrs),Om(e,n,t,p,w),Am(p,w,i),s!==null&&s.has(w)){let[I,O]=s.get(w);n.directiveToIndex.set(w.type,[p,I+n.directiveStart,O+n.directiveStart])}else(o===null||!o.has(w))&&n.directiveToIndex.set(w.type,p);w.contentQueries!==null&&(n.flags|=4),(w.hostBindings!==null||w.hostAttrs!==null||w.hostVars!==0)&&(n.flags|=64);let E=w.type.prototype;!d&&(E.ngOnChanges||E.ngOnInit||E.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),d=!0),!h&&(E.ngOnChanges||E.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),h=!0),p++}Dm(e,n,o)}function Dm(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))$s(0,t,i,r),$s(1,t,i,r),Ks(t,r,!1);else{let o=n.get(i);Gs(0,t,o,r),Gs(1,t,o,r),Ks(t,r,!0)}}}function $s(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[o]??=[],s[o].push(r),Ju(t,o)}}function Gs(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),Ju(t,s)}}function Ju(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Ks(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||Oo(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&i.hasOwnProperty(l)){let d=i[l];for(let h of d)if(h===t){s??=[],s.push(l,r[a+1]);break}}else if(n&&o.hasOwnProperty(l)){let d=o[l];for(let h=0;h<d.length;h+=2)if(d[h]===t){s??=[],s.push(d[h+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function Om(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=Gt(i.type,!0)),s=new Eo(o,Nt(i),zr);e.blueprint[r]=s,n[r]=s,Nm(e,t,r,Ou(e,n,i.hostVars,mt),i)}function Nm(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Rm(s)!=a&&s.push(a),s.push(n,r,o)}}function Rm(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Am(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Nt(t)&&(n[""]=e)}}function Mm(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ec(e,t,n,r,i,o,s,a){let l=t.consts,d=Xt(l,s),h=Br(t,e,2,r,d);return o&&Xu(t,n,h,Xt(l,a),i),h.mergedAttrs=_o(h.mergedAttrs,h.attrs),h.attrs!==null&&qs(h,h.attrs,!1),h.mergedAttrs!==null&&qs(h,h.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,h),h}function tc(e,t){Ml(e,t),hl(t)&&e.queries.elementEnd(t)}var Vm=class extends Hn{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=Dr(e);return new Bm(t,this.ngModule)}};function Pm(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&Lr.SignalBased)!==0};return i&&(o.transform=i),o})}function Fm(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function jm(e,t,n){let r=t instanceof En?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new $h(n,r):n}function Lm(e){let t=e.get(qo,null);if(t===null)throw new Y(407,!1);let n=e.get(Sm,null),r=e.get(Pn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function Hm(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Tu(t,n,n==="svg"?yh:n==="math"?vh:null)}var Bm=class extends Yu{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return Pm(this.componentDef.inputs)}get outputs(){return Fm(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=yg(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r){le(22);let i=K(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:vg(this.componentDef.selectors[0]),a=No(0,null,null,1,0,null,null,null,null,[s],null),l=jm(o,r||this.ngModule,e),d=Lm(l),h=d.rendererFactory.createRenderer(null,o),p=n?xg(h,n,o.encapsulation,l):Hm(o,h),_=Ro(null,a,null,512|Du(o),null,null,d,h,l,null,pu(p,l,!0));_[Ie]=p,yo(_);let w=null;try{let E=ec(Ie,a,_,"#host",()=>[this.componentDef],!0,0);p&&(ku(h,p,E),jn(p,_)),Ao(a,_,E),mu(a,E,_),tc(a,E),t!==void 0&&Um(E,this.ngContentSelectors,t),w=St(E.index,_),_[we]=w[we],Vo(a,_,null)}catch(E){throw w!==null&&Ni(w),Ni(_),E}finally{le(23),vo()}return new zm(this.componentType,_)}finally{K(i)}}},zm=class extends Em{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t){super(),this._rootLView=t,this._tNode=po(t[W],Ie),this.location=eu(this._tNode,t),this.instance=St(this._tNode.index,t)[we],this.hostView=this.changeDetectorRef=new mm(t,void 0,!1),this.componentType=e}setInput(e,t){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=Mo(n,r[W],r,e,t);this.previousInputValues.set(e,t);let o=St(n.index,r);$u(o,1)}get injector(){return new Wl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function Um(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var Zm=()=>!1;function Wm(e,t,n){return Zm(e,t,n)}var ji=class{},nc=class extends ji{injector;componentFactoryResolver=new Vm(this);instance=null;constructor(e){super();let t=new ho([...e.providers,{provide:ji,useValue:this},{provide:Hn,useValue:this.componentFactoryResolver}],e.parent||fo(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function qm(e,t,n=null){return new nc({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var $m=(()=>{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=al(!1,n.type),i=r.length>0?qm([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=pe({token:e,providedIn:"environment",factory:()=>new e(oe(En))})}return e})();function Gm(e){return Td(()=>{let t=Jm(e),n=nn(xt({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ru.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get($m).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||tt.Emulated,styles:e.styles||_t,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Fr("NgStandalone"),ey(n);let r=e.dependencies;return n.directiveDefs=Qs(r,!1),n.pipeDefs=Qs(r,!0),n.id=ty(n),n})}function Km(e){return Dr(e)||ol(e)}function Qm(e){return e!==null}function Ym(e,t){if(e==null)return Kt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a,l;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,l=i[3]||null):(o=i,s=i,a=Lr.None,l=null),n[o]=[r,a,l],t[o]=s}return n}function Xm(e){if(e==null)return Kt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function $o(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 Jm(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||Kt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||_t,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ym(e.inputs,t),outputs:Xm(e.outputs),debugInfo:null}}function ey(e){e.features?.forEach(t=>t(e))}function Qs(e,t){if(!e)return null;let n=t?sl:Km;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Qm)}function ty(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 rc(e,t,n){return e[t]=n}function pt(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function ny(e,t,n,r){let i=pt(e,t,n);return pt(e,t+1,r)||i}function ry(e,t,n,r,i,o,s,a,l){let d=t.consts,h=Br(t,e,4,s||null,a||null);_l()&&Xu(t,n,h,Xt(d,l),Vu),h.mergedAttrs=_o(h.mergedAttrs,h.attrs),Ml(t,h);let p=h.tView=No(2,h,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,d,null);return t.queries!==null&&(t.queries.template(t,h),p.queries=t.queries.embeddedTView(h)),h}function Li(e,t,n,r,i,o,s,a,l,d){let h=n+Ie,p=t.firstCreatePass?ry(h,t,e,r,i,o,s,a,l):t.data[h];on(p,!1);let _=iy(t,e,p,n);bo()&&Bo(t,e,_,p),jn(_,e);let w=pm(_,e,_,p);return e[h]=w,Nu(e,w),Wm(w,p,e),pl(p)&&Ao(t,e,p),l!=null&&Mu(e,p,d),p}function ic(e,t,n,r,i,o,s,a){let l=fe(),d=Qe(),h=Xt(d.consts,o);return Li(l,d,e,t,n,r,i,h,s,a),ic}var iy=oy;function oy(e,t,n,r){return wo(!0),t[Pe].createComment("")}var sy=new se(""),ay=(()=>{class e{static \u0275prov=pe({token:e,providedIn:"root",factory:()=>new ly})}return e})(),ly=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),this.queuedEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,t]of this.queues)e===null?this.flushQueue(t):e.run(()=>this.flushQueue(t))}flushQueue(e){for(let t of e)e.delete(t),this.queuedEffectCount--,t.run()}};function oc(e){return!!e&&typeof e.then=="function"}function uy(e){return!!e&&typeof e.subscribe=="function"}var cy=new se(""),sc=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=re(cy,{optional:!0})??[];injector=re(Vr);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=cl(this.injector,i);if(oc(o))n.push(o);else if(uy(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fy=new se("");function dy(){Rf(()=>{throw new Y(600,!1)})}function hy(e){return e.isBoundToModule}var py=10,Jt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=re(mp);afterRenderManager=re(xp);zonelessEnabled=re(So);rootEffectScheduler=re(ay);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Rn;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=re(Pr).hasPendingTasks.pipe(qa(n=>!n));constructor(){re(ko,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=re(En);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){le(10);let i=n instanceof Yu;if(!this._injector.get(sc).done){let p=!i&&Qd(n),_=!1;throw new Y(405,_)}let o;i?o=n:o=this._injector.get(Hn).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=hy(o)?void 0:this._injector.get(ji),a=r||o.selector,l=o.create(Vr.NULL,[],a,s),d=l.location.nativeElement,h=l.injector.get(sy,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),or(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),le(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){le(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(hu.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new Y(101,!1);let n=K(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,K(n),this.afterTick.next(),le(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(qo,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<py;)le(14),this.synchronizeOnce(),le(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:i}of this.allViews)gy(r,i,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Rr(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;or(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(fy,[]).forEach(r=>r(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),()=>or(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Y(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function or(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function gy(e,t,n,r){!n&&!Rr(e)||Uu(e,t,n&&!r?0:1)}function my(e,t,n,r){return pt(e,Mr(),n)?t+xr(n)+r:mt}function Jn(e,t){return e<<17|t<<2}function Tt(e){return e>>17&32767}function yy(e){return(e&2)==2}function vy(e,t){return e&131071|t<<17}function Hi(e){return e|2}function en(e){return(e&131068)>>2}function si(e,t){return e&-131069|t<<2}function by(e){return(e&1)===1}function Bi(e){return e|1}function wy(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Tt(s),l=en(s);e[r]=n;let d=!1,h;if(Array.isArray(n)){let p=n;h=p[1],(h===null||An(p,h)>0)&&(d=!0)}else h=n;if(i)if(l!==0){let p=Tt(e[a+1]);e[r+1]=Jn(p,a),p!==0&&(e[p+1]=si(e[p+1],r)),e[a+1]=vy(e[a+1],r)}else e[r+1]=Jn(a,0),a!==0&&(e[a+1]=si(e[a+1],r)),a=r;else e[r+1]=Jn(l,0),a===0?a=r:e[l+1]=si(e[l+1],r),l=r;d&&(e[r+1]=Hi(e[r+1])),Ys(e,h,r,!0),Ys(e,h,r,!1),Ey(t,h,e,r,o),s=Jn(a,l),o?t.classBindings=s:t.styleBindings=s}function Ey(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&An(o,t)>=0&&(n[r+1]=Bi(n[r+1]))}function Ys(e,t,n,r){let i=e[n+1],o=t===null,s=r?Tt(i):en(i),a=!1;for(;s!==0&&(a===!1||o);){let l=e[s],d=e[s+1];_y(l,t)&&(a=!0,e[s+1]=r?Bi(d):Hi(d)),s=r?Tt(d):en(d)}a&&(e[n+1]=r?Hi(i):Bi(i))}function _y(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?An(e,t)>=0:!1}function wr(e,t,n){let r=fe(),i=Mr();if(pt(r,i,t)){let o=Qe(),s=Fh();Ng(o,s,r,e,t,r[Pe],n,!1)}return wr}function Xs(e,t,n,r,i){Mo(t,e,n,i?"class":"style",r)}function Go(e,t,n){return Sy(e,t,n,!1),Go}function Sy(e,t,n,r){let i=fe(),o=Qe(),s=Oh(2);if(o.firstUpdatePass&&Cy(o,e,s,r),t!==mt&&pt(i,s,t)){let a=o.data[At()];Oy(o,a,i,i[Pe],e,i[s+1]=Ny(t,n),r,s)}}function Iy(e,t){return t>=e.expandoStartIndex}function Cy(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[At()],s=Iy(e,n);Ry(o,r)&&t===null&&!s&&(t=!1),t=Ty(i,o,t,r),wy(i,o,t,n,s,r)}}function Ty(e,t,n,r){let i=Mh(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=ai(null,e,t,n,r),n=Tn(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=ai(i,e,t,n,r),o===null){let a=xy(e,t,r);a!==void 0&&Array.isArray(a)&&(a=ai(null,e,t,a[1],r),a=Tn(a,t.attrs,r),ky(e,t,r,a))}else o=Dy(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function xy(e,t,n){let r=n?t.classBindings:t.styleBindings;if(en(r)!==0)return e[Tt(r)]}function ky(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Tt(i)]=r}function Dy(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=Tn(r,s,n)}return Tn(r,t.attrs,n)}function ai(e,t,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=t[a],r=Tn(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Tn(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Gd(e,s,n?!0:t[++o]))}return e===void 0?null:e}function Oy(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let l=e.data,d=l[a+1],h=by(d)?Js(l,t,n,i,en(d),s):void 0;if(!Er(h)){Er(o)||yy(d)&&(o=Js(l,null,n,i,a,s));let p=vl(At(),n);em(r,s,p,i,o)}}function Js(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let l=e[i],d=Array.isArray(l),h=d?l[1]:l,p=h===null,_=n[i+1];_===mt&&(_=p?_t:void 0);let w=p?Xr(_,r):h===r?_:void 0;if(d&&!Er(w)&&(w=Xr(l,r)),Er(w)&&(a=w,s))return a;let E=e[i+1];i=s?Tt(E):en(E)}if(t!==null){let l=o?t.residualClasses:t.residualStyles;l!=null&&(a=Xr(l,r))}return a}function Er(e){return e!==void 0}function Ny(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=We(lt(e)))),e}function Ry(e,t){return(e.flags&(t?8:16))!==0}var Ay=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,i),this.attach(r,o)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function li(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function My(e,t,n){let r,i,o=0,s=e.length-1,a;if(Array.isArray(t)){let l=t.length-1;for(;o<=s&&o<=l;){let d=e.at(o),h=t[o],p=li(o,d,o,h,n);if(p!==0){p<0&&e.updateValue(o,h),o++;continue}let _=e.at(s),w=t[l],E=li(s,_,l,w,n);if(E!==0){E<0&&e.updateValue(s,w),s--,l--;continue}let I=n(o,d),O=n(s,_),N=n(o,h);if(Object.is(N,O)){let Q=n(l,w);Object.is(Q,I)?(e.swap(o,s),e.updateValue(s,w),l--,s--):e.move(s,o),e.updateValue(o,h),o++;continue}if(r??=new na,i??=ta(e,o,s,n),zi(e,r,o,N))e.updateValue(o,h),o++,s++;else if(i.has(N))r.set(I,e.detach(o)),s--;else{let Q=e.create(o,t[o]);e.attach(o,Q),o++,s++}}for(;o<=l;)ea(e,r,n,o,t[o]),o++}else if(t!=null){let l=t[Symbol.iterator](),d=l.next();for(;!d.done&&o<=s;){let h=e.at(o),p=d.value,_=li(o,h,o,p,n);if(_!==0)_<0&&e.updateValue(o,p),o++,d=l.next();else{r??=new na,i??=ta(e,o,s,n);let w=n(o,p);if(zi(e,r,o,w))e.updateValue(o,p),o++,s++,d=l.next();else if(!i.has(w))e.attach(o,e.create(o,p)),o++,s++,d=l.next();else{let E=n(o,h);r.set(E,e.detach(o)),s--}}}for(;!d.done;)ea(e,r,n,e.length,d.value),d=l.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(l=>{e.destroy(l)})}function zi(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function ea(e,t,n,r,i){if(zi(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function ta(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var na=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function Vy(e,t){Fr("NgControlFlow");let n=fe(),r=Mr(),i=n[r]!==mt?n[r]:-1,o=i!==-1?_r(n,Ie+i):void 0,s=0;if(pt(n,r,e)){let a=K(null);try{if(o!==void 0&&Ku(o,s),e!==-1){let l=Ie+e,d=_r(n,l),h=Ui(n[W],l),p=Wo(d,h.tView.ssrId),_=Po(n,h,t,{dehydratedView:p});Uo(d,_,s,Fo(h,p))}}finally{K(a)}}else if(o!==void 0){let a=Gu(o,s);a!==void 0&&(a[we]=t)}}var Py=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-De}},Fy=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function jy(e,t,n,r,i,o,s,a,l,d,h,p,_){Fr("NgControlFlow");let w=fe(),E=Qe(),I=l!==void 0,O=fe(),N=a?s.bind(O[Ge][we]):s,Q=new Fy(I,N);O[Ie+e]=Q,Li(w,E,e+1,t,n,r,i,Xt(E.consts,o)),I&&Li(w,E,e+2,l,d,h,p,Xt(E.consts,_))}var Ly=class extends Ay{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-De}at(e){return this.getLView(e)[we].$implicit}attach(e,t){let n=t[_n];this.needsIndexUpdate||=e!==this.length,Uo(this.lContainer,t,e,Fo(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,By(this.lContainer,e)}create(e,t){let n=Wo(this.lContainer,this.templateTNode.tView.ssrId),r=Po(this.hostLView,this.templateTNode,new Py(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){Ho(e[W],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[we].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[we].$index=e}getLView(e){return zy(this.lContainer,e)}};function Hy(e){let t=K(null),n=At();try{let r=fe(),i=r[W],o=r[n],s=n+1,a=_r(r,s);if(o.liveCollection===void 0){let d=Ui(i,s);o.liveCollection=new Ly(a,r,d)}else o.liveCollection.reset();let l=o.liveCollection;if(My(l,e,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let d=Mr(),h=l.length===0;if(pt(r,d,h)){let p=n+2,_=_r(r,p);if(h){let w=Ui(i,p),E=Wo(_,w.tView.ssrId),I=Po(r,w,void 0,{dehydratedView:E});Uo(_,I,0,Fo(w,E))}else Ku(_,0)}}}finally{K(t)}}function _r(e,t){return e[t]}function By(e,t){return Zo(e,t)}function zy(e,t){return Gu(e,t)}function Ui(e,t){return po(e,t)}function xn(e,t,n,r){let i=fe(),o=Qe(),s=Ie+e,a=i[Pe],l=o.firstCreatePass?ec(s,o,i,t,Vu,_l(),n,r):o.data[s],d=Uy(o,i,l,a,t,e);i[s]=d;let h=pl(l);return on(l,!0),ku(a,d,l),!Pu(l)&&bo()&&Bo(o,i,d,l),(Eh()===0||h)&&jn(d,i),_h(),h&&(Ao(o,i,l),mu(o,l,i)),r!==null&&Mu(i,l),xn}function kn(){let e=Vn();Il()?kh():(e=e.parent,on(e,!1));let t=e;Ch(t)&&Th(),Sh();let n=Qe();return n.firstCreatePass&&tc(n,t),t.classesWithoutHost!=null&&zh(t)&&Xs(n,t,fe(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Uh(t)&&Xs(n,t,fe(),t.stylesWithoutHost,!1),kn}function Dn(e,t,n,r){return xn(e,t,n,r),kn(),Dn}var Uy=(e,t,n,r,i,o)=>(wo(!0),Tu(r,i,jh())),Sr="en-US",Zy=Sr;function Wy(e){typeof e=="string"&&(Zy=e.toLowerCase().replace(/_/g,"-"))}function ac(e=1){return Ph(e)}function lc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function qy(e,t=""){let n=fe(),r=Qe(),i=e+Ie,o=r.firstCreatePass?Br(r,i,1,t,null):r.data[i],s=$y(r,n,o,t,e);n[i]=s,bo()&&Bo(r,n,s,o),on(o,!1)}var $y=(e,t,n,r,i)=>(wo(!0),bg(t[Pe],r));function uc(e){return cc("",e,""),uc}function cc(e,t,n){let r=fe(),i=my(r,e,t,n);return i!==mt&&Gy(r,At(),i),cc}function Gy(e,t,n){let r=vl(t,e);wg(e[Pe],r,n)}var Ky={};function fc(e){let t=Qe(),n=fe(),r=e+Ie,i=Br(t,r,128,null,null);return on(i,!1),lc(t,n,r,Ky),fc}function dc(e,t){let n=e[t];return n===mt?void 0:n}function Qy(e,t,n,r,i,o){let s=t+n;return pt(e,s,i)?rc(e,s+1,o?r.call(o,i):r(i)):dc(e,s+1)}function Yy(e,t,n,r,i,o,s){let a=t+n;return ny(e,a,i,o)?rc(e,a+2,s?r.call(s,i,o):r(i,o)):dc(e,a+2)}function Ir(e,t){let n=Qe(),r,i=e+Ie;n.firstCreatePass?(r=Xy(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=Gt(r.type,!0)),s,a=ke(zr);try{let l=mr(!1),d=o();return mr(l),lc(n,fe(),i,d),d}finally{ke(a)}}function Xy(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Zi(e,t,n){let r=e+Ie,i=fe(),o=bl(i,r);return hc(i,r)?Qy(i,Tl(),t,o.transform,n,o):o.transform(n)}function Jy(e,t,n,r){let i=e+Ie,o=fe(),s=bl(o,i);return hc(o,i)?Yy(o,Tl(),t,s.transform,n,r,s):s.transform(n,r)}function hc(e,t){return e[W].data[t].pure}var ev=(()=>{class e{zone=re(Me);changeDetectionScheduler=re(Pn);applicationRef=re(Jt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function tv({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Me(nn(xt({},nv()),{scheduleInRootZone:n})),[{provide:Me,useFactory:e},{provide:dr,multi:!0,useFactory:()=>{let r=re(ev,{optional:!0});return()=>r.initialize()}},{provide:dr,multi:!0,useFactory:()=>{let r=re(rv);return()=>{r.initialize()}}},t===!0?{provide:Ql,useValue:!0}:[],{provide:Io,useValue:n??Gl}]}function nv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var rv=(()=>{class e{subscription=new nt;initialized=!1;zone=re(Me);pendingTasks=re(Pr);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(()=>{Me.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Me.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),pc=(()=>{class e{appRef=re(Jt);taskService=re(Pr);ngZone=re(Me);zonelessEnabled=re(So);tracing=re(ko,{optional:!0});disableScheduling=re(Ql,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new nt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(vr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(re(Io,{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 Xl||!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 i=this.useMicrotaskScheduler?Rs:Yl;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>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(vr+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){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Rs(()=>{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(n){return new(n||e)};static \u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function iv(){return Fr("NgZoneless"),Yd([{provide:Pn,useExisting:pc},{provide:Me,useClass:Xl},{provide:So,useValue:!0},{provide:Io,useValue:!1},[]])}function ov(){return typeof $localize<"u"&&$localize.locale||Sr}var gc=new se("",{providedIn:"root",factory:()=>re(gc,U.Optional|U.SkipSelf)||ov()}),Wi=new se(""),sv=new se("");function pn(e){return!e.moduleRef}function av(e){let t=pn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Me);return n.run(()=>{pn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Fn,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),pn(e)){let o=()=>t.destroy(),s=e.platformInjector.get(Wi);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Wi);s.add(o),e.moduleRef.onDestroy(()=>{or(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return uv(r,n,()=>{let o=t.get(sc);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(gc,Sr);if(Wy(s||Sr),!t.get(sv,!0))return pn(e)?t.get(Jt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(pn(e)){let a=t.get(Jt);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return lv(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function lv(e,t){let n=e.injector.get(Jt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new Y(-403,!1);t.push(e)}function uv(e,t,n){try{let r=n();return oc(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var sr=null;function cv(e=[],t){return Vr.create({name:t,providers:[{provide:co,useValue:"platform"},{provide:Wi,useValue:new Set([()=>sr=null])},...e]})}function fv(e=[]){if(sr)return sr;let t=cv(e);return sr=t,dy(),dv(t),t}function dv(e){let t=e.get(cu,null);cl(e,()=>{t?.forEach(n=>n())})}function hv(e){le(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=fv(r),o=[tv({}),{provide:Pn,useExisting:pc},...n||[]],s=new nc({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return av({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}finally{le(9)}}var Bb=class{[ct];constructor(e){this[ct]=e}destroy(){this[ct].destroy()}},pv={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function gv(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function mv(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var ui;function yv(e,t){if(!ui){let n=Element.prototype;ui=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?ui.call(e,t):!1}function vv(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[gv(r)]=[n,i]}),t}function bv(e,t){return t.get(Hn).resolveComponentFactory(e).inputs}function wv(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let a=n[o],l=Ev(a,t,i);l!==-1&&r[l].push(a)}return r}function Ev(e,t,n){let r=n;return mv(e)&&t.some((i,o)=>i!=="*"&&yv(e,i)?(r=o,!0):!1),r}var _v=10,Sv=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(Hn).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Iv(this.componentFactory,e,this.inputMap)}},Iv=class{componentFactory;injector;inputMap;eventEmitters=new Jf(1);events=this.eventEmitters.pipe(Id(e=>Sd(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(Me),this.appRef=this.injector.get(Jt),this.cdScheduler=t.get(Pn),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=pv.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},_v))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(e){let t=Vr.create({providers:[],parent:this.injector}),n=wv(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new Ve(o=>{let s=i.subscribe(a=>o.next({name:r,value:a}));return()=>s.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},Cv=class extends HTMLElement{ngElementEventsSubscription=null};function Tv(e,t){let n=bv(e,t.injector),r=t.strategyFactory||new Sv(e,t.injector),i=vv(n);class o extends Cv{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:l,transform:d})=>{if(!this.hasOwnProperty(l))return;let h=this[l];delete this[l],a.setInputValue(l,h,d)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,d,h){let[p,_]=i[a];this.ngElementStrategy.setInputValue(p,d,_)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),o}var mc=null;function yc(){return mc}function xv(e){mc??=e}var kv=class{},gt=new se("");function Dv(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var Ov="browser",Nv="server";function vc(e){return e===Nv}var Rv=class{},Av=class extends kv{supportsDOMEvents=!0},Mv=class bc extends Av{static makeCurrent(){xv(new bc)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Vv();return n==null?null:Pv(n)}resetBaseElement(){yn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Dv(document.cookie,t)}},yn=null;function Vv(){return yn=yn||document.querySelector("base"),yn?yn.getAttribute("href"):null}function Pv(e){return new URL(e,document.baseURI).pathname}var Fv=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=pe({token:e,factory:e.\u0275fac})}return e})(),qi=new se(""),wc=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new Y(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(oe(qi),oe(Me))};static \u0275prov=pe({token:e,factory:e.\u0275fac})}return e})(),Ec=class{_doc;constructor(e){this._doc=e}manager},ar="ng-app-id";function ra(e){for(let t of e)t.remove()}function ia(e,t){let n=t.createElement("style");return n.textContent=e,n}function jv(e,t,n,r){let i=e.head?.querySelectorAll(`style[${ar}="${t}"],link[${ar}="${t}"]`);if(i)for(let o of i)o.removeAttribute(ar),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function $i(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var _c=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=vc(o),jv(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,ia);r?.forEach(i=>this.addUsage(i,this.external,$i))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(ra(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])ra(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,ia(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,$i(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(ar,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||e)(oe(gt),oe(uu),oe(fu,8),oe(xo))};static \u0275prov=pe({token:e,factory:e.\u0275fac})}return e})(),ci={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ko=/%COMP%/g,Sc="%COMP%",Lv=`_nghost-${Sc}`,Hv=`_ngcontent-${Sc}`,Bv=!0,zv=new se("",{providedIn:"root",factory:()=>Bv});function Uv(e){return Hv.replace(Ko,e)}function Zv(e){return Lv.replace(Ko,e)}function Ic(e,t){return t.map(n=>n.replace(Ko,e))}var oa=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,a,l,d=null,h=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=d,this.tracingService=h,this.platformIsServer=vc(a),this.defaultRenderer=new Qo(n,s,l,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===tt.ShadowDom&&(r=nn(xt({},r),{encapsulation:tt.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof aa?i.applyToHost(n):i instanceof Gi&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,p=this.platformIsServer,_=this.tracingService;switch(r.encapsulation){case tt.Emulated:o=new aa(l,d,r,this.appId,h,s,a,p,_);break;case tt.ShadowDom:return new Wv(l,d,n,r,s,a,this.nonce,p,_);default:o=new Gi(l,d,r,h,s,a,p,_);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(oe(wc),oe(_c),oe(uu),oe(zv),oe(gt),oe(xo),oe(Me),oe(fu),oe(ko,8))};static \u0275prov=pe({token:e,factory:e.\u0275fac})}return e})(),Qo=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(ci[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(sa(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(sa(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new Y(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=ci[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=ci[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(wt.DashCase|wt.Important)?e.style.setProperty(t,n,r&wt.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&wt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=yc().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${t}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))===!1&&t.preventDefault()}}};function sa(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Wv=class extends Qo{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,o,s,a,l){super(e,i,o,a,l),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=Ic(r.id,d);for(let p of d){let _=document.createElement("style");s&&_.setAttribute("nonce",s),_.textContent=p,this.shadowRoot.appendChild(_)}let h=r.getExternalStyles?.();if(h)for(let p of h){let _=$i(p,i);s&&_.setAttribute("nonce",s),this.shadowRoot.appendChild(_)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Gi=class extends Qo{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,o,s,a,l){super(e,i,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let d=n.styles;this.styles=l?Ic(l,d):d,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},aa=class extends Gi{contentAttr;hostAttr;constructor(e,t,n,r,i,o,s,a,l){let d=r+"-"+n.id;super(e,t,n,i,o,s,a,l,d),this.contentAttr=Uv(d),this.hostAttr=Zv(d)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},qv=(()=>{class e extends Ec{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(n){return new(n||e)(oe(gt))};static \u0275prov=pe({token:e,factory:e.\u0275fac})}return e})(),la=["alt","control","meta","shift"],$v={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Gv={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Kv=(()=>{class e extends Ec{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>yc().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),la.forEach(d=>{let h=r.indexOf(d);h>-1&&(r.splice(h,1),s+=d+".")}),s+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=$v[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),la.forEach(s=>{if(s!==i){let a=Gv[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(oe(gt))};static \u0275prov=pe({token:e,factory:e.\u0275fac})}return e})();function Qv(e){return hv(Yv(e))}function Yv(e){return{appProviders:[...nb,...e?.providers??[]],platformProviders:tb}}function Xv(){Mv.makeCurrent()}function Jv(){return new Fn}function eb(){return _p(document),document}var tb=[{provide:xo,useValue:Ov},{provide:cu,useValue:Xv,multi:!0},{provide:gt,useFactory:eb,deps:[]}],nb=[{provide:co,useValue:"root"},{provide:Fn,useFactory:Jv,deps:[]},{provide:qi,useClass:qv,multi:!0,deps:[gt]},{provide:qi,useClass:Kv,multi:!0,deps:[gt]},oa,_c,wc,{provide:qo,useExisting:oa},{provide:Rv,useClass:Fv,deps:[]},[]],Cc=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=pe({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=oe(rb),r},providedIn:"root"})}return e})(),rb=(()=>{class e extends Cc{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Je.NONE:return r;case Je.HTML:return vt(r,"HTML")?lt(r):_u(this._doc,String(r)).toString();case Je.STYLE:return vt(r,"Style")?lt(r):r;case Je.SCRIPT:if(vt(r,"Script"))return lt(r);throw new Y(5200,!1);case Je.URL:return vt(r,"URL")?lt(r):Do(String(r));case Je.RESOURCE_URL:if(vt(r,"ResourceURL"))return lt(r);throw new Y(5201,!1);default:throw new Y(5202,!1)}}bypassSecurityTrustHtml(n){return Fp(n)}bypassSecurityTrustStyle(n){return jp(n)}bypassSecurityTrustScript(n){return Lp(n)}bypassSecurityTrustUrl(n){return Hp(n)}bypassSecurityTrustResourceUrl(n){return Bp(n)}static \u0275fac=function(n){return new(n||e)(oe(gt))};static \u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ib={apiURL:"http://localhost:3003",debug:!0,mode:"local",styleURL:"http://localhost:8002/styles.css"},Le=ga(_f()),ob="9.3.15",fi=class Ki{static SDK_VERSION=ob;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static SHADOW_SPLITTER=":shadow";static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static CONTENT_ATTRIBUTE="_letscooee_content";static VIA="_via";static{let t=Ki.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");Ki.SDK_VERSION_CODE=parseInt(t,10)}},et=class{static log(...e){Le.default.info(...e)}static debug(...e){Le.default.debug(...e)}static error(...e){Le.default.error(...e)}static warn(...e){Le.default.warn(...e)}static info(...e){Le.default.info(...e)}static trace(...e){Le.default.trace(...e)}static configure(e=fi.LOG_PREFIX){Le.default.useDefaults({formatter:function(n){n.unshift(`${e} (v${fi.SDK_VERSION}):`)}});let t=this.getDebugParam();(t==="1"||t==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Le.default.setLevel(Le.default[localStorage.cooeeLogLevel]):Le.default.setLevel(ib.debug?Le.default.TRACE:Le.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let e=`
8
8
  display: inline-block;
9
9
  font-size: 14px;
10
10
  background: linear-gradient(90deg, #d52dc8 25%, #2179e2 82%);
@@ -19,8 +19,8 @@ ${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
19
19
  `,t+=`
20
20
 
21
21
  `,t+=`Learn more: https://www.letscooee.com
22
- Cooee SDK: v${pr.SDK_VERSION}`,console.group("%c Elevate your ecommerce experience with Cooee \u{1F680} ",e),console.log(`%c${t}`,"font-size: 13px; line-height: 1.8;"),console.groupEnd()}},Ry={providers:[Am()]},pn=function(e){return e.FREE_SHIPPING="FREE_SHIPPING",e.DISCOUNT="DISCOUNT",e.FREE_AUTO_GIFT="FREE_AUTO_GIFT",e.FREE_GIFT_SELECT="FREE_GIFT_SELECT",e}(pn||{}),Vy=class{gaEnabled;gaMeasurementID;pixelPush;website;currencyCount;money;storefrontToken;skipItemAttribute;currency;static get(){return window.CooeeSDK.config}update(e){return e??={},this.gaEnabled=e.gaEnabled,this.gaMeasurementID=e.gaMeasurementID,this.pixelPush=e.pixelPush,this.website=e.website??{},this.currencyCount=e.currencyCount??0,this.money=e.money,this.currency=e.currency,this.storefrontToken=e.storefrontToken,this.skipItemAttribute=e.skipItemAttribute,this}},Py=class{static format(e,t){let n=/{{\s*(\w+)\s*}}/;return t.replace(n,(r,i)=>{switch(i){case"amount":return this.formatWithDelimiters(e,2);case"amount_no_decimals":return this.formatWithDelimiters(e,0);case"amount_with_comma_separator":return this.formatWithDelimiters(e,2,".",",");case"amount_no_decimals_with_comma_separator":return this.formatWithDelimiters(e,0,".",",");case"amount_with_apostrophe_separator":return this.formatWithDelimiters(e,2,"'",".");case"amount_no_decimals_with_space_separator":return this.formatWithDelimiters(e,0," ");case"amount_with_space_separator":return this.formatWithDelimiters(e,2," ",",");case"amount_with_period_and_space_separator":return this.formatWithDelimiters(e,2," ",".");default:return r}})}static formatWithDelimiters(e,t=2,n=",",r="."){if(isNaN(e)||e==null)return"0";let i=(e/100).toFixed(t).split("."),o=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+n),s=i[1]?r+i[1]:"";return o+s}},Fy=class{isCartDirty=!0;cartEngagements;isGoKwikPopupOpen;previewIDs;previewVariant;pageName;moneyFormat;jsLoadTime=new Date;shopCurrencyCode;inInactive=!1;lastEnterActive=new Date;lastEnterInactive=null;currentItem;_currencyCode;get currencyCode(){return this._currencyCode}set currencyCode(e){this._currencyCode=e}static get(){return window.CooeeSDK.runtimeData}isInactive(){return this.inInactive}async setInactive(){return this.inInactive?0:(this.inInactive=!0,this.lastEnterInactive=new Date,Math.max((this.lastEnterInactive.getTime()-this.lastEnterActive.getTime())/1e3,0))}setActive(){return this.inInactive?(this.inInactive=!1,this.lastEnterActive=new Date,Math.max((this.lastEnterActive.getTime()-this.lastEnterInactive.getTime())/1e3,0)):0}isFirstActive(){return this.lastEnterInactive==null}getCurrentItem(){return this.currentItem}setCurrentItem(e){this.currentItem=e}},Ly=class{static ISO_WITHOUT_MS_REGEX=new RegExp(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/);static isObject(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}static parseToAny(e){try{return JSON.parse(e.toString())}catch{}return e.toString().match(this.ISO_WITHOUT_MS_REGEX)?new Date(e.toString()):e}static async sleep(e){return new Promise(t=>setTimeout(t,e))}static hasKeys(e){return e?Object.keys(e).length>=1:!1}static convertObjectToArray(e,t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&e[r]!=null&&n.push({[r]:e[r]}),n),[])}static removeNullUndefinedKeys(e){return Object.keys(e).reduce((t,n)=>(e[n]!==null&&e[n]!==void 0&&(t[n]=e[n]),t),{})}static stringify(e){return JSON.stringify(e,function(t,n){return n===void 0?null:n})}},Iu=class{static tz;static isValidURL(e){try{return new URL(e)}catch{return}}static isNull(e){return!e||e==="null"||e==="undefined"}static removeFromArray(e,t){let n=e.indexOf(t);return n===-1?!1:(e.splice(n,1),!0)}static formatCurrency(e,t){if(e==0&&t)return"Free";let n=Fy.get(),r=Vy.get(),i=n.shopCurrencyCode??r.currency,o=n.currencyCode,s=r.money?.format??n.moneyFormat,l;return s&&i===o?l=Py.format(e*100,s):(l=new Intl.NumberFormat(this.getLang(),{style:"currency",currency:o,minimumFractionDigits:0,maximumFractionDigits:2}).format(e),l=l.replace("\u20B9","Rs. "),r.money?.showCurrency&&o!=="INR"&&(l=l.concat(` ${o}`))),l}static formatNumber(e){return new Intl.NumberFormat(this.getLang(),{notation:"compact"}).format(e)}static getLang(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}static getTimezone(){if(this.tz)return this.tz;try{return this.tz=Intl.DateTimeFormat().resolvedOptions().timeZone,this.tz}catch{return""}}static documentReady(e){document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e)}static onDocumentLoaded(e){document.readyState==="complete"?e():document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e()})}static showSnackbar(e){let t=document.createElement("span");t.id="snackbar",t.innerText=e,document.body.appendChild(t),t.className="show",setTimeout(()=>{t.classList.remove("show"),document.body.removeChild(t)},3e3)}static async retrySelectorForElements(e,t=10,n=document){let r=0,i=document.querySelectorAll("nonexistent-tag");for(;r<t;){let o=Math.min(100*2**r,5e3);if(await Ly.sleep(o),i=n.querySelectorAll(e),i.length)return Se.debug(`Attempt ${r+1}: ${i.length} elements found with ${e}`),i;Se.debug(`Attempt ${r+1}: Elements not found with ${e}. Retrying after ${o}ms.`),r++}return Se.warn(`Max attempts reached. Element not found with ${e}.`),i}static async retrySelector(e,t=10,n=document){return(await this.retrySelectorForElements(e,t,n)).item(0)}},jy=class Jr{transform(t){return t?Iu.formatCurrency(t):null}static \u0275fac=function(t){return new(t||Jr)};static \u0275pipe=Ki({name:"cooeeCurrency",type:Jr,pure:!0})},Hy=(()=>{class e{static entityMap={'"':"&quot;"};static escapeHtml(n){return String(n).replace(/"/g,r=>e.entityMap[r])}}return e})(),zy=Object.prototype.toString,St=Array.isArray||function(e){return zy.call(e)==="[object Array]"};function Ji(e){return typeof e=="function"}function Uy(e){return St(e)?"array":typeof e}function gr(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function us(e,t){return e!=null&&typeof e=="object"&&t in e}function By(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Zy=RegExp.prototype.test;function $y(e,t){return Zy.call(e,t)}var Gy=/\S/;function Wy(e){return!$y(Gy,e)}var qy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function Ky(e){return String(e).replace(/[&<>"'`=\/]/g,function(t){return qy[t]})}var Qy=/\s*/,Yy=/\s+/,cs=/\s*=/,Xy=/\s*\}/,Jy=/#|\^|\/|>|\{|&|=|!/;function ev(e,t){if(!e)return[];var n=!1,r=[],i=[],o=[],s=!1,l=!1,a="",u=0;function f(){if(s&&!l)for(;o.length;)delete i[o.pop()];else o=[];s=!1,l=!1}var c,g,p;function m(ae){if(typeof ae=="string"&&(ae=ae.split(Yy,2)),!St(ae)||ae.length!==2)throw new Error("Invalid tags: "+ae);c=new RegExp(gr(ae[0])+"\\s*"),g=new RegExp("\\s*"+gr(ae[1])),p=new RegExp("\\s*"+gr("}"+ae[1]))}m(t||le.tags);for(var y=new Jt(e),w,S,U,be,it,Ee;!y.eos();){if(w=y.pos,U=y.scanUntil(c),U)for(var Ct=0,Kn=U.length;Ct<Kn;++Ct)be=U.charAt(Ct),Wy(be)?(o.push(i.length),a+=be):(l=!0,n=!0,a+=" "),i.push(["text",be,w,w+1]),w+=1,be===`
23
- `&&(f(),a="",u=0,n=!1);if(!y.scan(c))break;if(s=!0,S=y.scan(Jy)||"name",y.scan(Qy),S==="="?(U=y.scanUntil(cs),y.scan(cs),y.scanUntil(g)):S==="{"?(U=y.scanUntil(p),y.scan(Xy),y.scanUntil(g),S="&"):U=y.scanUntil(g),!y.scan(g))throw new Error("Unclosed tag at "+y.pos);if(S==">"?it=[S,U,w,y.pos,a,u,n]:it=[S,U,w,y.pos],u++,i.push(it),S==="#"||S==="^")r.push(it);else if(S==="/"){if(Ee=r.pop(),!Ee)throw new Error('Unopened section "'+U+'" at '+w);if(Ee[1]!==U)throw new Error('Unclosed section "'+Ee[1]+'" at '+w)}else S==="name"||S==="{"||S==="&"?l=!0:S==="="&&m(U)}if(f(),Ee=r.pop(),Ee)throw new Error('Unclosed section "'+Ee[1]+'" at '+y.pos);return nv(tv(i))}function tv(e){for(var t=[],n,r,i=0,o=e.length;i<o;++i)n=e[i],n&&(n[0]==="text"&&r&&r[0]==="text"?(r[1]+=n[1],r[3]=n[3]):(t.push(n),r=n));return t}function nv(e){for(var t=[],n=t,r=[],i,o,s=0,l=e.length;s<l;++s)switch(i=e[s],i[0]){case"#":case"^":n.push(i),r.push(i),n=i[4]=[];break;case"/":o=r.pop(),o[5]=i[2],n=r.length>0?r[r.length-1][4]:t;break;default:n.push(i)}return t}function Jt(e){this.string=e,this.tail=e,this.pos=0}Jt.prototype.eos=function(){return this.tail===""};Jt.prototype.scan=function(e){var t=this.tail.match(e);if(!t||t.index!==0)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};Jt.prototype.scanUntil=function(e){var t=this.tail.search(e),n;switch(t){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,t),this.tail=this.tail.substring(t)}return this.pos+=n.length,n};function bt(e,t){this.view=e,this.cache={".":this.view},this.parent=t}bt.prototype.push=function(e){return new bt(e,this)};bt.prototype.lookup=function(e){var t=this.cache,n;if(t.hasOwnProperty(e))n=t[e];else{for(var r=this,i,o,s,l=!1;r;){if(e.indexOf(".")>0)for(i=r.view,o=e.split("."),s=0;i!=null&&s<o.length;)s===o.length-1&&(l=us(i,o[s])||By(i,o[s])),i=i[o[s++]];else i=r.view[e],l=us(r.view,e);if(l){n=i;break}r=r.parent}t[e]=n}return Ji(n)&&(n=n.call(this.view)),n};function Y(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}Y.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Y.prototype.parse=function(e,t){var n=this.templateCache,r=e+":"+(t||le.tags).join(":"),i=typeof n<"u",o=i?n.get(r):void 0;return o==null&&(o=ev(e,t),i&&n.set(r,o)),o};Y.prototype.render=function(e,t,n,r){var i=this.getConfigTags(r),o=this.parse(e,i),s=t instanceof bt?t:new bt(t,void 0);return this.renderTokens(o,s,n,e,r)};Y.prototype.renderTokens=function(e,t,n,r,i){for(var o="",s,l,a,u=0,f=e.length;u<f;++u)a=void 0,s=e[u],l=s[0],l==="#"?a=this.renderSection(s,t,n,r,i):l==="^"?a=this.renderInverted(s,t,n,r,i):l===">"?a=this.renderPartial(s,t,n,i):l==="&"?a=this.unescapedValue(s,t):l==="name"?a=this.escapedValue(s,t,i):l==="text"&&(a=this.rawValue(s)),a!==void 0&&(o+=a);return o};Y.prototype.renderSection=function(e,t,n,r,i){var o=this,s="",l=t.lookup(e[1]);function a(c){return o.render(c,t,n,i)}if(l){if(St(l))for(var u=0,f=l.length;u<f;++u)s+=this.renderTokens(e[4],t.push(l[u]),n,r,i);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")s+=this.renderTokens(e[4],t.push(l),n,r,i);else if(Ji(l)){if(typeof r!="string")throw new Error("Cannot use higher-order sections without the original template");l=l.call(t.view,r.slice(e[3],e[5]),a),l!=null&&(s+=l)}else s+=this.renderTokens(e[4],t,n,r,i);return s}};Y.prototype.renderInverted=function(e,t,n,r,i){var o=t.lookup(e[1]);if(!o||St(o)&&o.length===0)return this.renderTokens(e[4],t,n,r,i)};Y.prototype.indentPartial=function(e,t,n){for(var r=t.replace(/[^ \t]/g,""),i=e.split(`
22
+ Cooee SDK: v${fi.SDK_VERSION}`,console.group("%c Elevate your ecommerce experience with Cooee \u{1F680} ",e),console.log(`%c${t}`,"font-size: 13px; line-height: 1.8;"),console.groupEnd()}},sb={providers:[iv()]},lr=function(e){return e.FREE_SHIPPING="FREE_SHIPPING",e.DISCOUNT="DISCOUNT",e.FREE_AUTO_GIFT="FREE_AUTO_GIFT",e.FREE_GIFT_SELECT="FREE_GIFT_SELECT",e}(lr||{}),ab=class{gaEnabled;gaMeasurementID;pixelPush;website;currencyCount;money;storefrontToken;skipItemAttribute;currency;static get(){return window.CooeeSDK.config}update(e){return e??={},this.gaEnabled=e.gaEnabled,this.gaMeasurementID=e.gaMeasurementID,this.pixelPush=e.pixelPush,this.website=e.website??{},this.currencyCount=e.currencyCount??0,this.money=e.money,this.currency=e.currency,this.storefrontToken=e.storefrontToken,this.skipItemAttribute=e.skipItemAttribute,this}},lb=class{static format(e,t){let n=/{{\s*(\w+)\s*}}/;return t.replace(n,(r,i)=>{switch(i){case"amount":return this.formatWithDelimiters(e,2);case"amount_no_decimals":return this.formatWithDelimiters(e,0);case"amount_with_comma_separator":return this.formatWithDelimiters(e,2,".",",");case"amount_no_decimals_with_comma_separator":return this.formatWithDelimiters(e,0,".",",");case"amount_with_apostrophe_separator":return this.formatWithDelimiters(e,2,"'",".");case"amount_no_decimals_with_space_separator":return this.formatWithDelimiters(e,0," ");case"amount_with_space_separator":return this.formatWithDelimiters(e,2," ",",");case"amount_with_period_and_space_separator":return this.formatWithDelimiters(e,2," ",".");default:return r}})}static formatWithDelimiters(e,t=2,n=",",r="."){if(isNaN(e)||e==null)return"0";let i=(e/100).toFixed(t).split("."),o=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+n),s=i[1]?r+i[1]:"";return o+s}},ub=class{id;mID;vID;vName;imageURL;name;link;quantity;price;constructor(e){this.id=e.id,this.mID=e.mID,this.vID=e.vID,this.vName=e.vName,this.imageURL=e.imageURL,this.name=e.name,this.link=e.link,this.quantity=e.quantity,this.price=e.price}},cb=class{isCartDirty=!0;cartEngagements;isGoKwikPopupOpen;previewIDs;previewVariant;pageName;moneyFormat;jsLoadTime=new Date;shopCurrencyCode;inInactive=!1;lastEnterActive=new Date;lastEnterInactive=null;currentItem;_currencyCode;get currencyCode(){return this._currencyCode}set currencyCode(e){this._currencyCode=e}static get(){return window.CooeeSDK.runtimeData}isInactive(){return this.inInactive}async setInactive(){return this.inInactive?0:(this.inInactive=!0,this.lastEnterInactive=new Date,Math.max((this.lastEnterInactive.getTime()-this.lastEnterActive.getTime())/1e3,0))}setActive(){return this.inInactive?(this.inInactive=!1,this.lastEnterActive=new Date,Math.max((this.lastEnterActive.getTime()-this.lastEnterInactive.getTime())/1e3,0)):0}isFirstActive(){return this.lastEnterInactive==null}getCurrentItem(){return this.currentItem}setCurrentItem(e){this.currentItem=new ub(e)}},fb=class{static ISO_WITHOUT_MS_REGEX=new RegExp(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/);static isObject(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}static parseToAny(e){try{return JSON.parse(e.toString())}catch{}return e.toString().match(this.ISO_WITHOUT_MS_REGEX)?new Date(e.toString()):e}static async sleep(e){return new Promise(t=>setTimeout(t,e))}static hasKeys(e){return e?Object.keys(e).length>=1:!1}static convertObjectToArray(e,t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&e[r]!=null&&n.push({[r]:e[r]}),n),[])}static removeNullUndefinedKeys(e){return Object.keys(e).reduce((t,n)=>(e[n]!==null&&e[n]!==void 0&&(t[n]=e[n]),t),{})}static stringify(e){return JSON.stringify(e,function(t,n){return n===void 0?null:n})}},ua=ga(Sf());function Tc(e){return ua.default.createInstance({name:"lc",storeName:e,driver:ua.default.LOCALSTORAGE})}var xc=class{static storage;static async get(e,t){return await this.storage?.getItem(e)??t}static set(e,t){return this.storage?.setItem(e,t)}static remove(e){return this.storage?.removeItem(e)}static clear(){return this.storage?.clear()}static getForage(){return this.storage}},db=class extends xc{static storeName="usr";static{this.storage=Tc(this.storeName)}},ca=class{static ID="id";static SESSION_LANDING_PAGE="landing";static SESSION_LAST_USED_TIME="lastUsedTime";static SESSION_SYNCED="synced";static APP_CONFIG="conf";static DEVICE_ID="did";static SDK_TOKEN="token";static FIRST_SEEN="firstSeen";static SESSION_NUMBER="sessionNumber";static GA_CLIENT_ID="gacid";static CURRENT_CART="cart"},hb=class extends xc{static storeName="ses";static{this.storage=Tc(this.storeName)}},kc=class{static tz;static isValidURL(e){try{return new URL(e)}catch{return}}static isNull(e){return!e||e==="null"||e==="undefined"}static removeFromArray(e,t){let n=e.indexOf(t);return n===-1?!1:(e.splice(n,1),!0)}static formatCurrency(e,t){if(e==0&&t)return"Free";let n=cb.get(),r=ab.get(),i=n.shopCurrencyCode??r.currency,o=n.currencyCode,s=r.money?.format??n.moneyFormat,a;return s&&i===o?a=lb.format(e*100,s):(a=new Intl.NumberFormat(this.getLang(),{style:"currency",currency:o,minimumFractionDigits:0,maximumFractionDigits:2}).format(e),a=a.replace("\u20B9","Rs. "),r.money?.showCurrency&&o!=="INR"&&(a=a.concat(` ${o}`))),a}static formatNumber(e){return new Intl.NumberFormat(this.getLang(),{notation:"compact"}).format(e)}static getLang(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}static getTimezone(){if(this.tz)return this.tz;try{return this.tz=Intl.DateTimeFormat().resolvedOptions().timeZone,this.tz}catch{return""}}static documentReady(e){document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e)}static onDocumentLoaded(e){document.readyState==="complete"?e():document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e()})}static showSnackbar(e){let t=document.createElement("span");t.id="snackbar",t.innerText=e,document.body.appendChild(t),t.className="show",setTimeout(()=>{t.classList.remove("show"),document.body.removeChild(t)},3e3)}static async retrySelectorForElements(e,t=10,n=document){let r=0,i=document.querySelectorAll("nonexistent-tag");for(;r<t;){let o=Math.min(100*2**r,5e3);if(await fb.sleep(o),i=n.querySelectorAll(e),i.length)return et.debug(`Attempt ${r+1}: ${i.length} elements found with ${e}`),i;et.debug(`Attempt ${r+1}: Elements not found with ${e}. Retrying after ${o}ms.`),r++}return et.warn(`Max attempts reached. Element not found with ${e}.`),i}static async retrySelector(e,t=10,n=document){return(await this.retrySelectorForElements(e,t,n)).item(0)}static async getCartAttributes(){let e=await db.get(ca.DEVICE_ID),t=await hb.get(ca.ID,"");return[{key:"letscooee_did",value:e},{key:"letscooee_sid",value:t},{key:"__letscooee_time",value:new Date().toLocaleString()},{key:"__letscooee_via",value:"Buy Now"}]}},pb=class Qi{transform(t){return t?kc.formatCurrency(t):null}static \u0275fac=function(t){return new(t||Qi)};static \u0275pipe=$o({name:"cooeeCurrency",type:Qi,pure:!0})},gb=(()=>{class e{static entityMap={'"':"&quot;"};static escapeHtml(n){return String(n).replace(/"/g,r=>e.entityMap[r])}}return e})(),mb=Object.prototype.toString,sn=Array.isArray||function(e){return mb.call(e)==="[object Array]"};function Yo(e){return typeof e=="function"}function yb(e){return sn(e)?"array":typeof e}function di(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function fa(e,t){return e!=null&&typeof e=="object"&&t in e}function vb(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var bb=RegExp.prototype.test;function wb(e,t){return bb.call(e,t)}var Eb=/\S/;function _b(e){return!wb(Eb,e)}var Sb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function Ib(e){return String(e).replace(/[&<>"'`=\/]/g,function(t){return Sb[t]})}var Cb=/\s*/,Tb=/\s+/,da=/\s*=/,xb=/\s*\}/,kb=/#|\^|\/|>|\{|&|=|!/;function Db(e,t){if(!e)return[];var n=!1,r=[],i=[],o=[],s=!1,a=!1,l="",d=0;function h(){if(s&&!a)for(;o.length;)delete i[o.pop()];else o=[];s=!1,a=!1}var p,_,w;function E(D){if(typeof D=="string"&&(D=D.split(Tb,2)),!sn(D)||D.length!==2)throw new Error("Invalid tags: "+D);p=new RegExp(di(D[0])+"\\s*"),_=new RegExp("\\s*"+di(D[1])),w=new RegExp("\\s*"+di("}"+D[1]))}E(t||Be.tags);for(var I=new Bn(e),O,N,Q,X,Ee,ne;!I.eos();){if(O=I.pos,Q=I.scanUntil(p),Q)for(var Ye=0,ze=Q.length;Ye<ze;++Ye)X=Q.charAt(Ye),_b(X)?(o.push(i.length),l+=X):(a=!0,n=!0,l+=" "),i.push(["text",X,O,O+1]),O+=1,X===`
23
+ `&&(h(),l="",d=0,n=!1);if(!I.scan(p))break;if(s=!0,N=I.scan(kb)||"name",I.scan(Cb),N==="="?(Q=I.scanUntil(da),I.scan(da),I.scanUntil(_)):N==="{"?(Q=I.scanUntil(w),I.scan(xb),I.scanUntil(_),N="&"):Q=I.scanUntil(_),!I.scan(_))throw new Error("Unclosed tag at "+I.pos);if(N==">"?Ee=[N,Q,O,I.pos,l,d,n]:Ee=[N,Q,O,I.pos],d++,i.push(Ee),N==="#"||N==="^")r.push(Ee);else if(N==="/"){if(ne=r.pop(),!ne)throw new Error('Unopened section "'+Q+'" at '+O);if(ne[1]!==Q)throw new Error('Unclosed section "'+ne[1]+'" at '+O)}else N==="name"||N==="{"||N==="&"?a=!0:N==="="&&E(Q)}if(h(),ne=r.pop(),ne)throw new Error('Unclosed section "'+ne[1]+'" at '+I.pos);return Nb(Ob(i))}function Ob(e){for(var t=[],n,r,i=0,o=e.length;i<o;++i)n=e[i],n&&(n[0]==="text"&&r&&r[0]==="text"?(r[1]+=n[1],r[3]=n[3]):(t.push(n),r=n));return t}function Nb(e){for(var t=[],n=t,r=[],i,o,s=0,a=e.length;s<a;++s)switch(i=e[s],i[0]){case"#":case"^":n.push(i),r.push(i),n=i[4]=[];break;case"/":o=r.pop(),o[5]=i[2],n=r.length>0?r[r.length-1][4]:t;break;default:n.push(i)}return t}function Bn(e){this.string=e,this.tail=e,this.pos=0}Bn.prototype.eos=function(){return this.tail===""};Bn.prototype.scan=function(e){var t=this.tail.match(e);if(!t||t.index!==0)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};Bn.prototype.scanUntil=function(e){var t=this.tail.search(e),n;switch(t){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,t),this.tail=this.tail.substring(t)}return this.pos+=n.length,n};function tn(e,t){this.view=e,this.cache={".":this.view},this.parent=t}tn.prototype.push=function(e){return new tn(e,this)};tn.prototype.lookup=function(e){var t=this.cache,n;if(t.hasOwnProperty(e))n=t[e];else{for(var r=this,i,o,s,a=!1;r;){if(e.indexOf(".")>0)for(i=r.view,o=e.split("."),s=0;i!=null&&s<o.length;)s===o.length-1&&(a=fa(i,o[s])||vb(i,o[s])),i=i[o[s++]];else i=r.view[e],a=fa(r.view,e);if(a){n=i;break}r=r.parent}t[e]=n}return Yo(n)&&(n=n.call(this.view)),n};function xe(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}xe.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};xe.prototype.parse=function(e,t){var n=this.templateCache,r=e+":"+(t||Be.tags).join(":"),i=typeof n<"u",o=i?n.get(r):void 0;return o==null&&(o=Db(e,t),i&&n.set(r,o)),o};xe.prototype.render=function(e,t,n,r){var i=this.getConfigTags(r),o=this.parse(e,i),s=t instanceof tn?t:new tn(t,void 0);return this.renderTokens(o,s,n,e,r)};xe.prototype.renderTokens=function(e,t,n,r,i){for(var o="",s,a,l,d=0,h=e.length;d<h;++d)l=void 0,s=e[d],a=s[0],a==="#"?l=this.renderSection(s,t,n,r,i):a==="^"?l=this.renderInverted(s,t,n,r,i):a===">"?l=this.renderPartial(s,t,n,i):a==="&"?l=this.unescapedValue(s,t):a==="name"?l=this.escapedValue(s,t,i):a==="text"&&(l=this.rawValue(s)),l!==void 0&&(o+=l);return o};xe.prototype.renderSection=function(e,t,n,r,i){var o=this,s="",a=t.lookup(e[1]);function l(p){return o.render(p,t,n,i)}if(a){if(sn(a))for(var d=0,h=a.length;d<h;++d)s+=this.renderTokens(e[4],t.push(a[d]),n,r,i);else if(typeof a=="object"||typeof a=="string"||typeof a=="number")s+=this.renderTokens(e[4],t.push(a),n,r,i);else if(Yo(a)){if(typeof r!="string")throw new Error("Cannot use higher-order sections without the original template");a=a.call(t.view,r.slice(e[3],e[5]),l),a!=null&&(s+=a)}else s+=this.renderTokens(e[4],t,n,r,i);return s}};xe.prototype.renderInverted=function(e,t,n,r,i){var o=t.lookup(e[1]);if(!o||sn(o)&&o.length===0)return this.renderTokens(e[4],t,n,r,i)};xe.prototype.indentPartial=function(e,t,n){for(var r=t.replace(/[^ \t]/g,""),i=e.split(`
24
24
  `),o=0;o<i.length;o++)i[o].length&&(o>0||!n)&&(i[o]=r+i[o]);return i.join(`
25
- `)};Y.prototype.renderPartial=function(e,t,n,r){if(n){var i=this.getConfigTags(r),o=Ji(n)?n(e[1]):n[e[1]];if(o!=null){var s=e[6],l=e[5],a=e[4],u=o;l==0&&a&&(u=this.indentPartial(o,a,s));var f=this.parse(u,i);return this.renderTokens(f,t,n,u,r)}}};Y.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(n!=null)return n};Y.prototype.escapedValue=function(e,t,n){var r=this.getConfigEscape(n)||le.escape,i=t.lookup(e[1]);if(i!=null)return typeof i=="number"&&r===le.escape?String(i):r(i)};Y.prototype.rawValue=function(e){return e[1]};Y.prototype.getConfigTags=function(e){return St(e)?e:e&&typeof e=="object"?e.tags:void 0};Y.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!St(e))return e.escape};var le={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){Ut.templateCache=e},get templateCache(){return Ut.templateCache}},Ut=new Y;le.clearCache=function(){return Ut.clearCache()};le.parse=function(e,t){return Ut.parse(e,t)};le.render=function(e,t,n,r){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+Uy(e)+'" was given as the first argument for mustache#render(template, view, partials)');return Ut.render(e,t,n,r)};le.escape=Ky;le.Scanner=Jt;le.Context=bt;le.Writer=Y;var _u=le;_u.escape=Hy.escapeHtml;var rv=class ei{transform(t,n){return t?_u.render(t,Qe({},n)):null}static \u0275fac=function(t){return new(t||ei)};static \u0275pipe=Ki({name:"cooeeDynamicVariables",type:ei,pure:!0})},eo={};(function e(t,n,r,i){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),s=typeof Path2D=="function"&&typeof DOMMatrix=="function",l=function(){if(!t.OffscreenCanvas)return!1;var d=new OffscreenCanvas(1,1),h=d.getContext("2d");h.fillRect(0,0,1,1);var v=d.transferToImageBitmap();try{h.createPattern(v,"no-repeat")}catch{return!1}return!0}();function a(){}function u(d){var h=n.exports.Promise,v=h!==void 0?h:t.Promise;return typeof v=="function"?new v(d):(d(a,a),null)}var f=function(d,h){return{transform:function(v){if(d)return v;if(h.has(v))return h.get(v);var b=new OffscreenCanvas(v.width,v.height),C=b.getContext("2d");return C.drawImage(v,0,0),h.set(v,b),b},clear:function(){h.clear()}}}(l,new Map),c=function(){var d=Math.floor(16.666666666666668),h,v,b={},C=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(h=function(T){var _=Math.random();return b[_]=requestAnimationFrame(function E(D){C===D||C+d-1<D?(C=D,delete b[_],T()):b[_]=requestAnimationFrame(E)}),_},v=function(T){b[T]&&cancelAnimationFrame(b[T])}):(h=function(T){return setTimeout(T,d)},v=function(T){return clearTimeout(T)}),{frame:h,cancel:v}}(),g=function(){var d,h,v={};function b(C){function T(_,E){C.postMessage({options:_||{},callback:E})}C.init=function(_){var E=_.transferControlToOffscreen();C.postMessage({canvas:E},[E])},C.fire=function(_,E,D){if(h)return T(_,null),h;var M=Math.random().toString(36).slice(2);return h=u(function(W){function P(B){B.data.callback===M&&(delete v[M],C.removeEventListener("message",P),h=null,f.clear(),D(),W())}C.addEventListener("message",P),T(_,M),v[M]=P.bind(null,{data:{callback:M}})}),h},C.reset=function(){C.postMessage({reset:!0});for(var _ in v)v[_](),delete v[_]}}return function(){if(d)return d;if(!r&&o){var C=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
26
- `);try{d=new Worker(URL.createObjectURL(new Blob([C])))}catch(T){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",T),null}b(d)}return d}}(),p={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function m(d,h){return h?h(d):d}function y(d){return d!=null}function w(d,h,v){return m(d&&y(d[h])?d[h]:p[h],v)}function S(d){return d<0?0:Math.floor(d)}function U(d,h){return Math.floor(Math.random()*(h-d))+d}function be(d){return parseInt(d,16)}function it(d){return d.map(Ee)}function Ee(d){var h=String(d).replace(/[^0-9a-f]/gi,"");return h.length<6&&(h=h[0]+h[0]+h[1]+h[1]+h[2]+h[2]),{r:be(h.substring(0,2)),g:be(h.substring(2,4)),b:be(h.substring(4,6))}}function Ct(d){var h=w(d,"origin",Object);return h.x=w(h,"x",Number),h.y=w(h,"y",Number),h}function Kn(d){d.width=document.documentElement.clientWidth,d.height=document.documentElement.clientHeight}function ae(d){var h=d.getBoundingClientRect();d.width=h.width,d.height=h.height}function Su(d){var h=document.createElement("canvas");return h.style.position="fixed",h.style.top="0px",h.style.left="0px",h.style.pointerEvents="none",h.style.zIndex=d,h}function Cu(d,h,v,b,C,T,_,E,D){d.save(),d.translate(h,v),d.rotate(T),d.scale(b,C),d.arc(0,0,1,_,E,D),d.restore()}function Tu(d){var h=d.angle*(Math.PI/180),v=d.spread*(Math.PI/180);return{x:d.x,y:d.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:d.startVelocity*.5+Math.random()*d.startVelocity,angle2D:-h+(.5*v-Math.random()*v),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:d.color,shape:d.shape,tick:0,totalTicks:d.ticks,decay:d.decay,drift:d.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:d.gravity*3,ovalScalar:.6,scalar:d.scalar,flat:d.flat}}function xu(d,h){h.x+=Math.cos(h.angle2D)*h.velocity+h.drift,h.y+=Math.sin(h.angle2D)*h.velocity+h.gravity,h.velocity*=h.decay,h.flat?(h.wobble=0,h.wobbleX=h.x+10*h.scalar,h.wobbleY=h.y+10*h.scalar,h.tiltSin=0,h.tiltCos=0,h.random=1):(h.wobble+=h.wobbleSpeed,h.wobbleX=h.x+10*h.scalar*Math.cos(h.wobble),h.wobbleY=h.y+10*h.scalar*Math.sin(h.wobble),h.tiltAngle+=.1,h.tiltSin=Math.sin(h.tiltAngle),h.tiltCos=Math.cos(h.tiltAngle),h.random=Math.random()+2);var v=h.tick++/h.totalTicks,b=h.x+h.random*h.tiltCos,C=h.y+h.random*h.tiltSin,T=h.wobbleX+h.random*h.tiltCos,_=h.wobbleY+h.random*h.tiltSin;if(d.fillStyle="rgba("+h.color.r+", "+h.color.g+", "+h.color.b+", "+(1-v)+")",d.beginPath(),s&&h.shape.type==="path"&&typeof h.shape.path=="string"&&Array.isArray(h.shape.matrix))d.fill(Ou(h.shape.path,h.shape.matrix,h.x,h.y,Math.abs(T-b)*.1,Math.abs(_-C)*.1,Math.PI/10*h.wobble));else if(h.shape.type==="bitmap"){var E=Math.PI/10*h.wobble,D=Math.abs(T-b)*.1,M=Math.abs(_-C)*.1,W=h.shape.bitmap.width*h.scalar,P=h.shape.bitmap.height*h.scalar,B=new DOMMatrix([Math.cos(E)*D,Math.sin(E)*D,-Math.sin(E)*M,Math.cos(E)*M,h.x,h.y]);B.multiplySelf(new DOMMatrix(h.shape.matrix));var Q=d.createPattern(f.transform(h.shape.bitmap),"no-repeat");Q.setTransform(B),d.globalAlpha=1-v,d.fillStyle=Q,d.fillRect(h.x-W/2,h.y-P/2,W,P),d.globalAlpha=1}else if(h.shape==="circle")d.ellipse?d.ellipse(h.x,h.y,Math.abs(T-b)*h.ovalScalar,Math.abs(_-C)*h.ovalScalar,Math.PI/10*h.wobble,0,2*Math.PI):Cu(d,h.x,h.y,Math.abs(T-b)*h.ovalScalar,Math.abs(_-C)*h.ovalScalar,Math.PI/10*h.wobble,0,2*Math.PI);else if(h.shape==="star")for(var N=Math.PI/2*3,X=4*h.scalar,ue=8*h.scalar,ce=h.x,Ie=h.y,He=5,ge=Math.PI/He;He--;)ce=h.x+Math.cos(N)*ue,Ie=h.y+Math.sin(N)*ue,d.lineTo(ce,Ie),N+=ge,ce=h.x+Math.cos(N)*X,Ie=h.y+Math.sin(N)*X,d.lineTo(ce,Ie),N+=ge;else d.moveTo(Math.floor(h.x),Math.floor(h.y)),d.lineTo(Math.floor(h.wobbleX),Math.floor(C)),d.lineTo(Math.floor(T),Math.floor(_)),d.lineTo(Math.floor(b),Math.floor(h.wobbleY));return d.closePath(),d.fill(),h.tick<h.totalTicks}function ku(d,h,v,b,C){var T=h.slice(),_=d.getContext("2d"),E,D,M=u(function(W){function P(){E=D=null,_.clearRect(0,0,b.width,b.height),f.clear(),C(),W()}function B(){r&&!(b.width===i.width&&b.height===i.height)&&(b.width=d.width=i.width,b.height=d.height=i.height),!b.width&&!b.height&&(v(d),b.width=d.width,b.height=d.height),_.clearRect(0,0,b.width,b.height),T=T.filter(function(Q){return xu(_,Q)}),T.length?E=c.frame(B):P()}E=c.frame(B),D=P});return{addFettis:function(W){return T=T.concat(W),M},canvas:d,promise:M,reset:function(){E&&c.cancel(E),D&&D()}}}function to(d,h){var v=!d,b=!!w(h||{},"resize"),C=!1,T=w(h,"disableForReducedMotion",Boolean),_=o&&!!w(h||{},"useWorker"),E=_?g():null,D=v?Kn:ae,M=d&&E?!!d.__confetti_initialized:!1,W=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,P;function B(N,X,ue){for(var ce=w(N,"particleCount",S),Ie=w(N,"angle",Number),He=w(N,"spread",Number),ge=w(N,"startVelocity",Number),Au=w(N,"decay",Number),Mu=w(N,"gravity",Number),Ru=w(N,"drift",Number),ro=w(N,"colors",it),Vu=w(N,"ticks",Number),io=w(N,"shapes"),Pu=w(N,"scalar"),Fu=!!w(N,"flat"),oo=Ct(N),so=ce,Yn=[],Lu=d.width*oo.x,ju=d.height*oo.y;so--;)Yn.push(Tu({x:Lu,y:ju,angle:Ie,spread:He,startVelocity:ge,color:ro[so%ro.length],shape:io[U(0,io.length)],ticks:Vu,decay:Au,gravity:Mu,drift:Ru,scalar:Pu,flat:Fu}));return P?P.addFettis(Yn):(P=ku(d,Yn,D,X,ue),P.promise)}function Q(N){var X=T||w(N,"disableForReducedMotion",Boolean),ue=w(N,"zIndex",Number);if(X&&W)return u(function(ge){ge()});v&&P?d=P.canvas:v&&!d&&(d=Su(ue),document.body.appendChild(d)),b&&!M&&D(d);var ce={width:d.width,height:d.height};E&&!M&&E.init(d),M=!0,E&&(d.__confetti_initialized=!0);function Ie(){if(E){var ge={getBoundingClientRect:function(){if(!v)return d.getBoundingClientRect()}};D(ge),E.postMessage({resize:{width:ge.width,height:ge.height}});return}ce.width=ce.height=null}function He(){P=null,b&&(C=!1,t.removeEventListener("resize",Ie)),v&&d&&(document.body.contains(d)&&document.body.removeChild(d),d=null,M=!1)}return b&&!C&&(C=!0,t.addEventListener("resize",Ie,!1)),E?E.fire(N,ce,He):B(N,ce,He)}return Q.reset=function(){E&&E.reset(),P&&P.reset()},Q}var Qn;function no(){return Qn||(Qn=to(null,{useWorker:!0,resize:!0})),Qn}function Ou(d,h,v,b,C,T,_){var E=new Path2D(d),D=new Path2D;D.addPath(E,new DOMMatrix(h));var M=new Path2D;return M.addPath(D,new DOMMatrix([Math.cos(_)*C,Math.sin(_)*C,-Math.sin(_)*T,Math.cos(_)*T,v,b])),M}function Du(d){if(!s)throw new Error("path confetti are not supported in this browser");var h,v;typeof d=="string"?h=d:(h=d.path,v=d.matrix);var b=new Path2D(h),C=document.createElement("canvas"),T=C.getContext("2d");if(!v){for(var _=1e3,E=_,D=_,M=0,W=0,P,B,Q=0;Q<_;Q+=2)for(var N=0;N<_;N+=2)T.isPointInPath(b,Q,N,"nonzero")&&(E=Math.min(E,Q),D=Math.min(D,N),M=Math.max(M,Q),W=Math.max(W,N));P=M-E,B=W-D;var X=10,ue=Math.min(X/P,X/B);v=[ue,0,0,ue,-Math.round(P/2+E)*ue,-Math.round(B/2+D)*ue]}return{type:"path",path:h,matrix:v}}function Nu(d){var h,v=1,b="#000000",C='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof d=="string"?h=d:(h=d.text,v="scalar"in d?d.scalar:v,C="fontFamily"in d?d.fontFamily:C,b="color"in d?d.color:b);var T=10*v,_=""+T+"px "+C,E=new OffscreenCanvas(T,T),D=E.getContext("2d");D.font=_;var M=D.measureText(h),W=Math.ceil(M.actualBoundingBoxRight+M.actualBoundingBoxLeft),P=Math.ceil(M.actualBoundingBoxAscent+M.actualBoundingBoxDescent),B=2,Q=M.actualBoundingBoxLeft+B,N=M.actualBoundingBoxAscent+B;W+=B+B,P+=B+B,E=new OffscreenCanvas(W,P),D=E.getContext("2d"),D.font=_,D.fillStyle=b,D.fillText(h,Q,N);var X=1/v;return{type:"bitmap",bitmap:E.transferToImageBitmap(),matrix:[X,0,0,X,-W*X/2,-P*X/2]}}n.exports=function(){return no().apply(this,arguments)},n.exports.reset=function(){no().reset()},n.exports.create=to,n.exports.shapeFromPath=Du,n.exports.shapeFromText=Nu})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),eo,!1);var iv=eo.exports,dv=eo.exports.create,ov=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:["circle","circle","square"],colors:["#f51c8f","#2179e2","#d52dc8","#01a9d9","#78ff44","#fdff6a"]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}})}static async leftRight(e=100){let t=[],n=Date.now()+2e3,r=()=>{t.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<n&&e>0&&(requestAnimationFrame(r),e--)};r(),await Promise.all(t)}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})])}static async fire(e){Object.assign(e,this.DEFAULTS,e),e.particleCount=e.particleCount??this.DEFAULTS.colors.length,await iv(e)}static async realisticFire(e,t){let n={origin:{y:.7}};await this.fire(Object.assign({},n,t,{particleCount:Math.floor(200*e)}))}},sv=class ti{constructor(t){this.sanitizer=t}transform(t){return t?this.sanitizer.bypassSecurityTrustHtml(t):""}static \u0275fac=function(t){return new(t||ti)(qn(Eu,16))};static \u0275pipe=Ki({name:"safeHtml",type:ti,pure:!0})},lv=(e,t)=>t.minValue;function av(e,t){if(e&1&&(jt(0,"li",6)(1,"div",7),zt(2,"div",8),Dn(3,"cooeeCurrency"),Dn(4,"safeHtml"),zt(5,"img",9),jt(6,"div",10),bm(7),Ht()()()),e&2){let n=t.$implicit,r=ru(2);Qi("left",n.calculatedAlignment+"%"),ft(2),Tn("innerHTML",Wr(4,7,Wr(3,5,n.minValue)),wa),ft(3),Tn("src",r.getIconURL(n),Vd),ft(2),ou(n.label)}}function uv(e,t){if(e&1&&(lu(0)(1),zt(2,"div",0),Dn(3,"cooeeDynamicVariables"),Dn(4,"safeHtml"),jt(5,"div",1)(6,"ul",2)(7,"div",3),zt(8,"div",4),Ht(),hm(9,av,8,9,"li",5,lv),Ht()()),e&2){let n=ru(),r=n.calculatedState(),i=r.nextMilestone?r.nextMilestone.reachingText:r.lastMilestone.reachedText;ft(2),Tn("innerHTML",Wr(4,6,xm(3,3,i,n.localDynamicVariables)),wa),ft(6),Qi("width",r.cartValuePercentage+"%"),ft(),pm(r.milestones)}}var cv=class ni{constructor(t){this.elementRef=t,this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables={};calculatedState=Vo({});_engagementTrigger=Vo(null);set engagementTrigger(t){this._engagementTrigger.set(t)}ngOnInit(){Se.debug("Init progressbar"),this.calculateMilestonesSilently()}ngOnDestroy(){Se.debug("Destroying progressbar")}update(){this.calculateMilestonesSilently()}getIconURL(t){return t.rewardType===pn.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":t.rewardType===pn.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":t.rewardType===pn.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>Se.error(t))}async calculateMilestones(){let t=this._engagementTrigger();if(!t?.progressBarConfig?.milestones?.length){Se.warn("Milestones not available in progress bar config",t);return}let n=await this.cart.getNormalisedCart(),r=t.progressBarConfig,i=r.milestones.at(-1),o=i.minValue+Math.floor(i.minValue*5/100),s=n.originalAmount,l=Math.min(s,o),a=100-Math.abs((l-o)*100/o);Se.debug("Cart value:",s,`, percentage: ${a}%`);let u=100/r.milestones.length,f=u;for(let p of r.milestones)p.calculatedAlignment=f,f+=u;this.celebrate(t,s);let c={milestonesReady:!0,cartValuePercentage:a,milestones:r.milestones},g=r.milestones.find(p=>p.minValue>s);if(g){this.localDynamicVariables.amount_left=Iu.formatCurrency(g.minValue-s),c.nextMilestone=g,this.calculatedState.set(c);return}c.lastMilestone=i,this.calculatedState.set(c)}celebrate(t,n){let r=[...t.progressBarConfig.milestones].reverse().find(o=>o.minValue<n);if(!r)return;let i=`lc/en/${t.shortID}/${r.minValue}`;sessionStorage.getItem(i)||(sessionStorage.setItem(i,"1"),ov.realistic())}static \u0275fac=function(t){return new(t||ni)(qn(Yl))};static \u0275cmp=Ig({type:ni,selectors:[["cooee-progressbar"]],inputs:{cart:"cart",engagementTrigger:"engagementTrigger"},decls:1,vars:1,consts:[["id","lc-heading",1,"lc:font-medium","lc:text-center","lc:text-[12px]","lc-primary-text",3,"innerHTML"],[1,"lc:mt-4","lc:w-[95%]"],["id","lc-milestone-list",1,"lc:flex","lc:items-center","lc:relative","lc:text-[10px]","lc:font-medium"],["id","lc-untracked-path",1,"lc:w-full","lc:bg-gray-200","lc:h-1","lc:absolute","lc-progress-rail"],["id","lc-tracked-path",1,"lc:bg-green-700","lc:h-full","lc:block!"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",3,"left"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:justify-between","lc:absolute","lc:h-full","lc:w-[100px]"],["id","lc-milestone-value",1,"lc-milestone-value",3,"innerHTML"],["width","20","height","20","id","lc-milestone-icon","alt","milestone icon",1,"lc-milestone-icon","lc:bg-green-700",3,"src"],["id","lc-milestone-label",1,"lc="]],template:function(t,n){t&1&&eu(0,uv,11,8),t&2&&um(n.calculatedState().milestonesReady?0:-1)},dependencies:[rv,sv,jy],styles:["[_nghost-%COMP%]{display:block;padding:10px;background:linear-gradient(0deg,rgba(44,135,74,.1) 0%,transparent 100%)}.lc-milestone-icon[_ngcontent-%COMP%]{padding:5px;border-radius:1000px}.lc-progress-rail[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{transition:width .5s ease-in-out}"]})};Se.configure("CooeeWidgetSDK");(async()=>{let e=await Sy(Ry),t=ey(cv,{injector:e.injector});customElements.define("cooee-progressbar",t)})();})();
25
+ `)};xe.prototype.renderPartial=function(e,t,n,r){if(n){var i=this.getConfigTags(r),o=Yo(n)?n(e[1]):n[e[1]];if(o!=null){var s=e[6],a=e[5],l=e[4],d=o;a==0&&l&&(d=this.indentPartial(o,l,s));var h=this.parse(d,i);return this.renderTokens(h,t,n,d,r)}}};xe.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(n!=null)return n};xe.prototype.escapedValue=function(e,t,n){var r=this.getConfigEscape(n)||Be.escape,i=t.lookup(e[1]);if(i!=null)return typeof i=="number"&&r===Be.escape?String(i):r(i)};xe.prototype.rawValue=function(e){return e[1]};xe.prototype.getConfigTags=function(e){return sn(e)?e:e&&typeof e=="object"?e.tags:void 0};xe.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!sn(e))return e.escape};var Be={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){On.templateCache=e},get templateCache(){return On.templateCache}},On=new xe;Be.clearCache=function(){return On.clearCache()};Be.parse=function(e,t){return On.parse(e,t)};Be.render=function(e,t,n,r){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+yb(e)+'" was given as the first argument for mustache#render(template, view, partials)');return On.render(e,t,n,r)};Be.escape=Ib;Be.Scanner=Bn;Be.Context=tn;Be.Writer=xe;var Dc=Be;Dc.escape=gb.escapeHtml;var Rb=class Yi{transform(t,n){return t?Dc.render(t,xt({},n)):null}static \u0275fac=function(t){return new(t||Yi)};static \u0275pipe=$o({name:"cooeeDynamicVariables",type:Yi,pure:!0})},Xo={};(function e(t,n,r,i){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),s=typeof Path2D=="function"&&typeof DOMMatrix=="function",a=function(){if(!t.OffscreenCanvas)return!1;var b=new OffscreenCanvas(1,1),g=b.getContext("2d");g.fillRect(0,0,1,1);var R=b.transferToImageBitmap();try{g.createPattern(R,"no-repeat")}catch{return!1}return!0}();function l(){}function d(b){var g=n.exports.Promise,R=g!==void 0?g:t.Promise;return typeof R=="function"?new R(b):(b(l,l),null)}var h=function(b,g){return{transform:function(R){if(b)return R;if(g.has(R))return g.get(R);var V=new OffscreenCanvas(R.width,R.height),M=V.getContext("2d");return M.drawImage(R,0,0),g.set(R,V),V},clear:function(){g.clear()}}}(a,new Map),p=function(){var b=Math.floor(16.666666666666668),g,R,V={},M=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(g=function(L){var F=Math.random();return V[F]=requestAnimationFrame(function P(z){M===z||M+b-1<z?(M=z,delete V[F],L()):V[F]=requestAnimationFrame(P)}),F},R=function(L){V[L]&&cancelAnimationFrame(V[L])}):(g=function(L){return setTimeout(L,b)},R=function(L){return clearTimeout(L)}),{frame:g,cancel:R}}(),_=function(){var b,g,R={};function V(M){function L(F,P){M.postMessage({options:F||{},callback:P})}M.init=function(F){var P=F.transferControlToOffscreen();M.postMessage({canvas:P},[P])},M.fire=function(F,P,z){if(g)return L(F,null),g;var G=Math.random().toString(36).slice(2);return g=d(function(de){function ee(ce){ce.data.callback===G&&(delete R[G],M.removeEventListener("message",ee),g=null,h.clear(),z(),de())}M.addEventListener("message",ee),L(F,G),R[G]=ee.bind(null,{data:{callback:G}})}),g},M.reset=function(){M.postMessage({reset:!0});for(var F in R)R[F](),delete R[F]}}return function(){if(b)return b;if(!r&&o){var M=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
26
+ `);try{b=new Worker(URL.createObjectURL(new Blob([M])))}catch(L){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",L),null}V(b)}return b}}(),w={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function E(b,g){return g?g(b):b}function I(b){return b!=null}function O(b,g,R){return E(b&&I(b[g])?b[g]:w[g],R)}function N(b){return b<0?0:Math.floor(b)}function Q(b,g){return Math.floor(Math.random()*(g-b))+b}function X(b){return parseInt(b,16)}function Ee(b){return b.map(ne)}function ne(b){var g=String(b).replace(/[^0-9a-f]/gi,"");return g.length<6&&(g=g[0]+g[0]+g[1]+g[1]+g[2]+g[2]),{r:X(g.substring(0,2)),g:X(g.substring(2,4)),b:X(g.substring(4,6))}}function Ye(b){var g=O(b,"origin",Object);return g.x=O(g,"x",Number),g.y=O(g,"y",Number),g}function ze(b){b.width=document.documentElement.clientWidth,b.height=document.documentElement.clientHeight}function D(b){var g=b.getBoundingClientRect();b.width=g.width,b.height=g.height}function $(b){var g=document.createElement("canvas");return g.style.position="fixed",g.style.top="0px",g.style.left="0px",g.style.pointerEvents="none",g.style.zIndex=b,g}function H(b,g,R,V,M,L,F,P,z){b.save(),b.translate(g,R),b.rotate(L),b.scale(V,M),b.arc(0,0,1,F,P,z),b.restore()}function J(b){var g=b.angle*(Math.PI/180),R=b.spread*(Math.PI/180);return{x:b.x,y:b.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:b.startVelocity*.5+Math.random()*b.startVelocity,angle2D:-g+(.5*R-Math.random()*R),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:b.color,shape:b.shape,tick:0,totalTicks:b.ticks,decay:b.decay,drift:b.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:b.gravity*3,ovalScalar:.6,scalar:b.scalar,flat:b.flat}}function ge(b,g){g.x+=Math.cos(g.angle2D)*g.velocity+g.drift,g.y+=Math.sin(g.angle2D)*g.velocity+g.gravity,g.velocity*=g.decay,g.flat?(g.wobble=0,g.wobbleX=g.x+10*g.scalar,g.wobbleY=g.y+10*g.scalar,g.tiltSin=0,g.tiltCos=0,g.random=1):(g.wobble+=g.wobbleSpeed,g.wobbleX=g.x+10*g.scalar*Math.cos(g.wobble),g.wobbleY=g.y+10*g.scalar*Math.sin(g.wobble),g.tiltAngle+=.1,g.tiltSin=Math.sin(g.tiltAngle),g.tiltCos=Math.cos(g.tiltAngle),g.random=Math.random()+2);var R=g.tick++/g.totalTicks,V=g.x+g.random*g.tiltCos,M=g.y+g.random*g.tiltSin,L=g.wobbleX+g.random*g.tiltCos,F=g.wobbleY+g.random*g.tiltSin;if(b.fillStyle="rgba("+g.color.r+", "+g.color.g+", "+g.color.b+", "+(1-R)+")",b.beginPath(),s&&g.shape.type==="path"&&typeof g.shape.path=="string"&&Array.isArray(g.shape.matrix))b.fill(yt(g.shape.path,g.shape.matrix,g.x,g.y,Math.abs(L-V)*.1,Math.abs(F-M)*.1,Math.PI/10*g.wobble));else if(g.shape.type==="bitmap"){var P=Math.PI/10*g.wobble,z=Math.abs(L-V)*.1,G=Math.abs(F-M)*.1,de=g.shape.bitmap.width*g.scalar,ee=g.shape.bitmap.height*g.scalar,ce=new DOMMatrix([Math.cos(P)*z,Math.sin(P)*z,-Math.sin(P)*G,Math.cos(P)*G,g.x,g.y]);ce.multiplySelf(new DOMMatrix(g.shape.matrix));var be=b.createPattern(h.transform(g.shape.bitmap),"no-repeat");be.setTransform(ce),b.globalAlpha=1-R,b.fillStyle=be,b.fillRect(g.x-de/2,g.y-ee/2,de,ee),b.globalAlpha=1}else if(g.shape==="circle")b.ellipse?b.ellipse(g.x,g.y,Math.abs(L-V)*g.ovalScalar,Math.abs(F-M)*g.ovalScalar,Math.PI/10*g.wobble,0,2*Math.PI):H(b,g.x,g.y,Math.abs(L-V)*g.ovalScalar,Math.abs(F-M)*g.ovalScalar,Math.PI/10*g.wobble,0,2*Math.PI);else if(g.shape==="star")for(var Z=Math.PI/2*3,Se=4*g.scalar,Oe=8*g.scalar,Ne=g.x,ve=g.y,Xe=5,Re=Math.PI/Xe;Xe--;)Ne=g.x+Math.cos(Z)*Oe,ve=g.y+Math.sin(Z)*Oe,b.lineTo(Ne,ve),Z+=Re,Ne=g.x+Math.cos(Z)*Se,ve=g.y+Math.sin(Z)*Se,b.lineTo(Ne,ve),Z+=Re;else b.moveTo(Math.floor(g.x),Math.floor(g.y)),b.lineTo(Math.floor(g.wobbleX),Math.floor(M)),b.lineTo(Math.floor(L),Math.floor(F)),b.lineTo(Math.floor(V),Math.floor(g.wobbleY));return b.closePath(),b.fill(),g.tick<g.totalTicks}function Ce(b,g,R,V,M){var L=g.slice(),F=b.getContext("2d"),P,z,G=d(function(de){function ee(){P=z=null,F.clearRect(0,0,V.width,V.height),h.clear(),M(),de()}function ce(){r&&!(V.width===i.width&&V.height===i.height)&&(V.width=b.width=i.width,V.height=b.height=i.height),!V.width&&!V.height&&(R(b),V.width=b.width,V.height=b.height),F.clearRect(0,0,V.width,V.height),L=L.filter(function(be){return ge(F,be)}),L.length?P=p.frame(ce):ee()}P=p.frame(ce),z=ee});return{addFettis:function(de){return L=L.concat(de),G},canvas:b,promise:G,reset:function(){P&&p.cancel(P),z&&z()}}}function Te(b,g){var R=!b,V=!!O(g||{},"resize"),M=!1,L=O(g,"disableForReducedMotion",Boolean),F=o&&!!O(g||{},"useWorker"),P=F?_():null,z=R?ze:D,G=b&&P?!!b.__confetti_initialized:!1,de=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,ee;function ce(Z,Se,Oe){for(var Ne=O(Z,"particleCount",N),ve=O(Z,"angle",Number),Xe=O(Z,"spread",Number),Re=O(Z,"startVelocity",Number),Pt=O(Z,"decay",Number),ln=O(Z,"gravity",Number),un=O(Z,"drift",Number),Ft=O(Z,"colors",Ee),zn=O(Z,"ticks",Number),cn=O(Z,"shapes"),Un=O(Z,"scalar"),Zn=!!O(Z,"flat"),fn=Ye(Z),dn=Ne,jt=[],Wn=b.width*fn.x,qn=b.height*fn.y;dn--;)jt.push(J({x:Wn,y:qn,angle:ve,spread:Xe,startVelocity:Re,color:Ft[dn%Ft.length],shape:cn[Q(0,cn.length)],ticks:zn,decay:Pt,gravity:ln,drift:un,scalar:Un,flat:Zn}));return ee?ee.addFettis(jt):(ee=Ce(b,jt,z,Se,Oe),ee.promise)}function be(Z){var Se=L||O(Z,"disableForReducedMotion",Boolean),Oe=O(Z,"zIndex",Number);if(Se&&de)return d(function(Re){Re()});R&&ee?b=ee.canvas:R&&!b&&(b=$(Oe),document.body.appendChild(b)),V&&!G&&z(b);var Ne={width:b.width,height:b.height};P&&!G&&P.init(b),G=!0,P&&(b.__confetti_initialized=!0);function ve(){if(P){var Re={getBoundingClientRect:function(){if(!R)return b.getBoundingClientRect()}};z(Re),P.postMessage({resize:{width:Re.width,height:Re.height}});return}Ne.width=Ne.height=null}function Xe(){ee=null,V&&(M=!1,t.removeEventListener("resize",ve)),R&&b&&(document.body.contains(b)&&document.body.removeChild(b),b=null,G=!1)}return V&&!M&&(M=!0,t.addEventListener("resize",ve,!1)),P?P.fire(Z,Ne,Xe):ce(Z,Ne,Xe)}return be.reset=function(){P&&P.reset(),ee&&ee.reset()},be}var _e;function Fe(){return _e||(_e=Te(null,{useWorker:!0,resize:!0})),_e}function yt(b,g,R,V,M,L,F){var P=new Path2D(b),z=new Path2D;z.addPath(P,new DOMMatrix(g));var G=new Path2D;return G.addPath(z,new DOMMatrix([Math.cos(F)*M,Math.sin(F)*M,-Math.sin(F)*L,Math.cos(F)*L,R,V])),G}function Vt(b){if(!s)throw new Error("path confetti are not supported in this browser");var g,R;typeof b=="string"?g=b:(g=b.path,R=b.matrix);var V=new Path2D(g),M=document.createElement("canvas"),L=M.getContext("2d");if(!R){for(var F=1e3,P=F,z=F,G=0,de=0,ee,ce,be=0;be<F;be+=2)for(var Z=0;Z<F;Z+=2)L.isPointInPath(V,be,Z,"nonzero")&&(P=Math.min(P,be),z=Math.min(z,Z),G=Math.max(G,be),de=Math.max(de,Z));ee=G-P,ce=de-z;var Se=10,Oe=Math.min(Se/ee,Se/ce);R=[Oe,0,0,Oe,-Math.round(ee/2+P)*Oe,-Math.round(ce/2+z)*Oe]}return{type:"path",path:g,matrix:R}}function an(b){var g,R=1,V="#000000",M='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof b=="string"?g=b:(g=b.text,R="scalar"in b?b.scalar:R,M="fontFamily"in b?b.fontFamily:M,V="color"in b?b.color:V);var L=10*R,F=""+L+"px "+M,P=new OffscreenCanvas(L,L),z=P.getContext("2d");z.font=F;var G=z.measureText(g),de=Math.ceil(G.actualBoundingBoxRight+G.actualBoundingBoxLeft),ee=Math.ceil(G.actualBoundingBoxAscent+G.actualBoundingBoxDescent),ce=2,be=G.actualBoundingBoxLeft+ce,Z=G.actualBoundingBoxAscent+ce;de+=ce+ce,ee+=ce+ce,P=new OffscreenCanvas(de,ee),z=P.getContext("2d"),z.font=F,z.fillStyle=V,z.fillText(g,be,Z);var Se=1/R;return{type:"bitmap",bitmap:P.transferToImageBitmap(),matrix:[Se,0,0,Se,-de*Se/2,-ee*Se/2]}}n.exports=function(){return Fe().apply(this,arguments)},n.exports.reset=function(){Fe().reset()},n.exports.create=Te,n.exports.shapeFromPath=Vt,n.exports.shapeFromText=an})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),Xo,!1);var Ab=Xo.exports,zb=Xo.exports.create,Mb=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:["circle","circle","square"],colors:["#f51c8f","#2179e2","#d52dc8","#01a9d9","#78ff44","#fdff6a"]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}})}static async leftRight(e=100){let t=[],n=Date.now()+2e3,r=()=>{t.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<n&&e>0&&(requestAnimationFrame(r),e--)};r(),await Promise.all(t)}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})])}static async fire(e){Object.assign(e,this.DEFAULTS,e),e.particleCount=e.particleCount??this.DEFAULTS.colors.length,await Ab(e)}static async realisticFire(e,t){let n={origin:{y:.7}};await this.fire(Object.assign({},n,t,{particleCount:Math.floor(200*e)}))}},Vb=class Xi{constructor(t){this.sanitizer=t}transform(t){return t?this.sanitizer.bypassSecurityTrustHtml(t):""}static \u0275fac=function(t){return new(t||Xi)(zr(Cc,16))};static \u0275pipe=$o({name:"safeHtml",type:Xi,pure:!0})},Pb=(e,t)=>t.minValue;function Fb(e,t){if(e&1&&(xn(0,"li",6)(1,"div",7),Dn(2,"div",8),Ir(3,"cooeeCurrency"),Ir(4,"safeHtml"),Dn(5,"img",9),xn(6,"div",10),qy(7),kn()()()),e&2){let n=t.$implicit,r=ac(2);Go("left",n.calculatedAlignment+"%"),qt(2),wr("innerHTML",Zi(4,7,Zi(3,5,n.minValue)),Su),qt(3),wr("src",r.getIconURL(n),ag),qt(2),uc(n.label)}}function jb(e,t){if(e&1&&(fc(0)(1),Dn(2,"div",0),Ir(3,"cooeeDynamicVariables"),Ir(4,"safeHtml"),xn(5,"div",1)(6,"ul",2)(7,"div",3),Dn(8,"div",4),kn(),jy(9,Fb,8,9,"li",5,Pb),kn()()),e&2){let n=ac(),r=n.calculatedState(),i=r.nextMilestone?r.nextMilestone.reachingText:r.lastMilestone.reachedText;qt(2),wr("innerHTML",Zi(4,6,Jy(3,3,i,n.localDynamicVariables)),Su),qt(6),Go("width",r.cartValuePercentage+"%"),qt(),Hy(r.milestones)}}var Lb=class Ji{constructor(t){this.elementRef=t,this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables={};calculatedState=Vs({});_engagementTrigger=Vs(null);set engagementTrigger(t){this._engagementTrigger.set(t)}ngOnInit(){et.debug("Init progressbar"),this.calculateMilestonesSilently()}ngOnDestroy(){et.debug("Destroying progressbar")}update(){this.calculateMilestonesSilently()}getIconURL(t){return t.rewardType===lr.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":t.rewardType===lr.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":t.rewardType===lr.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>et.error(t))}async calculateMilestones(){let t=this._engagementTrigger();if(!t?.progressBarConfig?.milestones?.length){et.warn("Milestones not available in progress bar config",t);return}let n=await this.cart.getNormalisedCart(),r=t.progressBarConfig,i=r.milestones.at(-1),o=i.minValue+Math.floor(i.minValue*5/100),s=n.originalAmount,a=Math.min(s,o),l=100-Math.abs((a-o)*100/o);et.debug("Cart value:",s,`, percentage: ${l}%`);let d=100/r.milestones.length,h=d;for(let w of r.milestones)w.calculatedAlignment=h,h+=d;this.celebrate(t,s);let p={milestonesReady:!0,cartValuePercentage:l,milestones:r.milestones},_=r.milestones.find(w=>w.minValue>s);if(_){this.localDynamicVariables.amount_left=kc.formatCurrency(_.minValue-s),p.nextMilestone=_,this.calculatedState.set(p);return}p.lastMilestone=i,this.calculatedState.set(p)}celebrate(t,n){let r=[...t.progressBarConfig.milestones].reverse().find(o=>o.minValue<n);if(!r)return;let i=`lc/en/${t.shortID}/${r.minValue}`;sessionStorage.getItem(i)||(sessionStorage.setItem(i,"1"),Mb.realistic())}static \u0275fac=function(t){return new(t||Ji)(zr(tu))};static \u0275cmp=Gm({type:Ji,selectors:[["cooee-progressbar"]],inputs:{cart:"cart",engagementTrigger:"engagementTrigger"},decls:1,vars:1,consts:[["id","lc-heading",1,"lc:font-medium","lc:text-center","lc:text-[12px]","lc-primary-text",3,"innerHTML"],[1,"lc:mt-4","lc:w-[95%]"],["id","lc-milestone-list",1,"lc:flex","lc:items-center","lc:relative","lc:text-[10px]","lc:font-medium"],["id","lc-untracked-path",1,"lc:w-full","lc:bg-gray-200","lc:h-1","lc:absolute","lc-progress-rail"],["id","lc-tracked-path",1,"lc:bg-green-700","lc:h-full","lc:block!"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",3,"left"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:justify-between","lc:absolute","lc:h-full","lc:w-[100px]"],["id","lc-milestone-value",1,"lc-milestone-value",3,"innerHTML"],["width","20","height","20","id","lc-milestone-icon","alt","milestone icon",1,"lc-milestone-icon","lc:bg-green-700",3,"src"],["id","lc-milestone-label",1,"lc="]],template:function(t,n){t&1&&ic(0,jb,11,8),t&2&&Vy(n.calculatedState().milestonesReady?0:-1)},dependencies:[Rb,Vb,pb],styles:["[_nghost-%COMP%]{display:block;padding:10px;background:linear-gradient(0deg,rgba(44,135,74,.1) 0%,transparent 100%)}.lc-milestone-icon[_ngcontent-%COMP%]{padding:5px;border-radius:1000px}.lc-progress-rail[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{transition:width .5s ease-in-out}"]})};et.configure("CooeeWidgetSDK");(async()=>{let e=await Qv(sb),t=Tv(Lb,{injector:e.injector});customElements.define("cooee-progressbar",t)})();})();