@letscooee/web-sdk 9.3.25 → 9.3.27

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 pf=Object.create,to=Object.defineProperty,gf=Object.defineProperties,mf=Object.getOwnPropertyDescriptor,yf=Object.getOwnPropertyDescriptors,vf=Object.getOwnPropertyNames,us=Object.getOwnPropertySymbols,bf=Object.getPrototypeOf,ha=Object.prototype.hasOwnProperty,wf=Object.prototype.propertyIsEnumerable,cs=(e,t,n)=>t in e?to(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)&&cs(e,n,t[n]);if(us)for(var n of us(t))wf.call(t,n)&&cs(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&&to(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?to(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 A(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=A);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 R=0;R<x.length;R++){var B=x[R];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 R=x.result;if(R){var B=R.value;g(B)&&(B=b(B));var ie=u(B,R.key,T++);ie!==void 0?m(ie):R.continue()}else m()},x.onerror=function(){v(x.error)}}catch(R){v(R)}})}).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 R=T.objectStore(y._dbInfo.storeName);k===null&&(k=void 0);var B=R.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 R=T.result;if(!R){m(null);return}u===0||x?m(R.key):(x=!0,R.advance(u))},T.onerror=function(){v(T.error)}}catch(R){v(R)}})}).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 R=0;R<T.length;R++){var B=T[R];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 R=x[T];R._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~",Ae=/^~~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",qn="fl32",Wn="fl64",es=ln+un.length,ts=Object.prototype.toString;function ns(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=ts.call(u)),u&&(f==="[object ArrayBuffer]"||u.buffer&&ts.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+=qn:f==="[object Float64Array]"?m+=Wn: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(es),f=u.substring(ln,es),y;if(f===Ft&&Ae.test(c)){var m=c.match(Ae);y=m[1],c=c.substring(m[0].length)}var v=ns(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 qn:return new Float32Array(v);case Wn:return new Float64Array(v);default:throw new Error("Unkown type: "+f)}}var Zr={serialize:Oc,deserialize:Nc,stringToBuffer:ns,bufferToString:Ur};function rs(u,c,f,y){u.executeSql("CREATE TABLE IF NOT EXISTS "+c.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],f,y)}function Ac(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){rs(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):rs(k,c,function(){k.executeSql(f,y,m,v)},v)},v):v(S,C)},v)}function Rc(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,R=T.length,B=0;B<R;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 is(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,R){R?C(R):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(is.apply(m,[u,k,f,y-1]));return}C(B)}})})}).catch(C)});return I(v,f),v}function Vc(u,c,f){return is.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=[],R=0,B=v.storeNames.length;R<B;R++)T.push(x(v.storeNames[R]));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:Ac,_support:Ne(),iterate:Mc,getItem:Rc,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 os(u,c){var f=u.name+"/";return u.storeName!==c.storeName&&(f+=u.storeName+"/"),f}function qc(){var u="_localforage_support_test";try{return localStorage.setItem(u,!0),localStorage.removeItem(u),!1}catch{return!0}}function Wc(){return!qc()||localStorage.length>0}function $c(u){var c=this,f={};if(u)for(var y in u)f[y]=u[y];return f.keyPrefix=os(u,c._defaultConfig),Wc()?(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 R=localStorage.getItem(T);if(R&&(R=m.serializer.deserialize(R)),R=u(R,T.substring(S),k++),R!==void 0)return R}}});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(R){(R.name==="QuotaExceededError"||R.name==="NS_ERROR_DOM_QUOTA_REACHED")&&C(R),C(R)}})})});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(os(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},ss=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"},hn={},as={},Lt={INDEXEDDB:Oe,WEBSQL:Uc,LOCALSTORAGE:rf},af=[Lt.INDEXEDDB._driver,Lt.WEBSQL._driver,Lt.LOCALSTORAGE._driver],$n=["dropInstance"],qr=["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 Wr(){for(var u=1;u<arguments.length;u++){var c=arguments[u];if(c)for(var f in c)c.hasOwnProperty(f)&&(ss(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=Wr({},lf),this._config=Wr({},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=qr.concat("_initStorage"),T=0,R=x.length;T<R;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"),ls=E.reject(hf);return I(ls,arguments[arguments.length-1]),ls}},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,as[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;ss(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 R=0;function B(){for(;R<T.length;){var ie=T[R];return R++,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(R){m._driver=R._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!!as[c]},u.prototype._extend=function(c){Wr(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=qr.length;c<f;c++)uf(this,qr[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,no=1,ct=Symbol("SIGNAL");function K(e){let t=me;return me=e,t}function Cf(){return me}var ro={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(){no++}function kf(e){if(!(bn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===no)){if(!e.producerMustRecompute(e)&&!va(e)){fs(e);return}e.producerRecomputeValue(e),fs(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 fs(e){e.dirty=!1,e.lastCleanEpoch=no}function ds(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 Af(e){Sa=e}var Rf=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({},ro),{equal:If,value:void 0,kind:"signal"});function Ff(e){e.version++,xf(),ma(e),Rf?.()}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:
1
+ "use strict";(()=>{var op=Object.create,ks=Object.defineProperty,sp=Object.defineProperties,ap=Object.getOwnPropertyDescriptor,lp=Object.getOwnPropertyDescriptors,up=Object.getOwnPropertyNames,Ka=Object.getOwnPropertySymbols,cp=Object.getPrototypeOf,Mu=Object.prototype.hasOwnProperty,fp=Object.prototype.propertyIsEnumerable,Qa=(e,t,n)=>t in e?ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C=(e,t)=>{for(var n in t||={})Mu.call(t,n)&&Qa(e,n,t[n]);if(Ka)for(var n of Ka(t))fp.call(t,n)&&Qa(e,n,t[n]);return e},de=(e,t)=>sp(e,lp(t)),Mr=(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')}),Pu=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of up(t))!Mu.call(e,i)&&i!==n&&ks(e,i,{get:()=>t[i],enumerable:!(r=ap(t,i))||r.enumerable});return e},ju=(e,t,n)=>(n=e!=null?op(cp(e)):{},dp(t||!e||!e.__esModule?ks(n,"default",{value:e,enumerable:!0}):n,e)),hp=Pu((e,t)=>{"use strict";(function(n){"use strict";var r={};r.VERSION="1.6.1";var i,o={},s=function(d,v){return function(){return v.apply(d,arguments)}},a=function(){var d=arguments,v=d[0],b,w;for(w=1;w<d.length;w++)for(b in d[w])!(b in v)&&d[w].hasOwnProperty(b)&&(v[b]=d[w][b]);return v},l=function(d,v){return{value:d,name:v}};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 c=function(d){this.context=d,this.setLevel(d.filterLevel),this.log=this.info};c.prototype={setLevel:function(d){d&&"value"in d&&(this.context.filterLevel=d)},getLevel:function(){return this.context.filterLevel},enabledFor:function(d){var v=this.context.filterLevel;return d.value>=v.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(d){typeof d=="string"&&d.length>0&&this.invoke(r.TIME,[d,"start"])},timeEnd:function(d){typeof d=="string"&&d.length>0&&this.invoke(r.TIME,[d,"end"])},invoke:function(d,v){i&&this.enabledFor(d)&&i(v,a({level:d},this.context))}};var f=new c({filterLevel:r.OFF});(function(){var d=r;d.enabledFor=s(f,f.enabledFor),d.trace=s(f,f.trace),d.debug=s(f,f.debug),d.time=s(f,f.time),d.timeEnd=s(f,f.timeEnd),d.info=s(f,f.info),d.warn=s(f,f.warn),d.error=s(f,f.error),d.log=d.info})(),r.setHandler=function(d){i=d},r.setLevel=function(d){f.setLevel(d);for(var v in o)o.hasOwnProperty(v)&&o[v].setLevel(d)},r.getLevel=function(){return f.getLevel()},r.get=function(d){return o[d]||(o[d]=new c(a({name:d},f.context)))},r.createDefaultHandler=function(d){d=d||{},d.formatter=d.formatter||function(w,I){I.name&&w.unshift("["+I.name+"]")};var v={},b=function(w,I){Function.prototype.apply.call(w,console,I)};return typeof console>"u"?function(){}:function(w,I){w=Array.prototype.slice.call(w);var O=console.log,A;I.level===r.TIME?(A=(I.name?"["+I.name+"] ":"")+w[0],w[1]==="start"?console.time?console.time(A):v[A]=new Date().getTime():console.timeEnd?console.timeEnd(A):b(O,[A+": "+(new Date().getTime()-v[A])+"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),d.formatter(w,I),b(O,w))}},r.useDefaults=function(d){r.setLevel(d&&d.defaultLevel||r.DEBUG),r.setHandler(r.createDefaultHandler(d))},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)}),pp=Pu((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 c(v,b){if(!a[v]){if(!s[v]){var w=typeof Mr=="function"&&Mr;if(!b&&w)return w(v,!0);if(f)return f(v,!0);var I=new Error("Cannot find module '"+v+"'");throw I.code="MODULE_NOT_FOUND",I}var O=a[v]={exports:{}};s[v][0].call(O.exports,function(A){var J=s[v][1][A];return c(J||A)},O,O.exports,o,s,a,l)}return a[v].exports}for(var f=typeof Mr=="function"&&Mr,d=0;d<l.length;d++)c(l[d]);return c}({1:[function(o,s,a){(function(l){"use strict";var c=l.MutationObserver||l.WebKitMutationObserver,f;if(c){var d=0,v=new c(A),b=l.document.createTextNode("");v.observe(b,{characterData:!0}),f=function(){b.data=d=++d%2}}else if(!l.setImmediate&&typeof l.MessageChannel<"u"){var w=new l.MessageChannel;w.port1.onmessage=A,f=function(){w.port2.postMessage(0)}}else"document"in l&&"onreadystatechange"in l.document.createElement("script")?f=function(){var te=l.document.createElement("script");te.onreadystatechange=function(){A(),te.onreadystatechange=null,te.parentNode.removeChild(te),te=null},l.document.documentElement.appendChild(te)}:f=function(){setTimeout(A,0)};var I,O=[];function A(){I=!0;for(var te,ke,oe=O.length;oe;){for(ke=O,O=[],te=-1;++te<oe;)ke[te]();oe=O.length}I=!1}s.exports=J;function J(te){O.push(te)===1&&!I&&f()}}).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 c(){}var f={},d=["REJECTED"],v=["FULFILLED"],b=["PENDING"];s.exports=w;function w(N){if(typeof N!="function")throw new TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,N!==c&&J(this,N)}w.prototype.catch=function(N){return this.then(null,N)},w.prototype.then=function(N,K){if(typeof N!="function"&&this.state===v||typeof K!="function"&&this.state===d)return this;var $=new this.constructor(c);if(this.state!==b){var ne=this.state===v?N:K;O($,ne,this.outcome)}else this.queue.push(new I($,N,K));return $};function I(N,K,$){this.promise=N,typeof K=="function"&&(this.onFulfilled=K,this.callFulfilled=this.otherCallFulfilled),typeof $=="function"&&(this.onRejected=$,this.callRejected=this.otherCallRejected)}I.prototype.callFulfilled=function(N){f.resolve(this.promise,N)},I.prototype.otherCallFulfilled=function(N){O(this.promise,this.onFulfilled,N)},I.prototype.callRejected=function(N){f.reject(this.promise,N)},I.prototype.otherCallRejected=function(N){O(this.promise,this.onRejected,N)};function O(N,K,$){l(function(){var ne;try{ne=K($)}catch(be){return f.reject(N,be)}ne===N?f.reject(N,new TypeError("Cannot resolve promise with itself")):f.resolve(N,ne)})}f.resolve=function(N,K){var $=te(A,K);if($.status==="error")return f.reject(N,$.value);var ne=$.value;if(ne)J(N,ne);else{N.state=v,N.outcome=K;for(var be=-1,Re=N.queue.length;++be<Re;)N.queue[be].callFulfilled(K)}return N},f.reject=function(N,K){N.state=d,N.outcome=K;for(var $=-1,ne=N.queue.length;++$<ne;)N.queue[$].callRejected(K);return N};function A(N){var K=N&&N.then;if(N&&(typeof N=="object"||typeof N=="function")&&typeof K=="function")return function(){K.apply(N,arguments)}}function J(N,K){var $=!1;function ne(De){$||($=!0,f.reject(N,De))}function be(De){$||($=!0,f.resolve(N,De))}function Re(){K(be,ne)}var Me=te(Re);Me.status==="error"&&ne(Me.value)}function te(N,K){var $={};try{$.value=N(K),$.status="success"}catch(ne){$.status="error",$.value=ne}return $}w.resolve=ke;function ke(N){return N instanceof this?N:f.resolve(new this(c),N)}w.reject=oe;function oe(N){var K=new this(c);return f.reject(K,N)}w.all=ft;function ft(N){var K=this;if(Object.prototype.toString.call(N)!=="[object Array]")return this.reject(new TypeError("must be an array"));var $=N.length,ne=!1;if(!$)return this.resolve([]);for(var be=new Array($),Re=0,Me=-1,De=new this(c);++Me<$;)Ge(N[Me],Me);return De;function Ge(Lt,cn){K.resolve(Lt).then(Hn,function(E){ne||(ne=!0,f.reject(De,E))});function Hn(E){be[cn]=E,++Re===$&&!ne&&(ne=!0,f.resolve(De,be))}}}w.race=Je;function Je(N){var K=this;if(Object.prototype.toString.call(N)!=="[object Array]")return this.reject(new TypeError("must be an array"));var $=N.length,ne=!1;if(!$)return this.resolve([]);for(var be=-1,Re=new this(c);++be<$;)Me(N[be]);return Re;function Me(De){K.resolve(De).then(function(Ge){ne||(ne=!0,f.resolve(Re,Ge))},function(Ge){ne||(ne=!0,f.reject(Re,Ge))})}}},{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 c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function f(){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 d=f();function v(){try{if(!d||!d.open)return!1;var u=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),h=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!u||h)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function b(u,h){u=u||[],h=h||{};try{return new Blob(u,h)}catch(_){if(_.name!=="TypeError")throw _;for(var p=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,y=new p,g=0;g<u.length;g+=1)y.append(u[g]);return y.getBlob(h.type)}}typeof Promise>"u"&&o(3);var w=Promise;function I(u,h){h&&u.then(function(p){h(null,p)},function(p){h(p)})}function O(u,h,p){typeof h=="function"&&u.then(h),typeof p=="function"&&u.catch(p)}function A(u){return typeof u!="string"&&(console.warn(u+" used as a key, but it is not a string."),u=String(u)),u}function J(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var te="local-forage-detect-blob-support",ke=void 0,oe={},ft=Object.prototype.toString,Je="readonly",N="readwrite";function K(u){for(var h=u.length,p=new ArrayBuffer(h),y=new Uint8Array(p),g=0;g<h;g++)y[g]=u.charCodeAt(g);return p}function $(u){return new w(function(h){var p=u.transaction(te,N),y=b([""]);p.objectStore(te).put(y,"key"),p.onabort=function(g){g.preventDefault(),g.stopPropagation(),h(!1)},p.oncomplete=function(){var g=navigator.userAgent.match(/Chrome\/(\d+)/),_=navigator.userAgent.match(/Edge\//);h(_||!g||parseInt(g[1],10)>=43)}}).catch(function(){return!1})}function ne(u){return typeof ke=="boolean"?w.resolve(ke):$(u).then(function(h){return ke=h,ke})}function be(u){var h=oe[u.name],p={};p.promise=new w(function(y,g){p.resolve=y,p.reject=g}),h.deferredOperations.push(p),h.dbReady?h.dbReady=h.dbReady.then(function(){return p.promise}):h.dbReady=p.promise}function Re(u){var h=oe[u.name],p=h.deferredOperations.pop();if(p)return p.resolve(),p.promise}function Me(u,h){var p=oe[u.name],y=p.deferredOperations.pop();if(y)return y.reject(h),y.promise}function De(u,h){return new w(function(p,y){if(oe[u.name]=oe[u.name]||H(),u.db)if(h)be(u),u.db.close();else return p(u.db);var g=[u.name];h&&g.push(u.version);var _=d.open.apply(d,g);h&&(_.onupgradeneeded=function(S){var x=_.result;try{x.createObjectStore(u.storeName),S.oldVersion<=1&&x.createObjectStore(te)}catch(D){if(D.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 D}}),_.onerror=function(S){S.preventDefault(),y(_.error)},_.onsuccess=function(){var S=_.result;S.onversionchange=function(x){x.target.close()},p(S),Re(u)}})}function Ge(u){return De(u,!1)}function Lt(u){return De(u,!0)}function cn(u,h){if(!u.db)return!0;var p=!u.db.objectStoreNames.contains(u.storeName),y=u.version<u.db.version,g=u.version>u.db.version;if(y&&(u.version!==h&&console.warn('The database "'+u.name+`" can't be downgraded from version `+u.db.version+" to version "+u.version+"."),u.version=u.db.version),g||p){if(p){var _=u.db.version+1;_>u.version&&(u.version=_)}return!0}return!1}function Hn(u){return new w(function(h,p){var y=new FileReader;y.onerror=p,y.onloadend=function(g){var _=btoa(g.target.result||"");h({__local_forage_encoded_blob:!0,data:_,type:u.type})},y.readAsBinaryString(u)})}function E(u){var h=K(atob(u.data));return b([h],{type:u.type})}function m(u){return u&&u.__local_forage_encoded_blob}function R(u){var h=this,p=h._initReady().then(function(){var y=oe[h._dbInfo.name];if(y&&y.dbReady)return y.dbReady});return O(p,u,u),p}function j(u){be(u);for(var h=oe[u.name],p=h.forages,y=0;y<p.length;y++){var g=p[y];g._dbInfo.db&&(g._dbInfo.db.close(),g._dbInfo.db=null)}return u.db=null,Ge(u).then(function(_){return u.db=_,cn(u)?Lt(u):_}).then(function(_){u.db=h.db=_;for(var S=0;S<p.length;S++)p[S]._dbInfo.db=_}).catch(function(_){throw Me(u,_),_})}function P(u,h,p,y){y===void 0&&(y=1);try{var g=u.db.transaction(u.storeName,h);p(null,g)}catch(_){if(y>0&&(!u.db||_.name==="InvalidStateError"||_.name==="NotFoundError"))return w.resolve().then(function(){if(!u.db||_.name==="NotFoundError"&&!u.db.objectStoreNames.contains(u.storeName)&&u.version<=u.db.version)return u.db&&(u.version=u.db.version+1),Lt(u)}).then(function(){return j(u).then(function(){P(u,h,p,y-1)})}).catch(p);p(_)}}function H(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function F(u){var h=this,p={db:null};if(u)for(var y in u)p[y]=u[y];var g=oe[p.name];g||(g=H(),oe[p.name]=g),g.forages.push(h),h._initReady||(h._initReady=h.ready,h.ready=R);var _=[];function S(){return w.resolve()}for(var x=0;x<g.forages.length;x++){var D=g.forages[x];D!==h&&_.push(D._initReady().catch(S))}var k=g.forages.slice(0);return w.all(_).then(function(){return p.db=g.db,Ge(p)}).then(function(T){return p.db=T,cn(p,h._defaultConfig.version)?Lt(p):T}).then(function(T){p.db=g.db=T,h._dbInfo=p;for(var M=0;M<k.length;M++){var B=k[M];B!==h&&(B._dbInfo.db=p.db,B._dbInfo.version=p.version)}})}function L(u,h){var p=this;u=A(u);var y=new w(function(g,_){p.ready().then(function(){P(p._dbInfo,Je,function(S,x){if(S)return _(S);try{var D=x.objectStore(p._dbInfo.storeName),k=D.get(u);k.onsuccess=function(){var T=k.result;T===void 0&&(T=null),m(T)&&(T=E(T)),g(T)},k.onerror=function(){_(k.error)}}catch(T){_(T)}})}).catch(_)});return I(y,h),y}function z(u,h){var p=this,y=new w(function(g,_){p.ready().then(function(){P(p._dbInfo,Je,function(S,x){if(S)return _(S);try{var D=x.objectStore(p._dbInfo.storeName),k=D.openCursor(),T=1;k.onsuccess=function(){var M=k.result;if(M){var B=M.value;m(B)&&(B=E(B));var ae=u(B,M.key,T++);ae!==void 0?g(ae):M.continue()}else g()},k.onerror=function(){_(k.error)}}catch(M){_(M)}})}).catch(_)});return I(y,h),y}function Q(u,h,p){var y=this;u=A(u);var g=new w(function(_,S){var x;y.ready().then(function(){return x=y._dbInfo,ft.call(h)==="[object Blob]"?ne(x.db).then(function(D){return D?h:Hn(h)}):h}).then(function(D){P(y._dbInfo,N,function(k,T){if(k)return S(k);try{var M=T.objectStore(y._dbInfo.storeName);D===null&&(D=void 0);var B=M.put(D,u);T.oncomplete=function(){D===void 0&&(D=null),_(D)},T.onabort=T.onerror=function(){var ae=B.error?B.error:B.transaction.error;S(ae)}}catch(ae){S(ae)}})}).catch(S)});return I(g,p),g}function ve(u,h){var p=this;u=A(u);var y=new w(function(g,_){p.ready().then(function(){P(p._dbInfo,N,function(S,x){if(S)return _(S);try{var D=x.objectStore(p._dbInfo.storeName),k=D.delete(u);x.oncomplete=function(){g()},x.onerror=function(){_(k.error)},x.onabort=function(){var T=k.error?k.error:k.transaction.error;_(T)}}catch(T){_(T)}})}).catch(_)});return I(y,h),y}function re(u){var h=this,p=new w(function(y,g){h.ready().then(function(){P(h._dbInfo,N,function(_,S){if(_)return g(_);try{var x=S.objectStore(h._dbInfo.storeName),D=x.clear();S.oncomplete=function(){y()},S.onabort=S.onerror=function(){var k=D.error?D.error:D.transaction.error;g(k)}}catch(k){g(k)}})}).catch(g)});return I(p,u),p}function pe(u){var h=this,p=new w(function(y,g){h.ready().then(function(){P(h._dbInfo,Je,function(_,S){if(_)return g(_);try{var x=S.objectStore(h._dbInfo.storeName),D=x.count();D.onsuccess=function(){y(D.result)},D.onerror=function(){g(D.error)}}catch(k){g(k)}})}).catch(g)});return I(p,u),p}function Ie(u,h){var p=this,y=new w(function(g,_){if(u<0){g(null);return}p.ready().then(function(){P(p._dbInfo,Je,function(S,x){if(S)return _(S);try{var D=x.objectStore(p._dbInfo.storeName),k=!1,T=D.openKeyCursor();T.onsuccess=function(){var M=T.result;if(!M){g(null);return}u===0||k?g(M.key):(k=!0,M.advance(u))},T.onerror=function(){_(T.error)}}catch(M){_(M)}})}).catch(_)});return I(y,h),y}function G(u){var h=this,p=new w(function(y,g){h.ready().then(function(){P(h._dbInfo,Je,function(_,S){if(_)return g(_);try{var x=S.objectStore(h._dbInfo.storeName),D=x.openKeyCursor(),k=[];D.onsuccess=function(){var T=D.result;if(!T){y(k);return}k.push(T.key),T.continue()},D.onerror=function(){g(D.error)}}catch(T){g(T)}})}).catch(g)});return I(p,u),p}function Ne(u,h){h=J.apply(this,arguments);var p=this.config();u=typeof u!="function"&&u||{},u.name||(u.name=u.name||p.name,u.storeName=u.storeName||p.storeName);var y=this,g;if(!u.name)g=w.reject("Invalid arguments");else{var _=u.name===p.name&&y._dbInfo.db,S=_?w.resolve(y._dbInfo.db):Ge(u).then(function(x){var D=oe[u.name],k=D.forages;D.db=x;for(var T=0;T<k.length;T++)k[T]._dbInfo.db=x;return x});u.storeName?g=S.then(function(x){if(x.objectStoreNames.contains(u.storeName)){var D=x.version+1;be(u);var k=oe[u.name],T=k.forages;x.close();for(var M=0;M<T.length;M++){var B=T[M];B._dbInfo.db=null,B._dbInfo.version=D}var ae=new w(function(ie,ye){var he=d.open(u.name,D);he.onerror=function(We){var Ji=he.result;Ji.close(),ye(We)},he.onupgradeneeded=function(){var We=he.result;We.deleteObjectStore(u.storeName)},he.onsuccess=function(){var We=he.result;We.close(),ie(We)}});return ae.then(function(ie){k.db=ie;for(var ye=0;ye<T.length;ye++){var he=T[ye];he._dbInfo.db=ie,Re(he._dbInfo)}}).catch(function(ie){throw(Me(u,ie)||w.resolve()).catch(function(){}),ie})}}):g=S.then(function(x){be(u);var D=oe[u.name],k=D.forages;x.close();for(var T=0;T<k.length;T++){var M=k[T];M._dbInfo.db=null}var B=new w(function(ae,ie){var ye=d.deleteDatabase(u.name);ye.onerror=function(){var he=ye.result;he&&he.close(),ie(ye.error)},ye.onblocked=function(){console.warn('dropInstance blocked for database "'+u.name+'" until all open connections are closed')},ye.onsuccess=function(){var he=ye.result;he&&he.close(),ae(he)}});return B.then(function(ae){D.db=ae;for(var ie=0;ie<k.length;ie++){var ye=k[ie];Re(ye._dbInfo)}}).catch(function(ae){throw(Me(u,ae)||w.resolve()).catch(function(){}),ae})})}return I(g,h),g}var Fe={_driver:"asyncStorage",_initStorage:F,_support:v(),iterate:z,getItem:L,setItem:Q,removeItem:ve,clear:re,length:pe,key:Ie,keys:G,dropInstance:Ne};function Ve(){return typeof openDatabase=="function"}var Se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dt="~~local_forage_type~",He=/^~~local_forage_type~([^~]+)~/,fn="__lfsc__:",Un=fn.length,$n="arbf",dn="blob",kr="si08",Bn="ui08",Dr="uic8",Nr="si16",zn="si32",qn="ur16",hn="ui32",Or="fl32",Ar="fl64",Ha=Un+$n.length,Ua=Object.prototype.toString;function $a(u){var h=u.length*.75,p=u.length,y,g=0,_,S,x,D;u[u.length-1]==="="&&(h--,u[u.length-2]==="="&&h--);var k=new ArrayBuffer(h),T=new Uint8Array(k);for(y=0;y<p;y+=4)_=Se.indexOf(u[y]),S=Se.indexOf(u[y+1]),x=Se.indexOf(u[y+2]),D=Se.indexOf(u[y+3]),T[g++]=_<<2|S>>4,T[g++]=(S&15)<<4|x>>2,T[g++]=(x&3)<<6|D&63;return k}function Zi(u){var h=new Uint8Array(u),p="",y;for(y=0;y<h.length;y+=3)p+=Se[h[y]>>2],p+=Se[(h[y]&3)<<4|h[y+1]>>4],p+=Se[(h[y+1]&15)<<2|h[y+2]>>6],p+=Se[h[y+2]&63];return h.length%3===2?p=p.substring(0,p.length-1)+"=":h.length%3===1&&(p=p.substring(0,p.length-2)+"=="),p}function Eh(u,h){var p="";if(u&&(p=Ua.call(u)),u&&(p==="[object ArrayBuffer]"||u.buffer&&Ua.call(u.buffer)==="[object ArrayBuffer]")){var y,g=fn;u instanceof ArrayBuffer?(y=u,g+=$n):(y=u.buffer,p==="[object Int8Array]"?g+=kr:p==="[object Uint8Array]"?g+=Bn:p==="[object Uint8ClampedArray]"?g+=Dr:p==="[object Int16Array]"?g+=Nr:p==="[object Uint16Array]"?g+=qn:p==="[object Int32Array]"?g+=zn:p==="[object Uint32Array]"?g+=hn:p==="[object Float32Array]"?g+=Or:p==="[object Float64Array]"?g+=Ar:h(new Error("Failed to get type for BinaryArray"))),h(g+Zi(y))}else if(p==="[object Blob]"){var _=new FileReader;_.onload=function(){var S=dt+u.type+"~"+Zi(this.result);h(fn+dn+S)},_.readAsArrayBuffer(u)}else try{h(JSON.stringify(u))}catch(S){console.error("Couldn't convert value into a JSON string: ",u),h(null,S)}}function Sh(u){if(u.substring(0,Un)!==fn)return JSON.parse(u);var h=u.substring(Ha),p=u.substring(Un,Ha),y;if(p===dn&&He.test(h)){var g=h.match(He);y=g[1],h=h.substring(g[0].length)}var _=$a(h);switch(p){case $n:return _;case dn:return b([_],{type:y});case kr:return new Int8Array(_);case Bn:return new Uint8Array(_);case Dr:return new Uint8ClampedArray(_);case Nr:return new Int16Array(_);case qn:return new Uint16Array(_);case zn:return new Int32Array(_);case hn:return new Uint32Array(_);case Or:return new Float32Array(_);case Ar:return new Float64Array(_);default:throw new Error("Unkown type: "+p)}}var Ki={serialize:Eh,deserialize:Sh,stringToBuffer:$a,bufferToString:Zi};function Ba(u,h,p,y){u.executeSql("CREATE TABLE IF NOT EXISTS "+h.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],p,y)}function Ih(u){var h=this,p={db:null};if(u)for(var y in u)p[y]=typeof u[y]!="string"?u[y].toString():u[y];var g=new w(function(_,S){try{p.db=openDatabase(p.name,String(p.version),p.description,p.size)}catch(x){return S(x)}p.db.transaction(function(x){Ba(x,p,function(){h._dbInfo=p,_()},function(D,k){S(k)})},S)});return p.serializer=Ki,g}function Et(u,h,p,y,g,_){u.executeSql(p,y,g,function(S,x){x.code===x.SYNTAX_ERR?S.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[h.storeName],function(D,k){k.rows.length?_(D,x):Ba(D,h,function(){D.executeSql(p,y,g,_)},_)},_):_(S,x)},_)}function Ch(u,h){var p=this;u=A(u);var y=new w(function(g,_){p.ready().then(function(){var S=p._dbInfo;S.db.transaction(function(x){Et(x,S,"SELECT * FROM "+S.storeName+" WHERE key = ? LIMIT 1",[u],function(D,k){var T=k.rows.length?k.rows.item(0).value:null;T&&(T=S.serializer.deserialize(T)),g(T)},function(D,k){_(k)})})}).catch(_)});return I(y,h),y}function xh(u,h){var p=this,y=new w(function(g,_){p.ready().then(function(){var S=p._dbInfo;S.db.transaction(function(x){Et(x,S,"SELECT * FROM "+S.storeName,[],function(D,k){for(var T=k.rows,M=T.length,B=0;B<M;B++){var ae=T.item(B),ie=ae.value;if(ie&&(ie=S.serializer.deserialize(ie)),ie=u(ie,ae.key,B+1),ie!==void 0){g(ie);return}}g()},function(D,k){_(k)})})}).catch(_)});return I(y,h),y}function za(u,h,p,y){var g=this;u=A(u);var _=new w(function(S,x){g.ready().then(function(){h===void 0&&(h=null);var D=h,k=g._dbInfo;k.serializer.serialize(h,function(T,M){M?x(M):k.db.transaction(function(B){Et(B,k,"INSERT OR REPLACE INTO "+k.storeName+" (key, value) VALUES (?, ?)",[u,T],function(){S(D)},function(ae,ie){x(ie)})},function(B){if(B.code===B.QUOTA_ERR){if(y>0){S(za.apply(g,[u,D,p,y-1]));return}x(B)}})})}).catch(x)});return I(_,p),_}function Th(u,h,p){return za.apply(this,[u,h,p,1])}function kh(u,h){var p=this;u=A(u);var y=new w(function(g,_){p.ready().then(function(){var S=p._dbInfo;S.db.transaction(function(x){Et(x,S,"DELETE FROM "+S.storeName+" WHERE key = ?",[u],function(){g()},function(D,k){_(k)})})}).catch(_)});return I(y,h),y}function Dh(u){var h=this,p=new w(function(y,g){h.ready().then(function(){var _=h._dbInfo;_.db.transaction(function(S){Et(S,_,"DELETE FROM "+_.storeName,[],function(){y()},function(x,D){g(D)})})}).catch(g)});return I(p,u),p}function Nh(u){var h=this,p=new w(function(y,g){h.ready().then(function(){var _=h._dbInfo;_.db.transaction(function(S){Et(S,_,"SELECT COUNT(key) as c FROM "+_.storeName,[],function(x,D){var k=D.rows.item(0).c;y(k)},function(x,D){g(D)})})}).catch(g)});return I(p,u),p}function Oh(u,h){var p=this,y=new w(function(g,_){p.ready().then(function(){var S=p._dbInfo;S.db.transaction(function(x){Et(x,S,"SELECT key FROM "+S.storeName+" WHERE id = ? LIMIT 1",[u+1],function(D,k){var T=k.rows.length?k.rows.item(0).key:null;g(T)},function(D,k){_(k)})})}).catch(_)});return I(y,h),y}function Ah(u){var h=this,p=new w(function(y,g){h.ready().then(function(){var _=h._dbInfo;_.db.transaction(function(S){Et(S,_,"SELECT key FROM "+_.storeName,[],function(x,D){for(var k=[],T=0;T<D.rows.length;T++)k.push(D.rows.item(T).key);y(k)},function(x,D){g(D)})})}).catch(g)});return I(p,u),p}function Rh(u){return new w(function(h,p){u.transaction(function(y){y.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(g,_){for(var S=[],x=0;x<_.rows.length;x++)S.push(_.rows.item(x).name);h({db:u,storeNames:S})},function(g,_){p(_)})},function(y){p(y)})})}function Mh(u,h){h=J.apply(this,arguments);var p=this.config();u=typeof u!="function"&&u||{},u.name||(u.name=u.name||p.name,u.storeName=u.storeName||p.storeName);var y=this,g;return u.name?g=new w(function(_){var S;u.name===p.name?S=y._dbInfo.db:S=openDatabase(u.name,"","",0),u.storeName?_({db:S,storeNames:[u.storeName]}):_(Rh(S))}).then(function(_){return new w(function(S,x){_.db.transaction(function(D){function k(ae){return new w(function(ie,ye){D.executeSql("DROP TABLE IF EXISTS "+ae,[],function(){ie()},function(he,We){ye(We)})})}for(var T=[],M=0,B=_.storeNames.length;M<B;M++)T.push(k(_.storeNames[M]));w.all(T).then(function(){S()}).catch(function(ae){x(ae)})},function(D){x(D)})})}):g=w.reject("Invalid arguments"),I(g,h),g}var Ph={_driver:"webSQLStorage",_initStorage:Ih,_support:Ve(),iterate:xh,getItem:Ch,setItem:Th,removeItem:kh,clear:Dh,length:Nh,key:Oh,keys:Ah,dropInstance:Mh};function jh(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function qa(u,h){var p=u.name+"/";return u.storeName!==h.storeName&&(p+=u.storeName+"/"),p}function Lh(){var u="_localforage_support_test";try{return localStorage.setItem(u,!0),localStorage.removeItem(u),!1}catch{return!0}}function Fh(){return!Lh()||localStorage.length>0}function Vh(u){var h=this,p={};if(u)for(var y in u)p[y]=u[y];return p.keyPrefix=qa(u,h._defaultConfig),Fh()?(h._dbInfo=p,p.serializer=Ki,w.resolve()):w.reject()}function Hh(u){var h=this,p=h.ready().then(function(){for(var y=h._dbInfo.keyPrefix,g=localStorage.length-1;g>=0;g--){var _=localStorage.key(g);_.indexOf(y)===0&&localStorage.removeItem(_)}});return I(p,u),p}function Uh(u,h){var p=this;u=A(u);var y=p.ready().then(function(){var g=p._dbInfo,_=localStorage.getItem(g.keyPrefix+u);return _&&(_=g.serializer.deserialize(_)),_});return I(y,h),y}function $h(u,h){var p=this,y=p.ready().then(function(){for(var g=p._dbInfo,_=g.keyPrefix,S=_.length,x=localStorage.length,D=1,k=0;k<x;k++){var T=localStorage.key(k);if(T.indexOf(_)===0){var M=localStorage.getItem(T);if(M&&(M=g.serializer.deserialize(M)),M=u(M,T.substring(S),D++),M!==void 0)return M}}});return I(y,h),y}function Bh(u,h){var p=this,y=p.ready().then(function(){var g=p._dbInfo,_;try{_=localStorage.key(u)}catch{_=null}return _&&(_=_.substring(g.keyPrefix.length)),_});return I(y,h),y}function zh(u){var h=this,p=h.ready().then(function(){for(var y=h._dbInfo,g=localStorage.length,_=[],S=0;S<g;S++){var x=localStorage.key(S);x.indexOf(y.keyPrefix)===0&&_.push(x.substring(y.keyPrefix.length))}return _});return I(p,u),p}function qh(u){var h=this,p=h.keys().then(function(y){return y.length});return I(p,u),p}function Gh(u,h){var p=this;u=A(u);var y=p.ready().then(function(){var g=p._dbInfo;localStorage.removeItem(g.keyPrefix+u)});return I(y,h),y}function Wh(u,h,p){var y=this;u=A(u);var g=y.ready().then(function(){h===void 0&&(h=null);var _=h;return new w(function(S,x){var D=y._dbInfo;D.serializer.serialize(h,function(k,T){if(T)x(T);else try{localStorage.setItem(D.keyPrefix+u,k),S(_)}catch(M){(M.name==="QuotaExceededError"||M.name==="NS_ERROR_DOM_QUOTA_REACHED")&&x(M),x(M)}})})});return I(g,p),g}function Zh(u,h){if(h=J.apply(this,arguments),u=typeof u!="function"&&u||{},!u.name){var p=this.config();u.name=u.name||p.name,u.storeName=u.storeName||p.storeName}var y=this,g;return u.name?g=new w(function(_){u.storeName?_(qa(u,y._defaultConfig)):_(u.name+"/")}).then(function(_){for(var S=localStorage.length-1;S>=0;S--){var x=localStorage.key(S);x.indexOf(_)===0&&localStorage.removeItem(x)}}):g=w.reject("Invalid arguments"),I(g,h),g}var Kh={_driver:"localStorageWrapper",_initStorage:Vh,_support:jh(),iterate:$h,getItem:Uh,setItem:Wh,removeItem:Gh,clear:Hh,length:qh,key:Bh,keys:zh,dropInstance:Zh},Qh=function(u,h){return u===h||typeof u=="number"&&typeof h=="number"&&isNaN(u)&&isNaN(h)},Xh=function(u,h){for(var p=u.length,y=0;y<p;){if(Qh(u[y],h))return!0;y++}return!1},Ga=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"},Gn={},Wa={},pn={INDEXEDDB:Fe,WEBSQL:Ph,LOCALSTORAGE:Kh},Jh=[pn.INDEXEDDB._driver,pn.WEBSQL._driver,pn.LOCALSTORAGE._driver],Rr=["dropInstance"],Qi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Rr),Yh={description:"",driver:Jh.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ep(u,h){u[h]=function(){var p=arguments;return u.ready().then(function(){return u[h].apply(u,p)})}}function Xi(){for(var u=1;u<arguments.length;u++){var h=arguments[u];if(h)for(var p in h)h.hasOwnProperty(p)&&(Ga(h[p])?arguments[0][p]=h[p].slice():arguments[0][p]=h[p])}return arguments[0]}var tp=function(){function u(h){c(this,u);for(var p in pn)if(pn.hasOwnProperty(p)){var y=pn[p],g=y._driver;this[p]=g,Gn[g]||this.defineDriver(y)}this._defaultConfig=Xi({},Yh),this._config=Xi({},this._defaultConfig,h),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(h){if((typeof h>"u"?"undefined":l(h))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var p in h){if(p==="storeName"&&(h[p]=h[p].replace(/\W/g,"_")),p==="version"&&typeof h[p]!="number")return new Error("Database version must be a number.");this._config[p]=h[p]}return"driver"in h&&h.driver?this.setDriver(this._config.driver):!0}else return typeof h=="string"?this._config[h]:this._config},u.prototype.defineDriver=function(h,p,y){var g=new w(function(_,S){try{var x=h._driver,D=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!h._driver){S(D);return}for(var k=Qi.concat("_initStorage"),T=0,M=k.length;T<M;T++){var B=k[T],ae=!Xh(Rr,B);if((ae||h[B])&&typeof h[B]!="function"){S(D);return}}var ie=function(){for(var he=function(rp){return function(){var ip=new Error("Method "+rp+" is not implemented by the current driver"),Za=w.reject(ip);return I(Za,arguments[arguments.length-1]),Za}},We=0,Ji=Rr.length;We<Ji;We++){var Yi=Rr[We];h[Yi]||(h[Yi]=he(Yi))}};ie();var ye=function(he){Gn[x]&&console.info("Redefining LocalForage driver: "+x),Gn[x]=h,Wa[x]=he,_()};"_support"in h?h._support&&typeof h._support=="function"?h._support().then(ye,S):ye(!!h._support):ye(!0)}catch(he){S(he)}});return O(g,p,y),g},u.prototype.driver=function(){return this._driver||null},u.prototype.getDriver=function(h,p,y){var g=Gn[h]?w.resolve(Gn[h]):w.reject(new Error("Driver not found."));return O(g,p,y),g},u.prototype.getSerializer=function(h){var p=w.resolve(Ki);return O(p,h),p},u.prototype.ready=function(h){var p=this,y=p._driverSet.then(function(){return p._ready===null&&(p._ready=p._initDriver()),p._ready});return O(y,h,h),y},u.prototype.setDriver=function(h,p,y){var g=this;Ga(h)||(h=[h]);var _=this._getSupportedDrivers(h);function S(){g._config.driver=g.driver()}function x(T){return g._extend(T),S(),g._ready=g._initStorage(g._config),g._ready}function D(T){return function(){var M=0;function B(){for(;M<T.length;){var ae=T[M];return M++,g._dbInfo=null,g._ready=null,g.getDriver(ae).then(x).catch(B)}S();var ie=new Error("No available storage method found.");return g._driverSet=w.reject(ie),g._driverSet}return B()}}var k=this._driverSet!==null?this._driverSet.catch(function(){return w.resolve()}):w.resolve();return this._driverSet=k.then(function(){var T=_[0];return g._dbInfo=null,g._ready=null,g.getDriver(T).then(function(M){g._driver=M._driver,S(),g._wrapLibraryMethodsWithReady(),g._initDriver=D(_)})}).catch(function(){S();var T=new Error("No available storage method found.");return g._driverSet=w.reject(T),g._driverSet}),O(this._driverSet,p,y),this._driverSet},u.prototype.supports=function(h){return!!Wa[h]},u.prototype._extend=function(h){Xi(this,h)},u.prototype._getSupportedDrivers=function(h){for(var p=[],y=0,g=h.length;y<g;y++){var _=h[y];this.supports(_)&&p.push(_)}return p},u.prototype._wrapLibraryMethodsWithReady=function(){for(var h=0,p=Qi.length;h<p;h++)ep(this,Qi[h])},u.prototype.createInstance=function(h){return new u(h)},u}(),np=new tp;s.exports=np},{3:3}]},{},[4])(4)})});function mp(e,t){return Object.is(e,t)}var we=null,Wr=!1,Ds=1,kt=Symbol("SIGNAL");function X(e){let t=we;return we=e,t}function gp(){return we}var Ns={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 vp(e){if(Wr)throw new Error("");if(we===null)return;we.consumerOnSignalRead(e);let t=we.nextProducerIndex++;if(xi(we),t<we.producerNode.length&&we.producerNode[t]!==e&&er(we)){let n=we.producerNode[t];Ci(n,we.producerIndexOfThis[t])}we.producerNode[t]!==e&&(we.producerNode[t]=e,we.producerIndexOfThis[t]=er(we)?Uu(e,we,t):0),we.producerLastReadVersion[t]=e.version}function yp(){Ds++}function _p(e){if(!(er(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ds)){if(!e.producerMustRecompute(e)&&!Vu(e)){Xa(e);return}e.producerRecomputeValue(e),Xa(e)}}function Lu(e){if(e.liveConsumerNode===void 0)return;let t=Wr;Wr=!0;try{for(let n of e.liveConsumerNode)n.dirty||bp(n)}finally{Wr=t}}function Fu(){return we?.consumerAllowSignalWrites!==!1}function bp(e){e.dirty=!0,Lu(e),e.consumerMarkedDirty?.(e)}function Xa(e){e.dirty=!1,e.lastCleanEpoch=Ds}function Ja(e){return e&&(e.nextProducerIndex=0),X(e)}function wp(e,t){if(X(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(er(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Ci(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Vu(e){xi(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(_p(n),r!==n.version))return!0}return!1}function Hu(e){if(xi(e),er(e))for(let t=0;t<e.producerNode.length;t++)Ci(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 Uu(e,t,n){if($u(e),e.liveConsumerNode.length===0&&Bu(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Uu(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Ci(e,t){if($u(e),e.liveConsumerNode.length===1&&Bu(e))for(let r=0;r<e.producerNode.length;r++)Ci(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];xi(i),i.producerIndexOfThis[r]=t}}function er(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function xi(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function $u(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Bu(e){return e.producerNode!==void 0}function Ep(){throw new Error}var zu=Ep;function qu(e){zu(e)}function Sp(e){zu=e}var Ip=null;function Cp(e){let t=Object.create(Tp);t.value=e;let n=()=>(vp(t),t.value);return n[kt]=t,n}function Gu(e,t){Fu()||qu(e),e.equal(e.value,t)||(e.value=t,kp(e))}function xp(e,t){Fu()||qu(e),Gu(e,t(e.value))}var Tp=de(C({},Ns),{equal:mp,value:void 0,kind:"signal"});function kp(e){e.version++,yp(),Lu(e),Ip?.()}function Ee(e){return typeof e=="function"}function Wu(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 eo=Wu(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 pi(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var nt=class gi{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{hs(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)hs(t);else{if(t instanceof gi){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)&&pi(n,t)}remove(t){let{_finalizers:n}=this;n&&pi(n,t),t instanceof gi&&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 hs(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 ps(){}var jf=io("C",void 0,void 0);function Lf(e){return io("E",void 0,e)}function Hf(e){return io("N",e,void 0)}function io(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 oo=class extends nt{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,ka(e)&&e.add(this)):this.destination=qf}static create(e,t,n){return new mi(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)}}},mi=class extends oo{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 qf={closed:!0,next:ps,error:Zf,complete:ps},so=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Oa(e){return e}function Wf(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 mi(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=gs(r),new r((i,o)=>{let s=new mi({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)}[so](){return this}pipe(...n){return Wf(n)(this)}toPromise(n){return n=gs(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 gs(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 oo||$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 oo{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"}),An=(()=>{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 ms(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,pi(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 ms(t,n),e})(),ms=class extends An{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 An{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 An{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 Aa(e){return e[e.length-1]}function nd(e){return td(Aa(e))?e.pop():void 0}function rd(e,t){return typeof Aa(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 ys(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 ys=="function"?ys(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 Ra=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ma(e){return ye(e?.then)}function Va(e){return ye(e[so])}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(Ra(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[so]();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 qa(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 qa(Ha(e),t)}function bd(e,t){if(e!=null){if(Va(e))return pd(e,t);if(Ra(e))return md(e,t);if(Ma(e))return gd(e,t);if(Pa(e))return qa(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 Wa(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)=>Wa((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 qe(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(qe).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 vs(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 qe(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 ao(e){return bs(e,Qa)||bs(e,Ya)}function bs(e,t){return e.hasOwnProperty(t)?e[t]:null}function Dd(e){return e&&(e[Qa]||e[Ya])||null}function ws(e){return e&&(e.hasOwnProperty(Es)||e.hasOwnProperty(Od))?e[Es]:null}var Qa=ae({\u0275prov:ae}),Es=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}),Ad=ae({\u0275dir:ae}),Rd=ae({\u0275pipe:ae}),_s=ae({\u0275fac:ae}),vn=ae({__NG_ELEMENT_ID__:ae}),Ss=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 lo(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||{}),yi;function Ja(){return yi}function ke(e){let t=yi;return yi=e,t}function el(e,t,n){let r=ao(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;lo(e,"Injector")}var Pd={},wn=Pd,Fd="__NG_DI_FLAG__",fr="ngTempTokenPath",jd="ngTokenPath",Ld=/\n/gm,Hd="\u0275",Is="__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 vi(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[Is]&&i.unshift(t[Is]),e.message=qd(`
5
- `+e.message,i,n,r),e[jd]=i,e[fr]=null,e}function qd(e,t,n,r=null){e=e&&e.charAt(0)===`
6
- `&&e.charAt(1)==Hd?e.slice(2):e;let i=qe(t);if(Array.isArray(t))i=t.map(qe).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):qe(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Ld,`
7
- `)}`}function Gt(e,t){return e.hasOwnProperty(_s)?e[_s]:null}function uo(e,t){e.forEach(n=>Array.isArray(n)?uo(n,t):t(n))}function Wd(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=Rn(e,t);return r>=0?e[r|1]=n:(r=~r,$d(e,r,t,n)),r}function Xr(e,t){let n=Rn(e,t);if(n>=0)return e[n|1]}function Rn(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 ${qe(e)}!`);throw n.name="NullInjectorError",n}return t}};function Dr(e){return e[Nd]||null}function ol(e){return e[Ad]||null}function sl(e){return e[Rd]||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 uo(t,s=>{let a=s;bi(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];co(i,o=>{t(o,r)})}}function bi(e,t,n,r){if(e=Ze(e),!e)return!1;let i=null,o=ws(e),s=!o&&Dr(e);if(!o&&!s){let l=e.ngModule;if(o=ws(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)bi(d,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let d;try{uo(o.imports,h=>{bi(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;co(l,h=>{t(h,d)})}}else return!1;return i!==e&&e.providers!==void 0}function co(e,t){for(let n of e)Xa(n)&&(n=n.\u0275providers),Array.isArray(n)?co(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 wi(e){return typeof e=="function"}var fo=new se(""),nr={},nh={},Jr;function ho(){return Jr===void 0&&(Jr=new il),Jr}var En=class{},po=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,_i(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(fo);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(Ss))return e[Ss](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)&&ao(e);l&&this.injectableDefInScope(l)?a=Ht(Ei(e),nr):a=null,this.records.set(e,a)}if(a!=null)return this.hydrate(e,a)}let s=n&U.Self?ho():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(qe(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(qe(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=Ze(e);let t=wi(e)?e:Ze(e&&e.provide),n=ih(e);if(!wi(e)&&e.multi===!0){let r=this.records.get(t);r||(r=Ht(void 0,nr,!0),r.factory=()=>vi(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 Ei(e){let t=ao(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(wi(e)){let i=Ze(e);return Gt(i)||Ei(i)}else if(ul(e))r=()=>Ze(e.useValue);else if(th(e))r=()=>e.useFactory(...vi(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(...vi(e.deps));else return Gt(i)||Ei(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 _i(e,t){for(let n of e)Array.isArray(n)?_i(n,t):n&&Xa(n)?_i(n.\u0275providers,t):t(n)}function cl(e,t){e instanceof po&&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,q=1,j=2,He=3,We=4,Ke=5,_n=6,Cs=7,we=8,Sn=9,rt=10,Pe=11,In=12,Ts=13,rn=14,Ge=15,Qt=16,Bt=17,Yt=18,Or=19,fl=20,dt=21,ei=22,hr=23,Re=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 At(e,t){return ht(t[e.index])}function go(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 mo(e){return(e[j]&128)===128}function Xt(e,t){return t==null?null:e[t]}function wl(e){e[Bt]=0}function yo(e){e[j]&1024||(e[j]|=1024,mo(e)&&Rr(e))}function bh(e,t){for(;e>0;)t=t[rn],e--;return t}function Ar(e){return!!(e[j]&9216||e[Re]?.dirty)}function Si(e){e[rt].changeDetectionScheduler?.notify(8),e[j]&64&&(e[j]|=1024),Ar(e)&&Rr(e)}function Rr(e){e[rt].changeDetectionScheduler?.notify(0);let t=It(e);for(;t!==null&&!(t[j]&8192||(t[j]|=8192,!mo(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 W={lFrame:Ol(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Ii=!1;function Eh(){return W.lFrame.elementDepthCount}function _h(){W.lFrame.elementDepthCount++}function Sh(){W.lFrame.elementDepthCount--}function _l(){return W.bindingsEnabled}function Ih(){return W.skipHydrationRootTNode!==null}function Ch(e){return W.skipHydrationRootTNode===e}function Th(){W.skipHydrationRootTNode=null}function fe(){return W.lFrame.lView}function Qe(){return W.lFrame.tView}function Vn(){let e=Sl();for(;e!==null&&e.type===64;)e=e.parent;return e}function Sl(){return W.lFrame.currentTNode}function xh(){let e=W.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function on(e,t){let n=W.lFrame;n.currentTNode=e,n.isParent=t}function Il(){return W.lFrame.isParent}function kh(){W.lFrame.isParent=!1}function Cl(){return Ii}function xs(e){let t=Ii;return Ii=e,t}function Tl(){let e=W.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Dh(e){return W.lFrame.bindingIndex=e}function Mr(){return W.lFrame.bindingIndex++}function Oh(e){let t=W.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Nh(){return W.lFrame.inI18n}function Ah(e,t){let n=W.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ci(t)}function Rh(){return W.lFrame.currentDirectiveIndex}function Ci(e){W.lFrame.currentDirectiveIndex=e}function Mh(e){let t=W.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function xl(e){W.lFrame.currentQueryIndex=e}function Vh(e){let t=e[q];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=W.lFrame=Dl();return r.currentTNode=t,r.lView=e,!0}function vo(e){let t=Dl(),n=e[q];W.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=W.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=W.lFrame;return W.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Al=Nl;function bo(){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(W.lFrame.contextLView=bh(e,W.lFrame.contextLView))[we]}function Rt(){return W.lFrame.selectedIndex}function Ct(e){W.lFrame.selectedIndex=e}function Fh(){let e=W.lFrame;return go(e.tView,e.selectedIndex)}function jh(){return W.lFrame.currentNamespace}var Rl=!0;function wo(){return Rl}function Eo(e){Rl=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 ks(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,ks(a,o)):ks(a,o)}var qt=-1,_o=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 _o}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];Wh(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function qh(e){return e===3||e===4||e===6}function Wh(e){return e.charCodeAt(0)===64}function So(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?Ds(e,n,i,null,t[++r]):Ds(e,n,i,null,null))}}return e}function Ds(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!==qt}function Ti(e){return e&32767}function Kh(e){return e>>16}function xi(e,t){let n=Kh(e),r=t;for(;n>0;)r=r[rn],n--;return r}var ki=!0;function mr(e){let t=ki;return ki=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[q];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=Ti(i),a=xi(i,t),l=a[q].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=Wl(i),r===null)return qt;if(n++,i=i[rn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return qt}function Jh(e,t,n){Xh(e,t,n)}function Bl(e,t,n){if(n&U.Optional||e!==void 0)return e;lo(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))lo(n);else return s}finally{Al()}}else if(typeof o=="number"){let s=null,a=Ll(e,t),l=qt,d=r&U.Host?t[Ge][Ke]:null;for((a===-1||r&U.SkipSelf)&&(l=a===-1?Hl(e,t):t[a+8],l===qt||!Ns(r,!1)?a=-1:(s=t[q],a=Ti(l),t=xi(l,t)));a!==-1;){let h=t[q];if(Os(o,a,h.data)){let p=ep(a,t,n,s,r,d);if(p!==$e)return p}l=t[a+8],l!==qt&&Ns(r,t[q].data[a+8]===d)&&Os(o,a,t)?(s=h,a=Ti(l),t=xi(l,t)):a=-1}}return i}function ep(e,t,n,r,i,o){let s=t[q],a=s.data[e+8],l=r==null?Nr(a)&&ki:r!=s&&(a.type&3)!==0,d=i&U.Host&&o===a,h=tp(a,s,n,l,d);return h!==null?Di(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 Di(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,Al()}}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 Os(e,t,n){let r=1<<e;return!!(n[t+(e>>Fl)]&r)}function Ns(e,t){return!(e&U.Self)&&!(e&U.Host&&t)}var ql=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 ql(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=Wl(s),s=s[rn]}o=l}return i}function Wl(e){let t=e[q],n=t.type;return n===2?t.declTNode:n===1?e[Ke]:null}function As(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:qe(e)),new po(o,t||ho(),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 As({name:""},n,t,"");{let r=t.name??"";return As({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{},Io=new se("",{providedIn:"root",factory:()=>!1}),Ql=new se(""),Co=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 An{__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 To="isAngularZone",vr=To+"_ID",cp=0,Me=class Oi{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(To)===!0}static assertInAngularZone(){if(!Oi.isInAngularZone())throw new Y(909,!1)}static assertNotInAngularZone(){if(Oi.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 xo(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,Ni(e),e.isCheckStableRunning=!0,xo(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ni(e)}function hp(e){let t=()=>{dp(e)},n=cp++;e._inner=e._inner.fork({name:"angular",properties:{[To]:!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 Ms(e),r.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Vs(e)}},onInvoke:(r,i,o,s,a,l,d)=>{try{return Ms(e),r.invoke(o,s,a,l,d)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!gp(l)&&t(),Vs(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ni(e),xo(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 Ni(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ms(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Vs(e){e._nesting--,xo(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(At(e,t))}var tu=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=yp}return e})();function oi(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 Ai(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[We])}function au(e){for(;e!==null&&!Ot(e);)e=e[We];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(""),ko=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||{}),Do=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 Mi(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"}},Ap=class extends Mt{getTypeName(){return"Style"}},Rp=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 Ap(e)}function Lp(e){return new Rp(e)}function Hp(e){return new Mp(e)}function Bp(e){return new Vp(e)}function zp(e){let t=new Zp(e);return qp()?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 qp(){try{return!!new window.DOMParser().parseFromString(jr(""),"text/html")}catch{return!1}}var Wp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Oo(e){return e=String(e),e.match(Wp)?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=Oo(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):Oo(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(No(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 No(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,No(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(qh(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 Vi(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?Vi(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 Ao(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[q]={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=Ao(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=At(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[Ts][We]=t:e[In]=t,e[Ts]=t,t}function Wt(e=1){Au(Qe(),fe(),Rt()+e,!1)}function Au(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 Pi(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 Ru(e,t,n,r,i){let o=Rt(),s=r&2;try{Ct(-1),s&&t.length>Ie&&Au(e,t,Ie,!1),le(s?2:0,i),n(r,i)}finally{Ct(o),le(s?3:1,i)}}function Mo(e,t,n){Rg(e,t,n),(n.flags&64)===64&&Mg(e,t,n)}function Mu(e,t,n=At){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&&Vo(t,e,n,r,i)){Nr(t)&&Ag(n,t.index);return}if(t.type&3){let l=At(t,n);r=Og(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(l,r,i)}else t.type&12}function Ag(e,t){let n=St(t,e);n[j]&16||(n[j]|=64)}function Rg(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=Di(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]=Di(t,e,s,n)}}}function Mg(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=Rh();try{Ct(o);for(let a=r;a<i;a++){let l=e.data[a],d=t[a];Ci(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&Vg(l,d)}}finally{Ct(-1),Ci(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];Pi(r,n,l,d)}}function Fg(e,t){let n=e[Sn],r=n?n.get(Fn,null):null;r&&r.handleError(t)}function Vo(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];Pi(p,n[d],h,i),a=!0}if(o)for(let l of o){let d=n[l],h=t.data[l];Pi(h,d,r,i),a=!0}return a}function jg(e,t){let n=St(t,e),r=n[q];Lg(r,n);let i=n[it];i!==null&&n[_n]===null&&(n[_n]=pu(i,n[Sn])),le(18),Po(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 Po(e,t,n){vo(t);try{let r=e.viewQuery;r!==null&&Mi(1,r,n);let i=e.template;i!==null&&Ru(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Yt]?.finishViewCreation(e),e.staticContentQueries&&gu(e,t),e.staticViewQueries&&Mi(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,bo()}}function Hg(e,t){for(let n=0;n<t.length;n++)jg(e,t[n])}function Fo(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)),Po(o,a,n),a}finally{K(i)}}function jo(e,t){return!t||t.firstChild===null||nu(e)}var Bg;function Lo(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):Vi(t,n,a,i||null,!0):e===1&&n!==null?Vi(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 si(e[q],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[We]&&t!==e;)Et(t)&&si(t[q],t),t=t[He];t===null&&(t=e),Et(t)&&si(t[q],t),n=t&&t[We]}t=n}}function Ho(e,t){let n=e[pr],r=n.indexOf(t);n.splice(r,1)}function Bo(e,t){if(Mn(t))return;let n=t[Pe];n.destroyNode&&Hr(e,t,n,3,null,null),Zg(t)}function si(e,t){if(Mn(t))return;let n=K(null);try{t[j]&=-129,t[j]|=256,t[Re]&&ba(t[Re]),Wg(e,t),qg(e,t),t[q].type===1&&t[Pe].destroy();let r=t[Qt];if(r!==null&&Ot(t[He])){r!==t[He]&&Ho(r,t);let i=t[Yt];i!==null&&i.detachView(e)}Ai(t)}finally{K(n)}}function qg(e,t){let n=e.cleanup,r=t[Cs];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[Cs]=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 Wg(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 _o)){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 At(r,n)}function Kg(e,t,n){return Yg(e,t,n)}function Qg(e,t,n){return e.type&40?At(e,n):null}var Yg=Qg,qs;function zo(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);qs!==void 0&&qs(o,r,t,n,i)}function mn(e,t){if(t!==null){let n=t.type;if(n&3)return At(t,e);if(n&4)return Fi(-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)?Fi(-1,i):ht(i)}}else{if(n&128)return mn(e,t.next);if(n&32)return Lo(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 Fi(e,t){let n=De+e+1;if(n<t.length){let r=t[n],i=r[q].firstChild;if(i!==null)return mn(r,i)}return t[Cn]}function Uo(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)Uo(e,t,n.child,r,i,o,!1),zt(t,e,i,a,o);else if(l&32){let d=Lo(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){Uo(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),Uo(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[q],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=Lo(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[q],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[q].firstChild;i!==null&&br(r[q],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[Re]??rm(e)}function rm(e){let t=Hu.pop()??Object.create(om);return t.lView=e,t}function im(e){e.lView[Re]!==e&&(e.lView=null,Hu.push(e))}var om=nn(xt({},ro),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Rr(e.lView)},consumerOnSignalRead(){this.lView[Re]=this}});function sm(e){let t=e[Re]??Object.create(am);return t.lView=e,t}var am=nn(xt({},ro),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=It(e.lView);for(;t&&!Bu(t[q]);)t=It(t);t&&yo(t)},consumerOnSignalRead(){this.lView[Re]=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{xs(!0),ji(e,t);let r=0;for(;Ar(e);){if(r===lm)throw new Y(103,!1);r++,ji(e,1)}}finally{xs(n)}}function cm(e,t,n,r){if(Mn(t))return;let i=t[j],o=!1,s=!1;vo(t);let a=!0,l=null,d=null;o||(Bu(e)?(d=nm(t),l=ds(d)):Cf()===null?(a=!1,d=sm(t),l=ds(d)):t[Re]&&(ba(t[Re]),t[Re]=null));try{wl(t),Dh(e.bindingStartIndex),n!==null&&Ru(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&&Wu(t,p,0);let _=e.viewQuery;if(_!==null&&Mi(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||Rr(t),h}finally{d!==null&&(Of(d,l),a&&im(d)),bo()}}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];qu(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];yo(i)}}}function dm(e,t,n){le(18);let r=St(t,e);qu(r,n),le(19,r[we])}function qu(e,t){mo(e)&&ji(e,t)}function ji(e,t){let n=e[q],r=e[j],i=e[Re],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&&Wu(e,s,1),Lu(e)}}function Wu(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];Ah(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 Zo(e,t,n,r=!0){let i=t[q];if(gm(i,t,e,n),r){let s=Fi(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=qo(e,t);return n!==void 0&&Bo(n[q],n),n}function qo(e,t){if(e.length<=De)return;let n=De+t,r=e[n];if(r){let i=r[Qt];i!==null&&i!==e&&Ho(i,r),t>0&&(e[n-1][We]=r[We]);let o=tl(e,De+t);zg(r[q],r);let s=o[Yt];s!==null&&s.detachView(o[q]),r[He]=null,r[We]=null,r[j]&=-129}return r}function gm(e,t,n,r){let i=De+r,o=n.length;r>0&&(n[i-1][We]=t),r<o-De?(t[We]=n[i],Wd(n,De+r,t)):(n.push(t),t[We]=null),t[He]=n;let s=t[Qt];s!==null&&n!==s&&Qu(s,t);let a=t[Yt];a!==null&&a.insertView(e),Si(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[q];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[Re]?.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&&(qo(e,n),tl(t,n))}this._attachedToViewContainer=!1}Bo(this._lView[q],this._lView)}onDestroy(e){El(this._lView,e)}markForCheck(){$u(this._cdRefInjectingView||this._lView,4)}markForRefresh(){yo(this._cdRefInjectingView||this._lView)}detach(){this._lView[j]&=-129}reattach(){Si(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&&Ho(t,this._lView),Fu(this._lView[q],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),Si(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 ${qe(e)}.`)}},Hn=class{static NULL=new _m},$o=class{},Sm=(()=>{class e{static \u0275prov=pe({token:e,providedIn:"root",factory:()=>null})}return e})();function Ws(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=vs(i,a);else if(o==2){let l=a,d=t[++s];r=vs(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=So(n.mergedAttrs,w.hostAttrs),Om(e,n,t,p,w),Rm(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||No(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 _o(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;Am(s)!=a&&s.push(a),s.push(n,r,o)}}function Am(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Rm(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=So(h.mergedAttrs,h.attrs),h.attrs!==null&&Ws(h,h.attrs,!1),h.mergedAttrs!==null&&Ws(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($o,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=Ao(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,vo(_);let w=null;try{let E=ec(Ie,a,_,"#host",()=>[this.componentDef],!0,0);p&&(ku(h,p,E),jn(p,_)),Mo(a,_,E),mu(a,E,_),tc(a,E),t!==void 0&&Um(E,this.ngContentSelectors,t),w=St(E.index,_),_[we]=w[we],Po(a,_,null)}catch(E){throw w!==null&&Ai(w),Ai(_),E}finally{le(23),bo()}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=go(t[q],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=Vo(n,r[q],r,e,t);this.previousInputValues.set(e,t);let o=St(n.index,r);$u(o,1)}get injector(){return new ql(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 qm(e,t,n){return Zm(e,t,n)}var Li=class{},nc=class extends Li{injector;componentFactoryResolver=new Vm(this);instance=null;constructor(e){super();let t=new po([...e.providers,{provide:Li,useValue:this},{provide:Hn,useValue:this.componentFactoryResolver}],e.parent||ho(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Wm(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?Wm([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 Go(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=So(h.mergedAttrs,h.attrs),Ml(t,h);let p=h.tView=Ao(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 Hi(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);wo()&&zo(t,e,_,p),jn(_,e);let w=pm(_,e,_,p);return e[h]=w,Nu(e,w),qm(w,p,e),pl(p)&&Mo(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 Hi(l,d,e,t,n,r,i,h,s,a),ic}var iy=oy;function oy(e,t,n,r){return Eo(!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(){Af(()=>{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(Io);rootEffectScheduler=re(ay);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new An;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=re(Pr).hasPendingTasks.pipe(Wa(n=>!n));constructor(){re(Do,{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(Li),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($o,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})=>Ar(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&&!Ar(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 Bi(e){return e|2}function en(e){return(e&131068)>>2}function ai(e,t){return e&-131069|t<<2}function by(e){return(e&1)===1}function zi(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||Rn(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]=ai(e[p+1],r)),e[a+1]=vy(e[a+1],r)}else e[r+1]=Jn(a,0),a!==0&&(e[a+1]=ai(e[a+1],r)),a=r;else e[r+1]=Jn(l,0),a===0?a=r:e[l+1]=ai(e[l+1],r),l=r;d&&(e[r+1]=Bi(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"&&Rn(o,t)>=0&&(n[r+1]=zi(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?zi(d):Bi(d)),s=r?Tt(d):en(d)}a&&(e[n+1]=r?Bi(i):zi(i))}function _y(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Rn(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){Vo(t,e,n,i?"class":"style",r)}function Ko(e,t,n){return Sy(e,t,n,!1),Ko}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[Rt()];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[Rt()],s=Iy(e,n);Ay(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=li(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=li(i,e,t,n,r),o===null){let a=xy(e,t,r);a!==void 0&&Array.isArray(a)&&(a=li(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 li(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(Rt(),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=qe(lt(e)))),e}function Ay(e,t){return(e.flags&(t?8:16))!==0}var Ry=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 ui(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=ui(o,d,o,h,n);if(p!==0){p<0&&e.updateValue(o,h),o++;continue}let _=e.at(s),w=t[l],E=ui(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),Ui(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,_=ui(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(Ui(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 Ui(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(Ui(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=Zi(n[q],l),p=Wo(d,h.tView.ssrId),_=Fo(n,h,t,{dehydratedView:p});Zo(d,_,s,jo(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,Hi(w,E,e+1,t,n,r,i,Xt(E.consts,o)),I&&Hi(w,E,e+2,l,d,h,p,Xt(E.consts,_))}var Ly=class extends Ry{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,Zo(this.lContainer,t,e,jo(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=Fo(this.hostLView,this.templateTNode,new Py(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){Bo(e[q],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=Rt();try{let r=fe(),i=r[q],o=r[n],s=n+1,a=_r(r,s);if(o.liveCollection===void 0){let d=Zi(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=Zi(i,p),E=Wo(_,w.tView.ssrId),I=Fo(r,w,void 0,{dehydratedView:E});Zo(_,I,0,jo(w,E))}else Ku(_,0)}}}finally{K(t)}}function _r(e,t){return e[t]}function By(e,t){return qo(e,t)}function zy(e,t){return Gu(e,t)}function Zi(e,t){return go(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)&&wo()&&zo(o,i,d,l),(Eh()===0||h)&&jn(d,i),_h(),h&&(Mo(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)=>(Eo(!0),Tu(r,i,jh())),Sr="en-US",Zy=Sr;function qy(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 Wy(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,wo()&&zo(r,n,s,o),on(o,!1)}var $y=(e,t,n,r,i)=>(Eo(!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,Rt(),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 qi(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[q].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:Co,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(Io);tracing=re(Do,{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(Co,{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:Io,useValue:!0},{provide:Co,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(qy(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:fo,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 ci;function yv(e,t){if(!ci){let n=Element.prototype;ci=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?ci.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 Av=class{},Rv=class extends kv{supportsDOMEvents=!0},Mv=class bc extends Rv{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})(),$i=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($i),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 Gi(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,Gi))}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,Gi(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(ko))};static \u0275prov=pe({token:e,factory:e.\u0275fac})}return e})(),fi={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"},Qo=/%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(Qo,e)}function Zv(e){return Lv.replace(Qo,e)}function Ic(e,t){return t.map(n=>n.replace(Qo,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 Yo(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 Ki&&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 qv(l,d,n,r,s,a,this.nonce,p,_);default:o=new Ki(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(ko),oe(Me),oe(fu),oe(Do,8))};static \u0275prov=pe({token:e,factory:e.\u0275fac})}return e})(),Yo=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(fi[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=fi[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=fi[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 qv=class extends Yo{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 _=Gi(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)}},Ki=class extends Yo{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 Ki{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}},Wv=(()=>{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:ko,useValue:Ov},{provide:cu,useValue:Xv,multi:!0},{provide:gt,useFactory:eb,deps:[]}],nb=[{provide:fo,useValue:"root"},{provide:Fn,useFactory:Jv,deps:[]},{provide:$i,useClass:Wv,multi:!0,deps:[gt]},{provide:$i,useClass:Kv,multi:!0,deps:[gt]},oa,_c,wc,{provide:$o,useExisting:oa},{provide:Av,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):Oo(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.25",di=class Qi{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 CTA_AFTER_REFRESH_UI="letscooee:outbound:refresh-ui";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=Qi.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");Qi.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=di.LOG_PREFIX){Le.default.useDefaults({formatter:function(n){n.unshift(`${e} (v${di.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=`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=t});function Eo(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var vt=class So{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(Ee(r))try{r()}catch(o){t=o instanceof eo?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Ya(o)}catch(s){t=t??[],s instanceof eo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new eo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ya(t);else{if(t instanceof So){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)&&Eo(n,t)}remove(t){let{_finalizers:n}=this;n&&Eo(n,t),t instanceof So&&t._removeParent(this)}};vt.EMPTY=(()=>{let e=new vt;return e.closed=!0,e})();var Zu=vt.EMPTY;function Ku(e){return e instanceof vt||e&&"closed"in e&&Ee(e.remove)&&Ee(e.add)&&Ee(e.unsubscribe)}function Ya(e){Ee(e)?e():e.unsubscribe()}var en={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},oi={setTimeout(e,t,...n){let{delegate:r}=oi;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=oi;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Qu(e){oi.setTimeout(()=>{let{onUnhandledError:t}=en;if(t)t(e);else throw e})}function el(){}var Dp=Os("C",void 0,void 0);function Np(e){return Os("E",void 0,e)}function Op(e){return Os("N",e,void 0)}function Os(e,t,n){return{kind:e,value:t,error:n}}var Ht=null;function Zr(e){if(en.useDeprecatedSynchronousErrorHandling){let t=!Ht;if(t&&(Ht={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ht;if(Ht=null,n)throw r}}else e()}function Ap(e){en.useDeprecatedSynchronousErrorHandling&&Ht&&(Ht.errorThrown=!0,Ht.error=e)}var As=class extends vt{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ku(e)&&e.add(this)):this.destination=jp}static create(e,t,n){return new Io(e,t,n)}next(e){this.isStopped?no(Op(e),this):this._next(e)}error(e){this.isStopped?no(Np(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?no(Dp,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()}}},Rp=Function.prototype.bind;function to(e,t){return Rp.call(e,t)}var Mp=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){Pr(n)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){Pr(n)}else Pr(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Pr(t)}}},Io=class extends As{constructor(e,t,n){super();let r;if(Ee(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&en.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&to(e.next,i),error:e.error&&to(e.error,i),complete:e.complete&&to(e.complete,i)}):r=e}this.destination=new Mp(r)}};function Pr(e){en.useDeprecatedSynchronousErrorHandling?Ap(e):Qu(e)}function Pp(e){throw e}function no(e,t){let{onStoppedNotification:n}=en;n&&oi.setTimeout(()=>n(e,t))}var jp={closed:!0,next:el,error:Pp,complete:el},Rs=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Xu(e){return e}function Lp(e){return e.length===0?Xu:e.length===1?e[0]:function(t){return e.reduce((n,r)=>r(n),t)}}var Be=(()=>{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=Vp(n)?n:new Io(n,r,i);return Zr(()=>{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=tl(r),new r((i,o)=>{let s=new Io({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)}[Rs](){return this}pipe(...n){return Lp(n)(this)}toPromise(n){return n=tl(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 tl(e){var t;return(t=e??en.Promise)!==null&&t!==void 0?t:Promise}function Fp(e){return e&&Ee(e.next)&&Ee(e.error)&&Ee(e.complete)}function Vp(e){return e&&e instanceof As||Fp(e)&&Ku(e)}function Hp(e){return Ee(e?.lift)}function hr(e){return t=>{if(Hp(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 In(e,t,n,r,i){return new Up(e,t,n,r,i)}var Up=class extends As{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))}}},$p=Wu(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),pr=(()=>{class e extends Be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new nl(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new $p}next(n){Zr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Zr(()=>{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(){Zr(()=>{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?Zu:(this.currentObservers=null,o.push(n),new vt(()=>{this.currentObservers=null,Eo(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new Be;return n.source=this,n}}return e.create=(t,n)=>new nl(t,n),e})(),nl=class extends pr{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:Zu}},Bp=class extends pr{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)}},Ju={now(){return(Ju.delegate||Date).now()},delegate:void 0},zp=class extends pr{constructor(e=1/0,t=1/0,n=Ju){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)}}},qp=new Be(e=>e.complete());function Gp(e){return e&&Ee(e.schedule)}function Yu(e){return e[e.length-1]}function Wp(e){return Gp(Yu(e))?e.pop():void 0}function Zp(e,t){return typeof Yu(e)=="number"?e.pop():t}function Kp(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(f){try{c(r.next(f))}catch(d){s(d)}}function l(f){try{c(r.throw(f))}catch(d){s(d)}}function c(f){f.done?o(f.value):i(f.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function rl(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 _n(e){return this instanceof _n?(this.v=e,this):new _n(e)}function Qp(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(b){return function(w){return Promise.resolve(w).then(b,d)}}function a(b,w){r[b]&&(i[b]=function(I){return new Promise(function(O,A){o.push([b,I,O,A])>1||l(b,I)})},w&&(i[b]=w(i[b])))}function l(b,w){try{c(r[b](w))}catch(I){v(o[0][3],I)}}function c(b){b.value instanceof _n?Promise.resolve(b.value.v).then(f,d):v(o[0][2],b)}function f(b){l("next",b)}function d(b){l("throw",b)}function v(b,w){b(w),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Xp(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 rl=="function"?rl(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(c){o({value:c,done:a})},s)}}var ec=e=>e&&typeof e.length=="number"&&typeof e!="function";function tc(e){return Ee(e?.then)}function nc(e){return Ee(e[Rs])}function rc(e){return Symbol.asyncIterator&&Ee(e?.[Symbol.asyncIterator])}function ic(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 Jp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oc=Jp();function sc(e){return Ee(e?.[oc])}function ac(e){return Qp(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield _n(t.read());if(r)return yield _n(void 0);yield yield _n(n)}}finally{t.releaseLock()}})}function lc(e){return Ee(e?.getReader)}function tn(e){if(e instanceof Be)return e;if(e!=null){if(nc(e))return Yp(e);if(ec(e))return em(e);if(tc(e))return tm(e);if(rc(e))return uc(e);if(sc(e))return nm(e);if(lc(e))return rm(e)}throw ic(e)}function Yp(e){return new Be(t=>{let n=e[Rs]();if(Ee(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function em(e){return new Be(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function tm(e){return new Be(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Qu)})}function nm(e){return new Be(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function uc(e){return new Be(t=>{im(e,t).catch(n=>t.error(n))})}function rm(e){return uc(ac(e))}function im(e,t){var n,r,i,o;return Kp(this,void 0,void 0,function*(){try{for(n=Xp(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 Dt(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 cc(e,t=0){return hr((n,r)=>{n.subscribe(In(r,i=>Dt(r,e,()=>r.next(i),t),()=>Dt(r,e,()=>r.complete(),t),i=>Dt(r,e,()=>r.error(i),t)))})}function fc(e,t=0){return hr((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function om(e,t){return tn(e).pipe(fc(t),cc(t))}function sm(e,t){return tn(e).pipe(fc(t),cc(t))}function am(e,t){return new Be(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function lm(e,t){return new Be(n=>{let r;return Dt(n,t,()=>{r=e[oc](),Dt(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)}),()=>Ee(r?.return)&&r.return()})}function dc(e,t){if(!e)throw new Error("Iterable cannot be null");return new Be(n=>{Dt(n,t,()=>{let r=e[Symbol.asyncIterator]();Dt(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function um(e,t){return dc(ac(e),t)}function cm(e,t){if(e!=null){if(nc(e))return om(e,t);if(ec(e))return am(e,t);if(tc(e))return sm(e,t);if(rc(e))return dc(e,t);if(sc(e))return lm(e,t);if(lc(e))return um(e,t)}throw ic(e)}function fm(e,t){return t?cm(e,t):tn(e)}function hc(e,t){return hr((n,r)=>{let i=0;n.subscribe(In(r,o=>{r.next(e.call(t,o,i++))}))})}function dm(e,t,n,r,i,o,s,a){let l=[],c=0,f=0,d=!1,v=()=>{d&&!l.length&&!c&&t.complete()},b=I=>c<r?w(I):l.push(I),w=I=>{o&&t.next(I),c++;let O=!1;tn(n(I,f++)).subscribe(In(t,A=>{i?.(A),o?b(A):t.next(A)},()=>{O=!0},void 0,()=>{if(O)try{for(c--;l.length&&c<r;){let A=l.shift();s?Dt(t,s,()=>w(A)):w(A)}v()}catch(A){t.error(A)}}))};return e.subscribe(In(t,b,()=>{d=!0,v()})),()=>{a?.()}}function pc(e,t,n=1/0){return Ee(t)?pc((r,i)=>hc((o,s)=>t(r,o,i,s))(tn(e(r,i))),n):(typeof t=="number"&&(n=t),hr((r,i)=>dm(r,i,e,n)))}function hm(e=1/0){return pc(Xu,e)}function pm(...e){let t=Wp(e),n=Zp(e,1/0),r=e;return r.length?r.length===1?tn(r[0]):hm(n)(fm(r,t)):qp}function mm(e,t){return hr((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(In(r,l=>{i?.unsubscribe();let c=0,f=o++;tn(e(l,f)).subscribe(i=In(r,d=>r.next(t?t(l,d,f,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}var mc="https://g.co/ng/security#xss",ee=class extends Error{code;constructor(e,t){super(gm(e,t)),this.code=e}};function gm(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function vm(e){return{toString:e}.toString()}var si=globalThis;function ce(e){for(let t in e)if(e[t]===ce)return t;throw Error("Could not find renamed property on target object.")}function nt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(nt).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 il(e,t){return e?t?`${e} ${t}`:e:t||""}var ym=ce({__forward_ref__:ce});function gc(e){return e.__forward_ref__=gc,e.toString=function(){return nt(this())},e}function et(e){return _m(e)?e():e}function _m(e){return typeof e=="function"&&e.hasOwnProperty(ym)&&e.__forward_ref__===gc}function _e(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ms(e){return ol(e,vc)||ol(e,yc)}function ol(e,t){return e.hasOwnProperty(t)?e[t]:null}function bm(e){return e&&(e[vc]||e[yc])||null}function sl(e){return e&&(e.hasOwnProperty(al)||e.hasOwnProperty(wm))?e[al]:null}var vc=ce({\u0275prov:ce}),al=ce({\u0275inj:ce}),yc=ce({ngInjectableDef:ce}),wm=ce({ngInjectorDef:ce}),ue=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=_e({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function _c(e){return e&&!!e.\u0275providers}var Em=ce({\u0275cmp:ce}),Sm=ce({\u0275dir:ce}),Im=ce({\u0275pipe:ce}),ll=ce({\u0275fac:ce}),Yn=ce({__NG_ELEMENT_ID__:ce}),ul=ce({__NG_ENV_ID__:ce});function Ti(e){return typeof e=="string"?e:e==null?"":String(e)}function Cm(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ti(e)}function xm(e,t){throw new ee(-200,e)}function Ps(e,t){throw new ee(-201,!1)}var q=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}(q||{}),Co;function bc(){return Co}function je(e){let t=Co;return Co=e,t}function wc(e,t,n){let r=Ms(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&q.Optional)return null;if(t!==void 0)return t;Ps(e,"Injector")}var Tm={},tr=Tm,km="__NG_DI_FLAG__",ai="ngTempTokenPath",Dm="ngTokenPath",Nm=/\n/gm,Om="\u0275",cl="__source",bn;function Am(){return bn}function St(e){let t=bn;return bn=e,t}function Rm(e,t=q.Default){if(bn===void 0)throw new ee(-203,!1);return bn===null?wc(e,void 0,t):bn.get(e,t&q.Optional?null:void 0,t)}function le(e,t=q.Default){return(bc()||Rm)(et(e),t)}function se(e,t=q.Default){return le(e,ki(t))}function ki(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function xo(e){let t=[];for(let n=0;n<e.length;n++){let r=et(e[n]);if(Array.isArray(r)){if(r.length===0)throw new ee(900,!1);let i,o=q.Default;for(let s=0;s<r.length;s++){let a=r[s],l=Mm(a);typeof l=="number"?l===-1?i=a.token:o|=l:i=a}t.push(le(i,o))}else t.push(le(r))}return t}function Mm(e){return e[km]}function Pm(e,t,n,r){let i=e[ai];throw t[cl]&&i.unshift(t[cl]),e.message=jm(`
5
+ `+e.message,i,n,r),e[Dm]=i,e[ai]=null,e}function jm(e,t,n,r=null){e=e&&e.charAt(0)===`
6
+ `&&e.charAt(1)==Om?e.slice(2):e;let i=nt(t);if(Array.isArray(t))i=t.map(nt).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):nt(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Nm,`
7
+ `)}`}function Cn(e,t){return e.hasOwnProperty(ll)?e[ll]:null}function js(e,t){e.forEach(n=>Array.isArray(n)?js(n,t):t(n))}function Lm(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ec(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Fm(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 Vm(e,t,n){let r=mr(e,t);return r>=0?e[r|1]=n:(r=~r,Fm(e,r,t,n)),r}function ro(e,t){let n=mr(e,t);if(n>=0)return e[n|1]}function mr(e,t){return Hm(e,t,1)}function Hm(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 xn={},zt=[],li=new ue(""),Sc=new ue("",-1),Ic=new ue(""),Cc=class{get(e,t=tr){if(t===tr){let n=new Error(`NullInjectorError: No provider for ${nt(e)}!`);throw n.name="NullInjectorError",n}return t}};function Di(e){return e[Em]||null}function xc(e){return e[Sm]||null}function Tc(e){return e[Im]||null}function Um(e){let t=Di(e)||xc(e)||Tc(e);return t!==null&&t.standalone}function $m(e){return{\u0275providers:e}}function Bm(...e){return{\u0275providers:kc(!0,e),\u0275fromNgModule:!0}}function kc(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return js(t,s=>{let a=s;To(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Dc(i,o),n}function Dc(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];Ls(i,o=>{t(o,r)})}}function To(e,t,n,r){if(e=et(e),!e)return!1;let i=null,o=sl(e),s=!o&&Di(e);if(!o&&!s){let l=e.ngModule;if(o=sl(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 c of l)To(c,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{js(o.imports,f=>{To(f,t,n,r)&&(c||=[],c.push(f))})}finally{}c!==void 0&&Dc(c,t)}if(!a){let c=Cn(i)||(()=>new i);t({provide:i,useFactory:c,deps:zt},i),t({provide:Ic,useValue:i,multi:!0},i),t({provide:li,useValue:()=>le(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let c=e;Ls(l,f=>{t(f,c)})}}else return!1;return i!==e&&e.providers!==void 0}function Ls(e,t){for(let n of e)_c(n)&&(n=n.\u0275providers),Array.isArray(n)?Ls(n,t):t(n)}var zm=ce({provide:String,useValue:ce});function Nc(e){return e!==null&&typeof e=="object"&&zm in e}function qm(e){return!!(e&&e.useExisting)}function Gm(e){return!!(e&&e.useFactory)}function ko(e){return typeof e=="function"}var Fs=new ue(""),Kr={},Wm={},io;function Vs(){return io===void 0&&(io=new Cc),io}var nr=class{},Hs=class extends nr{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,No(e,o=>this.processProvider(o)),this.records.set(Sc,mn(void 0,this)),r.has("environment")&&this.records.set(nr,mn(void 0,this));let i=this.records.get(Fs);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ic,zt,q.Self))}destroy(){Kn(this),this._destroyed=!0;let e=X(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(),X(e)}}onDestroy(e){return Kn(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){Kn(this);let t=St(this),n=je(void 0),r;try{return e()}finally{St(t),je(n)}}get(e,t=tr,n=q.Default){if(Kn(this),e.hasOwnProperty(ul))return e[ul](this);n=ki(n);let r,i=St(this),o=je(void 0);try{if(!(n&q.SkipSelf)){let a=this.records.get(e);if(a===void 0){let l=Ym(e)&&Ms(e);l&&this.injectableDefInScope(l)?a=mn(Do(e),Kr):a=null,this.records.set(e,a)}if(a!=null)return this.hydrate(e,a)}let s=n&q.Self?Vs():this.parent;return t=n&q.Optional&&t===tr?null:t,s.get(e,t)}catch(s){if(s.name==="NullInjectorError"){if((s[ai]=s[ai]||[]).unshift(nt(e)),i)throw s;return Pm(s,e,"R3InjectorError",this.source)}else throw s}finally{je(o),St(i)}}resolveInjectorInitializers(){let e=X(null),t=St(this),n=je(void 0),r;try{let i=this.get(li,zt,q.Self);for(let o of i)o()}finally{St(t),je(n),X(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(nt(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=et(e);let t=ko(e)?e:et(e&&e.provide),n=Km(e);if(!ko(e)&&e.multi===!0){let r=this.records.get(t);r||(r=mn(void 0,Kr,!0),r.factory=()=>xo(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t){let n=X(null);try{return t.value===Kr&&(t.value=Wm,t.value=t.factory()),typeof t.value=="object"&&t.value&&Jm(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{X(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=et(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 Do(e){let t=Ms(e),n=t!==null?t.factory:Cn(e);if(n!==null)return n;if(e instanceof ue)throw new ee(204,!1);if(e instanceof Function)return Zm(e);throw new ee(204,!1)}function Zm(e){if(e.length>0)throw new ee(204,!1);let t=bm(e);return t!==null?()=>t.factory(e):()=>new e}function Km(e){if(Nc(e))return mn(void 0,e.useValue);{let t=Qm(e);return mn(t,Kr)}}function Qm(e,t,n){let r;if(ko(e)){let i=et(e);return Cn(i)||Do(i)}else if(Nc(e))r=()=>et(e.useValue);else if(Gm(e))r=()=>e.useFactory(...xo(e.deps||[]));else if(qm(e))r=()=>le(et(e.useExisting));else{let i=et(e&&(e.useClass||e.provide));if(Xm(e))r=()=>new i(...xo(e.deps));else return Cn(i)||Do(i)}return r}function Kn(e){if(e.destroyed)throw new ee(205,!1)}function mn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Xm(e){return!!e.deps}function Jm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Ym(e){return typeof e=="function"||typeof e=="object"&&e instanceof ue}function No(e,t){for(let n of e)Array.isArray(n)?No(n,t):n&&_c(n)?No(n.\u0275providers,t):t(n)}function Oc(e,t){e instanceof Hs&&Kn(e);let n,r=St(e),i=je(void 0);try{return t()}finally{St(r),je(i)}}function eg(){return bc()!==void 0||Am()!=null}var bt=0,W=1,V=2,Qe=3,rt=4,ut=5,rr=6,fl=7,Te=8,ir=9,yt=10,ze=11,or=12,dl=13,jn=14,lt=15,Tn=16,gn=17,kn=18,Ni=19,Ac=20,Nt=21,oo=22,ui=23,Ue=24,so=25,Ae=26,Rc=1,sr=7,tg=8,ci=9,Le=10;function $t(e){return Array.isArray(e)&&typeof e[Rc]=="object"}function nn(e){return Array.isArray(e)&&e[Rc]===!0}function Mc(e){return(e.flags&4)!==0}function Oi(e){return e.componentOffset>-1}function Pc(e){return(e.flags&1)===1}function rn(e){return!!e.template}function fi(e){return(e[V]&512)!==0}function gr(e){return(e[V]&256)===256}var ng=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function jc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function rg(e){return e.type.prototype.ngOnChanges&&(e.setInput=og),ig}function ig(){let e=Fc(this),t=e?.current;if(t){let n=e.previous;if(n===xn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function og(e,t,n,r,i){let o=this.declaredInputs[r],s=Fc(e)||sg(e,{previous:xn,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new ng(c&&c.currentValue,n,l===xn),jc(e,t,i,n)}var Lc="__ngSimpleChanges__";function Fc(e){return e[Lc]||null}function sg(e,t){return e[Lc]=t}var ag=null,fe=function(e,t=null,n){ag?.(e,t,n)},lg="svg",ug="math";function At(e){for(;Array.isArray(e);)e=e[bt];return e}function Vc(e,t){return At(t[e])}function on(e,t){return At(t[e.index])}function Us(e,t){return e.data[t]}function Hc(e,t){return e[t]}function qt(e,t){let n=t[e];return $t(n)?n:n[bt]}function $s(e){return(e[V]&128)===128}function Dn(e,t){return t==null?null:e[t]}function Uc(e){e[gn]=0}function Bs(e){e[V]&1024||(e[V]|=1024,$s(e)&&Ri(e))}function cg(e,t){for(;e>0;)t=t[jn],e--;return t}function Ai(e){return!!(e[V]&9216||e[Ue]?.dirty)}function Oo(e){e[yt].changeDetectionScheduler?.notify(8),e[V]&64&&(e[V]|=1024),Ai(e)&&Ri(e)}function Ri(e){e[yt].changeDetectionScheduler?.notify(0);let t=Gt(e);for(;t!==null&&!(t[V]&8192||(t[V]|=8192,!$s(t)));)t=Gt(t)}function $c(e,t){if(gr(e))throw new ee(911,!1);e[Nt]===null&&(e[Nt]=[]),e[Nt].push(t)}function fg(e,t){if(e[Nt]===null)return;let n=e[Nt].indexOf(t);n!==-1&&e[Nt].splice(n,1)}function Gt(e){let t=e[Qe];return nn(t)?t[Qe]:t}var Z={lFrame:Xc(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Ao=!1;function dg(){return Z.lFrame.elementDepthCount}function hg(){Z.lFrame.elementDepthCount++}function pg(){Z.lFrame.elementDepthCount--}function Bc(){return Z.bindingsEnabled}function mg(){return Z.skipHydrationRootTNode!==null}function gg(e){return Z.skipHydrationRootTNode===e}function vg(){Z.skipHydrationRootTNode=null}function ge(){return Z.lFrame.lView}function ct(){return Z.lFrame.tView}function vr(){let e=zc();for(;e!==null&&e.type===64;)e=e.parent;return e}function zc(){return Z.lFrame.currentTNode}function yg(){let e=Z.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ln(e,t){let n=Z.lFrame;n.currentTNode=e,n.isParent=t}function qc(){return Z.lFrame.isParent}function _g(){Z.lFrame.isParent=!1}function Gc(){return Ao}function hl(e){let t=Ao;return Ao=e,t}function Wc(){let e=Z.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function bg(e){return Z.lFrame.bindingIndex=e}function Mi(){return Z.lFrame.bindingIndex++}function wg(e){let t=Z.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Eg(){return Z.lFrame.inI18n}function Sg(e,t){let n=Z.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ro(t)}function Ig(){return Z.lFrame.currentDirectiveIndex}function Ro(e){Z.lFrame.currentDirectiveIndex=e}function Cg(e){let t=Z.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Zc(e){Z.lFrame.currentQueryIndex=e}function xg(e){let t=e[W];return t.type===2?t.declTNode:t.type===1?e[ut]:null}function Kc(e,t,n){if(n&q.SkipSelf){let i=t,o=e;for(;(i=i.parent,i===null&&!(n&q.Host))&&(i=xg(o),!(i===null||(o=o[jn],i.type&10))););if(i===null)return!1;t=i,e=o}let r=Z.lFrame=Qc();return r.currentTNode=t,r.lView=e,!0}function zs(e){let t=Qc(),n=e[W];Z.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Qc(){let e=Z.lFrame,t=e===null?null:e.child;return t===null?Xc(e):t}function Xc(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 Jc(){let e=Z.lFrame;return Z.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Yc=Jc;function qs(){let e=Jc();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 Tg(e){return(Z.lFrame.contextLView=cg(e,Z.lFrame.contextLView))[Te]}function sn(){return Z.lFrame.selectedIndex}function Wt(e){Z.lFrame.selectedIndex=e}function kg(){let e=Z.lFrame;return Us(e.tView,e.selectedIndex)}function Dg(){return Z.lFrame.currentNamespace}var ef=!0;function Gs(){return ef}function Ws(e){ef=e}function Ng(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=rg(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 tf(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:c}=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)),c!=null&&(e.destroyHooks??=[]).push(n,c)}}function Qr(e,t,n){nf(e,t,3,n)}function Xr(e,t,n,r){(e[V]&3)===n&&nf(e,t,n,r)}function ao(e,t){let n=e[V];(n&3)===t&&(n&=16383,n+=1,e[V]=n)}function nf(e,t,n,r){let i=r!==void 0?e[gn]&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[gn]+=65536),(a<o||o==-1)&&(Og(e,n,t,l),e[gn]=(e[gn]&4294901760)+l+2),l++}function pl(e,t){fe(4,e,t);let n=X(null);try{t.call(e)}finally{X(n),fe(5,e,t)}}function Og(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[V]>>14<e[gn]>>16&&(e[V]&3)===t&&(e[V]+=16384,pl(a,o)):pl(a,o)}var wn=-1,Zs=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n){this.factory=e,this.canSeeViewProviders=t,this.injectImpl=n}};function Ag(e){return e instanceof Zs}function Rg(e){return(e.flags&8)!==0}function Mg(e){return(e.flags&16)!==0}function Pg(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];Lg(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function jg(e){return e===3||e===4||e===6}function Lg(e){return e.charCodeAt(0)===64}function Ks(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?ml(e,n,i,null,t[++r]):ml(e,n,i,null,null))}}return e}function ml(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 lo={},Fg=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){n=ki(n);let r=this.injector.get(e,lo,n);return r!==lo||t===lo?r:this.parentInjector.get(e,t,n)}};function Vg(e){return e!==wn}function Mo(e){return e&32767}function Hg(e){return e>>16}function Po(e,t){let n=Hg(e),r=t;for(;n>0;)r=r[jn],n--;return r}var jo=!0;function di(e){let t=jo;return jo=e,t}var Ug=256,rf=Ug-1,of=5,$g=0,at={};function Bg(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Yn)&&(r=n[Yn]),r==null&&(r=n[Yn]=$g++);let i=r&rf,o=1<<i;t.data[e+(i>>of)]|=o}function sf(e,t){let n=af(e,t);if(n!==-1)return n;let r=t[W];r.firstCreatePass&&(e.injectorIndex=t.length,uo(r.data,e),uo(t,null),uo(r.blueprint,null));let i=lf(e,t),o=e.injectorIndex;if(Vg(i)){let s=Mo(i),a=Po(i,t),l=a[W].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=i,o}function uo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function af(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function lf(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=pf(i),r===null)return wn;if(n++,i=i[jn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return wn}function zg(e,t,n){Bg(e,t,n)}function uf(e,t,n){if(n&q.Optional||e!==void 0)return e;Ps(t,"NodeInjector")}function cf(e,t,n,r){if(n&q.Optional&&r===void 0&&(r=null),(n&(q.Self|q.Host))===0){let i=e[ir],o=je(void 0);try{return i?i.get(t,r,n&q.Optional):wc(t,r,n&q.Optional)}finally{je(o)}}return uf(r,t,n)}function ff(e,t,n,r=q.Default,i){if(e!==null){if(t[V]&2048&&!(r&q.Self)){let s=Kg(e,t,n,r,at);if(s!==at)return s}let o=df(e,t,n,r,at);if(o!==at)return o}return cf(t,n,r,i)}function df(e,t,n,r,i){let o=Wg(n);if(typeof o=="function"){if(!Kc(t,e,r))return r&q.Host?uf(i,n,r):cf(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&q.Optional))Ps(n);else return s}finally{Yc()}}else if(typeof o=="number"){let s=null,a=af(e,t),l=wn,c=r&q.Host?t[lt][ut]:null;for((a===-1||r&q.SkipSelf)&&(l=a===-1?lf(e,t):t[a+8],l===wn||!vl(r,!1)?a=-1:(s=t[W],a=Mo(l),t=Po(l,t)));a!==-1;){let f=t[W];if(gl(o,a,f.data)){let d=qg(a,t,n,s,r,c);if(d!==at)return d}l=t[a+8],l!==wn&&vl(r,t[W].data[a+8]===c)&&gl(o,a,t)?(s=f,a=Mo(l),t=Po(l,t)):a=-1}}return i}function qg(e,t,n,r,i,o){let s=t[W],a=s.data[e+8],l=r==null?Oi(a)&&jo:r!=s&&(a.type&3)!==0,c=i&q.Host&&o===a,f=Gg(a,s,n,l,c);return f!==null?Lo(t,s,f,a):at}function Gg(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,l=e.directiveStart,c=e.directiveEnd,f=o>>20,d=r?a:a+f,v=i?a+f:c;for(let b=d;b<v;b++){let w=s[b];if(b<l&&n===w||b>=l&&w.type===n)return b}if(i){let b=s[l];if(b&&rn(b)&&b.type===n)return l}return null}function Lo(e,t,n,r){let i=e[n],o=t.data;if(Ag(i)){let s=i;s.resolving&&xm(Cm(o[n]));let a=di(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?je(s.injectImpl):null,f=Kc(e,r,q.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&Ng(n,o[n],t)}finally{c!==null&&je(c),di(a),s.resolving=!1,Yc()}}return i}function Wg(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Yn)?e[Yn]:void 0;return typeof t=="number"?t>=0?t&rf:Zg:t}function gl(e,t,n){let r=1<<e;return!!(n[t+(e>>of)]&r)}function vl(e,t){return!(e&q.Self)&&!(e&q.Host&&t)}var hf=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return ff(this._tNode,this._lView,e,ki(n),t)}};function Zg(){return new hf(vr(),ge())}function Kg(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[V]&2048&&!fi(s);){let a=df(o,s,n,r|q.Self,at);if(a!==at)return a;let l=o.parent;if(!l){let c=s[Ac];if(c){let f=c.get(n,at,r);if(f!==at)return f}l=pf(s),s=s[jn]}o=l}return i}function pf(e){let t=e[W],n=t.type;return n===2?t.declTNode:n===1?e[ut]:null}function yl(e,t=null,n=null,r){let i=Qg(e,t,n,r);return i.resolveInjectorInitializers(),i}function Qg(e,t=null,n=null,r,i=new Set){let o=[n||zt,Bm(e)];return r=r||(typeof e=="object"?void 0:nt(e)),new Hs(o,t||Vs(),r||null,i)}var Pi=class mf{static THROW_IF_NOT_FOUND=tr;static NULL=new Cc;static create(t,n){if(Array.isArray(t))return yl({name:""},n,t,"");{let r=t.name??"";return yl({name:r},t.parent,t.providers,r)}}static \u0275prov=_e({token:mf,providedIn:"any",factory:()=>le(Sc)});static __NG_ELEMENT_ID__=-1},Xg=new ue("");Xg.__NG_ELEMENT_ID__=e=>{let t=vr();if(t===null)throw new ee(204,!1);if(t.type&2)return t.value;if(e&q.Optional)return null;throw new ee(204,!1)};var gf=!1,vf=(()=>{class e{static __NG_ELEMENT_ID__=Yg;static __NG_ENV_ID__=n=>n}return e})(),Jg=class extends vf{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return $c(this._lView,e),()=>fg(this._lView,e)}};function Yg(){return new Jg(ge())}var yr=class{},Qs=new ue("",{providedIn:"root",factory:()=>!1}),yf=new ue(""),Xs=new ue(""),ji=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Bp(!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=_e({token:e,providedIn:"root",factory:()=>new e})}return e})(),ev=class extends pr{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,eg()&&(this.destroyRef=se(vf,{optional:!0})??void 0,this.pendingTasks=se(ji,{optional:!0})??void 0)}emit(e){let t=X(null);try{super.next(e)}finally{X(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 vt&&e.add(s),s}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(t),n!==void 0&&this.pendingTasks?.remove(n)})}}},Tt=ev;function hi(...e){}function _f(e){let t,n;function r(){e=hi;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 _l(e){return queueMicrotask(()=>e()),()=>{e=hi}}var Js="isAngularZone",pi=Js+"_ID",tv=0,$e=class Fo{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Tt(!1);onMicrotaskEmpty=new Tt(!1);onStable=new Tt(!1);onError=new Tt(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=gf}=t;if(typeof Zone>"u")throw new ee(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,iv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Js)===!0}static assertInAngularZone(){if(!Fo.isInAngularZone())throw new ee(909,!1)}static assertNotInAngularZone(){if(Fo.isInAngularZone())throw new ee(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,nv,hi,hi);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)}},nv={};function Ys(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 rv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){_f(()=>{e.callbackScheduled=!1,Vo(e),e.isCheckStableRunning=!0,Ys(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Vo(e)}function iv(e){let t=()=>{rv(e)},n=tv++;e._inner=e._inner.fork({name:"angular",properties:{[Js]:!0,[pi]:n,[pi+n]:!0},onInvokeTask:(r,i,o,s,a,l)=>{if(ov(l))return r.invokeTask(o,s,a,l);try{return bl(e),r.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),wl(e)}},onInvoke:(r,i,o,s,a,l,c)=>{try{return bl(e),r.invoke(o,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!sv(l)&&t(),wl(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Vo(e),Ys(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 Vo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function bl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function wl(e){e._nesting--,Ys(e)}var bf=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Tt;onMicrotaskEmpty=new Tt;onStable=new Tt;onError=new Tt;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 ov(e){return wf(e,"__ignore_ng_zone__")}function sv(e){return wf(e,"__scheduler_tick__")}function wf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var _r=class{_console=console;handleError(e){this._console.error("ERROR",e)}},av=new ue("",{providedIn:"root",factory:()=>{let e=se($e),t=se(_r);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function lv(){return Ef(vr(),ge())}function Ef(e,t){return new Sf(on(e,t))}var Sf=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=lv}return e})();function co(e,t){let n=Cp(e),r=n[kt];return t?.equal&&(r.equal=t.equal),n.set=i=>Gu(r,i),n.update=i=>xp(r,i),n.asReadonly=uv.bind(n),n}function uv(){let e=this[kt];if(e.readonlyFn===void 0){let t=()=>this();t[kt]=e,e.readonlyFn=t}return e.readonlyFn}function If(e){return(e.flags&128)===128}var Cf=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Cf||{}),xf=new Map,cv=0;function fv(){return cv++}function dv(e){xf.set(e[Ni],e)}function Ho(e){xf.delete(e[Ni])}var El="__ngContext__";function br(e,t){$t(t)?(e[El]=t[Ni],dv(t)):e[El]=t}function Tf(e){return Df(e[or])}function kf(e){return Df(e[rt])}function Df(e){for(;e!==null&&!nn(e);)e=e[rt];return e}var Uo;function hv(e){Uo=e}function Nf(){if(Uo!==void 0)return Uo;if(typeof document<"u")return document;throw new ee(210,!1)}var Of=new ue("",{providedIn:"root",factory:()=>pv}),pv="ng",Af=new ue(""),ea=new ue("",{providedIn:"platform",factory:()=>"unknown"}),Rf=new ue("",{providedIn:"root",factory:()=>Nf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),mv="h",gv="b",Mf=!1,vv=new ue("",{providedIn:"root",factory:()=>Mf}),Pf=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Pf||{}),ta=new ue(""),Sl=new Set;function Li(e){Sl.has(e)||(Sl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var yv=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=_e({token:e,providedIn:"root",factory:()=>new e})}return e})(),_v=()=>null;function jf(e,t,n=!1){return _v(e,t,n)}function Lf(e,t){let n=e.contentQueries;if(n!==null){let r=X(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];Zc(o),a.contentQueries(2,t[s],s)}}}finally{X(r)}}}function $o(e,t,n){Zc(0);let r=X(null);try{t(e,n)}finally{X(r)}}function Ff(e,t,n){if(Mc(t)){let r=X(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{X(r)}}}var mt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(mt||{}),jr;function bv(){if(jr===void 0&&(jr=null,si.trustedTypes))try{jr=si.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return jr}function Fi(e){return bv()?.createHTML(e)||e}var Lr;function wv(){if(Lr===void 0&&(Lr=null,si.trustedTypes))try{Lr=si.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Lr}function Il(e){return wv()?.createHTML(e)||e}var an=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${mc})`}},Ev=class extends an{getTypeName(){return"HTML"}},Sv=class extends an{getTypeName(){return"Style"}},Iv=class extends an{getTypeName(){return"Script"}},Cv=class extends an{getTypeName(){return"URL"}},xv=class extends an{getTypeName(){return"ResourceURL"}};function xt(e){return e instanceof an?e.changingThisBreaksApplicationSecurity:e}function Vt(e,t){let n=Tv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${mc})`)}return n===t}function Tv(e){return e instanceof an&&e.getTypeName()||null}function kv(e){return new Ev(e)}function Dv(e){return new Sv(e)}function Nv(e){return new Iv(e)}function Ov(e){return new Cv(e)}function Av(e){return new xv(e)}function Rv(e){let t=new Pv(e);return jv()?new Mv(t):t}var Mv=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(Fi(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},Pv=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=Fi(e),t}};function jv(){try{return!!new window.DOMParser().parseFromString(Fi(""),"text/html")}catch{return!1}}var Lv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function na(e){return e=String(e),e.match(Lv)?e:"unsafe:"+e}function wt(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function wr(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Vf=wt("area,br,col,hr,img,wbr"),Hf=wt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Uf=wt("rp,rt"),Fv=wr(Uf,Hf),Vv=wr(Hf,wt("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")),Hv=wr(Uf,wt("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")),Cl=wr(Vf,Vv,Hv,Fv),$f=wt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Uv=wt("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"),$v=wt("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"),Bv=wr($f,Uv,$v),zv=wt("script,style,template"),qv=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=Zv(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=Wv(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=xl(e).toLowerCase();if(!Cl.hasOwnProperty(t))return this.sanitizedSomething=!0,!zv.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(!Bv.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let a=i.value;$f[s]&&(a=na(a)),this.buf.push(" ",o,'="',Tl(a),'"')}return this.buf.push(">"),!0}endElement(e){let t=xl(e).toLowerCase();Cl.hasOwnProperty(t)&&!Vf.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Tl(e))}};function Gv(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Wv(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Bf(t);return t}function Zv(e){let t=e.firstChild;if(t&&Gv(e,t))throw Bf(t);return t}function xl(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Bf(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Kv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Qv=/([^\#-~ |!])/g;function Tl(e){return e.replace(/&/g,"&amp;").replace(Kv,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Qv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Fr;function zf(e,t){let n=null;try{Fr=Fr||Rv(e);let r=t?String(t):"";n=Fr.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=Fr.getInertBodyElement(r)}while(r!==o);let s=new qv().sanitizeChildren(kl(n)||n);return Fi(s)}finally{if(n){let r=kl(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function kl(e){return"content"in e&&Xv(e)?e.content:null}function Xv(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var pt=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}(pt||{});function qf(e){let t=Gf();return t?Il(t.sanitize(pt.HTML,e)||""):Vt(e,"HTML")?Il(xt(e)):zf(Nf(),Ti(e))}function Jv(e){let t=Gf();return t?t.sanitize(pt.URL,e)||"":Vt(e,"URL")?xt(e):na(Ti(e))}function Gf(){let e=ge();return e&&e[yt].sanitizer}function Yv(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 Wf="ng-template";function ey(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&Yv(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(ra(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 ra(e){return e.type===4&&e.value!==Wf}function ty(e,t,n){let r=e.type===4&&!n?Wf:e.value;return t===r}function ny(e,t,n){let r=4,i=e.attrs,o=i!==null?oy(i):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!Ye(r)&&!Ye(l))return!1;if(s&&Ye(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!ty(e,l,n)||l===""&&t.length===1){if(Ye(r))return!1;s=!0}}else if(r&8){if(i===null||!ey(e,i,l,n)){if(Ye(r))return!1;s=!0}}else{let c=t[++a],f=ry(l,i,ra(e),n);if(f===-1){if(Ye(r))return!1;s=!0;continue}if(c!==""){let d;if(f>o?d="":d=i[f+1].toLowerCase(),r&2&&c!==d){if(Ye(r))return!1;s=!0}}}}return Ye(r)||s}function Ye(e){return(e&1)===0}function ry(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 sy(t,e)}function iy(e,t,n=!1){for(let r=0;r<t.length;r++)if(ny(e,t[r],n))return!0;return!1}function oy(e){for(let t=0;t<e.length;t++){let n=e[t];if(jg(n))return t}return e.length}function sy(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 Dl(e,t){return e?":not("+t.trim()+")":t}function ay(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!==""&&!Ye(s)&&(t+=Dl(o,i),i=""),r=s,o=o||!Ye(r);n++}return i!==""&&(t+=Dl(o,i)),t}function ly(e){return e.map(ay).join(",")}function uy(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(!Ye(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var jt={};function cy(e,t){return e.createText(t)}function fy(e,t,n){e.setValue(t,n)}function Zf(e,t,n){return e.createElement(t,n)}function Bo(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Kf(e,t,n){e.appendChild(t,n)}function Nl(e,t,n,r,i){r!==null?Bo(e,t,n,r,i):Kf(e,t,n)}function dy(e,t,n){e.removeChild(null,t,n)}function hy(e,t,n){e.setAttribute(t,"style",n)}function py(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Qf(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&Pg(e,t,r),i!==null&&py(e,t,i),o!==null&&hy(e,t,o)}function ia(e,t,n,r,i,o,s,a,l,c,f){let d=Ae+r,v=d+i,b=my(d,v),w=typeof c=="function"?c():c;return b[W]={type:e,blueprint:b,template:n,queries:null,viewQuery:a,declTNode:t,data:b.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:v,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:w,incompleteFirstPass:!1,ssrId:f}}function my(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:jt);return n}function gy(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=ia(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function oa(e,t,n,r,i,o,s,a,l,c,f){let d=t.blueprint.slice();return d[bt]=i,d[V]=r|4|128|8|64|1024,(c!==null||e&&e[V]&2048)&&(d[V]|=2048),Uc(d),d[Qe]=d[jn]=e,d[Te]=n,d[yt]=s||e&&e[yt],d[ze]=a||e&&e[ze],d[ir]=l||e&&e[ir]||null,d[ut]=o,d[Ni]=fv(),d[rr]=f,d[Ac]=c,d[lt]=t.type==2?e[lt]:d,d}function vy(e,t,n){let r=on(t,e),i=gy(n),o=e[yt].rendererFactory,s=Yf(e,oa(e,i,null,Xf(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function Xf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Jf(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 Yf(e,t){return e[or]?e[dl][rt]=t:e[or]=t,e[dl]=t,t}function En(e=1){ed(ct(),ge(),sn()+e,!1)}function ed(e,t,n,r){if(!r)if((t[V]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Qr(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Xr(t,i,0,n)}Wt(n)}var Vi=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Vi||{});function zo(e,t,n,r){let i=X(null);try{let[o,s,a]=e.inputs[n],l=null;(s&Vi.SignalBased)!==0&&(l=t[o][kt]),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):jc(t,l,o,r)}finally{X(i)}}function td(e,t,n,r,i){let o=sn(),s=r&2;try{Wt(-1),s&&t.length>Ae&&ed(e,t,Ae,!1),fe(s?2:0,i),n(r,i)}finally{Wt(o),fe(s?3:1,i)}}function sa(e,t,n){Iy(e,t,n),(n.flags&64)===64&&Cy(e,t,n)}function nd(e,t,n=on){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 yy(e,t,n,r){let i=r.get(vv,Mf)||n===mt.ShadowDom,o=e.selectRootElement(t,i);return _y(o),o}function _y(e){by(e)}var by=()=>null;function wy(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Ey(e,t,n,r,i,o,s,a){if(!a&&aa(t,e,n,r,i)){Oi(t)&&Sy(n,t.index);return}if(t.type&3){let l=on(t,n);r=wy(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(l,r,i)}else t.type&12}function Sy(e,t){let n=qt(t,e);n[V]&16||(n[V]|=64)}function Iy(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Oi(n)&&vy(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||sf(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let a=e.data[s],l=Lo(t,e,s,n);if(br(l,t),o!==null&&Ty(t,s-r,l,a,n,o),rn(a)){let c=qt(n.index,t);c[Te]=Lo(t,e,s,n)}}}function Cy(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=Ig();try{Wt(o);for(let a=r;a<i;a++){let l=e.data[a],c=t[a];Ro(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&xy(l,c)}}finally{Wt(-1),Ro(s)}}function xy(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function rd(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];iy(t,o.selectors,!1)&&(r??=[],rn(o)?r.unshift(o):r.push(o))}return r}function Ty(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],c=s[a+1];zo(r,n,l,c)}}function ky(e,t){let n=e[ir],r=n?n.get(_r,null):null;r&&r.handleError(t)}function aa(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 c=s[l],f=s[l+1],d=t.data[c];zo(d,n[c],f,i),a=!0}if(o)for(let l of o){let c=n[l],f=t.data[l];zo(f,c,r,i),a=!0}return a}function Dy(e,t){let n=qt(t,e),r=n[W];Ny(r,n);let i=n[bt];i!==null&&n[rr]===null&&(n[rr]=jf(i,n[ir])),fe(18),la(r,n,n[Te]),fe(19,n[Te])}function Ny(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function la(e,t,n){zs(t);try{let r=e.viewQuery;r!==null&&$o(1,r,n);let i=e.template;i!==null&&td(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[kn]?.finishViewCreation(e),e.staticContentQueries&&Lf(e,t),e.staticViewQueries&&$o(2,e.viewQuery,n);let o=e.components;o!==null&&Oy(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[V]&=-5,qs()}}function Oy(e,t){for(let n=0;n<t.length;n++)Dy(e,t[n])}function ua(e,t,n,r){let i=X(null);try{let o=t.tView,s=e[V]&4096?4096:16,a=oa(e,o,n,s,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];a[Tn]=l;let c=e[kn];return c!==null&&(a[kn]=c.createEmbeddedView(o)),la(o,a,n),a}finally{X(i)}}function ca(e,t){return!t||t.firstChild===null||If(e)}var Ay;function fa(e,t){return Ay(e,t)}var Ut=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ut||{});function id(e){return(e.flags&32)===32}function vn(e,t,n,r,i){if(r!=null){let o,s=!1;nn(r)?o=r:$t(r)&&(s=!0,r=r[bt]);let a=At(r);e===0&&n!==null?i==null?Kf(t,n,a):Bo(t,n,a,i||null,!0):e===1&&n!==null?Bo(t,n,a,i||null,!0):e===2?dy(t,a,s):e===3&&t.destroyNode(a),o!=null&&zy(t,e,o,n,i)}}function Ry(e,t){od(e,t),t[bt]=null,t[ut]=null}function My(e,t,n,r,i,o){r[bt]=i,r[ut]=t,Hi(e,r,n,1,i,o)}function od(e,t){t[yt].changeDetectionScheduler?.notify(9),Hi(e,t,t[ze],2,null,null)}function Py(e){let t=e[or];if(!t)return fo(e[W],e);for(;t;){let n=null;if($t(t))n=t[or];else{let r=t[Le];r&&(n=r)}if(!n){for(;t&&!t[rt]&&t!==e;)$t(t)&&fo(t[W],t),t=t[Qe];t===null&&(t=e),$t(t)&&fo(t[W],t),n=t&&t[rt]}t=n}}function da(e,t){let n=e[ci],r=n.indexOf(t);n.splice(r,1)}function ha(e,t){if(gr(t))return;let n=t[ze];n.destroyNode&&Hi(e,t,n,3,null,null),Py(t)}function fo(e,t){if(gr(t))return;let n=X(null);try{t[V]&=-129,t[V]|=256,t[Ue]&&Hu(t[Ue]),Ly(e,t),jy(e,t),t[W].type===1&&t[ze].destroy();let r=t[Tn];if(r!==null&&nn(t[Qe])){r!==t[Qe]&&da(r,t);let i=t[kn];i!==null&&i.detachView(e)}Ho(t)}finally{X(n)}}function jy(e,t){let n=e.cleanup,r=t[fl];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[fl]=null);let i=t[Nt];if(i!==null){t[Nt]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=t[ui];if(o!==null){t[ui]=null;for(let s of o)s.destroy()}}function Ly(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 Zs)){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];fe(4,a,l);try{l.call(a)}finally{fe(5,a,l)}}else{fe(4,i,o);try{o.call(i)}finally{fe(5,i,o)}}}}}function Fy(e,t,n){return Vy(e,t.parent,n)}function Vy(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[bt];if(Oi(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===mt.None||i===mt.Emulated)return null}return on(r,n)}function Hy(e,t,n){return $y(e,t,n)}function Uy(e,t,n){return e.type&40?on(e,n):null}var $y=Uy,Ol;function pa(e,t,n,r){let i=Fy(e,r,t),o=t[ze],s=r.parent||t[ut],a=Hy(s,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Nl(o,i,n[l],a,!1);else Nl(o,i,n,a,!1);Ol!==void 0&&Ol(o,r,t,n,i)}function Qn(e,t){if(t!==null){let n=t.type;if(n&3)return on(t,e);if(n&4)return qo(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Qn(e,r);{let i=e[t.index];return nn(i)?qo(-1,i):At(i)}}else{if(n&128)return Qn(e,t.next);if(n&32)return fa(t,e)()||At(e[t.index]);{let r=sd(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Gt(e[lt]);return Qn(i,r)}else return Qn(e,t.next)}}}return null}function sd(e,t){if(t!==null){let n=e[lt][ut],r=t.projection;return n.projection[r]}return null}function qo(e,t){let n=Le+e+1;if(n<t.length){let r=t[n],i=r[W].firstChild;if(i!==null)return Qn(r,i)}return t[sr]}function ma(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&&br(At(a),r),n.flags|=2),!id(n))if(l&8)ma(e,t,n.child,r,i,o,!1),vn(t,e,i,a,o);else if(l&32){let c=fa(n,r),f;for(;f=c();)vn(t,e,i,f,o);vn(t,e,i,a,o)}else l&16?By(e,t,r,n,i,o):vn(t,e,i,a,o);n=s?n.projectionNext:n.next}}function Hi(e,t,n,r,i,o){ma(n,r,e.firstChild,t,i,o,!1)}function By(e,t,n,r,i,o){let s=n[lt],a=s[ut].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){let c=a[l];vn(t,e,i,c,o)}else{let l=a,c=s[Qe];If(r)&&(l.flags|=128),ma(e,t,l,c,i,o,!0)}}function zy(e,t,n,r,i){let o=n[sr],s=At(n);o!==s&&vn(t,e,r,o,i);for(let a=Le;a<n.length;a++){let l=n[a];Hi(l[W],l,e,t,r,o)}}function qy(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:Ut.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Ut.Important),e.setStyle(n,r,i,o))}}function mi(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(At(o)),nn(o)&&Gy(o,r);let s=n.type;if(s&8)mi(e,t,n.child,r);else if(s&32){let a=fa(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=sd(t,n);if(Array.isArray(a))r.push(...a);else{let l=Gt(t[lt]);mi(l[W],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function Gy(e,t){for(let n=Le;n<e.length;n++){let r=e[n],i=r[W].firstChild;i!==null&&mi(r[W],r,i,t)}e[sr]!==e[bt]&&t.push(e[sr])}function ad(e){if(e[so]!==null){for(let t of e[so])t.impl.addSequence(t);e[so].length=0}}var ld=[];function Wy(e){return e[Ue]??Zy(e)}function Zy(e){let t=ld.pop()??Object.create(Qy);return t.lView=e,t}function Ky(e){e.lView[Ue]!==e&&(e.lView=null,ld.push(e))}var Qy=de(C({},Ns),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Ri(e.lView)},consumerOnSignalRead(){this.lView[Ue]=this}});function Xy(e){let t=e[Ue]??Object.create(Jy);return t.lView=e,t}var Jy=de(C({},Ns),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Gt(e.lView);for(;t&&!ud(t[W]);)t=Gt(t);t&&Bs(t)},consumerOnSignalRead(){this.lView[Ue]=this}});function ud(e){return e.type!==2}function cd(e){if(e[ui]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[ui])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[V]&8192)}}var Yy=100;function fd(e,t=!0,n=0){let r=e[yt].rendererFactory,i=!1;i||r.begin?.();try{e_(e,n)}catch(o){throw t&&ky(e,o),o}finally{i||r.end?.()}}function e_(e,t){let n=Gc();try{hl(!0),Go(e,t);let r=0;for(;Ai(e);){if(r===Yy)throw new ee(103,!1);r++,Go(e,1)}}finally{hl(n)}}function t_(e,t,n,r){if(gr(t))return;let i=t[V],o=!1,s=!1;zs(t);let a=!0,l=null,c=null;o||(ud(e)?(c=Wy(t),l=Ja(c)):gp()===null?(a=!1,c=Xy(t),l=Ja(c)):t[Ue]&&(Hu(t[Ue]),t[Ue]=null));try{Uc(t),bg(e.bindingStartIndex),n!==null&&td(e,t,n,2,r);let f=(i&3)===3;if(!o)if(f){let b=e.preOrderCheckHooks;b!==null&&Qr(t,b,null)}else{let b=e.preOrderHooks;b!==null&&Xr(t,b,0,null),ao(t,0)}if(s||n_(t),cd(t),dd(t,0),e.contentQueries!==null&&Lf(e,t),!o)if(f){let b=e.contentCheckHooks;b!==null&&Qr(t,b)}else{let b=e.contentHooks;b!==null&&Xr(t,b,1),ao(t,1)}i_(e,t);let d=e.components;d!==null&&pd(t,d,0);let v=e.viewQuery;if(v!==null&&$o(2,v,r),!o)if(f){let b=e.viewCheckHooks;b!==null&&Qr(t,b)}else{let b=e.viewHooks;b!==null&&Xr(t,b,2),ao(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[oo]){for(let b of t[oo])b();t[oo]=null}o||(ad(t),t[V]&=-73)}catch(f){throw o||Ri(t),f}finally{c!==null&&(wp(c,l),a&&Ky(c)),qs()}}function dd(e,t){for(let n=Tf(e);n!==null;n=kf(n))for(let r=Le;r<n.length;r++){let i=n[r];hd(i,t)}}function n_(e){for(let t=Tf(e);t!==null;t=kf(t)){if(!(t[V]&2))continue;let n=t[ci];for(let r=0;r<n.length;r++){let i=n[r];Bs(i)}}}function r_(e,t,n){fe(18);let r=qt(t,e);hd(r,n),fe(19,r[Te])}function hd(e,t){$s(e)&&Go(e,t)}function Go(e,t){let n=e[W],r=e[V],i=e[Ue],o=!!(t===0&&r&16);if(o||=!!(r&64&&t===0),o||=!!(r&1024),o||=!!(i?.dirty&&Vu(i)),o||=!1,i&&(i.dirty=!1),e[V]&=-9217,o)t_(n,e,n.template,e[Te]);else if(r&8192){cd(e),dd(e,1);let s=n.components;s!==null&&pd(e,s,1),ad(e)}}function pd(e,t,n){for(let r=0;r<t.length;r++)r_(e,t[r],n)}function i_(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)Wt(~i);else{let o=i,s=n[++r],a=n[++r];Sg(s,o);let l=t[o];fe(24,l),a(2,l),fe(25,l)}}}finally{Wt(-1)}}function md(e,t){let n=Gc()?64:1088;for(e[yt].changeDetectionScheduler?.notify(t);e;){e[V]|=n;let r=Gt(e);if(fi(e)&&!r)return e;e=r}return null}function o_(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function gd(e,t){let n=Le+t;if(n<e.length)return e[n]}function ga(e,t,n,r=!0){let i=t[W];if(s_(i,t,e,n),r){let s=qo(n,e),a=t[ze],l=a.parentNode(e[sr]);l!==null&&My(i,e[ut],a,t,l,s)}let o=t[rr];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function vd(e,t){let n=va(e,t);return n!==void 0&&ha(n[W],n),n}function va(e,t){if(e.length<=Le)return;let n=Le+t,r=e[n];if(r){let i=r[Tn];i!==null&&i!==e&&da(i,r),t>0&&(e[n-1][rt]=r[rt]);let o=Ec(e,Le+t);Ry(r[W],r);let s=o[kn];s!==null&&s.detachView(o[W]),r[Qe]=null,r[rt]=null,r[V]&=-129}return r}function s_(e,t,n,r){let i=Le+r,o=n.length;r>0&&(n[i-1][rt]=t),r<o-Le?(t[rt]=n[i],Lm(n,Le+r,t)):(n.push(t),t[rt]=null),t[Qe]=n;let s=t[Tn];s!==null&&n!==s&&yd(s,t);let a=t[kn];a!==null&&a.insertView(e),Oo(t),t[V]|=128}function yd(e,t){let n=e[ci],r=t[Qe];if($t(r))e[V]|=2;else{let i=r[Qe][lt];t[lt]!==i&&(e[V]|=2)}n===null?e[ci]=[t]:n.push(t)}var a_=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,t=e[W];return mi(t,e,t.firstChild,[])}constructor(e,t,n=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=n}get context(){return this._lView[Te]}get dirty(){return!!(this._lView[V]&9280)||!!this._lView[Ue]?.dirty}set context(e){this._lView[Te]=e}get destroyed(){return gr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[Qe];if(nn(e)){let t=e[tg],n=t?t.indexOf(this):-1;n>-1&&(va(e,n),Ec(t,n))}this._attachedToViewContainer=!1}ha(this._lView[W],this._lView)}onDestroy(e){$c(this._lView,e)}markForCheck(){md(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Bs(this._cdRefInjectingView||this._lView)}detach(){this._lView[V]&=-129}reattach(){Oo(this._lView),this._lView[V]|=128}detectChanges(){this._lView[V]|=1024,fd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ee(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=fi(this._lView),t=this._lView[Tn];t!==null&&!e&&da(t,this._lView),od(this._lView[W],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new ee(902,!1);this._appRef=e;let t=fi(this._lView),n=this._lView[Tn];n!==null&&!t&&yd(n,this._lView),Oo(this._lView)}};function Ui(e,t,n,r,i){let o=e.data[t];if(o===null)o=l_(e,t,n,r,i),Eg()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=yg();o.injectorIndex=s===null?-1:s.injectorIndex}return Ln(o,!0),o}function l_(e,t,n,r,i){let o=zc(),s=qc(),a=s?o:o&&o.parent,l=e.data[t]=c_(e,a,n,t,r,i);return u_(e,l,o,s),l}function u_(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 c_(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return mg()&&(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 RI=new RegExp(`^(\\d+)*(${gv}|${mv})*(.*)`),f_=()=>null;function ya(e,t){return f_(e,t)}var d_=class{},_d=class{},h_=class{resolveComponentFactory(e){throw Error(`No component factory found for ${nt(e)}.`)}},Er=class{static NULL=new h_},_a=class{},p_=(()=>{class e{static \u0275prov=_e({token:e,providedIn:"root",factory:()=>null})}return e})();function Al(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=il(i,a);else if(o==2){let l=a,c=t[++s];r=il(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function $i(e,t=q.Default){let n=ge();if(n===null)return le(e,t);let r=vr();return ff(r,n,et(e),t)}function bd(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let a,l=null,c=null,f=g_(s);f===null?a=s:[a,l,c]=f,__(e,t,n,a,o,l,c)}o!==null&&r!==null&&m_(n,r,o)}function m_(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 ee(-301,!1);r.push(t[i],o)}}function g_(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&rn(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,v_(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 v_(e,t,n,r){let i=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[i,t.length-1])}function y_(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function __(e,t,n,r,i,o,s){let a=r.length,l=!1;for(let v=0;v<a;v++){let b=r[v];!l&&rn(b)&&(l=!0,y_(e,n,v)),zg(sf(n,t),e,b.type)}C_(n,e.data.length,a);for(let v=0;v<a;v++){let b=r[v];b.providersResolver&&b.providersResolver(b)}let c=!1,f=!1,d=Jf(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let v=0;v<a;v++){let b=r[v];if(n.mergedAttrs=Ks(n.mergedAttrs,b.hostAttrs),w_(e,n,t,d,b),I_(d,b,i),s!==null&&s.has(b)){let[I,O]=s.get(b);n.directiveToIndex.set(b.type,[d,I+n.directiveStart,O+n.directiveStart])}else(o===null||!o.has(b))&&n.directiveToIndex.set(b.type,d);b.contentQueries!==null&&(n.flags|=4),(b.hostBindings!==null||b.hostAttrs!==null||b.hostVars!==0)&&(n.flags|=64);let w=b.type.prototype;!c&&(w.ngOnChanges||w.ngOnInit||w.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),c=!0),!f&&(w.ngOnChanges||w.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),f=!0),d++}b_(e,n,o)}function b_(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Rl(0,t,i,r),Rl(1,t,i,r),Pl(t,r,!1);else{let o=n.get(i);Ml(0,t,o,r),Ml(1,t,o,r),Pl(t,r,!0)}}}function Rl(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),wd(t,o)}}function Ml(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),wd(t,s)}}function wd(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Pl(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||ra(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 c=i[l];for(let f of c)if(f===t){s??=[],s.push(l,r[a+1]);break}}else if(n&&o.hasOwnProperty(l)){let c=o[l];for(let f=0;f<c.length;f+=2)if(c[f]===t){s??=[],s.push(c[f+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function w_(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=Cn(i.type,!0)),s=new Zs(o,rn(i),$i);e.blueprint[r]=s,n[r]=s,E_(e,t,r,Jf(e,n,i.hostVars,jt),i)}function E_(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;S_(s)!=a&&s.push(a),s.push(n,r,o)}}function S_(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function I_(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;rn(t)&&(n[""]=e)}}function C_(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ed(e,t,n,r,i,o,s,a){let l=t.consts,c=Dn(l,s),f=Ui(t,e,2,r,c);return o&&bd(t,n,f,Dn(l,a),i),f.mergedAttrs=Ks(f.mergedAttrs,f.attrs),f.attrs!==null&&Al(f,f.attrs,!1),f.mergedAttrs!==null&&Al(f,f.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,f),f}function Sd(e,t){tf(e,t),Mc(t)&&e.queries.elementEnd(t)}var x_=class extends Er{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=Di(e);return new A_(t,this.ngModule)}};function T_(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&Vi.SignalBased)!==0};return i&&(o.transform=i),o})}function k_(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function D_(e,t,n){let r=t instanceof nr?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Fg(n,r):n}function N_(e){let t=e.get(_a,null);if(t===null)throw new ee(407,!1);let n=e.get(p_,null),r=e.get(yr,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function O_(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Zf(t,n,n==="svg"?lg:n==="math"?ug:null)}var A_=class extends _d{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return T_(this.componentDef.inputs)}get outputs(){return k_(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=ly(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r){fe(22);let i=X(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:uy(this.componentDef.selectors[0]),a=ia(0,null,null,1,0,null,null,null,null,[s],null),l=D_(o,r||this.ngModule,e),c=N_(l),f=c.rendererFactory.createRenderer(null,o),d=n?yy(f,n,o.encapsulation,l):O_(o,f),v=oa(null,a,null,512|Xf(o),null,null,c,f,l,null,jf(d,l,!0));v[Ae]=d,zs(v);let b=null;try{let w=Ed(Ae,a,v,"#host",()=>[this.componentDef],!0,0);d&&(Qf(f,d,w),br(d,v)),sa(a,v,w),Ff(a,w,v),Sd(a,w),t!==void 0&&M_(w,this.ngContentSelectors,t),b=qt(w.index,v),v[Te]=b[Te],la(a,v,null)}catch(w){throw b!==null&&Ho(b),Ho(v),w}finally{fe(23),qs()}return new R_(this.componentType,v)}finally{X(i)}}},R_=class extends d_{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t){super(),this._rootLView=t,this._tNode=Us(t[W],Ae),this.location=Ef(this._tNode,t),this.instance=qt(this._tNode.index,t)[Te],this.hostView=this.changeDetectorRef=new a_(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=aa(n,r[W],r,e,t);this.previousInputValues.set(e,t);let o=qt(n.index,r);md(o,1)}get injector(){return new hf(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function M_(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 P_=()=>!1;function j_(e,t,n){return P_(e,t,n)}var Wo=class{},Id=class extends Wo{injector;componentFactoryResolver=new x_(this);instance=null;constructor(e){super();let t=new Hs([...e.providers,{provide:Wo,useValue:this},{provide:Er,useValue:this.componentFactoryResolver}],e.parent||Vs(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function L_(e,t,n=null){return new Id({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var F_=(()=>{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=kc(!1,n.type),i=r.length>0?L_([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=_e({token:e,providedIn:"environment",factory:()=>new e(le(nr))})}return e})();function V_(e){return vm(()=>{let t=z_(e),n=de(C({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Cf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(F_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||mt.Emulated,styles:e.styles||zt,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Li("NgStandalone"),q_(n);let r=e.dependencies;return n.directiveDefs=jl(r,!1),n.pipeDefs=jl(r,!0),n.id=G_(n),n})}function H_(e){return Di(e)||xc(e)}function U_(e){return e!==null}function $_(e,t){if(e==null)return xn;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=Vi.None,l=null),n[o]=[r,a,l],t[o]=s}return n}function B_(e){if(e==null)return xn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function ba(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 z_(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||xn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||zt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:$_(e.inputs,t),outputs:B_(e.outputs),debugInfo:null}}function q_(e){e.features?.forEach(t=>t(e))}function jl(e,t){if(!e)return null;let n=t?Tc:H_;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(U_)}function G_(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 Cd(e,t,n){return e[t]=n}function Rt(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function W_(e,t,n,r){let i=Rt(e,t,n);return Rt(e,t+1,r)||i}function Z_(e,t,n,r,i,o,s,a,l){let c=t.consts,f=Ui(t,e,4,s||null,a||null);Bc()&&bd(t,n,f,Dn(c,l),rd),f.mergedAttrs=Ks(f.mergedAttrs,f.attrs),tf(t,f);let d=f.tView=ia(2,f,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,f),d.queries=t.queries.embeddedTView(f)),f}function Zo(e,t,n,r,i,o,s,a,l,c){let f=n+Ae,d=t.firstCreatePass?Z_(f,t,e,r,i,o,s,a,l):t.data[f];Ln(d,!1);let v=K_(t,e,d,n);Gs()&&pa(t,e,v,d),br(v,e);let b=o_(v,e,v,d);return e[f]=b,Yf(e,b),j_(b,d,e),Pc(d)&&sa(t,e,d),l!=null&&nd(e,d,c),d}function xd(e,t,n,r,i,o,s,a){let l=ge(),c=ct(),f=Dn(c.consts,o);return Zo(l,c,e,t,n,r,i,f,s,a),xd}var K_=Q_;function Q_(e,t,n,r){return Ws(!0),t[ze].createComment("")}var X_=new ue(""),J_=(()=>{class e{static \u0275prov=_e({token:e,providedIn:"root",factory:()=>new Y_})}return e})(),Y_=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 Td(e){return!!e&&typeof e.then=="function"}function eb(e){return!!e&&typeof e.subscribe=="function"}var tb=new ue(""),kd=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=se(tb,{optional:!0})??[];injector=se(Pi);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=Oc(this.injector,i);if(Td(o))n.push(o);else if(eb(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=_e({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),nb=new ue("");function rb(){Sp(()=>{throw new ee(600,!1)})}function ib(e){return e.isBoundToModule}var ob=10,Nn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=se(av);afterRenderManager=se(yv);zonelessEnabled=se(Qs);rootEffectScheduler=se(J_);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new pr;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=se(ji).hasPendingTasks.pipe(hc(n=>!n));constructor(){se(ta,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=se(nr);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){fe(10);let i=n instanceof _d;if(!this._injector.get(kd).done){let d=!i&&Um(n),v=!1;throw new ee(405,v)}let o;i?o=n:o=this._injector.get(Er).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=ib(o)?void 0:this._injector.get(Wo),a=r||o.selector,l=o.create(Pi.NULL,[],a,s),c=l.location.nativeElement,f=l.injector.get(X_,null);return f?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Jr(this.components,l),f?.unregisterApplication(c)}),this._loadComponent(l),fe(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){fe(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Pf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new ee(101,!1);let n=X(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,X(n),this.afterTick.next(),fe(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(_a,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<ob;)fe(14),this.synchronizeOnce(),fe(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)sb(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})=>Ai(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;Jr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(nb,[]).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),()=>Jr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new ee(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=_e({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Jr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function sb(e,t,n,r){!n&&!Ai(e)||fd(e,t,n&&!r?0:1)}function ab(e,t,n,r){return Rt(e,Mi(),n)?t+Ti(n)+r:jt}function Vr(e,t){return e<<17|t<<2}function Zt(e){return e>>17&32767}function lb(e){return(e&2)==2}function ub(e,t){return e&131071|t<<17}function Ko(e){return e|2}function On(e){return(e&131068)>>2}function ho(e,t){return e&-131069|t<<2}function cb(e){return(e&1)===1}function Qo(e){return e|1}function fb(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Zt(s),l=On(s);e[r]=n;let c=!1,f;if(Array.isArray(n)){let d=n;f=d[1],(f===null||mr(d,f)>0)&&(c=!0)}else f=n;if(i)if(l!==0){let d=Zt(e[a+1]);e[r+1]=Vr(d,a),d!==0&&(e[d+1]=ho(e[d+1],r)),e[a+1]=ub(e[a+1],r)}else e[r+1]=Vr(a,0),a!==0&&(e[a+1]=ho(e[a+1],r)),a=r;else e[r+1]=Vr(l,0),a===0?a=r:e[l+1]=ho(e[l+1],r),l=r;c&&(e[r+1]=Ko(e[r+1])),Ll(e,f,r,!0),Ll(e,f,r,!1),db(t,f,e,r,o),s=Vr(a,l),o?t.classBindings=s:t.styleBindings=s}function db(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&mr(o,t)>=0&&(n[r+1]=Qo(n[r+1]))}function Ll(e,t,n,r){let i=e[n+1],o=t===null,s=r?Zt(i):On(i),a=!1;for(;s!==0&&(a===!1||o);){let l=e[s],c=e[s+1];hb(l,t)&&(a=!0,e[s+1]=r?Qo(c):Ko(c)),s=r?Zt(c):On(c)}a&&(e[n+1]=r?Ko(i):Qo(i))}function hb(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?mr(e,t)>=0:!1}function gi(e,t,n){let r=ge(),i=Mi();if(Rt(r,i,t)){let o=ct(),s=kg();Ey(o,s,r,e,t,r[ze],n,!1)}return gi}function Fl(e,t,n,r,i){aa(t,e,n,i?"class":"style",r)}function wa(e,t,n){return pb(e,t,n,!1),wa}function pb(e,t,n,r){let i=ge(),o=ct(),s=wg(2);if(o.firstUpdatePass&&gb(o,e,s,r),t!==jt&&Rt(i,s,t)){let a=o.data[sn()];wb(o,a,i,i[ze],e,i[s+1]=Eb(t,n),r,s)}}function mb(e,t){return t>=e.expandoStartIndex}function gb(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[sn()],s=mb(e,n);Sb(o,r)&&t===null&&!s&&(t=!1),t=vb(i,o,t,r),fb(i,o,t,n,s,r)}}function vb(e,t,n,r){let i=Cg(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=po(null,e,t,n,r),n=ar(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=po(i,e,t,n,r),o===null){let a=yb(e,t,r);a!==void 0&&Array.isArray(a)&&(a=po(null,e,t,a[1],r),a=ar(a,t.attrs,r),_b(e,t,r,a))}else o=bb(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function yb(e,t,n){let r=n?t.classBindings:t.styleBindings;if(On(r)!==0)return e[Zt(r)]}function _b(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Zt(i)]=r}function bb(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=ar(r,s,n)}return ar(r,t.attrs,n)}function po(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=ar(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function ar(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]),Vm(e,s,n?!0:t[++o]))}return e===void 0?null:e}function wb(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],f=cb(c)?Vl(l,t,n,i,On(c),s):void 0;if(!vi(f)){vi(o)||lb(c)&&(o=Vl(l,null,n,i,a,s));let d=Vc(sn(),n);qy(r,s,d,i,o)}}function Vl(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let l=e[i],c=Array.isArray(l),f=c?l[1]:l,d=f===null,v=n[i+1];v===jt&&(v=d?zt:void 0);let b=d?ro(v,r):f===r?v:void 0;if(c&&!vi(b)&&(b=ro(l,r)),vi(b)&&(a=b,s))return a;let w=e[i+1];i=s?Zt(w):On(w)}if(t!==null){let l=o?t.residualClasses:t.residualStyles;l!=null&&(a=ro(l,r))}return a}function vi(e){return e!==void 0}function Eb(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=nt(xt(e)))),e}function Sb(e,t){return(e.flags&(t?8:16))!==0}var Ib=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 mo(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function Cb(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 c=e.at(o),f=t[o],d=mo(o,c,o,f,n);if(d!==0){d<0&&e.updateValue(o,f),o++;continue}let v=e.at(s),b=t[l],w=mo(s,v,l,b,n);if(w!==0){w<0&&e.updateValue(s,b),s--,l--;continue}let I=n(o,c),O=n(s,v),A=n(o,f);if(Object.is(A,O)){let J=n(l,b);Object.is(J,I)?(e.swap(o,s),e.updateValue(s,b),l--,s--):e.move(s,o),e.updateValue(o,f),o++;continue}if(r??=new $l,i??=Ul(e,o,s,n),Xo(e,r,o,A))e.updateValue(o,f),o++,s++;else if(i.has(A))r.set(I,e.detach(o)),s--;else{let J=e.create(o,t[o]);e.attach(o,J),o++,s++}}for(;o<=l;)Hl(e,r,n,o,t[o]),o++}else if(t!=null){let l=t[Symbol.iterator](),c=l.next();for(;!c.done&&o<=s;){let f=e.at(o),d=c.value,v=mo(o,f,o,d,n);if(v!==0)v<0&&e.updateValue(o,d),o++,c=l.next();else{r??=new $l,i??=Ul(e,o,s,n);let b=n(o,d);if(Xo(e,r,o,b))e.updateValue(o,d),o++,s++,c=l.next();else if(!i.has(b))e.attach(o,e.create(o,d)),o++,s++,c=l.next();else{let w=n(o,f);r.set(w,e.detach(o)),s--}}}for(;!c.done;)Hl(e,r,n,e.length,c.value),c=l.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(l=>{e.destroy(l)})}function Xo(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Hl(e,t,n,r,i){if(Xo(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function Ul(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 $l=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 xb(e,t){Li("NgControlFlow");let n=ge(),r=Mi(),i=n[r]!==jt?n[r]:-1,o=i!==-1?yi(n,Ae+i):void 0,s=0;if(Rt(n,r,e)){let a=X(null);try{if(o!==void 0&&vd(o,s),e!==-1){let l=Ae+e,c=yi(n,l),f=Jo(n[W],l),d=ya(c,f.tView.ssrId),v=ua(n,f,t,{dehydratedView:d});ga(c,v,s,ca(f,d))}}finally{X(a)}}else if(o!==void 0){let a=gd(o,s);a!==void 0&&(a[Te]=t)}}var Tb=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-Le}},kb=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function Db(e,t,n,r,i,o,s,a,l,c,f,d,v){Li("NgControlFlow");let b=ge(),w=ct(),I=l!==void 0,O=ge(),A=a?s.bind(O[lt][Te]):s,J=new kb(I,A);O[Ae+e]=J,Zo(b,w,e+1,t,n,r,i,Dn(w.consts,o)),I&&Zo(b,w,e+2,l,c,f,d,Dn(w.consts,v))}var Nb=class extends Ib{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-Le}at(e){return this.getLView(e)[Te].$implicit}attach(e,t){let n=t[rr];this.needsIndexUpdate||=e!==this.length,ga(this.lContainer,t,e,ca(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,Ab(this.lContainer,e)}create(e,t){let n=ya(this.lContainer,this.templateTNode.tView.ssrId),r=ua(this.hostLView,this.templateTNode,new Tb(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){ha(e[W],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[Te].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[Te].$index=e}getLView(e){return Rb(this.lContainer,e)}};function Ob(e){let t=X(null),n=sn();try{let r=ge(),i=r[W],o=r[n],s=n+1,a=yi(r,s);if(o.liveCollection===void 0){let c=Jo(i,s);o.liveCollection=new Nb(a,r,c)}else o.liveCollection.reset();let l=o.liveCollection;if(Cb(l,e,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let c=Mi(),f=l.length===0;if(Rt(r,c,f)){let d=n+2,v=yi(r,d);if(f){let b=Jo(i,d),w=ya(v,b.tView.ssrId),I=ua(r,b,void 0,{dehydratedView:w});ga(v,I,0,ca(b,w))}else vd(v,0)}}}finally{X(t)}}function yi(e,t){return e[t]}function Ab(e,t){return va(e,t)}function Rb(e,t){return gd(e,t)}function Jo(e,t){return Us(e,t)}function lr(e,t,n,r){let i=ge(),o=ct(),s=Ae+e,a=i[ze],l=o.firstCreatePass?Ed(s,o,i,t,rd,Bc(),n,r):o.data[s],c=Mb(o,i,l,a,t,e);i[s]=c;let f=Pc(l);return Ln(l,!0),Qf(a,c,l),!id(l)&&Gs()&&pa(o,i,c,l),(dg()===0||f)&&br(c,i),hg(),f&&(sa(o,i,l),Ff(o,l,i)),r!==null&&nd(i,l),lr}function ur(){let e=vr();qc()?_g():(e=e.parent,Ln(e,!1));let t=e;gg(t)&&vg(),pg();let n=ct();return n.firstCreatePass&&Sd(n,t),t.classesWithoutHost!=null&&Rg(t)&&Fl(n,t,ge(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Mg(t)&&Fl(n,t,ge(),t.stylesWithoutHost,!1),ur}function cr(e,t,n,r){return lr(e,t,n,r),ur(),cr}var Mb=(e,t,n,r,i,o)=>(Ws(!0),Zf(r,i,Dg())),_i="en-US",Pb=_i;function jb(e){typeof e=="string"&&(Pb=e.toLowerCase().replace(/_/g,"-"))}function Dd(e=1){return Tg(e)}function Nd(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Lb(e,t=""){let n=ge(),r=ct(),i=e+Ae,o=r.firstCreatePass?Ui(r,i,1,t,null):r.data[i],s=Fb(r,n,o,t,e);n[i]=s,Gs()&&pa(r,n,s,o),Ln(o,!1)}var Fb=(e,t,n,r,i)=>(Ws(!0),cy(t[ze],r));function Od(e){return Ad("",e,""),Od}function Ad(e,t,n){let r=ge(),i=ab(r,e,t,n);return i!==jt&&Vb(r,sn(),i),Ad}function Vb(e,t,n){let r=Vc(t,e);fy(e[ze],r,n)}var Hb={};function Rd(e){let t=ct(),n=ge(),r=e+Ae,i=Ui(t,r,128,null,null);return Ln(i,!1),Nd(t,n,r,Hb),Rd}function Md(e,t){let n=e[t];return n===jt?void 0:n}function Ub(e,t,n,r,i,o){let s=t+n;return Rt(e,s,i)?Cd(e,s+1,o?r.call(o,i):r(i)):Md(e,s+1)}function $b(e,t,n,r,i,o,s){let a=t+n;return W_(e,a,i,o)?Cd(e,a+2,s?r.call(s,i,o):r(i,o)):Md(e,a+2)}function bi(e,t){let n=ct(),r,i=e+Ae;n.firstCreatePass?(r=Bb(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=Cn(r.type,!0)),s,a=je($i);try{let l=di(!1),c=o();return di(l),Nd(n,ge(),i,c),c}finally{je(a)}}function Bb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Yo(e,t,n){let r=e+Ae,i=ge(),o=Hc(i,r);return Pd(i,r)?Ub(i,Wc(),t,o.transform,n,o):o.transform(n)}function zb(e,t,n,r){let i=e+Ae,o=ge(),s=Hc(o,i);return Pd(o,i)?$b(o,Wc(),t,s.transform,n,r,s):s.transform(n,r)}function Pd(e,t){return e[W].data[t].pure}var qb=(()=>{class e{zone=se($e);changeDetectionScheduler=se(yr);applicationRef=se(Nn);_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=_e({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Gb({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new $e(de(C({},Wb()),{scheduleInRootZone:n})),[{provide:$e,useFactory:e},{provide:li,multi:!0,useFactory:()=>{let r=se(qb,{optional:!0});return()=>r.initialize()}},{provide:li,multi:!0,useFactory:()=>{let r=se(Zb);return()=>{r.initialize()}}},t===!0?{provide:yf,useValue:!0}:[],{provide:Xs,useValue:n??gf}]}function Wb(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Zb=(()=>{class e{subscription=new vt;initialized=!1;zone=se($e);pendingTasks=se(ji);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(()=>{$e.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$e.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=_e({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jd=(()=>{class e{appRef=se(Nn);taskService=se(ji);ngZone=se($e);zonelessEnabled=se(Qs);tracing=se(ta,{optional:!0});disableScheduling=se(yf,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new vt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(pi):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(se(Xs,{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 bf||!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?_l:_f;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(pi+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,_l(()=>{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=_e({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Kb(){return Li("NgZoneless"),$m([{provide:yr,useExisting:jd},{provide:$e,useClass:bf},{provide:Qs,useValue:!0},{provide:Xs,useValue:!1},[]])}function Qb(){return typeof $localize<"u"&&$localize.locale||_i}var Ld=new ue("",{providedIn:"root",factory:()=>se(Ld,q.Optional|q.SkipSelf)||Qb()}),es=new ue(""),Xb=new ue("");function Wn(e){return!e.moduleRef}function Jb(e){let t=Wn(e)?e.r3Injector:e.moduleRef.injector,n=t.get($e);return n.run(()=>{Wn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(_r,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Wn(e)){let o=()=>t.destroy(),s=e.platformInjector.get(es);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(es);s.add(o),e.moduleRef.onDestroy(()=>{Jr(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return e0(r,n,()=>{let o=t.get(kd);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Ld,_i);if(jb(s||_i),!t.get(Xb,!0))return Wn(e)?t.get(Nn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Wn(e)){let a=t.get(Nn);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Yb(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Yb(e,t){let n=e.injector.get(Nn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new ee(-403,!1);t.push(e)}function e0(e,t,n){try{let r=n();return Td(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Yr=null;function t0(e=[],t){return Pi.create({name:t,providers:[{provide:Fs,useValue:"platform"},{provide:es,useValue:new Set([()=>Yr=null])},...e]})}function n0(e=[]){if(Yr)return Yr;let t=t0(e);return Yr=t,rb(),r0(t),t}function r0(e){let t=e.get(Af,null);Oc(e,()=>{t?.forEach(n=>n())})}function i0(e){fe(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=n0(r),o=[Gb({}),{provide:yr,useExisting:jd},...n||[]],s=new Id({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return Jb({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}finally{fe(9)}}var MI=class{[kt];constructor(e){this[kt]=e}destroy(){this[kt].destroy()}},o0={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function s0(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function a0(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var go;function l0(e,t){if(!go){let n=Element.prototype;go=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?go.call(e,t):!1}function u0(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[s0(r)]=[n,i]}),t}function c0(e,t){return t.get(Er).resolveComponentFactory(e).inputs}function f0(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=d0(a,t,i);l!==-1&&r[l].push(a)}return r}function d0(e,t,n){let r=n;return a0(e)&&t.some((i,o)=>i!=="*"&&l0(e,i)?(r=o,!0):!1),r}var h0=10,p0=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(Er).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new m0(this.componentFactory,e,this.inputMap)}},m0=class{componentFactory;injector;inputMap;eventEmitters=new zp(1);events=this.eventEmitters.pipe(mm(e=>pm(...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($e),this.appRef=this.injector.get(Nn),this.cdScheduler=t.get(yr),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=o0.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},h0))})}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=Pi.create({providers:[],parent:this.injector}),n=f0(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 Be(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()}},g0=class extends HTMLElement{ngElementEventsSubscription=null};function v0(e,t){let n=c0(e,t.injector),r=t.strategyFactory||new p0(e,t.injector),i=u0(n);class o extends g0{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:c})=>{if(!this.hasOwnProperty(l))return;let f=this[l];delete this[l],a.setInputValue(l,f,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,f){let[d,v]=i[a];this.ngElementStrategy.setInputValue(d,c,v)}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 Fd=null;function Vd(){return Fd}function y0(e){Fd??=e}var _0=class{},Mt=new ue("");function b0(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 w0="browser",E0="server";function Hd(e){return e===E0}var S0=class{},I0=class extends _0{supportsDOMEvents=!0},C0=class Ud extends I0{static makeCurrent(){y0(new Ud)}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=x0();return n==null?null:T0(n)}resetBaseElement(){Xn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return b0(document.cookie,t)}},Xn=null;function x0(){return Xn=Xn||document.querySelector("base"),Xn?Xn.getAttribute("href"):null}function T0(e){return new URL(e,document.baseURI).pathname}var k0=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=_e({token:e,factory:e.\u0275fac})}return e})(),ts=new ue(""),$d=(()=>{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 ee(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(le(ts),le($e))};static \u0275prov=_e({token:e,factory:e.\u0275fac})}return e})(),Bd=class{_doc;constructor(e){this._doc=e}manager},ei="ng-app-id";function Bl(e){for(let t of e)t.remove()}function zl(e,t){let n=t.createElement("style");return n.textContent=e,n}function D0(e,t,n,r){let i=e.head?.querySelectorAll(`style[${ei}="${t}"],link[${ei}="${t}"]`);if(i)for(let o of i)o.removeAttribute(ei),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 ns(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var zd=(()=>{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=Hd(o),D0(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,zl);r?.forEach(i=>this.addUsage(i,this.external,ns))}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&&(Bl(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Bl(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,zl(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,ns(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(ei,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||e)(le(Mt),le(Of),le(Rf,8),le(ea))};static \u0275prov=_e({token:e,factory:e.\u0275fac})}return e})(),vo={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"},Ea=/%COMP%/g,qd="%COMP%",N0=`_nghost-${qd}`,O0=`_ngcontent-${qd}`,A0=!0,R0=new ue("",{providedIn:"root",factory:()=>A0});function M0(e){return O0.replace(Ea,e)}function P0(e){return N0.replace(Ea,e)}function Gd(e,t){return t.map(n=>n.replace(Ea,e))}var ql=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,a,l,c=null,f=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.tracingService=f,this.platformIsServer=Hd(a),this.defaultRenderer=new Sa(n,s,l,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===mt.ShadowDom&&(r=de(C({},r),{encapsulation:mt.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof Wl?i.applyToHost(n):i instanceof rs&&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,c=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,d=this.platformIsServer,v=this.tracingService;switch(r.encapsulation){case mt.Emulated:o=new Wl(l,c,r,this.appId,f,s,a,d,v);break;case mt.ShadowDom:return new j0(l,c,n,r,s,a,this.nonce,d,v);default:o=new rs(l,c,r,f,s,a,d,v);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)(le($d),le(zd),le(Of),le(R0),le(Mt),le(ea),le($e),le(Rf),le(ta,8))};static \u0275prov=_e({token:e,factory:e.\u0275fac})}return e})(),Sa=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(vo[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(Gl(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(Gl(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 ee(-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=vo[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=vo[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&(Ut.DashCase|Ut.Important)?e.style.setProperty(t,n,r&Ut.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Ut.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=Vd().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 Gl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var j0=class extends Sa{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 c=r.styles;c=Gd(r.id,c);for(let d of c){let v=document.createElement("style");s&&v.setAttribute("nonce",s),v.textContent=d,this.shadowRoot.appendChild(v)}let f=r.getExternalStyles?.();if(f)for(let d of f){let v=ns(d,i);s&&v.setAttribute("nonce",s),this.shadowRoot.appendChild(v)}}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)}},rs=class extends Sa{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 c=n.styles;this.styles=l?Gd(l,c):c,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Wl=class extends rs{contentAttr;hostAttr;constructor(e,t,n,r,i,o,s,a,l){let c=r+"-"+n.id;super(e,t,n,i,o,s,a,l,c),this.contentAttr=M0(c),this.hostAttr=P0(c)}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}},L0=(()=>{class e extends Bd{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)(le(Mt))};static \u0275prov=_e({token:e,factory:e.\u0275fac})}return e})(),Zl=["alt","control","meta","shift"],F0={"\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"},V0={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},H0=(()=>{class e extends Bd{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(()=>Vd().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."),Zl.forEach(c=>{let f=r.indexOf(c);f>-1&&(r.splice(f,1),s+=c+".")}),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=F0[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"),Zl.forEach(s=>{if(s!==i){let a=V0[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)(le(Mt))};static \u0275prov=_e({token:e,factory:e.\u0275fac})}return e})();function U0(e){return i0($0(e))}function $0(e){return{appProviders:[...W0,...e?.providers??[]],platformProviders:G0}}function B0(){C0.makeCurrent()}function z0(){return new _r}function q0(){return hv(document),document}var G0=[{provide:ea,useValue:w0},{provide:Af,useValue:B0,multi:!0},{provide:Mt,useFactory:q0,deps:[]}],W0=[{provide:Fs,useValue:"root"},{provide:_r,useFactory:z0,deps:[]},{provide:ts,useClass:L0,multi:!0,deps:[Mt]},{provide:ts,useClass:H0,multi:!0,deps:[Mt]},ql,zd,$d,{provide:_a,useExisting:ql},{provide:S0,useClass:k0,deps:[]},[]],Wd=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=_e({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=le(Z0),r},providedIn:"root"})}return e})(),Z0=(()=>{class e extends Wd{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case pt.NONE:return r;case pt.HTML:return Vt(r,"HTML")?xt(r):zf(this._doc,String(r)).toString();case pt.STYLE:return Vt(r,"Style")?xt(r):r;case pt.SCRIPT:if(Vt(r,"Script"))return xt(r);throw new ee(5200,!1);case pt.URL:return Vt(r,"URL")?xt(r):na(String(r));case pt.RESOURCE_URL:if(Vt(r,"ResourceURL"))return xt(r);throw new ee(5201,!1);default:throw new ee(5202,!1)}}bypassSecurityTrustHtml(n){return kv(n)}bypassSecurityTrustStyle(n){return Dv(n)}bypassSecurityTrustScript(n){return Nv(n)}bypassSecurityTrustUrl(n){return Ov(n)}bypassSecurityTrustResourceUrl(n){return Av(n)}static \u0275fac=function(n){return new(n||e)(le(Mt))};static \u0275prov=_e({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),is={apiURL:"http://localhost:3003",debug:!0,mode:"local",styleURL:"http://localhost:8002/styles.css"},Ze=ju(hp()),K0="9.3.27",ti=class os{static SDK_VERSION=K0;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 CTA_AFTER_REFRESH_UI="letscooee:outbound:refresh-ui";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 PAYMENT_MODAL_DETAILS=[{identifier:"#flo-checkout-wrapper",gateway:"Shopflow"},{identifier:"#fastrr-main-container",gateway:"Shiprocket"},{identifier:"#gokwik-modal-wrapper",gateway:"Gokwik"},{identifier:"#zecpe",gateway:"Ecom 360"}];static{let t=os.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");os.SDK_VERSION_CODE=parseInt(t,10)}},Ke=class{static log(...e){Ze.default.info(...e)}static debug(...e){Ze.default.debug(...e)}static error(...e){Ze.default.error(...e)}static warn(...e){Ze.default.warn(...e)}static info(...e){Ze.default.info(...e)}static trace(...e){Ze.default.trace(...e)}static configure(e=ti.LOG_PREFIX){Ze.default.useDefaults({formatter:function(n){n.unshift(`${e} (v${ti.SDK_VERSION}):`)}});let t=this.getDebugParam();(t==="1"||t==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Ze.default.setLevel(Ze.default[localStorage.cooeeLogLevel]):Ze.default.setLevel(is.debug?Ze.default.TRACE:Ze.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,23 @@ ${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${di.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 Yi{transform(t){return t?kc.formatCurrency(t):null}static \u0275fac=function(t){return new(t||Yi)};static \u0275pipe=Go({name:"cooeeCurrency",type:Yi,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 Xo(e){return typeof e=="function"}function yb(e){return sn(e)?"array":typeof e}function hi(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(hi(D[0])+"\\s*"),_=new RegExp("\\s*"+hi(D[1])),w=new RegExp("\\s*"+hi("}"+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 Xo(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(Xo(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(`
22
+ Cooee SDK: v${ti.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()}},Q0={providers:[Kb()]},ni=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}(ni||{}),X0=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}},J0=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}},Y0=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}},ew=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 Y0(e)}},tw=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})}},Kl=ju(pp());function Zd(e){return Kl.default.createInstance({name:"lc",storeName:e,driver:Kl.default.LOCALSTORAGE})}var Kd=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}},nw=class extends Kd{static storeName="usr";static{this.storage=Zd(this.storeName)}},Ql=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"},rw=class extends Kd{static storeName="ses";static{this.storage=Zd(this.storeName)}},Qd=Object.prototype.toString;function Ia(e){switch(Qd.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Kt(e,Error)}}function Fn(e,t){return Qd.call(e)===`[object ${t}]`}function Xd(e){return Fn(e,"ErrorEvent")}function Xl(e){return Fn(e,"DOMError")}function iw(e){return Fn(e,"DOMException")}function gt(e){return Fn(e,"String")}function Ca(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function xa(e){return e===null||Ca(e)||typeof e!="object"&&typeof e!="function"}function An(e){return Fn(e,"Object")}function Bi(e){return typeof Event<"u"&&Kt(e,Event)}function ow(e){return typeof Element<"u"&&Kt(e,Element)}function sw(e){return Fn(e,"RegExp")}function zi(e){return!!(e&&e.then&&typeof e.then=="function")}function aw(e){return An(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Kt(e,t){try{return e instanceof t}catch{return!1}}function Jd(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Sn(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Jl(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let i=e[r];try{Jd(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function lw(e,t,n=!1){return gt(e)?sw(t)?t.test(e):gt(t)?n?e===t:e.includes(t):!1:!1}function qi(e,t=[],n=!1){return t.some(r=>lw(e,r,n))}function uw(e,t,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!Kt(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=cw(ss(e,t,i,s.originalException,r,o.exception.values,a,0),n))}function ss(e,t,n,r,i,o,s,a){if(o.length>=n+1)return o;let l=[...o];if(Kt(r[i],Error)){Yl(s,a);let c=e(t,r[i]),f=l.length;eu(c,i,f,a),l=ss(e,t,n,r[i],i,[c,...l],c,f)}return Array.isArray(r.errors)&&r.errors.forEach((c,f)=>{if(Kt(c,Error)){Yl(s,a);let d=e(t,c),v=l.length;eu(d,`errors[${f}]`,v,a),l=ss(e,t,n,c,i,[d,...l],d,v)}}),l}function Yl(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=de(C(C({},e.mechanism),e.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:t})}function eu(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=de(C({},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:r})}function cw(e,t){return e.map(n=>(n.value&&(n.value=Sn(n.value,t)),n))}var Bt="8.18.0",Y=globalThis;function Ta(e,t,n){let r=n||Y,i=r.__SENTRY__=r.__SENTRY__||{},o=i[Bt]=i[Bt]||{};return o[e]||(o[e]=t())}var ka=Y,fw=80;function Yd(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,i=[],o=0,s=0,a=" > ",l=a.length,c,f=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||fw;for(;n&&o++<r&&(c=dw(n,f),!(c==="html"||o>1&&s+i.length*l+c.length>=d));)i.push(c),s+=c.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function dw(e,t){let n=e,r=[];if(!n||!n.tagName)return"";if(ka.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t&&t.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i&&i.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&gt(s)){let a=s.split(/\s+/);for(let l of a)r.push(`.${l}`)}}let o=["aria-label","type","name","title","alt"];for(let s of o){let a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function hw(){try{return ka.document.location.href}catch{return""}}function pw(e){if(!ka.HTMLElement)return null;let t=e,n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}var Sr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,mw="Sentry Logger ",as=["debug","info","warn","error","log","assert","trace"],wi={};function Da(e){if(!("console"in Y))return e();let t=Y.console,n={},r=Object.keys(wi);r.forEach(i=>{let o=wi[i];n[i]=t[i],t[i]=o});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function gw(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Sr?as.forEach(n=>{t[n]=(...r)=>{e&&Da(()=>{Y.console[n](`${mw}[${n}]:`,...r)})}}):as.forEach(n=>{t[n]=()=>{}}),t}var U=gw(),vw=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function yw(e){return e==="http"||e==="https"}function Gi(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function _w(e){let t=vw.exec(e);if(!t){Da(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i="",o="",s="",a=""]=t.slice(1),l="",c=a,f=c.split("/");if(f.length>1&&(l=f.slice(0,-1).join("/"),c=f.pop()),c){let d=c.match(/^\d+/);d&&(c=d[0])}return eh({host:o,pass:i,path:l,projectId:c,port:s,protocol:n,publicKey:r})}function eh(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function bw(e){if(!Sr)return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(U.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?yw(r)?t&&isNaN(parseInt(t,10))?(U.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(U.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(U.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function ww(e){let t=typeof e=="string"?_w(e):eh(e);if(!(!t||!bw(t)))return t}var st=class extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}};function xe(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);typeof i=="function"&&th(i,r),e[t]=i}function Qt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Sr&&U.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function th(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,Qt(e,"__sentry_original__",t)}catch{}}function Na(e){return e.__sentry_original__}function Ew(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function nh(e){if(Ia(e))return C({message:e.message,name:e.name,stack:e.stack},nu(e));if(Bi(e)){let t=C({type:e.type,target:tu(e.target),currentTarget:tu(e.currentTarget)},nu(e));return typeof CustomEvent<"u"&&Kt(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function tu(e){try{return ow(e)?Yd(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function nu(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Sw(e,t=40){let n=Object.keys(nh(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Sn(r,t);for(let i=n.length;i>0;i--){let o=n.slice(0,i).join(", ");if(!(o.length>t))return i===n.length?o:Sn(o,t)}return""}function tt(e){return ls(e,new Map)}function ls(e,t){if(Iw(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let i of Object.keys(e))typeof e[i]<"u"&&(r[i]=ls(e[i],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(i=>{r.push(ls(i,t))}),r}return e}function Iw(e){if(!An(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}var Xt="?",ru=/\(error: (.*)\)/,iu=/captureMessage|captureException/;function Cw(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{let o=[],s=n.split(`
23
+ `);for(let a=r;a<s.length;a++){let l=s[a];if(l.length>1024)continue;let c=ru.test(l)?l.replace(ru,"$1"):l;if(!c.match(/\S*Error: /)){for(let f of t){let d=f(c);if(d){o.push(d);break}}if(o.length>=50+i)break}}return xw(o.slice(i))}}function xw(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Hr(t).function||"")&&t.pop(),t.reverse(),iu.test(Hr(t).function||"")&&(t.pop(),iu.test(Hr(t).function||"")&&t.pop()),t.slice(0,50).map(n=>de(C({},n),{filename:n.filename||Hr(t).filename,function:n.function||Xt}))}function Hr(e){return e[e.length-1]||{}}var yo="<anonymous>";function Pt(e){try{return!e||typeof e!="function"?yo:e.name||yo}catch{return yo}}function ou(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}var ri={},su={};function ln(e,t){ri[e]=ri[e]||[],ri[e].push(t)}function un(e,t){su[e]||(t(),su[e]=!0)}function it(e,t){let n=e&&ri[e];if(n)for(let r of n)try{r(t)}catch(i){Sr&&U.error(`Error while triggering instrumentation handler.
24
+ Type: ${e}
25
+ Name: ${Pt(r)}
26
+ Error:`,i)}}function Tw(e){let t="console";ln(t,e),un(t,kw)}function kw(){"console"in Y&&as.forEach(function(e){e in Y.console&&xe(Y.console,e,function(t){return wi[e]=t,function(...n){it("console",{args:n,level:e});let r=wi[e];r&&r.apply(Y.console,n)}})})}var us=Y;function Dw(){if(!("fetch"in us))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function cs(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Nw(){if(typeof EdgeRuntime=="string")return!0;if(!Dw())return!1;if(cs(us.fetch))return!0;let e=!1,t=us.document;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=cs(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Sr&&U.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}var rh=1e3;function Ir(){return Date.now()/rh}function Ow(){let{performance:e}=Y;if(!e||!e.now)return Ir;let t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/rh}var Ot=Ow(),Ur,PI=(()=>{let{performance:e}=Y;if(!e||!e.now){Ur="none";return}let t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,s=e.timing&&e.timing.navigationStart,a=typeof s=="number"?Math.abs(s+n-r):t,l=a<t;return o||l?i<=a?(Ur="timeOrigin",e.timeOrigin):(Ur="navigationStart",s):(Ur="dateNow",r)})();function Aw(e){let t="fetch";ln(t,e),un(t,Rw)}function Rw(){Nw()&&xe(Y,"fetch",function(e){return function(...t){let{method:n,url:r}=Mw(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Ot()*1e3};it("fetch",C({},i));let o=new Error().stack;return e.apply(Y,t).then(s=>{let a=de(C({},i),{endTimestamp:Ot()*1e3,response:s});return it("fetch",a),s},s=>{let a=de(C({},i),{endTimestamp:Ot()*1e3,error:s});throw it("fetch",a),Ia(s)&&s.stack===void 0&&(s.stack=o,Qt(s,"framesToPop",1)),s})}})}function fs(e,t){return!!e&&typeof e=="object"&&!!e[t]}function au(e){return typeof e=="string"?e:e?fs(e,"url")?e.url:e.toString?e.toString():"":""}function Mw(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:au(n),method:fs(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:au(t),method:fs(t,"method")?String(t.method).toUpperCase():"GET"}}var $r=null;function Pw(e){let t="error";ln(t,e),un(t,jw)}function jw(){$r=Y.onerror,Y.onerror=function(e,t,n,r,i){return it("error",{column:r,error:i,line:n,msg:e,url:t}),$r&&!$r.__SENTRY_LOADER__?$r.apply(this,arguments):!1},Y.onerror.__SENTRY_INSTRUMENTED__=!0}var Br=null;function Lw(e){let t="unhandledrejection";ln(t,e),un(t,Fw)}function Fw(){Br=Y.onunhandledrejection,Y.onunhandledrejection=function(e){return it("unhandledrejection",e),Br&&!Br.__SENTRY_LOADER__?Br.apply(this,arguments):!0},Y.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Vw(){return"npm"}function Hw(){let e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;o<t.length;o++)if(t[o]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let o=0;o<t.length;o++)if(t[o]===i){t.splice(o,1);break}}return[n,r]}function ot(){let e=Y,t=e.crypto||e.msCrypto,n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function ih(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function It(e){let{message:t,event_id:n}=e;if(t)return t;let r=ih(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ds(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function fr(e,t){let n=ih(e);if(!n)return;let r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=C(C(C({},r),i),t),t&&"data"in t){let o=C(C({},i&&i.data),t.data);n.mechanism.data=o}}function lu(e){if(e&&e.__sentry_captured__)return!0;try{Qt(e,"__sentry_captured__",!0)}catch{}return!1}function Uw(e){return Array.isArray(e)?e:[e]}function Ct(e,t=100,n=1/0){try{return hs("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function oh(e,t=3,n=100*1024){let r=Ct(e,t);return qw(r)>n?oh(e,t-1,n):r}function hs(e,t,n=1/0,r=1/0,i=Hw()){let[o,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;let a=$w(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;let l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return a.replace("object ","");if(o(t))return"[Circular ~]";let c=t;if(c&&typeof c.toJSON=="function")try{let b=c.toJSON();return hs("",b,l-1,r,i)}catch{}let f=Array.isArray(t)?[]:{},d=0,v=nh(t);for(let b in v){if(!Object.prototype.hasOwnProperty.call(v,b))continue;if(d>=r){f[b]="[MaxProperties ~]";break}let w=v[b];f[b]=hs(b,w,l-1,r,i),d++}return s(t),f}function $w(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Jd(t))return"[VueViewModel]";if(aw(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Pt(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=Bw(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Bw(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function zw(e){return~-encodeURI(e).split(/%..|./).length}function qw(e){return zw(JSON.stringify(e))}var ht;(function(e){e[e.PENDING=0]="PENDING";let t=1;e[e.RESOLVED=t]="RESOLVED";let n=2;e[e.REJECTED=n]="REJECTED"})(ht||(ht={}));function Jt(e){return new Cr(t=>{t(e)})}function Ei(e){return new Cr((t,n)=>{n(e)})}var Cr=class Ft{constructor(t){Ft.prototype.__init.call(this),Ft.prototype.__init2.call(this),Ft.prototype.__init3.call(this),Ft.prototype.__init4.call(this),this._state=ht.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Ft((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Ft((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,t&&t()},s=>{o=!0,i=s,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(ht.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(ht.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===ht.PENDING){if(zi(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===ht.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===ht.RESOLVED&&n[1](this._value),this._state===ht.REJECTED&&n[2](this._value),n[0]=!0)})}}};function Gw(e){let t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]||Promise.resolve(void 0)}function i(s){if(!n())return Ei(new st("Not adding Promise because buffer limit was reached."));let a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new Cr((a,l)=>{let c=t.length;if(!c)return a(!0);let f=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(d=>{Jt(d).then(()=>{--c||(clearTimeout(f),a(!0))},l)})})}return{$:t,add:i,drain:o}}function _o(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var Ww=["fatal","error","warning","log","info","debug"];function Zw(e){return e==="warn"?"warning":Ww.includes(e)?e:"log"}var Kw="sentry-",Qw=/^sentry-/;function Xw(e){let t=Jw(e);if(!t)return;let n=Object.entries(t).reduce((r,[i,o])=>{if(i.match(Qw)){let s=i.slice(Kw.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function Jw(e){if(!(!e||!gt(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{let r=uu(n);return Object.entries(r).forEach(([i,o])=>{t[i]=o}),t},{}):uu(e)}function uu(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function xr(e,t=[]){return[e,t]}function Yw(e,t){let[n,r]=e;return[n,[...r,t]]}function cu(e,t){let n=e[1];for(let r of n){let i=r[0].type;if(t(r,i))return!0}return!1}function ps(e){return Y.__SENTRY__&&Y.__SENTRY__.encodePolyfill?Y.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function eE(e){let[t,n]=e,r=JSON.stringify(t);function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[ps(r),o]:r.push(typeof o=="string"?ps(o):o)}for(let o of n){let[s,a]=o;if(i(`
27
+ ${JSON.stringify(s)}
28
+ `),typeof a=="string"||a instanceof Uint8Array)i(a);else{let l;try{l=JSON.stringify(a)}catch{l=JSON.stringify(Ct(a))}i(l)}}return typeof r=="string"?r:tE(r)}function tE(e){let t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}function nE(e){let t=typeof e.data=="string"?ps(e.data):e.data;return[tt({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}var rE={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function fu(e){return rE[e]}function sh(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function iE(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return C(C(C({event_id:e.event_id,sent_at:new Date().toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:Gi(r)}),i&&{trace:tt(C({},i))})}function oE(e,t,n){let r=[{type:"client_report"},{timestamp:n||Ir(),discarded_events:e}];return xr(t?{dsn:t}:{},[r])}function sE(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function aE(e,t){return e[t]||e.all||0}function lE(e,t,n=Date.now()){return aE(e,t)>n}function uE(e,{statusCode:t,headers:n},r=Date.now()){let i=C({},e),o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(let a of o.trim().split(",")){let[l,c,,,f]=a.split(":",5),d=parseInt(l,10),v=(isNaN(d)?60:d)*1e3;if(!c)i.all=r+v;else for(let b of c.split(";"))b==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(i[b]=r+v):i[b]=r+v}else s?i.all=r+sE(s,r):t===429&&(i.all=r+60*1e3);return i}function du(){return{traceId:ot(),spanId:ot().substring(16)}}var zr=Y;function cE(){let e=zr.chrome,t=e&&e.app&&e.app.runtime,n="history"in zr&&!!zr.history.pushState&&!!zr.history.replaceState;return!t&&n}var me=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Wi(){return Oa(Y),Y}function Oa(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Bt,t[Bt]=t[Bt]||{}}function ms(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ot(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ot()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}var gs="_sentrySpan";function hu(e,t){t?Qt(e,gs,t):delete e[gs]}function pu(e){return e[gs]}var fE=100,dE=class ah{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=du()}clone(){let t=new ah;return t._breadcrumbs=[...this._breadcrumbs],t._tags=C({},this._tags),t._extra=C({},this._extra),t._contexts=C({},this._contexts),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata=C({},this._sdkProcessingMetadata),t._propagationContext=C({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,hu(t,pu(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ms(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags=C(C({},this._tags),t),this._notifyScopeListeners(),this}setTag(t,n){return this._tags=de(C({},this._tags),{[t]:n}),this._notifyScopeListeners(),this}setExtras(t){return this._extra=C(C({},this._extra),t),this._notifyScopeListeners(),this}setExtra(t,n){return this._extra=de(C({},this._extra),{[t]:n}),this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t=="function"?t(this):t,[r,i]=n instanceof _t?[n.getScopeData(),n.getRequestSession()]:An(n)?[t,t.requestSession]:[],{tags:o,extra:s,user:a,contexts:l,level:c,fingerprint:f=[],propagationContext:d}=r||{};return this._tags=C(C({},this._tags),o),this._extra=C(C({},this._extra),s),this._contexts=C(C({},this._contexts),l),a&&Object.keys(a).length&&(this._user=a),c&&(this._level=c),f.length&&(this._fingerprint=f),d&&(this._propagationContext=d),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,hu(this,void 0),this._attachments=[],this._propagationContext=du(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){let r=typeof n=="number"?n:fE;if(r<=0)return this;let i=C({timestamp:Ir()},t),o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:pu(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=C(C({},this._sdkProcessingMetadata),t),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n&&n.event_id?n.event_id:ot();if(!this._client)return U.warn("No client configured on scope - will not capture exception!"),r;let i=new Error("Sentry syntheticException");return this._client.captureException(t,de(C({originalException:t,syntheticException:i},n),{event_id:r}),this),r}captureMessage(t,n,r){let i=r&&r.event_id?r.event_id:ot();if(!this._client)return U.warn("No client configured on scope - will not capture message!"),i;let o=new Error(t);return this._client.captureMessage(t,n,de(C({originalException:t,syntheticException:o},r),{event_id:i}),this),i}captureEvent(t,n){let r=n&&n.event_id?n.event_id:ot();return this._client?(this._client.captureEvent(t,de(C({},n),{event_id:r}),this),r):(U.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}},_t=dE;function hE(){return Ta("defaultCurrentScope",()=>new _t)}function pE(){return Ta("defaultIsolationScope",()=>new _t)}var mE=class{constructor(e,t){let n;e?n=e:n=new _t;let r;t?r=t:r=new _t,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(r){throw this._popScope(),r}return zi(n)?n.then(r=>(this._popScope(),r),r=>{throw this._popScope(),r}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Rn(){let e=Wi(),t=Oa(e);return t.stack=t.stack||new mE(hE(),pE())}function gE(e){return Rn().withScope(e)}function vE(e,t){let n=Rn();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function mu(e){return Rn().withScope(()=>e(Rn().getIsolationScope()))}function yE(){return{withIsolationScope:mu,withScope:gE,withSetScope:vE,withSetIsolationScope:(e,t)=>mu(t),getCurrentScope:()=>Rn().getScope(),getIsolationScope:()=>Rn().getIsolationScope()}}function Aa(e){let t=Oa(e);return t.acs?t.acs:yE()}function Ra(){let e=Wi();return Aa(e).getCurrentScope()}function lh(){let e=Wi();return Aa(e).getIsolationScope()}function _E(){return Ta("globalScope",()=>new _t)}function bE(...e){let t=Wi(),n=Aa(t);if(e.length===2){let[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function qe(){return Ra().getClient()}var wE="_sentryMetrics";function EE(e){let t=e[wE];if(!t)return;let n={};for(let[,[r,i]]of t)(n[r]||(n[r]=[])).push(tt(i));return n}var SE="sentry.source",IE="sentry.sample_rate",CE="sentry.op",xE="sentry.origin",TE=1;function kE(e){let{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=Si(e);return tt({parent_span_id:r,span_id:t,trace_id:n})}function gu(e){return typeof e=="number"?vu(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?vu(e.getTime()):Ot()}function vu(e){return e>9999999999?e/1e3:e}function Si(e){if(NE(e))return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(DE(e)){let{attributes:r,startTime:i,name:o,endTime:s,parentSpanId:a,status:l}=e;return tt({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:gu(i),timestamp:gu(s)||void 0,status:AE(l),op:r[CE],origin:r[xE],_metrics_summary:EE(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function DE(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function NE(e){return typeof e.getSpanJSON=="function"}function OE(e){let{traceFlags:t}=e.spanContext();return t===TE}function AE(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"unknown_error"}var RE="_sentryRootSpan";function uh(e){return e[RE]||e}var ch="production",ME="_frozenDsc";function fh(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=tt({environment:n.environment||ch,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function PE(e){let t=qe();if(!t)return{};let n=fh(Si(e).trace_id||"",t),r=uh(e),i=r[ME];if(i)return i;let o=r.spanContext().traceState,s=o&&o.get("sentry.dsc"),a=s&&Xw(s);if(a)return a;let l=Si(r),c=l.data||{},f=c[IE];f!=null&&(n.sample_rate=`${f}`);let d=c[SE],v=l.description;return d!=="url"&&v&&(n.transaction=v),n.sampled=String(OE(r)),t.emit("createDsc",n,r),n}function jE(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){me&&U.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function LE(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function FE(e,t,n,r){let i=sh(n),o=C(C({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&t&&{dsn:Gi(t)}),s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return xr(o,[s])}function VE(e,t,n,r){let i=sh(n),o=e.type&&e.type!=="replay_event"?e.type:"event";LE(e,n&&n.sdk);let s=iE(e,i,r,t);return delete e.sdkProcessingMetadata,xr(s,[[{type:o},e]])}function vs(e,t,n,r=0){return new Cr((i,o)=>{let s=e[r];if(t===null||typeof s!="function")i(t);else{let a=s(C({},t),n);me&&s.id&&a===null&&U.log(`Event processor "${s.id}" dropped event`),zi(a)?a.then(l=>vs(e,l,n,r+1).then(i)).then(null,o):vs(e,a,n,r+1).then(i).then(null,o)}})}function HE(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;UE(e,t),r&&zE(e,r),qE(e,n),$E(e,i),BE(e,o)}function yu(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:c,eventProcessors:f,attachments:d,propagationContext:v,transactionName:b,span:w}=t;Zn(e,"extra",n),Zn(e,"tags",r),Zn(e,"user",i),Zn(e,"contexts",o),Zn(e,"sdkProcessingMetadata",a),s&&(e.level=s),b&&(e.transactionName=b),w&&(e.span=w),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext=C(C({},e.propagationContext),v)}function Zn(e,t,n){if(n&&Object.keys(n).length){e[t]=C({},e[t]);for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function UE(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=t,l=tt(n);l&&Object.keys(l).length&&(e.extra=C(C({},l),e.extra));let c=tt(r);c&&Object.keys(c).length&&(e.tags=C(C({},c),e.tags));let f=tt(i);f&&Object.keys(f).length&&(e.user=C(C({},f),e.user));let d=tt(o);d&&Object.keys(d).length&&(e.contexts=C(C({},d),e.contexts)),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function $E(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function BE(e,t){e.sdkProcessingMetadata=C(C({},e.sdkProcessingMetadata),t)}function zE(e,t){e.contexts=C({trace:kE(t)},e.contexts),e.sdkProcessingMetadata=C({dynamicSamplingContext:PE(t)},e.sdkProcessingMetadata);let n=uh(t),r=Si(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function qE(e,t){e.fingerprint=e.fingerprint?Uw(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function GE(e,t,n,r,i,o){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,l=de(C({},t),{event_id:t.event_id||n.event_id||ot(),timestamp:t.timestamp||Ir()}),c=n.integrations||e.integrations.map(I=>I.name);WE(l,e),QE(l,c),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&ZE(l,e.stackParser);let f=JE(r,n.captureContext);n.mechanism&&fr(l,n.mechanism);let d=i?i.getEventProcessors():[],v=_E().getScopeData();if(o){let I=o.getScopeData();yu(v,I)}if(f){let I=f.getScopeData();yu(v,I)}let b=[...n.attachments||[],...v.attachments];b.length&&(n.attachments=b),HE(l,v);let w=[...d,...v.eventProcessors];return vs(w,l,n).then(I=>(I&&KE(I),typeof s=="number"&&s>0?XE(I,s,a):I))}function WE(e,t){let{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:ch),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Sn(e.message,o));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Sn(s.value,o));let a=e.request;a&&a.url&&(a.url=Sn(a.url,o))}var _u=new WeakMap;function ZE(e,t){let n=Y._sentryDebugIds;if(!n)return;let r,i=_u.get(t);i?r=i:(r=new Map,_u.set(t,r));let o=Object.entries(n).reduce((s,[a,l])=>{let c,f=r.get(a);f?c=f:(c=t(a),r.set(a,c));for(let d=c.length-1;d>=0;d--){let v=c[d];if(v.filename){s[v.filename]=l;break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch{}}function KE(e){let t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function QE(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function XE(e,t,n){if(!e)return null;let r=C(C(C(C(C({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>C(C({},i),i.data&&{data:Ct(i.data,t,n)}))}),e.user&&{user:Ct(e.user,t,n)}),e.contexts&&{contexts:Ct(e.contexts,t,n)}),e.extra&&{extra:Ct(e.extra,t,n)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ct(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>C(C({},i),i.data&&{data:Ct(i.data,t,n)}))),r}function JE(e,t){if(!t)return e;let n=e?e.clone():new _t;return n.update(t),n}function YE(e){if(e)return eS(e)?{captureContext:e}:nS(e)?{captureContext:e}:e}function eS(e){return e instanceof _t||typeof e=="function"}var tS=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function nS(e){return Object.keys(e).some(t=>tS.includes(t))}function rS(e,t){return Ra().captureException(e,YE(t))}function dh(e,t){return Ra().captureEvent(e,t)}var iS="7";function oS(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function sS(e){return`${oS(e)}${e.projectId}/envelope/`}function aS(e,t){return Ew(C({sentry_key:e.publicKey,sentry_version:iS},t&&{sentry_client:`${t.name}/${t.version}`}))}function lS(e,t,n){return t||`${sS(e)}?${aS(e,n)}`}var bu=[];function uS(e,t){let n={};return t.forEach(r=>{r&&hh(e,r,n)}),n}function wu(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function hh(e,t,n){if(n[t.name]){me&&U.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,bu.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),bu.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,o)=>r(i,o,e))}if(typeof t.processEvent=="function"){let r=t.processEvent.bind(t),i=Object.assign((o,s)=>r(o,s,e),{id:t.name});e.addEventProcessor(i)}me&&U.log(`Integration installed: ${t.name}`)}var Eu="Not capturing exception because it's already been captured.",cS=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=ww(e.dsn):me&&U.warn("No DSN provided, client will not send events."),this._dsn){let t=lS(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport(de(C({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:t}))}}captureException(e,t,n){let r=ot();if(lu(e))return me&&U.log(Eu),r;let i=C({event_id:r},t);return this._process(this.eventFromException(e,i).then(o=>this._captureEvent(o,i,n))),i.event_id}captureMessage(e,t,n,r){let i=C({event_id:ot()},n),o=Ca(e)?e:String(e),s=xa(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(s.then(a=>this._captureEvent(a,i,r))),i.event_id}captureEvent(e,t,n){let r=ot();if(t&&t.originalException&&lu(t.originalException))return me&&U.log(Eu),r;let i=C({event_id:r},t),o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,o||n)),i.event_id}captureSession(e){typeof e.release!="string"?me&&U.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ms(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(r=>n&&r))):Jt(!0)}close(e){return this.flush(e).then(t=>(this.getOptions().enabled=!1,this.emit("close"),t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];hh(this,e,this._integrations),t||wu(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=VE(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of t.attachments||[])n=Yw(n,nE(i));let r=this.sendEnvelope(n);r&&r.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){let t=FE(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r=`${e}:${t}`;me&&U.log(`Adding outcome: "${r}"`),this._outcomes[r]=(this._outcomes[r]||0)+1}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let r=n.indexOf(t);r>-1&&n.splice(r,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(r=>r(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,t=>(me&&U.error("Error while sending event:",t),t)):(me&&U.error("Transport disabled"),Jt({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=uS(this,e),wu(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i){r=!0;for(let s of i){let a=s.mechanism;if(a&&a.handled===!1){n=!0;break}}}let o=e.status==="ok";(o&&e.errors===0||o&&n)&&(ms(e,de(C({},n&&{status:"crashed"}),{errors:e.errors||Number(r||n)})),this.captureSession(e))}_isClientDoneProcessing(e){return new Cr(t=>{let n=0,r=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),t(!0)):(n+=r,e&&n>=e&&(clearInterval(i),t(!1)))},r)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r=lh()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),GE(i,e,t,n,this,r).then(s=>{if(s===null)return s;let a=C(C({},r.getPropagationContext()),n?n.getPropagationContext():void 0);if(!(s.contexts&&s.contexts.trace)&&a){let{traceId:l,spanId:c,parentSpanId:f,dsc:d}=a;s.contexts=C({trace:tt({trace_id:l,span_id:c,parent_span_id:f})},s.contexts);let v=d||fh(l,this);s.sdkProcessingMetadata=C({dynamicSamplingContext:v},s.sdkProcessingMetadata)}return s})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(r=>r.event_id,r=>{if(me){let i=r;i.logLevel==="log"?U.log(i.message):U.warn(i)}})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,o=ys(e),s=ph(e),a=e.type||"error",l=`before send for type \`${a}\``,c=typeof i>"u"?void 0:jE(i);if(s&&typeof c=="number"&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),Ei(new st(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let f=a==="replay_event"?"replay":a,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",f,e),new st("An event processor returned `null`, will not send event.","log");if(t.data&&t.data.__sentry__===!0)return v;let b=dS(this,r,v,t);return fS(b,l)}).then(v=>{if(v===null){if(this.recordDroppedEvent("before_send",f,e),ys(e)){let I=1+(e.spans||[]).length;this._outcomes.span=(this._outcomes.span||0)+I}throw new st(`${l} returned \`null\`, will not send event.`,"log")}let b=n&&n.getSession();!o&&b&&this._updateSessionFromEvent(b,v);let w=v.transaction_info;if(o&&w&&v.transaction!==e.transaction){let I="custom";v.transaction_info=de(C({},w),{source:I})}return this.sendEvent(v,t),v}).then(null,v=>{throw v instanceof st?v:(this.captureException(v,{data:{__sentry__:!0},originalException:v}),new st(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
29
+ Reason: ${v}`))})}_process(e){this._numProcessing++,e.then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([t,n])=>{let[r,i]=t.split(":");return{reason:r,category:i,quantity:n}})}};function fS(e,t){let n=`${t} must return \`null\` or a valid event.`;if(zi(e))return e.then(r=>{if(!An(r)&&r!==null)throw new st(n);return r},r=>{throw new st(`${t} rejected with ${r}`)});if(!An(e)&&e!==null)throw new st(n);return e}function dS(e,t,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=t;if(ph(n)&&i)return i(n,r);if(ys(n)){if(n.spans&&s){let a=[];for(let l of n.spans){let c=s(l);c?a.push(c):e.recordDroppedEvent("before_send","span")}n.spans=a}if(o)return o(n,r)}return n}function ph(e){return e.type===void 0}function ys(e){return e.type==="transaction"}var hS=64;function pS(e,t,n=Gw(e.bufferSize||hS)){let r={},i=s=>n.drain(s);function o(s){let a=[];if(cu(s,(d,v)=>{let b=fu(v);if(lE(r,b)){let w=Su(d,v);e.recordDroppedEvent("ratelimit_backoff",b,w)}else a.push(d)}),a.length===0)return Jt({});let l=xr(s[0],a),c=d=>{cu(l,(v,b)=>{let w=Su(v,b);e.recordDroppedEvent(d,fu(b),w)})},f=()=>t({body:eE(l)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&me&&U.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=uE(r,d),d),d=>{throw c("network_error"),d});return n.add(f).then(d=>d,d=>{if(d instanceof st)return me&&U.error("Skipped sending event because buffer is full."),c("queue_overflow"),Jt({});throw d})}return{send:o,flush:i}}function Su(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function mS(e,t,n=[t],r="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:Bt})),version:Bt}),e._metadata=i}var gS=100;function Yt(e,t){let n=qe(),r=lh();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=gS}=n.getOptions();if(o<=0)return;let s=Ir(),a=C({timestamp:s},e),l=i?Da(()=>i(a,t)):a;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),r.addBreadcrumb(l,o))}var Iu,vS="FunctionToString",Cu=new WeakMap,yS=()=>({name:vS,setupOnce(){Iu=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Na(this),n=Cu.has(qe())&&t!==void 0?t:this;return Iu.apply(n,e)}}catch{}},setup(e){Cu.set(e,!0)}}),_S=yS,bS=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],wS="InboundFilters",ES=(e={})=>({name:wS,processEvent(t,n,r){let i=r.getOptions(),o=IS(e,i);return CS(t,o)?null:t}}),SS=ES;function IS(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:bS],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function CS(e,t){return t.ignoreInternal&&OS(e)?(me&&U.warn(`Event dropped due to being internal Sentry Error.
30
+ Event: ${It(e)}`),!0):xS(e,t.ignoreErrors)?(me&&U.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
31
+ Event: ${It(e)}`),!0):RS(e)?(me&&U.warn(`Event dropped due to not having an error message, error type or stacktrace.
32
+ Event: ${It(e)}`),!0):TS(e,t.ignoreTransactions)?(me&&U.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
33
+ Event: ${It(e)}`),!0):kS(e,t.denyUrls)?(me&&U.warn(`Event dropped due to being matched by \`denyUrls\` option.
34
+ Event: ${It(e)}.
35
+ Url: ${Ii(e)}`),!0):DS(e,t.allowUrls)?!1:(me&&U.warn(`Event dropped due to not being matched by \`allowUrls\` option.
36
+ Event: ${It(e)}.
37
+ Url: ${Ii(e)}`),!0)}function xS(e,t){return e.type||!t||!t.length?!1:NS(e).some(n=>qi(n,t))}function TS(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;let n=e.transaction;return n?qi(n,t):!1}function kS(e,t){if(!t||!t.length)return!1;let n=Ii(e);return n?qi(n,t):!1}function DS(e,t){if(!t||!t.length)return!0;let n=Ii(e);return n?qi(n,t):!0}function NS(e){let t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function OS(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function AS(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ii(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?AS(t):null}catch{return me&&U.error(`Cannot extract url for event ${It(e)}`),null}}function RS(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}var MS="Dedupe",PS=()=>{let e;return{name:MS,processEvent(t){if(t.type)return t;try{if(LS(t,e))return me&&U.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},jS=PS;function LS(e,t){return t?!!(FS(e,t)||VS(e,t)):!1}function FS(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!gh(e,t)||!mh(e,t))}function VS(e,t){let n=xu(t),r=xu(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!gh(e,t)||!mh(e,t))}function mh(e,t){let n=ou(e),r=ou(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){let o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function gh(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function xu(e){return e.exception&&e.exception.values&&e.exception.values[0]}var Ce=Y,_s=0;function vh(){return _s>0}function HS(){_s++,setTimeout(()=>{_s--})}function Mn(e,t={},n){if(typeof e!="function")return e;try{let i=e.__sentry_wrapped__;if(i)return i;if(Na(e))return e}catch{return e}let r=function(){let i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);let o=i.map(s=>Mn(s,t));return e.apply(this,o)}catch(o){throw HS(),bE(s=>{s.addEventProcessor(a=>(t.mechanism&&(ds(a,void 0,void 0),fr(a,t.mechanism)),a.extra=de(C({},a.extra),{arguments:i}),a)),rS(o)}),o}};try{for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}th(r,e),Qt(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}var yn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Ma(e,t){let n=Pa(e,t),r={type:t&&t.name,value:qS(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function US(e,t,n,r){let i=qe(),o=i&&i.getOptions().normalizeDepth,s=QS(t),a={__serialized__:oh(t,o)};if(s)return{exception:{values:[Ma(e,s)]},extra:a};let l={exception:{values:[{type:Bi(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ZS(t,{isUnhandledRejection:r})}]},extra:a};if(n){let c=Pa(e,n);c.length&&(l.exception.values[0].stacktrace={frames:c})}return l}function bo(e,t){return{exception:{values:[Ma(e,t)]}}}function Pa(e,t){let n=t.stacktrace||t.stack||"",r=BS(t),i=zS(t);try{return e(n,r,i)}catch{}return[]}var $S=/Minified React error #\d+;/i;function BS(e){return e&&$S.test(e.message)?1:0}function zS(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function qS(e){let t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function GS(e,t,n,r){let i=n&&n.syntheticException||void 0,o=ja(e,t,i,r);return fr(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Jt(o)}function WS(e,t,n="info",r,i){let o=r&&r.syntheticException||void 0,s=bs(e,t,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Jt(s)}function ja(e,t,n,r,i){let o;if(Xd(t)&&t.error)return bo(e,t.error);if(Xl(t)||iw(t)){let s=t;if("stack"in t)o=bo(e,t);else{let a=s.name||(Xl(s)?"DOMError":"DOMException"),l=s.message?`${a}: ${s.message}`:a;o=bs(e,l,n,r),ds(o,l)}return"code"in s&&(o.tags=de(C({},o.tags),{"DOMException.code":`${s.code}`})),o}return Ia(t)?bo(e,t):An(t)||Bi(t)?(o=US(e,t,n,i),fr(o,{synthetic:!0}),o):(o=bs(e,t,n,r),ds(o,`${t}`,void 0),fr(o,{synthetic:!0}),o)}function bs(e,t,n,r){let i={};if(r&&n){let o=Pa(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}if(Ca(t)){let{__sentry_template_string__:o,__sentry_template_values__:s}=t;return i.logentry={message:o,params:s},i}return i.message=t,i}function ZS(e,{isUnhandledRejection:t}){let n=Sw(e),r=t?"promise rejection":"exception";return Xd(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Bi(e)?`Event \`${KS(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function KS(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function QS(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}function XS(e,{metadata:t,tunnel:n,dsn:r}){let i=C(C({event_id:e.event_id,sent_at:new Date().toISOString()},t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!n&&!!r&&{dsn:Gi(r)}),o=JS(e);return xr(i,[o])}function JS(e){return[{type:"user_report"},e]}var YS=class extends cS{constructor(e){let t=C({parentSpanIsAlwaysRootSpan:!0},e),n=Ce.SENTRY_SDK_SOURCE||Vw();mS(t,"browser",["browser"],n),super(t),t.sendClientReports&&Ce.document&&Ce.document.addEventListener("visibilitychange",()=>{Ce.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,t){return GS(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return WS(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){yn&&U.warn("SDK not enabled, will not capture user feedback.");return}let t=XS(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){yn&&U.log("No outcomes to send");return}if(!this._dsn){yn&&U.log("No dsn provided, will not send outcomes");return}yn&&U.log("Sending outcomes:",e);let t=oE(e,this._options.tunnel&&Gi(this._dsn));this.sendEnvelope(t)}},e1=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Oe=Y,t1=1e3,Tu,ws,Es;function n1(e){let t="dom";ln(t,e),un(t,r1)}function r1(){if(!Oe.document)return;let e=it.bind(null,"dom"),t=ku(e,!0);Oe.document.addEventListener("click",t,!1),Oe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let r=Oe[n]&&Oe[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(xe(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{let l=this,c=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},f=c[o]=c[o]||{refCount:0};if(!f.handler){let d=ku(e);f.handler=d,i.call(this,o,d,a)}f.refCount++}catch{}return i.call(this,o,s,a)}}),xe(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{let l=this,c=l.__sentry_instrumentation_handlers__||{},f=c[o];f&&(f.refCount--,f.refCount<=0&&(i.call(this,o,f.handler,a),f.handler=void 0,delete c[o]),Object.keys(c).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,s,a)}}))})}function i1(e){if(e.type!==ws)return!1;try{if(!e.target||e.target._sentryId!==Es)return!1}catch{}return!0}function o1(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function ku(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=s1(n);if(o1(n.type,r))return;Qt(n,"_sentryCaptured",!0),r&&!r._sentryId&&Qt(r,"_sentryId",ot());let i=n.type==="keypress"?"input":n.type;i1(n)||(e({event:n,name:i,global:t}),ws=n.type,Es=r?r._sentryId:void 0),clearTimeout(Tu),Tu=Oe.setTimeout(()=>{Es=void 0,ws=void 0},t1)}}function s1(e){try{return e.target}catch{return null}}var qr;function a1(e){let t="history";ln(t,e),un(t,l1)}function l1(){if(!cE())return;let e=Oe.onpopstate;Oe.onpopstate=function(...n){let r=Oe.location.href,i=qr;if(qr=r,it("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){let i=r.length>2?r[2]:void 0;if(i){let o=qr,s=String(i);qr=s,it("history",{from:o,to:s})}return n.apply(this,r)}}xe(Oe.history,"pushState",t),xe(Oe.history,"replaceState",t)}var ii={};function u1(e){let t=ii[e];if(t)return t;let n=Oe[e];if(cs(n))return ii[e]=n.bind(Oe);let r=Oe.document;if(r&&typeof r.createElement=="function")try{let i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);let o=i.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(i)}catch(i){e1&&U.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(ii[e]=n.bind(Oe))}function Du(e){ii[e]=void 0}var Jn="__sentry_xhr_v3__";function c1(e){let t="xhr";ln(t,e),un(t,f1)}function f1(){if(!Oe.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;xe(e,"open",function(t){return function(...n){let r=Ot()*1e3,i=gt(n[0])?n[0].toUpperCase():void 0,o=d1(n[1]);if(!i||!o)return t.apply(this,n);this[Jn]={method:i,url:o,request_headers:{}},i==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let a=this[Jn];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}let l={endTimestamp:Ot()*1e3,startTimestamp:r,xhr:this};it("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?xe(this,"onreadystatechange",function(a){return function(...l){return s(),a.apply(this,l)}}):this.addEventListener("readystatechange",s),xe(this,"setRequestHeader",function(a){return function(...l){let[c,f]=l,d=this[Jn];return d&&gt(c)&&gt(f)&&(d.request_headers[c.toLowerCase()]=f),a.apply(this,l)}}),t.apply(this,n)}}),xe(e,"send",function(t){return function(...n){let r=this[Jn];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);let i={startTimestamp:Ot()*1e3,xhr:this};return it("xhr",i),t.apply(this,n)}})}function d1(e){if(gt(e))return e;try{return e.toString()}catch{}}function h1(e,t=u1("fetch")){let n=0,r=0;function i(o){let s=o.body.length;n+=s,r++;let a=C({body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);if(!t)return Du("fetch"),Ei("No fetch implementation available");try{return t(e.url,a).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return Du("fetch"),n-=s,r--,Ei(l)}}return pS(e,i)}var p1=30,m1=50;function Ss(e,t,n,r){let i={filename:e,function:t==="<anonymous>"?Xt:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var g1=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,v1=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,y1=/\((\S*)(?::(\d+))(?::(\d+))\)/,_1=e=>{let t=g1.exec(e);if(t){let[,r,i,o]=t;return Ss(r,Xt,+i,+o)}let n=v1.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){let o=y1.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}let[r,i]=yh(n[1]||Xt,n[2]);return Ss(i,r,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},b1=[p1,_1],w1=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,E1=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,S1=e=>{let t=w1.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let i=E1.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let n=t[3],r=t[1]||Xt;return[r,n]=yh(r,n),Ss(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},I1=[m1,S1],C1=[b1,I1],x1=Cw(...C1),yh=(e,t)=>{let n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Xt,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Gr=1024,T1="Breadcrumbs",k1=(e={})=>{let t=C({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e);return{name:T1,setup(n){t.console&&Tw(A1(n)),t.dom&&n1(O1(n,t.dom)),t.xhr&&c1(R1(n)),t.fetch&&Aw(M1(n)),t.history&&a1(P1(n)),t.sentry&&n.on("beforeSendEvent",N1(n))}}},D1=k1;function N1(e){return function(t){qe()===e&&Yt({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:It(t)},{event:t})}}function O1(e,t){return function(n){if(qe()!==e)return;let r,i,o=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>Gr&&(yn&&U.warn(`\`dom.maxStringLength\` cannot exceed ${Gr}, but a value of ${s} was configured. Sentry will use ${Gr} instead.`),s=Gr),typeof o=="string"&&(o=[o]);try{let l=n.event,c=j1(l)?l.target:l;r=Yd(c,{keyAttrs:o,maxStringLength:s}),i=pw(c)}catch{r="<unknown>"}if(r.length===0)return;let a={category:`ui.${n.name}`,message:r};i&&(a.data={"ui.component_name":i}),Yt(a,{event:n.event,name:n.name,global:n.global})}}function A1(e){return function(t){if(qe()!==e)return;let n={category:"console",data:{arguments:t.args,logger:"console"},level:Zw(t.level),message:Jl(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)n.message=`Assertion failed: ${Jl(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1);else return;Yt(n,{input:t.args,level:t.level})}}function R1(e){return function(t){if(qe()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Jn];if(!n||!r||!i)return;let{method:o,url:s,status_code:a,body:l}=i,c={method:o,url:s,status_code:a},f={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r};Yt({category:"xhr",data:c,type:"http"},f)}}function M1(e){return function(t){if(qe()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.error){let i=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};Yt({category:"fetch",data:i,level:"error",type:"http"},o)}else{let i=t.response,o=de(C({},t.fetchData),{status_code:i&&i.status}),s={input:t.args,response:i,startTimestamp:n,endTimestamp:r};Yt({category:"fetch",data:o,type:"http"},s)}}}function P1(e){return function(t){if(qe()!==e)return;let n=t.from,r=t.to,i=_o(Ce.location.href),o=n?_o(n):void 0,s=_o(r);(!o||!o.path)&&(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Yt({category:"navigation",data:{from:n,to:r}})}}function j1(e){return!!e&&!!e.target}var L1=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],F1="BrowserApiErrors",V1=(e={})=>{let t=C({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e);return{name:F1,setupOnce(){t.setTimeout&&xe(Ce,"setTimeout",Nu),t.setInterval&&xe(Ce,"setInterval",Nu),t.requestAnimationFrame&&xe(Ce,"requestAnimationFrame",U1),t.XMLHttpRequest&&"XMLHttpRequest"in Ce&&xe(XMLHttpRequest.prototype,"send",$1);let n=t.eventTarget;n&&(Array.isArray(n)?n:L1).forEach(B1)}}},H1=V1;function Nu(e){return function(...t){let n=t[0];return t[0]=Mn(n,{mechanism:{data:{function:Pt(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function U1(e){return function(t){return e.apply(this,[Mn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Pt(e)},handled:!1,type:"instrument"}})])}}function $1(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&xe(n,r,function(i){let o={mechanism:{data:{function:r,handler:Pt(i)},handled:!1,type:"instrument"}},s=Na(i);return s&&(o.mechanism.data.handler=Pt(s)),Mn(i,o)})}),e.apply(this,t)}}function B1(e){let t=Ce,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(xe(n,"addEventListener",function(r){return function(i,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=Mn(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Pt(o),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,Mn(o,{mechanism:{data:{function:"addEventListener",handler:Pt(o),target:e},handled:!1,type:"instrument"}}),s])}}),xe(n,"removeEventListener",function(r){return function(i,o,s){let a=o;try{let l=a&&a.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,a,s)}}))}var z1="GlobalHandlers",q1=(e={})=>{let t=C({onerror:!0,onunhandledrejection:!0},e);return{name:z1,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(W1(n),Ou("onerror")),t.onunhandledrejection&&(Z1(n),Ou("onunhandledrejection"))}}},G1=q1;function W1(e){Pw(t=>{let{stackParser:n,attachStacktrace:r}=_h();if(qe()!==e||vh())return;let{msg:i,url:o,line:s,column:a,error:l}=t,c=X1(ja(n,l||i,void 0,r,!1),o,s,a);c.level="error",dh(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Z1(e){Lw(t=>{let{stackParser:n,attachStacktrace:r}=_h();if(qe()!==e||vh())return;let i=K1(t),o=xa(i)?Q1(i):ja(n,i,void 0,r,!0);o.level="error",dh(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function K1(e){if(xa(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Q1(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function X1(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],c=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,d=gt(t)&&t.length>0?t:hw();return l.length===0&&l.push({colno:c,filename:d,function:Xt,in_app:!0,lineno:f}),e}function Ou(e){yn&&U.log(`Global Handler attached: ${e}`)}function _h(){let e=qe();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var J1=()=>({name:"HttpContext",preprocessEvent(e){if(!Ce.navigator&&!Ce.location&&!Ce.document)return;let t=e.request&&e.request.url||Ce.location&&Ce.location.href,{referrer:n}=Ce.document||{},{userAgent:r}=Ce.navigator||{},i=C(C(C({},e.request&&e.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),o=de(C(C({},e.request),t&&{url:t}),{headers:i});e.request=o}}),Y1="cause",eI=5,tI="LinkedErrors",nI=(e={})=>{let t=e.limit||eI,n=e.key||Y1;return{name:tI,preprocessEvent(r,i,o){let s=o.getOptions();uw(Ma,s.stackParser,s.maxValueLength,n,t,r,i)}}},rI=nI;function iI(e){return[SS(),_S(),H1(),D1(),G1(),rI(),jS(),J1()]}var oI=class extends Error{cause;constructor(e,t){super(e),this.cause=t}},sI=class bh{static INSTANCE;contexts={};tags;client;user;constructor(){this.init()}static getInstance(){return this.INSTANCE||(this.INSTANCE=new bh),this.INSTANCE}captureException(t,n,r){Ke.error(t),this.getNewScope(n,r).captureException(t)}captureMessage(t,n,r,i){this.getNewScope(r,i).captureMessage(t,n??"error")}captureError(t,n,r,i){Ke.error(t,n);let o=this.getNewScope(r,i),s=new oI(t,n);o.captureException(s)}setGlobalContext(t,n){this.contexts[t]=C({context:n},this.contexts[t])}setUser(t){this.user=t}setTags(t){this.tags=t}getNewScope(t,n){let r=new _t;if(r.setClient(this.client),r.setUser(this.user),t?.triggerContext){let i=t.triggerContext;r.setExtras(i.triggerData.sentryContext()),delete t.triggerContext}return t&&r.setExtras(t),this.tags&&r.setTags(this.tags),n&&r.setTags(n),Object.keys(this.contexts).forEach(i=>{r.setContext(i,this.contexts[i])}),r.setTag("language",navigator.language),r.setTag("timezone",La.getTimezone()),r}init(){let t=iI({}).filter(n=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(n.name));this.client=new YS({dsn:"https://1bc3dda4c861f60cd6be1b67584f4bc6@o559187.ingest.us.sentry.io/4507626484203520",transport:h1,stackParser:x1,integrations:t,environment:is.mode,release:`web-sdk@${ti.SDK_VERSION}`,debug:is.debug}),this.client.init()}},La=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=ew.get(),r=X0.get(),i=n.shopCurrencyCode||r.currency,o=n.currencyCode;o||Ke.warn("Currency code is not set in RuntimeData");let s=r.money?.format??n.moneyFormat,a;if(s&&i===o)a=J0.format(e*100,s);else{let l;try{l=new Intl.NumberFormat(this.getLang(),{style:"currency",currency:o||i,minimumFractionDigits:0,maximumFractionDigits:2})}catch(c){return sI.getInstance().captureException(c,{currentCurrency:o,shopCurrency:i}),""}a=l.format(e),a=a.replace("\u20B9","Rs. "),r.money?.showCurrency&&o!=="INR"&&(a=a.concat(` ${o}`))}return 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 tw.sleep(o),i=n.querySelectorAll(e),i.length)return Ke.debug(`Attempt ${r+1}: ${i.length} elements found with ${e}`),i;Ke.debug(`Attempt ${r+1}: Elements not found with ${e}. Retrying after ${o}ms.`),r++}return Ke.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 nw.get(Ql.DEVICE_ID),t=await rw.get(Ql.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"}]}},aI=class Is{transform(t){return t?La.formatCurrency(t):null}static \u0275fac=function(t){return new(t||Is)};static \u0275pipe=ba({name:"cooeeCurrency",type:Is,pure:!0})},lI=(()=>{class e{static entityMap={'"':"&quot;"};static escapeHtml(n){return String(n).replace(/"/g,r=>e.entityMap[r])}}return e})(),uI=Object.prototype.toString,Vn=Array.isArray||function(e){return uI.call(e)==="[object Array]"};function Fa(e){return typeof e=="function"}function cI(e){return Vn(e)?"array":typeof e}function wo(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Au(e,t){return e!=null&&typeof e=="object"&&t in e}function fI(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var dI=RegExp.prototype.test;function hI(e,t){return dI.call(e,t)}var pI=/\S/;function mI(e){return!hI(pI,e)}var gI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function vI(e){return String(e).replace(/[&<>"'`=\/]/g,function(t){return gI[t]})}var yI=/\s*/,_I=/\s+/,Ru=/\s*=/,bI=/\s*\}/,wI=/#|\^|\/|>|\{|&|=|!/;function EI(e,t){if(!e)return[];var n=!1,r=[],i=[],o=[],s=!1,a=!1,l="",c=0;function f(){if(s&&!a)for(;o.length;)delete i[o.pop()];else o=[];s=!1,a=!1}var d,v,b;function w(N){if(typeof N=="string"&&(N=N.split(_I,2)),!Vn(N)||N.length!==2)throw new Error("Invalid tags: "+N);d=new RegExp(wo(N[0])+"\\s*"),v=new RegExp("\\s*"+wo(N[1])),b=new RegExp("\\s*"+wo("}"+N[1]))}w(t||Xe.tags);for(var I=new Tr(e),O,A,J,te,ke,oe;!I.eos();){if(O=I.pos,J=I.scanUntil(d),J)for(var ft=0,Je=J.length;ft<Je;++ft)te=J.charAt(ft),mI(te)?(o.push(i.length),l+=te):(a=!0,n=!0,l+=" "),i.push(["text",te,O,O+1]),O+=1,te===`
38
+ `&&(f(),l="",c=0,n=!1);if(!I.scan(d))break;if(s=!0,A=I.scan(wI)||"name",I.scan(yI),A==="="?(J=I.scanUntil(Ru),I.scan(Ru),I.scanUntil(v)):A==="{"?(J=I.scanUntil(b),I.scan(bI),I.scanUntil(v),A="&"):J=I.scanUntil(v),!I.scan(v))throw new Error("Unclosed tag at "+I.pos);if(A==">"?ke=[A,J,O,I.pos,l,c,n]:ke=[A,J,O,I.pos],c++,i.push(ke),A==="#"||A==="^")r.push(ke);else if(A==="/"){if(oe=r.pop(),!oe)throw new Error('Unopened section "'+J+'" at '+O);if(oe[1]!==J)throw new Error('Unclosed section "'+oe[1]+'" at '+O)}else A==="name"||A==="{"||A==="&"?a=!0:A==="="&&w(J)}if(f(),oe=r.pop(),oe)throw new Error('Unclosed section "'+oe[1]+'" at '+I.pos);return II(SI(i))}function SI(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 II(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 Tr(e){this.string=e,this.tail=e,this.pos=0}Tr.prototype.eos=function(){return this.tail===""};Tr.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};Tr.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 Pn(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Pn.prototype.push=function(e){return new Pn(e,this)};Pn.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=Au(i,o[s])||fI(i,o[s])),i=i[o[s++]];else i=r.view[e],a=Au(r.view,e);if(a){n=i;break}r=r.parent}t[e]=n}return Fa(n)&&(n=n.call(this.view)),n};function Pe(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}Pe.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Pe.prototype.parse=function(e,t){var n=this.templateCache,r=e+":"+(t||Xe.tags).join(":"),i=typeof n<"u",o=i?n.get(r):void 0;return o==null&&(o=EI(e,t),i&&n.set(r,o)),o};Pe.prototype.render=function(e,t,n,r){var i=this.getConfigTags(r),o=this.parse(e,i),s=t instanceof Pn?t:new Pn(t,void 0);return this.renderTokens(o,s,n,e,r)};Pe.prototype.renderTokens=function(e,t,n,r,i){for(var o="",s,a,l,c=0,f=e.length;c<f;++c)l=void 0,s=e[c],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};Pe.prototype.renderSection=function(e,t,n,r,i){var o=this,s="",a=t.lookup(e[1]);function l(d){return o.render(d,t,n,i)}if(a){if(Vn(a))for(var c=0,f=a.length;c<f;++c)s+=this.renderTokens(e[4],t.push(a[c]),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(Fa(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}};Pe.prototype.renderInverted=function(e,t,n,r,i){var o=t.lookup(e[1]);if(!o||Vn(o)&&o.length===0)return this.renderTokens(e[4],t,n,r,i)};Pe.prototype.indentPartial=function(e,t,n){for(var r=t.replace(/[^ \t]/g,""),i=e.split(`
24
39
  `),o=0;o<i.length;o++)i[o].length&&(o>0||!n)&&(i[o]=r+i[o]);return i.join(`
25
- `)};xe.prototype.renderPartial=function(e,t,n,r){if(n){var i=this.getConfigTags(r),o=Xo(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 Ab=class Xi{transform(t,n){return t?Dc.render(t,xt({},n)):null}static \u0275fac=function(t){return new(t||Xi)};static \u0275pipe=Go({name:"cooeeDynamicVariables",type:Xi,pure:!0})},Jo={};(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 A=b.transferToImageBitmap();try{g.createPattern(A,"no-repeat")}catch{return!1}return!0}();function l(){}function d(b){var g=n.exports.Promise,A=g!==void 0?g:t.Promise;return typeof A=="function"?new A(b):(b(l,l),null)}var h=function(b,g){return{transform:function(A){if(b)return A;if(g.has(A))return g.get(A);var V=new OffscreenCanvas(A.width,A.height),M=V.getContext("2d");return M.drawImage(A,0,0),g.set(A,V),V},clear:function(){g.clear()}}}(a,new Map),p=function(){var b=Math.floor(16.666666666666668),g,A,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},A=function(L){V[L]&&cancelAnimationFrame(V[L])}):(g=function(L){return setTimeout(L,b)},A=function(L){return clearTimeout(L)}),{frame:g,cancel:A}}(),_=function(){var b,g,A={};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 A[G],M.removeEventListener("message",ee),g=null,h.clear(),z(),de())}M.addEventListener("message",ee),L(F,G),A[G]=ee.bind(null,{data:{callback:G}})}),g},M.reset=function(){M.postMessage({reset:!0});for(var F in A)A[F](),delete A[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,A){return E(b&&I(b[g])?b[g]:w[g],A)}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,A,V,M,L,F,P,z){b.save(),b.translate(g,A),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),A=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*A-Math.random()*A),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 A=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-A)+")",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-A,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,Ae=Math.PI/Xe;Xe--;)Ne=g.x+Math.cos(Z)*Oe,ve=g.y+Math.sin(Z)*Oe,b.lineTo(Ne,ve),Z+=Ae,Ne=g.x+Math.cos(Z)*Se,ve=g.y+Math.sin(Z)*Se,b.lineTo(Ne,ve),Z+=Ae;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,A,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&&(A(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 A=!b,V=!!O(g||{},"resize"),M=!1,L=O(g,"disableForReducedMotion",Boolean),F=o&&!!O(g||{},"useWorker"),P=F?_():null,z=A?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),Ae=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=[],qn=b.width*fn.x,Wn=b.height*fn.y;dn--;)jt.push(J({x:qn,y:Wn,angle:ve,spread:Xe,startVelocity:Ae,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(Ae){Ae()});A&&ee?b=ee.canvas:A&&!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 Ae={getBoundingClientRect:function(){if(!A)return b.getBoundingClientRect()}};z(Ae),P.postMessage({resize:{width:Ae.width,height:Ae.height}});return}Ne.width=Ne.height=null}function Xe(){ee=null,V&&(M=!1,t.removeEventListener("resize",ve)),A&&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,A,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,A,V])),G}function Vt(b){if(!s)throw new Error("path confetti are not supported in this browser");var g,A;typeof b=="string"?g=b:(g=b.path,A=b.matrix);var V=new Path2D(g),M=document.createElement("canvas"),L=M.getContext("2d");if(!A){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);A=[Oe,0,0,Oe,-Math.round(ee/2+P)*Oe,-Math.round(ce/2+z)*Oe]}return{type:"path",path:g,matrix:A}}function an(b){var g,A=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,A="scalar"in b?b.scalar:A,M="fontFamily"in b?b.fontFamily:M,V="color"in b?b.color:V);var L=10*A,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/A;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||{}}(),Jo,!1);var Rb=Jo.exports,zb=Jo.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 Rb(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 Ji{constructor(t){this.sanitizer=t}transform(t){return t?this.sanitizer.bypassSecurityTrustHtml(t):""}static \u0275fac=function(t){return new(t||Ji)(zr(Cc,16))};static \u0275pipe=Go({name:"safeHtml",type:Ji,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),Wy(7),kn()()()),e&2){let n=t.$implicit,r=ac(2);Ko("left",n.calculatedAlignment+"%"),Wt(2),wr("innerHTML",qi(4,7,qi(3,5,n.minValue)),Su),Wt(3),wr("src",r.getIconURL(n),ag),Wt(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;Wt(2),wr("innerHTML",qi(4,6,Jy(3,3,i,n.localDynamicVariables())),Su),Wt(6),Ko("width",r.cartValuePercentage+"%"),Wt(),Hy(r.milestones)}}var Lb=class eo{constructor(t){this.elementRef=t,this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables=oi({});calculatedState=oi({});_engagementTrigger=oi(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=this.calculateTrackedProgress(a,r.milestones);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.set({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())}calculateTrackedProgress(t,n){if(t<=n[0].minValue)return t/n[0].minValue*n[0].calculatedAlignment;if(t>=n[n.length-1].minValue)return 100;for(let r=0;r<n.length-1;r++){let i=n[r].minValue,o=n[r+1].minValue,s=n[r].calculatedAlignment,a=n[r+1].calculatedAlignment;if(t>=i&&t<=o)return(t-i)/(o-i)*(a-s)+s}return 0}static \u0275fac=function(t){return new(t||eo)(zr(tu))};static \u0275cmp=Gm({type:eo,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:[Ab,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)})();})();
40
+ `)};Pe.prototype.renderPartial=function(e,t,n,r){if(n){var i=this.getConfigTags(r),o=Fa(n)?n(e[1]):n[e[1]];if(o!=null){var s=e[6],a=e[5],l=e[4],c=o;a==0&&l&&(c=this.indentPartial(o,l,s));var f=this.parse(c,i);return this.renderTokens(f,t,n,c,r)}}};Pe.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(n!=null)return n};Pe.prototype.escapedValue=function(e,t,n){var r=this.getConfigEscape(n)||Xe.escape,i=t.lookup(e[1]);if(i!=null)return typeof i=="number"&&r===Xe.escape?String(i):r(i)};Pe.prototype.rawValue=function(e){return e[1]};Pe.prototype.getConfigTags=function(e){return Vn(e)?e:e&&typeof e=="object"?e.tags:void 0};Pe.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!Vn(e))return e.escape};var Xe={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){dr.templateCache=e},get templateCache(){return dr.templateCache}},dr=new Pe;Xe.clearCache=function(){return dr.clearCache()};Xe.parse=function(e,t){return dr.parse(e,t)};Xe.render=function(e,t,n,r){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+cI(e)+'" was given as the first argument for mustache#render(template, view, partials)');return dr.render(e,t,n,r)};Xe.escape=vI;Xe.Scanner=Tr;Xe.Context=Pn;Xe.Writer=Pe;var wh=Xe;wh.escape=lI.escapeHtml;var CI=class Cs{transform(t,n){return t?wh.render(t,C({},n)):null}static \u0275fac=function(t){return new(t||Cs)};static \u0275pipe=ba({name:"cooeeDynamicVariables",type:Cs,pure:!0})},Va={};(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 E=new OffscreenCanvas(1,1),m=E.getContext("2d");m.fillRect(0,0,1,1);var R=E.transferToImageBitmap();try{m.createPattern(R,"no-repeat")}catch{return!1}return!0}();function l(){}function c(E){var m=n.exports.Promise,R=m!==void 0?m:t.Promise;return typeof R=="function"?new R(E):(E(l,l),null)}var f=function(E,m){return{transform:function(R){if(E)return R;if(m.has(R))return m.get(R);var j=new OffscreenCanvas(R.width,R.height),P=j.getContext("2d");return P.drawImage(R,0,0),m.set(R,j),j},clear:function(){m.clear()}}}(a,new Map),d=function(){var E=Math.floor(16.666666666666668),m,R,j={},P=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(m=function(H){var F=Math.random();return j[F]=requestAnimationFrame(function L(z){P===z||P+E-1<z?(P=z,delete j[F],H()):j[F]=requestAnimationFrame(L)}),F},R=function(H){j[H]&&cancelAnimationFrame(j[H])}):(m=function(H){return setTimeout(H,E)},R=function(H){return clearTimeout(H)}),{frame:m,cancel:R}}(),v=function(){var E,m,R={};function j(P){function H(F,L){P.postMessage({options:F||{},callback:L})}P.init=function(F){var L=F.transferControlToOffscreen();P.postMessage({canvas:L},[L])},P.fire=function(F,L,z){if(m)return H(F,null),m;var Q=Math.random().toString(36).slice(2);return m=c(function(ve){function re(pe){pe.data.callback===Q&&(delete R[Q],P.removeEventListener("message",re),m=null,f.clear(),z(),ve())}P.addEventListener("message",re),H(F,Q),R[Q]=re.bind(null,{data:{callback:Q}})}),m},P.reset=function(){P.postMessage({reset:!0});for(var F in R)R[F](),delete R[F]}}return function(){if(E)return E;if(!r&&o){var P=["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(`
41
+ `);try{E=new Worker(URL.createObjectURL(new Blob([P])))}catch(H){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",H),null}j(E)}return E}}(),b={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 w(E,m){return m?m(E):E}function I(E){return E!=null}function O(E,m,R){return w(E&&I(E[m])?E[m]:b[m],R)}function A(E){return E<0?0:Math.floor(E)}function J(E,m){return Math.floor(Math.random()*(m-E))+E}function te(E){return parseInt(E,16)}function ke(E){return E.map(oe)}function oe(E){var m=String(E).replace(/[^0-9a-f]/gi,"");return m.length<6&&(m=m[0]+m[0]+m[1]+m[1]+m[2]+m[2]),{r:te(m.substring(0,2)),g:te(m.substring(2,4)),b:te(m.substring(4,6))}}function ft(E){var m=O(E,"origin",Object);return m.x=O(m,"x",Number),m.y=O(m,"y",Number),m}function Je(E){E.width=document.documentElement.clientWidth,E.height=document.documentElement.clientHeight}function N(E){var m=E.getBoundingClientRect();E.width=m.width,E.height=m.height}function K(E){var m=document.createElement("canvas");return m.style.position="fixed",m.style.top="0px",m.style.left="0px",m.style.pointerEvents="none",m.style.zIndex=E,m}function $(E,m,R,j,P,H,F,L,z){E.save(),E.translate(m,R),E.rotate(H),E.scale(j,P),E.arc(0,0,1,F,L,z),E.restore()}function ne(E){var m=E.angle*(Math.PI/180),R=E.spread*(Math.PI/180);return{x:E.x,y:E.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:E.startVelocity*.5+Math.random()*E.startVelocity,angle2D:-m+(.5*R-Math.random()*R),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:E.color,shape:E.shape,tick:0,totalTicks:E.ticks,decay:E.decay,drift:E.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:E.gravity*3,ovalScalar:.6,scalar:E.scalar,flat:E.flat}}function be(E,m){m.x+=Math.cos(m.angle2D)*m.velocity+m.drift,m.y+=Math.sin(m.angle2D)*m.velocity+m.gravity,m.velocity*=m.decay,m.flat?(m.wobble=0,m.wobbleX=m.x+10*m.scalar,m.wobbleY=m.y+10*m.scalar,m.tiltSin=0,m.tiltCos=0,m.random=1):(m.wobble+=m.wobbleSpeed,m.wobbleX=m.x+10*m.scalar*Math.cos(m.wobble),m.wobbleY=m.y+10*m.scalar*Math.sin(m.wobble),m.tiltAngle+=.1,m.tiltSin=Math.sin(m.tiltAngle),m.tiltCos=Math.cos(m.tiltAngle),m.random=Math.random()+2);var R=m.tick++/m.totalTicks,j=m.x+m.random*m.tiltCos,P=m.y+m.random*m.tiltSin,H=m.wobbleX+m.random*m.tiltCos,F=m.wobbleY+m.random*m.tiltSin;if(E.fillStyle="rgba("+m.color.r+", "+m.color.g+", "+m.color.b+", "+(1-R)+")",E.beginPath(),s&&m.shape.type==="path"&&typeof m.shape.path=="string"&&Array.isArray(m.shape.matrix))E.fill(Lt(m.shape.path,m.shape.matrix,m.x,m.y,Math.abs(H-j)*.1,Math.abs(F-P)*.1,Math.PI/10*m.wobble));else if(m.shape.type==="bitmap"){var L=Math.PI/10*m.wobble,z=Math.abs(H-j)*.1,Q=Math.abs(F-P)*.1,ve=m.shape.bitmap.width*m.scalar,re=m.shape.bitmap.height*m.scalar,pe=new DOMMatrix([Math.cos(L)*z,Math.sin(L)*z,-Math.sin(L)*Q,Math.cos(L)*Q,m.x,m.y]);pe.multiplySelf(new DOMMatrix(m.shape.matrix));var Ie=E.createPattern(f.transform(m.shape.bitmap),"no-repeat");Ie.setTransform(pe),E.globalAlpha=1-R,E.fillStyle=Ie,E.fillRect(m.x-ve/2,m.y-re/2,ve,re),E.globalAlpha=1}else if(m.shape==="circle")E.ellipse?E.ellipse(m.x,m.y,Math.abs(H-j)*m.ovalScalar,Math.abs(F-P)*m.ovalScalar,Math.PI/10*m.wobble,0,2*Math.PI):$(E,m.x,m.y,Math.abs(H-j)*m.ovalScalar,Math.abs(F-P)*m.ovalScalar,Math.PI/10*m.wobble,0,2*Math.PI);else if(m.shape==="star")for(var G=Math.PI/2*3,Ne=4*m.scalar,Fe=8*m.scalar,Ve=m.x,Se=m.y,dt=5,He=Math.PI/dt;dt--;)Ve=m.x+Math.cos(G)*Fe,Se=m.y+Math.sin(G)*Fe,E.lineTo(Ve,Se),G+=He,Ve=m.x+Math.cos(G)*Ne,Se=m.y+Math.sin(G)*Ne,E.lineTo(Ve,Se),G+=He;else E.moveTo(Math.floor(m.x),Math.floor(m.y)),E.lineTo(Math.floor(m.wobbleX),Math.floor(P)),E.lineTo(Math.floor(H),Math.floor(F)),E.lineTo(Math.floor(j),Math.floor(m.wobbleY));return E.closePath(),E.fill(),m.tick<m.totalTicks}function Re(E,m,R,j,P){var H=m.slice(),F=E.getContext("2d"),L,z,Q=c(function(ve){function re(){L=z=null,F.clearRect(0,0,j.width,j.height),f.clear(),P(),ve()}function pe(){r&&!(j.width===i.width&&j.height===i.height)&&(j.width=E.width=i.width,j.height=E.height=i.height),!j.width&&!j.height&&(R(E),j.width=E.width,j.height=E.height),F.clearRect(0,0,j.width,j.height),H=H.filter(function(Ie){return be(F,Ie)}),H.length?L=d.frame(pe):re()}L=d.frame(pe),z=re});return{addFettis:function(ve){return H=H.concat(ve),Q},canvas:E,promise:Q,reset:function(){L&&d.cancel(L),z&&z()}}}function Me(E,m){var R=!E,j=!!O(m||{},"resize"),P=!1,H=O(m,"disableForReducedMotion",Boolean),F=o&&!!O(m||{},"useWorker"),L=F?v():null,z=R?Je:N,Q=E&&L?!!E.__confetti_initialized:!1,ve=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,re;function pe(G,Ne,Fe){for(var Ve=O(G,"particleCount",A),Se=O(G,"angle",Number),dt=O(G,"spread",Number),He=O(G,"startVelocity",Number),fn=O(G,"decay",Number),Un=O(G,"gravity",Number),$n=O(G,"drift",Number),dn=O(G,"colors",ke),kr=O(G,"ticks",Number),Bn=O(G,"shapes"),Dr=O(G,"scalar"),Nr=!!O(G,"flat"),zn=ft(G),qn=Ve,hn=[],Or=E.width*zn.x,Ar=E.height*zn.y;qn--;)hn.push(ne({x:Or,y:Ar,angle:Se,spread:dt,startVelocity:He,color:dn[qn%dn.length],shape:Bn[J(0,Bn.length)],ticks:kr,decay:fn,gravity:Un,drift:$n,scalar:Dr,flat:Nr}));return re?re.addFettis(hn):(re=Re(E,hn,z,Ne,Fe),re.promise)}function Ie(G){var Ne=H||O(G,"disableForReducedMotion",Boolean),Fe=O(G,"zIndex",Number);if(Ne&&ve)return c(function(He){He()});R&&re?E=re.canvas:R&&!E&&(E=K(Fe),document.body.appendChild(E)),j&&!Q&&z(E);var Ve={width:E.width,height:E.height};L&&!Q&&L.init(E),Q=!0,L&&(E.__confetti_initialized=!0);function Se(){if(L){var He={getBoundingClientRect:function(){if(!R)return E.getBoundingClientRect()}};z(He),L.postMessage({resize:{width:He.width,height:He.height}});return}Ve.width=Ve.height=null}function dt(){re=null,j&&(P=!1,t.removeEventListener("resize",Se)),R&&E&&(document.body.contains(E)&&document.body.removeChild(E),E=null,Q=!1)}return j&&!P&&(P=!0,t.addEventListener("resize",Se,!1)),L?L.fire(G,Ve,dt):pe(G,Ve,dt)}return Ie.reset=function(){L&&L.reset(),re&&re.reset()},Ie}var De;function Ge(){return De||(De=Me(null,{useWorker:!0,resize:!0})),De}function Lt(E,m,R,j,P,H,F){var L=new Path2D(E),z=new Path2D;z.addPath(L,new DOMMatrix(m));var Q=new Path2D;return Q.addPath(z,new DOMMatrix([Math.cos(F)*P,Math.sin(F)*P,-Math.sin(F)*H,Math.cos(F)*H,R,j])),Q}function cn(E){if(!s)throw new Error("path confetti are not supported in this browser");var m,R;typeof E=="string"?m=E:(m=E.path,R=E.matrix);var j=new Path2D(m),P=document.createElement("canvas"),H=P.getContext("2d");if(!R){for(var F=1e3,L=F,z=F,Q=0,ve=0,re,pe,Ie=0;Ie<F;Ie+=2)for(var G=0;G<F;G+=2)H.isPointInPath(j,Ie,G,"nonzero")&&(L=Math.min(L,Ie),z=Math.min(z,G),Q=Math.max(Q,Ie),ve=Math.max(ve,G));re=Q-L,pe=ve-z;var Ne=10,Fe=Math.min(Ne/re,Ne/pe);R=[Fe,0,0,Fe,-Math.round(re/2+L)*Fe,-Math.round(pe/2+z)*Fe]}return{type:"path",path:m,matrix:R}}function Hn(E){var m,R=1,j="#000000",P='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof E=="string"?m=E:(m=E.text,R="scalar"in E?E.scalar:R,P="fontFamily"in E?E.fontFamily:P,j="color"in E?E.color:j);var H=10*R,F=""+H+"px "+P,L=new OffscreenCanvas(H,H),z=L.getContext("2d");z.font=F;var Q=z.measureText(m),ve=Math.ceil(Q.actualBoundingBoxRight+Q.actualBoundingBoxLeft),re=Math.ceil(Q.actualBoundingBoxAscent+Q.actualBoundingBoxDescent),pe=2,Ie=Q.actualBoundingBoxLeft+pe,G=Q.actualBoundingBoxAscent+pe;ve+=pe+pe,re+=pe+pe,L=new OffscreenCanvas(ve,re),z=L.getContext("2d"),z.font=F,z.fillStyle=j,z.fillText(m,Ie,G);var Ne=1/R;return{type:"bitmap",bitmap:L.transferToImageBitmap(),matrix:[Ne,0,0,Ne,-ve*Ne/2,-re*Ne/2]}}n.exports=function(){return Ge().apply(this,arguments)},n.exports.reset=function(){Ge().reset()},n.exports.create=Me,n.exports.shapeFromPath=cn,n.exports.shapeFromText=Hn})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),Va,!1);var xI=Va.exports,jI=Va.exports.create,TI=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 xI(e)}static async realisticFire(e,t){let n={origin:{y:.7}};await this.fire(Object.assign({},n,t,{particleCount:Math.floor(200*e)}))}},kI=class xs{constructor(t){this.sanitizer=t}transform(t){return t?this.sanitizer.bypassSecurityTrustHtml(t):""}static \u0275fac=function(t){return new(t||xs)($i(Wd,16))};static \u0275pipe=ba({name:"safeHtml",type:xs,pure:!0})},DI=(e,t)=>t.minValue;function NI(e,t){if(e&1&&(lr(0,"li",6)(1,"div",7),cr(2,"div",8),bi(3,"cooeeCurrency"),bi(4,"safeHtml"),cr(5,"img",9),lr(6,"div",10),Lb(7),ur()()()),e&2){let n=t.$implicit,r=Dd(2);wa("left",n.calculatedAlignment+"%"),En(2),gi("innerHTML",Yo(4,7,Yo(3,5,n.minValue)),qf),En(3),gi("src",r.getIconURL(n),Jv),En(2),Od(n.label)}}function OI(e,t){if(e&1&&(Rd(0)(1),cr(2,"div",0),bi(3,"cooeeDynamicVariables"),bi(4,"safeHtml"),lr(5,"div",1)(6,"ul",2)(7,"div",3),cr(8,"div",4),ur(),Db(9,NI,8,9,"li",5,DI),ur()()),e&2){let n=Dd(),r=n.calculatedState(),i=r.nextMilestone?r.nextMilestone.reachingText:r.lastMilestone.reachedText;En(2),gi("innerHTML",Yo(4,6,zb(3,3,i,n.localDynamicVariables())),qf),En(6),wa("width",r.cartValuePercentage+"%"),En(),Ob(r.milestones)}}var AI=class Ts{constructor(t){this.elementRef=t,this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables=co({});calculatedState=co({});_engagementTrigger=co(null);set engagementTrigger(t){this._engagementTrigger.set(t)}ngOnInit(){Ke.debug("Init progressbar"),this.calculateMilestonesSilently()}ngOnDestroy(){Ke.debug("Destroying progressbar")}update(){this.calculateMilestonesSilently()}getIconURL(t){return t.rewardType===ni.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":t.rewardType===ni.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":t.rewardType===ni.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>Ke.error(t))}async calculateMilestones(){let t=this._engagementTrigger();if(!t?.progressBarConfig?.milestones?.length){Ke.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=this.calculateTrackedProgress(a,r.milestones);Ke.debug("Cart value:",s,`, percentage: ${l}%`);let c=100/r.milestones.length,f=c;for(let b of r.milestones)b.calculatedAlignment=f,f+=c;this.celebrate(t,s);let d={milestonesReady:!0,cartValuePercentage:l,milestones:r.milestones},v=r.milestones.find(b=>b.minValue>s);if(v){this.localDynamicVariables.set({amount_left:La.formatCurrency(v.minValue-s)}),d.nextMilestone=v,this.calculatedState.set(d);return}d.lastMilestone=i,this.calculatedState.set(d)}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"),TI.realistic())}calculateTrackedProgress(t,n){if(t<=n[0].minValue)return t/n[0].minValue*n[0].calculatedAlignment;if(t>=n[n.length-1].minValue)return 100;for(let r=0;r<n.length-1;r++){let i=n[r].minValue,o=n[r+1].minValue,s=n[r].calculatedAlignment,a=n[r+1].calculatedAlignment;if(t>=i&&t<=o)return(t-i)/(o-i)*(a-s)+s}return 0}static \u0275fac=function(t){return new(t||Ts)($i(Sf))};static \u0275cmp=V_({type:Ts,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&&xd(0,OI,11,8),t&2&&xb(n.calculatedState().milestonesReady?0:-1)},dependencies:[CI,kI,aI],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}"]})};Ke.configure("CooeeWidgetSDK");(async()=>{let e=await U0(Q0),t=v0(AI,{injector:e.injector});customElements.define("cooee-progressbar",t)})();})();