@letscooee/web-sdk 11.0.0-rc.0 → 11.0.0-rc.10

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.
@@ -0,0 +1,20 @@
1
+ import{$ as ba,$a as On,Aa as Dn,Ab as pr,B as De,Ba as Re,Bb as ot,C as _e,Ca as wa,Cb as $e,Da,E as Ue,Ea as Aa,Eb as mr,Fa as Oa,Fb as Rn,Ga as xa,Gb as Wa,H as Sn,Hb as Nn,I as Ae,Ib as $a,J as ya,Jb as Ya,K as Cn,Kb as _r,L as Tn,La as An,M as $,Ma as hr,Na as ye,Oa as Kt,P as fr,Pa as Xt,R as $t,S as In,T as Ni,Ta as Nt,U as Mi,Ua as Mt,V as ee,Va as gt,W as Ot,Wa as Ra,X as Yt,Xa as Na,Y as Ea,Z as xt,_a as Ma,a as ua,aa as Oe,ab as xn,ba as Fe,c as me,ca as mt,d as da,da as Pi,ea as He,eb as rt,fa as je,fb as it,g as fa,ga as Ge,gb as vt,hb as Ne,i as ha,ia as ki,ja as Li,jb as Pa,ka as Sa,kb as Vi,l as pa,la as nt,m as ma,ma as _t,n as _a,na as Fi,nb as ka,o as ga,oa as ge,ob as La,pa as xe,q as va,qa as Rt,qb as Fa,s as ue,t as wt,tb as Va,u as Le,ua as Ca,v as x,va as Ta,vb as Ba,w as dr,wa as Ia,wb as Ua,x as Dt,xa as zt,xb as Ha,y as At,ya as We,yb as ja,za as wn,zb as Ga}from"./chunk-KFBNKCMH.js";import{a as y,b as V,c as bn,d as la,e as xi,f as Ri,g as ur}from"./chunk-V7UGKYBN.js";var Xa=xi((Ka,vr)=>{"use strict";(function(t){"use strict";var e={};e.VERSION="1.6.1";var n,r={},i=function(d,g){return function(){return g.apply(d,arguments)}},o=function(){var d=arguments,g=d[0],f,E;for(E=1;E<d.length;E++)for(f in d[E])!(f in g)&&d[E].hasOwnProperty(f)&&(g[f]=d[E][f]);return g},s=function(d,g){return{value:d,name:g}};e.TRACE=s(1,"TRACE"),e.DEBUG=s(2,"DEBUG"),e.INFO=s(3,"INFO"),e.TIME=s(4,"TIME"),e.WARN=s(5,"WARN"),e.ERROR=s(8,"ERROR"),e.OFF=s(99,"OFF");var a=function(d){this.context=d,this.setLevel(d.filterLevel),this.log=this.info};a.prototype={setLevel:function(d){d&&"value"in d&&(this.context.filterLevel=d)},getLevel:function(){return this.context.filterLevel},enabledFor:function(d){var g=this.context.filterLevel;return d.value>=g.value},trace:function(){this.invoke(e.TRACE,arguments)},debug:function(){this.invoke(e.DEBUG,arguments)},info:function(){this.invoke(e.INFO,arguments)},warn:function(){this.invoke(e.WARN,arguments)},error:function(){this.invoke(e.ERROR,arguments)},time:function(d){typeof d=="string"&&d.length>0&&this.invoke(e.TIME,[d,"start"])},timeEnd:function(d){typeof d=="string"&&d.length>0&&this.invoke(e.TIME,[d,"end"])},invoke:function(d,g){n&&this.enabledFor(d)&&n(g,o({level:d},this.context))}};var l=new a({filterLevel:e.OFF});(function(){var d=e;d.enabledFor=i(l,l.enabledFor),d.trace=i(l,l.trace),d.debug=i(l,l.debug),d.time=i(l,l.time),d.timeEnd=i(l,l.timeEnd),d.info=i(l,l.info),d.warn=i(l,l.warn),d.error=i(l,l.error),d.log=d.info})(),e.setHandler=function(d){n=d},e.setLevel=function(d){l.setLevel(d);for(var g in r)r.hasOwnProperty(g)&&r[g].setLevel(d)},e.getLevel=function(){return l.getLevel()},e.get=function(d){return r[d]||(r[d]=new a(o({name:d},l.context)))},e.createDefaultHandler=function(d){d=d||{},d.formatter=d.formatter||function(v,w){w.name&&v.unshift("["+w.name+"]")};var g={},f=function(E,v){Function.prototype.apply.call(E,console,v)};return typeof console>"u"?function(){}:function(E,v){E=Array.prototype.slice.call(E);var w=console.log,N;v.level===e.TIME?(N=(v.name?"["+v.name+"] ":"")+E[0],E[1]==="start"?console.time?console.time(N):g[N]=new Date().getTime():console.timeEnd?console.timeEnd(N):f(w,[N+": "+(new Date().getTime()-g[N])+"ms"])):(v.level===e.WARN&&console.warn?w=console.warn:v.level===e.ERROR&&console.error?w=console.error:v.level===e.INFO&&console.info?w=console.info:v.level===e.DEBUG&&console.debug?w=console.debug:v.level===e.TRACE&&console.trace&&(w=console.trace),d.formatter(E,v),f(w,E))}},e.useDefaults=function(d){e.setLevel(d&&d.defaultLevel||e.DEBUG),e.setHandler(e.createDefaultHandler(d))},e.setDefaults=e.useDefaults,typeof define=="function"&&define.amd?define(e):typeof vr<"u"&&vr.exports?vr.exports=e:(e._prevLogger=t.Logger,e.noConflict=function(){return t.Logger=e._prevLogger,e},t.Logger=e)})(Ka)});var ac=xi((sc,ji)=>{"use strict";(function(t){if(typeof sc=="object"&&typeof ji<"u")ji.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var e;typeof window<"u"?e=window:typeof global<"u"?e=global:typeof self<"u"?e=self:e=this,e.localforage=t()}})(function(){var t,e,n;return(function r(i,o,s){function a(g,f){if(!o[g]){if(!i[g]){var E=typeof bn=="function"&&bn;if(!f&&E)return E(g,!0);if(l)return l(g,!0);var v=new Error("Cannot find module '"+g+"'");throw v.code="MODULE_NOT_FOUND",v}var w=o[g]={exports:{}};i[g][0].call(w.exports,function(N){var R=i[g][1][N];return a(R||N)},w,w.exports,r,i,o,s)}return o[g].exports}for(var l=typeof bn=="function"&&bn,d=0;d<s.length;d++)a(s[d]);return a})({1:[function(r,i,o){(function(s){"use strict";var a=s.MutationObserver||s.WebKitMutationObserver,l;if(a){var d=0,g=new a(N),f=s.document.createTextNode("");g.observe(f,{characterData:!0}),l=function(){f.data=d=++d%2}}else if(!s.setImmediate&&typeof s.MessageChannel<"u"){var E=new s.MessageChannel;E.port1.onmessage=N,l=function(){E.port2.postMessage(0)}}else"document"in s&&"onreadystatechange"in s.document.createElement("script")?l=function(){var P=s.document.createElement("script");P.onreadystatechange=function(){N(),P.onreadystatechange=null,P.parentNode.removeChild(P),P=null},s.document.documentElement.appendChild(P)}:l=function(){setTimeout(N,0)};var v,w=[];function N(){v=!0;for(var P,M,U=w.length;U;){for(M=w,w=[],P=-1;++P<U;)M[P]();U=w.length}v=!1}i.exports=R;function R(P){w.push(P)===1&&!v&&l()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(r,i,o){"use strict";var s=r(1);function a(){}var l={},d=["REJECTED"],g=["FULFILLED"],f=["PENDING"];i.exports=E;function E(D){if(typeof D!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,D!==a&&R(this,D)}E.prototype.catch=function(D){return this.then(null,D)},E.prototype.then=function(D,H){if(typeof D!="function"&&this.state===g||typeof H!="function"&&this.state===d)return this;var F=new this.constructor(a);if(this.state!==f){var j=this.state===g?D:H;w(F,j,this.outcome)}else this.queue.push(new v(F,D,H));return F};function v(D,H,F){this.promise=D,typeof H=="function"&&(this.onFulfilled=H,this.callFulfilled=this.otherCallFulfilled),typeof F=="function"&&(this.onRejected=F,this.callRejected=this.otherCallRejected)}v.prototype.callFulfilled=function(D){l.resolve(this.promise,D)},v.prototype.otherCallFulfilled=function(D){w(this.promise,this.onFulfilled,D)},v.prototype.callRejected=function(D){l.reject(this.promise,D)},v.prototype.otherCallRejected=function(D){w(this.promise,this.onRejected,D)};function w(D,H,F){s(function(){var j;try{j=H(F)}catch(Z){return l.reject(D,Z)}j===D?l.reject(D,new TypeError("Cannot resolve promise with itself")):l.resolve(D,j)})}l.resolve=function(D,H){var F=P(N,H);if(F.status==="error")return l.reject(D,F.value);var j=F.value;if(j)R(D,j);else{D.state=g,D.outcome=H;for(var Z=-1,X=D.queue.length;++Z<X;)D.queue[Z].callFulfilled(H)}return D},l.reject=function(D,H){D.state=d,D.outcome=H;for(var F=-1,j=D.queue.length;++F<j;)D.queue[F].callRejected(H);return D};function N(D){var H=D&&D.then;if(D&&(typeof D=="object"||typeof D=="function")&&typeof H=="function")return function(){H.apply(D,arguments)}}function R(D,H){var F=!1;function j(Ie){F||(F=!0,l.reject(D,Ie))}function Z(Ie){F||(F=!0,l.resolve(D,Ie))}function X(){H(Z,j)}var se=P(X);se.status==="error"&&j(se.value)}function P(D,H){var F={};try{F.value=D(H),F.status="success"}catch(j){F.status="error",F.value=j}return F}E.resolve=M;function M(D){return D instanceof this?D:l.resolve(new this(a),D)}E.reject=U;function U(D){var H=new this(a);return l.reject(H,D)}E.all=Ce;function Ce(D){var H=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var F=D.length,j=!1;if(!F)return this.resolve([]);for(var Z=new Array(F),X=0,se=-1,Ie=new this(a);++se<F;)et(D[se],se);return Ie;function et(vn,ar){H.resolve(vn).then(Ei,function(Gt){j||(j=!0,l.reject(Ie,Gt))});function Ei(Gt){Z[ar]=Gt,++X===F&&!j&&(j=!0,l.resolve(Ie,Z))}}}E.race=Te;function Te(D){var H=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var F=D.length,j=!1;if(!F)return this.resolve([]);for(var Z=-1,X=new this(a);++Z<F;)se(D[Z]);return X;function se(Ie){H.resolve(Ie).then(function(et){j||(j=!0,l.resolve(X,et))},function(et){j||(j=!0,l.reject(X,et))})}}},{1:1}],3:[function(r,i,o){(function(s){"use strict";typeof s.Promise!="function"&&(s.Promise=r(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(r,i,o){"use strict";var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};function a(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}function l(){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=l();function g(){try{if(!d||!d.open)return!1;var c=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(!c||h)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function f(c,h){c=c||[],h=h||{};try{return new Blob(c,h)}catch(p){if(p.name!=="TypeError")throw p;for(var u=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,m=new u,_=0;_<c.length;_+=1)m.append(c[_]);return m.getBlob(h.type)}}typeof Promise>"u"&&r(3);var E=Promise;function v(c,h){h&&c.then(function(u){h(null,u)},function(u){h(u)})}function w(c,h,u){typeof h=="function"&&c.then(h),typeof u=="function"&&c.catch(u)}function N(c){return typeof c!="string"&&(console.warn(c+" used as a key, but it is not a string."),c=String(c)),c}function R(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var P="local-forage-detect-blob-support",M=void 0,U={},Ce=Object.prototype.toString,Te="readonly",D="readwrite";function H(c){for(var h=c.length,u=new ArrayBuffer(h),m=new Uint8Array(u),_=0;_<h;_++)m[_]=c.charCodeAt(_);return u}function F(c){return new E(function(h){var u=c.transaction(P,D),m=f([""]);u.objectStore(P).put(m,"key"),u.onabort=function(_){_.preventDefault(),_.stopPropagation(),h(!1)},u.oncomplete=function(){var _=navigator.userAgent.match(/Chrome\/(\d+)/),p=navigator.userAgent.match(/Edge\//);h(p||!_||parseInt(_[1],10)>=43)}}).catch(function(){return!1})}function j(c){return typeof M=="boolean"?E.resolve(M):F(c).then(function(h){return M=h,M})}function Z(c){var h=U[c.name],u={};u.promise=new E(function(m,_){u.resolve=m,u.reject=_}),h.deferredOperations.push(u),h.dbReady?h.dbReady=h.dbReady.then(function(){return u.promise}):h.dbReady=u.promise}function X(c){var h=U[c.name],u=h.deferredOperations.pop();if(u)return u.resolve(),u.promise}function se(c,h){var u=U[c.name],m=u.deferredOperations.pop();if(m)return m.reject(h),m.promise}function Ie(c,h){return new E(function(u,m){if(U[c.name]=U[c.name]||Gs(),c.db)if(h)Z(c),c.db.close();else return u(c.db);var _=[c.name];h&&_.push(c.version);var p=d.open.apply(d,_);h&&(p.onupgradeneeded=function(b){var S=p.result;try{S.createObjectStore(c.storeName),b.oldVersion<=1&&S.createObjectStore(P)}catch(C){if(C.name==="ConstraintError")console.warn('The database "'+c.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+c.storeName+'" already exists.');else throw C}}),p.onerror=function(b){b.preventDefault(),m(p.error)},p.onsuccess=function(){var b=p.result;b.onversionchange=function(S){S.target.close()},u(b),X(c)}})}function et(c){return Ie(c,!1)}function vn(c){return Ie(c,!0)}function ar(c,h){if(!c.db)return!0;var u=!c.db.objectStoreNames.contains(c.storeName),m=c.version<c.db.version,_=c.version>c.db.version;if(m&&(c.version!==h&&console.warn('The database "'+c.name+`" can't be downgraded from version `+c.db.version+" to version "+c.version+"."),c.version=c.db.version),_||u){if(u){var p=c.db.version+1;p>c.version&&(c.version=p)}return!0}return!1}function Ei(c){return new E(function(h,u){var m=new FileReader;m.onerror=u,m.onloadend=function(_){var p=btoa(_.target.result||"");h({__local_forage_encoded_blob:!0,data:p,type:c.type})},m.readAsBinaryString(c)})}function Gt(c){var h=H(atob(c.data));return f([h],{type:c.type})}function js(c){return c&&c.__local_forage_encoded_blob}function rd(c){var h=this,u=h._initReady().then(function(){var m=U[h._dbInfo.name];if(m&&m.dbReady)return m.dbReady});return w(u,c,c),u}function id(c){Z(c);for(var h=U[c.name],u=h.forages,m=0;m<u.length;m++){var _=u[m];_._dbInfo.db&&(_._dbInfo.db.close(),_._dbInfo.db=null)}return c.db=null,et(c).then(function(p){return c.db=p,ar(c)?vn(c):p}).then(function(p){c.db=h.db=p;for(var b=0;b<u.length;b++)u[b]._dbInfo.db=p}).catch(function(p){throw se(c,p),p})}function tt(c,h,u,m){m===void 0&&(m=1);try{var _=c.db.transaction(c.storeName,h);u(null,_)}catch(p){if(m>0&&(!c.db||p.name==="InvalidStateError"||p.name==="NotFoundError"))return E.resolve().then(function(){if(!c.db||p.name==="NotFoundError"&&!c.db.objectStoreNames.contains(c.storeName)&&c.version<=c.db.version)return c.db&&(c.version=c.db.version+1),vn(c)}).then(function(){return id(c).then(function(){tt(c,h,u,m-1)})}).catch(u);u(p)}}function Gs(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function od(c){var h=this,u={db:null};if(c)for(var m in c)u[m]=c[m];var _=U[u.name];_||(_=Gs(),U[u.name]=_),_.forages.push(h),h._initReady||(h._initReady=h.ready,h.ready=rd);var p=[];function b(){return E.resolve()}for(var S=0;S<_.forages.length;S++){var C=_.forages[S];C!==h&&p.push(C._initReady().catch(b))}var T=_.forages.slice(0);return E.all(p).then(function(){return u.db=_.db,et(u)}).then(function(I){return u.db=I,ar(u,h._defaultConfig.version)?vn(u):I}).then(function(I){u.db=_.db=I,h._dbInfo=u;for(var O=0;O<T.length;O++){var B=T[O];B!==h&&(B._dbInfo.db=u.db,B._dbInfo.version=u.version)}})}function sd(c,h){var u=this;c=N(c);var m=new E(function(_,p){u.ready().then(function(){tt(u._dbInfo,Te,function(b,S){if(b)return p(b);try{var C=S.objectStore(u._dbInfo.storeName),T=C.get(c);T.onsuccess=function(){var I=T.result;I===void 0&&(I=null),js(I)&&(I=Gt(I)),_(I)},T.onerror=function(){p(T.error)}}catch(I){p(I)}})}).catch(p)});return v(m,h),m}function ad(c,h){var u=this,m=new E(function(_,p){u.ready().then(function(){tt(u._dbInfo,Te,function(b,S){if(b)return p(b);try{var C=S.objectStore(u._dbInfo.storeName),T=C.openCursor(),I=1;T.onsuccess=function(){var O=T.result;if(O){var B=O.value;js(B)&&(B=Gt(B));var G=c(B,O.key,I++);G!==void 0?_(G):O.continue()}else _()},T.onerror=function(){p(T.error)}}catch(O){p(O)}})}).catch(p)});return v(m,h),m}function cd(c,h,u){var m=this;c=N(c);var _=new E(function(p,b){var S;m.ready().then(function(){return S=m._dbInfo,Ce.call(h)==="[object Blob]"?j(S.db).then(function(C){return C?h:Ei(h)}):h}).then(function(C){tt(m._dbInfo,D,function(T,I){if(T)return b(T);try{var O=I.objectStore(m._dbInfo.storeName);C===null&&(C=void 0);var B=O.put(C,c);I.oncomplete=function(){C===void 0&&(C=null),p(C)},I.onabort=I.onerror=function(){var G=B.error?B.error:B.transaction.error;b(G)}}catch(G){b(G)}})}).catch(b)});return v(_,u),_}function ld(c,h){var u=this;c=N(c);var m=new E(function(_,p){u.ready().then(function(){tt(u._dbInfo,D,function(b,S){if(b)return p(b);try{var C=S.objectStore(u._dbInfo.storeName),T=C.delete(c);S.oncomplete=function(){_()},S.onerror=function(){p(T.error)},S.onabort=function(){var I=T.error?T.error:T.transaction.error;p(I)}}catch(I){p(I)}})}).catch(p)});return v(m,h),m}function ud(c){var h=this,u=new E(function(m,_){h.ready().then(function(){tt(h._dbInfo,D,function(p,b){if(p)return _(p);try{var S=b.objectStore(h._dbInfo.storeName),C=S.clear();b.oncomplete=function(){m()},b.onabort=b.onerror=function(){var T=C.error?C.error:C.transaction.error;_(T)}}catch(T){_(T)}})}).catch(_)});return v(u,c),u}function dd(c){var h=this,u=new E(function(m,_){h.ready().then(function(){tt(h._dbInfo,Te,function(p,b){if(p)return _(p);try{var S=b.objectStore(h._dbInfo.storeName),C=S.count();C.onsuccess=function(){m(C.result)},C.onerror=function(){_(C.error)}}catch(T){_(T)}})}).catch(_)});return v(u,c),u}function fd(c,h){var u=this,m=new E(function(_,p){if(c<0){_(null);return}u.ready().then(function(){tt(u._dbInfo,Te,function(b,S){if(b)return p(b);try{var C=S.objectStore(u._dbInfo.storeName),T=!1,I=C.openKeyCursor();I.onsuccess=function(){var O=I.result;if(!O){_(null);return}c===0||T?_(O.key):(T=!0,O.advance(c))},I.onerror=function(){p(I.error)}}catch(O){p(O)}})}).catch(p)});return v(m,h),m}function hd(c){var h=this,u=new E(function(m,_){h.ready().then(function(){tt(h._dbInfo,Te,function(p,b){if(p)return _(p);try{var S=b.objectStore(h._dbInfo.storeName),C=S.openKeyCursor(),T=[];C.onsuccess=function(){var I=C.result;if(!I){m(T);return}T.push(I.key),I.continue()},C.onerror=function(){_(C.error)}}catch(I){_(I)}})}).catch(_)});return v(u,c),u}function pd(c,h){h=R.apply(this,arguments);var u=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||u.name,c.storeName=c.storeName||u.storeName);var m=this,_;if(!c.name)_=E.reject("Invalid arguments");else{var p=c.name===u.name&&m._dbInfo.db,b=p?E.resolve(m._dbInfo.db):et(c).then(function(S){var C=U[c.name],T=C.forages;C.db=S;for(var I=0;I<T.length;I++)T[I]._dbInfo.db=S;return S});c.storeName?_=b.then(function(S){if(S.objectStoreNames.contains(c.storeName)){var C=S.version+1;Z(c);var T=U[c.name],I=T.forages;S.close();for(var O=0;O<I.length;O++){var B=I[O];B._dbInfo.db=null,B._dbInfo.version=C}var G=new E(function(W,Q){var J=d.open(c.name,C);J.onerror=function(we){var En=J.result;En.close(),Q(we)},J.onupgradeneeded=function(){var we=J.result;we.deleteObjectStore(c.storeName)},J.onsuccess=function(){var we=J.result;we.close(),W(we)}});return G.then(function(W){T.db=W;for(var Q=0;Q<I.length;Q++){var J=I[Q];J._dbInfo.db=W,X(J._dbInfo)}}).catch(function(W){throw(se(c,W)||E.resolve()).catch(function(){}),W})}}):_=b.then(function(S){Z(c);var C=U[c.name],T=C.forages;S.close();for(var I=0;I<T.length;I++){var O=T[I];O._dbInfo.db=null}var B=new E(function(G,W){var Q=d.deleteDatabase(c.name);Q.onerror=function(){var J=Q.result;J&&J.close(),W(Q.error)},Q.onblocked=function(){console.warn('dropInstance blocked for database "'+c.name+'" until all open connections are closed')},Q.onsuccess=function(){var J=Q.result;J&&J.close(),G(J)}});return B.then(function(G){C.db=G;for(var W=0;W<T.length;W++){var Q=T[W];X(Q._dbInfo)}}).catch(function(G){throw(se(c,G)||E.resolve()).catch(function(){}),G})})}return v(_,h),_}var md={_driver:"asyncStorage",_initStorage:od,_support:g(),iterate:ad,getItem:sd,setItem:cd,removeItem:ld,clear:ud,length:dd,key:fd,keys:hd,dropInstance:pd};function _d(){return typeof openDatabase=="function"}var ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gd="~~local_forage_type~",Ws=/^~~local_forage_type~([^~]+)~/,cr="__lfsc__:",bi=cr.length,Si="arbf",Ci="blob",$s="si08",Ys="ui08",zs="uic8",Ks="si16",Xs="si32",qs="ur16",Zs="ui32",Js="fl32",Qs="fl64",ea=bi+Si.length,ta=Object.prototype.toString;function na(c){var h=c.length*.75,u=c.length,m,_=0,p,b,S,C;c[c.length-1]==="="&&(h--,c[c.length-2]==="="&&h--);var T=new ArrayBuffer(h),I=new Uint8Array(T);for(m=0;m<u;m+=4)p=ht.indexOf(c[m]),b=ht.indexOf(c[m+1]),S=ht.indexOf(c[m+2]),C=ht.indexOf(c[m+3]),I[_++]=p<<2|b>>4,I[_++]=(b&15)<<4|S>>2,I[_++]=(S&3)<<6|C&63;return T}function Ti(c){var h=new Uint8Array(c),u="",m;for(m=0;m<h.length;m+=3)u+=ht[h[m]>>2],u+=ht[(h[m]&3)<<4|h[m+1]>>4],u+=ht[(h[m+1]&15)<<2|h[m+2]>>6],u+=ht[h[m+2]&63];return h.length%3===2?u=u.substring(0,u.length-1)+"=":h.length%3===1&&(u=u.substring(0,u.length-2)+"=="),u}function vd(c,h){var u="";if(c&&(u=ta.call(c)),c&&(u==="[object ArrayBuffer]"||c.buffer&&ta.call(c.buffer)==="[object ArrayBuffer]")){var m,_=cr;c instanceof ArrayBuffer?(m=c,_+=Si):(m=c.buffer,u==="[object Int8Array]"?_+=$s:u==="[object Uint8Array]"?_+=Ys:u==="[object Uint8ClampedArray]"?_+=zs:u==="[object Int16Array]"?_+=Ks:u==="[object Uint16Array]"?_+=qs:u==="[object Int32Array]"?_+=Xs:u==="[object Uint32Array]"?_+=Zs:u==="[object Float32Array]"?_+=Js:u==="[object Float64Array]"?_+=Qs:h(new Error("Failed to get type for BinaryArray"))),h(_+Ti(m))}else if(u==="[object Blob]"){var p=new FileReader;p.onload=function(){var b=gd+c.type+"~"+Ti(this.result);h(cr+Ci+b)},p.readAsArrayBuffer(c)}else try{h(JSON.stringify(c))}catch(b){console.error("Couldn't convert value into a JSON string: ",c),h(null,b)}}function yd(c){if(c.substring(0,bi)!==cr)return JSON.parse(c);var h=c.substring(ea),u=c.substring(bi,ea),m;if(u===Ci&&Ws.test(h)){var _=h.match(Ws);m=_[1],h=h.substring(_[0].length)}var p=na(h);switch(u){case Si:return p;case Ci:return f([p],{type:m});case $s:return new Int8Array(p);case Ys:return new Uint8Array(p);case zs:return new Uint8ClampedArray(p);case Ks:return new Int16Array(p);case qs:return new Uint16Array(p);case Xs:return new Int32Array(p);case Zs:return new Uint32Array(p);case Js:return new Float32Array(p);case Qs:return new Float64Array(p);default:throw new Error("Unkown type: "+u)}}var Ii={serialize:vd,deserialize:yd,stringToBuffer:na,bufferToString:Ti};function ra(c,h,u,m){c.executeSql("CREATE TABLE IF NOT EXISTS "+h.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],u,m)}function Ed(c){var h=this,u={db:null};if(c)for(var m in c)u[m]=typeof c[m]!="string"?c[m].toString():c[m];var _=new E(function(p,b){try{u.db=openDatabase(u.name,String(u.version),u.description,u.size)}catch(S){return b(S)}u.db.transaction(function(S){ra(S,u,function(){h._dbInfo=u,p()},function(C,T){b(T)})},b)});return u.serializer=Ii,_}function pt(c,h,u,m,_,p){c.executeSql(u,m,_,function(b,S){S.code===S.SYNTAX_ERR?b.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[h.storeName],function(C,T){T.rows.length?p(C,S):ra(C,h,function(){C.executeSql(u,m,_,p)},p)},p):p(b,S)},p)}function bd(c,h){var u=this;c=N(c);var m=new E(function(_,p){u.ready().then(function(){var b=u._dbInfo;b.db.transaction(function(S){pt(S,b,"SELECT * FROM "+b.storeName+" WHERE key = ? LIMIT 1",[c],function(C,T){var I=T.rows.length?T.rows.item(0).value:null;I&&(I=b.serializer.deserialize(I)),_(I)},function(C,T){p(T)})})}).catch(p)});return v(m,h),m}function Sd(c,h){var u=this,m=new E(function(_,p){u.ready().then(function(){var b=u._dbInfo;b.db.transaction(function(S){pt(S,b,"SELECT * FROM "+b.storeName,[],function(C,T){for(var I=T.rows,O=I.length,B=0;B<O;B++){var G=I.item(B),W=G.value;if(W&&(W=b.serializer.deserialize(W)),W=c(W,G.key,B+1),W!==void 0){_(W);return}}_()},function(C,T){p(T)})})}).catch(p)});return v(m,h),m}function ia(c,h,u,m){var _=this;c=N(c);var p=new E(function(b,S){_.ready().then(function(){h===void 0&&(h=null);var C=h,T=_._dbInfo;T.serializer.serialize(h,function(I,O){O?S(O):T.db.transaction(function(B){pt(B,T,"INSERT OR REPLACE INTO "+T.storeName+" (key, value) VALUES (?, ?)",[c,I],function(){b(C)},function(G,W){S(W)})},function(B){if(B.code===B.QUOTA_ERR){if(m>0){b(ia.apply(_,[c,C,u,m-1]));return}S(B)}})})}).catch(S)});return v(p,u),p}function Cd(c,h,u){return ia.apply(this,[c,h,u,1])}function Td(c,h){var u=this;c=N(c);var m=new E(function(_,p){u.ready().then(function(){var b=u._dbInfo;b.db.transaction(function(S){pt(S,b,"DELETE FROM "+b.storeName+" WHERE key = ?",[c],function(){_()},function(C,T){p(T)})})}).catch(p)});return v(m,h),m}function Id(c){var h=this,u=new E(function(m,_){h.ready().then(function(){var p=h._dbInfo;p.db.transaction(function(b){pt(b,p,"DELETE FROM "+p.storeName,[],function(){m()},function(S,C){_(C)})})}).catch(_)});return v(u,c),u}function wd(c){var h=this,u=new E(function(m,_){h.ready().then(function(){var p=h._dbInfo;p.db.transaction(function(b){pt(b,p,"SELECT COUNT(key) as c FROM "+p.storeName,[],function(S,C){var T=C.rows.item(0).c;m(T)},function(S,C){_(C)})})}).catch(_)});return v(u,c),u}function Dd(c,h){var u=this,m=new E(function(_,p){u.ready().then(function(){var b=u._dbInfo;b.db.transaction(function(S){pt(S,b,"SELECT key FROM "+b.storeName+" WHERE id = ? LIMIT 1",[c+1],function(C,T){var I=T.rows.length?T.rows.item(0).key:null;_(I)},function(C,T){p(T)})})}).catch(p)});return v(m,h),m}function Ad(c){var h=this,u=new E(function(m,_){h.ready().then(function(){var p=h._dbInfo;p.db.transaction(function(b){pt(b,p,"SELECT key FROM "+p.storeName,[],function(S,C){for(var T=[],I=0;I<C.rows.length;I++)T.push(C.rows.item(I).key);m(T)},function(S,C){_(C)})})}).catch(_)});return v(u,c),u}function Od(c){return new E(function(h,u){c.transaction(function(m){m.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(_,p){for(var b=[],S=0;S<p.rows.length;S++)b.push(p.rows.item(S).name);h({db:c,storeNames:b})},function(_,p){u(p)})},function(m){u(m)})})}function xd(c,h){h=R.apply(this,arguments);var u=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||u.name,c.storeName=c.storeName||u.storeName);var m=this,_;return c.name?_=new E(function(p){var b;c.name===u.name?b=m._dbInfo.db:b=openDatabase(c.name,"","",0),c.storeName?p({db:b,storeNames:[c.storeName]}):p(Od(b))}).then(function(p){return new E(function(b,S){p.db.transaction(function(C){function T(G){return new E(function(W,Q){C.executeSql("DROP TABLE IF EXISTS "+G,[],function(){W()},function(J,we){Q(we)})})}for(var I=[],O=0,B=p.storeNames.length;O<B;O++)I.push(T(p.storeNames[O]));E.all(I).then(function(){b()}).catch(function(G){S(G)})},function(C){S(C)})})}):_=E.reject("Invalid arguments"),v(_,h),_}var Rd={_driver:"webSQLStorage",_initStorage:Ed,_support:_d(),iterate:Sd,getItem:bd,setItem:Cd,removeItem:Td,clear:Id,length:wd,key:Dd,keys:Ad,dropInstance:xd};function Nd(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function oa(c,h){var u=c.name+"/";return c.storeName!==h.storeName&&(u+=c.storeName+"/"),u}function Md(){var c="_localforage_support_test";try{return localStorage.setItem(c,!0),localStorage.removeItem(c),!1}catch{return!0}}function Pd(){return!Md()||localStorage.length>0}function kd(c){var h=this,u={};if(c)for(var m in c)u[m]=c[m];return u.keyPrefix=oa(c,h._defaultConfig),Pd()?(h._dbInfo=u,u.serializer=Ii,E.resolve()):E.reject()}function Ld(c){var h=this,u=h.ready().then(function(){for(var m=h._dbInfo.keyPrefix,_=localStorage.length-1;_>=0;_--){var p=localStorage.key(_);p.indexOf(m)===0&&localStorage.removeItem(p)}});return v(u,c),u}function Fd(c,h){var u=this;c=N(c);var m=u.ready().then(function(){var _=u._dbInfo,p=localStorage.getItem(_.keyPrefix+c);return p&&(p=_.serializer.deserialize(p)),p});return v(m,h),m}function Vd(c,h){var u=this,m=u.ready().then(function(){for(var _=u._dbInfo,p=_.keyPrefix,b=p.length,S=localStorage.length,C=1,T=0;T<S;T++){var I=localStorage.key(T);if(I.indexOf(p)===0){var O=localStorage.getItem(I);if(O&&(O=_.serializer.deserialize(O)),O=c(O,I.substring(b),C++),O!==void 0)return O}}});return v(m,h),m}function Bd(c,h){var u=this,m=u.ready().then(function(){var _=u._dbInfo,p;try{p=localStorage.key(c)}catch{p=null}return p&&(p=p.substring(_.keyPrefix.length)),p});return v(m,h),m}function Ud(c){var h=this,u=h.ready().then(function(){for(var m=h._dbInfo,_=localStorage.length,p=[],b=0;b<_;b++){var S=localStorage.key(b);S.indexOf(m.keyPrefix)===0&&p.push(S.substring(m.keyPrefix.length))}return p});return v(u,c),u}function Hd(c){var h=this,u=h.keys().then(function(m){return m.length});return v(u,c),u}function jd(c,h){var u=this;c=N(c);var m=u.ready().then(function(){var _=u._dbInfo;localStorage.removeItem(_.keyPrefix+c)});return v(m,h),m}function Gd(c,h,u){var m=this;c=N(c);var _=m.ready().then(function(){h===void 0&&(h=null);var p=h;return new E(function(b,S){var C=m._dbInfo;C.serializer.serialize(h,function(T,I){if(I)S(I);else try{localStorage.setItem(C.keyPrefix+c,T),b(p)}catch(O){(O.name==="QuotaExceededError"||O.name==="NS_ERROR_DOM_QUOTA_REACHED")&&S(O),S(O)}})})});return v(_,u),_}function Wd(c,h){if(h=R.apply(this,arguments),c=typeof c!="function"&&c||{},!c.name){var u=this.config();c.name=c.name||u.name,c.storeName=c.storeName||u.storeName}var m=this,_;return c.name?_=new E(function(p){c.storeName?p(oa(c,m._defaultConfig)):p(c.name+"/")}).then(function(p){for(var b=localStorage.length-1;b>=0;b--){var S=localStorage.key(b);S.indexOf(p)===0&&localStorage.removeItem(S)}}):_=E.reject("Invalid arguments"),v(_,h),_}var $d={_driver:"localStorageWrapper",_initStorage:kd,_support:Nd(),iterate:Vd,getItem:Fd,setItem:Gd,removeItem:jd,clear:Ld,length:Hd,key:Bd,keys:Ud,dropInstance:Wd},Yd=function(h,u){return h===u||typeof h=="number"&&typeof u=="number"&&isNaN(h)&&isNaN(u)},zd=function(h,u){for(var m=h.length,_=0;_<m;){if(Yd(h[_],u))return!0;_++}return!1},sa=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"},yn={},aa={},Wt={INDEXEDDB:md,WEBSQL:Rd,LOCALSTORAGE:$d},Kd=[Wt.INDEXEDDB._driver,Wt.WEBSQL._driver,Wt.LOCALSTORAGE._driver],lr=["dropInstance"],wi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(lr),Xd={description:"",driver:Kd.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function qd(c,h){c[h]=function(){var u=arguments;return c.ready().then(function(){return c[h].apply(c,u)})}}function Di(){for(var c=1;c<arguments.length;c++){var h=arguments[c];if(h)for(var u in h)h.hasOwnProperty(u)&&(sa(h[u])?arguments[0][u]=h[u].slice():arguments[0][u]=h[u])}return arguments[0]}var Zd=(function(){function c(h){a(this,c);for(var u in Wt)if(Wt.hasOwnProperty(u)){var m=Wt[u],_=m._driver;this[u]=_,yn[_]||this.defineDriver(m)}this._defaultConfig=Di({},Xd),this._config=Di({},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 c.prototype.config=function(u){if((typeof u>"u"?"undefined":s(u))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var m in u){if(m==="storeName"&&(u[m]=u[m].replace(/\W/g,"_")),m==="version"&&typeof u[m]!="number")return new Error("Database version must be a number.");this._config[m]=u[m]}return"driver"in u&&u.driver?this.setDriver(this._config.driver):!0}else return typeof u=="string"?this._config[u]:this._config},c.prototype.defineDriver=function(u,m,_){var p=new E(function(b,S){try{var C=u._driver,T=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!u._driver){S(T);return}for(var I=wi.concat("_initStorage"),O=0,B=I.length;O<B;O++){var G=I[O],W=!zd(lr,G);if((W||u[G])&&typeof u[G]!="function"){S(T);return}}var Q=function(){for(var En=function(ef){return function(){var tf=new Error("Method "+ef+" is not implemented by the current driver"),ca=E.reject(tf);return v(ca,arguments[arguments.length-1]),ca}},Ai=0,Qd=lr.length;Ai<Qd;Ai++){var Oi=lr[Ai];u[Oi]||(u[Oi]=En(Oi))}};Q();var J=function(En){yn[C]&&console.info("Redefining LocalForage driver: "+C),yn[C]=u,aa[C]=En,b()};"_support"in u?u._support&&typeof u._support=="function"?u._support().then(J,S):J(!!u._support):J(!0)}catch(we){S(we)}});return w(p,m,_),p},c.prototype.driver=function(){return this._driver||null},c.prototype.getDriver=function(u,m,_){var p=yn[u]?E.resolve(yn[u]):E.reject(new Error("Driver not found."));return w(p,m,_),p},c.prototype.getSerializer=function(u){var m=E.resolve(Ii);return w(m,u),m},c.prototype.ready=function(u){var m=this,_=m._driverSet.then(function(){return m._ready===null&&(m._ready=m._initDriver()),m._ready});return w(_,u,u),_},c.prototype.setDriver=function(u,m,_){var p=this;sa(u)||(u=[u]);var b=this._getSupportedDrivers(u);function S(){p._config.driver=p.driver()}function C(O){return p._extend(O),S(),p._ready=p._initStorage(p._config),p._ready}function T(O){return function(){var B=0;function G(){for(;B<O.length;){var W=O[B];return B++,p._dbInfo=null,p._ready=null,p.getDriver(W).then(C).catch(G)}S();var Q=new Error("No available storage method found.");return p._driverSet=E.reject(Q),p._driverSet}return G()}}var I=this._driverSet!==null?this._driverSet.catch(function(){return E.resolve()}):E.resolve();return this._driverSet=I.then(function(){var O=b[0];return p._dbInfo=null,p._ready=null,p.getDriver(O).then(function(B){p._driver=B._driver,S(),p._wrapLibraryMethodsWithReady(),p._initDriver=T(b)})}).catch(function(){S();var O=new Error("No available storage method found.");return p._driverSet=E.reject(O),p._driverSet}),w(this._driverSet,m,_),this._driverSet},c.prototype.supports=function(u){return!!aa[u]},c.prototype._extend=function(u){Di(this,u)},c.prototype._getSupportedDrivers=function(u){for(var m=[],_=0,p=u.length;_<p;_++){var b=u[_];this.supports(b)&&m.push(b)}return m},c.prototype._wrapLibraryMethodsWithReady=function(){for(var u=0,m=wi.length;u<m;u++)qd(this,wi[u])},c.prototype.createInstance=function(u){return new c(u)},c})(),Jd=new Zd;i.exports=Jd},{3:3}]},{},[4])(4)})});var cc=xi((Yi,zi)=>{"use strict";(function(t,e){typeof Yi=="object"&&typeof zi<"u"?zi.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.fetchRetry=e())})(Yi,function(){"use strict";var t=function(r,i){if(i=i||{},typeof r!="function")throw new n("fetch must be a function");if(typeof i!="object")throw new n("defaults must be an object");if(i.retries!==void 0&&!e(i.retries))throw new n("retries must be a positive integer");if(i.retryDelay!==void 0&&!e(i.retryDelay)&&typeof i.retryDelay!="function")throw new n("retryDelay must be a positive integer or a function returning a positive integer");if(i.retryOn!==void 0&&!Array.isArray(i.retryOn)&&typeof i.retryOn!="function")throw new n("retryOn property expects an array or function");var o={retries:3,retryDelay:1e3,retryOn:[]};return i=Object.assign(o,i),function(a,l){var d=i.retries,g=i.retryDelay,f=i.retryOn;if(l&&l.retries!==void 0)if(e(l.retries))d=l.retries;else throw new n("retries must be a positive integer");if(l&&l.retryDelay!==void 0)if(e(l.retryDelay)||typeof l.retryDelay=="function")g=l.retryDelay;else throw new n("retryDelay must be a positive integer or a function returning a positive integer");if(l&&l.retryOn)if(Array.isArray(l.retryOn)||typeof l.retryOn=="function")f=l.retryOn;else throw new n("retryOn property expects an array or function");return new Promise(function(E,v){var w=function(R){var P=typeof Request<"u"&&a instanceof Request?a.clone():a;r(P,l).then(function(M){if(Array.isArray(f)&&f.indexOf(M.status)===-1)E(M);else if(typeof f=="function")try{return Promise.resolve(f(R,null,M)).then(function(U){U?N(R,null,M):E(M)}).catch(v)}catch(U){v(U)}else R<d?N(R,null,M):E(M)}).catch(function(M){if(typeof f=="function")try{Promise.resolve(f(R,M,null)).then(function(U){U?N(R,M,null):v(M)}).catch(function(U){v(U)})}catch(U){v(U)}else R<d?N(R,M,null):v(M)})};function N(R,P,M){var U=typeof g=="function"?g(R,P,M):g;setTimeout(function(){w(++R)},U)}w(0)})}};function e(r){return Number.isInteger(r)&&r>=0}function n(r){this.name="ArgumentError",this.message=r}return t})});var Bi="11.0.0-rc.10";var rf=Bi.split("-")[0].split(".").slice(0,3).map(t=>t.padStart(2,"0")).join("");var za="CooeeSDK",qt=Bi,O_=parseInt(rf,10);var gr=`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${qt}/dist`,Ye={apiURL:"https://api.sdk.letscooee.com",debug:!1,mode:"production",baseURL:gr,styleURL:`${gr}/widget.min.css`,widgetURL:`${gr}/widget.min.js`,swiperStyleURL:`${gr}/swiper-bundle.min.css`};var Ee=Ri(Xa());var ae=class{static debuggerEl;static infoLogs=[];static log(...e){Ee.default.info(...e)}static verbose(...e){Ee.default.debug(...e)}static error(...e){Ee.default.error(...e)}static warn(...e){Ee.default.warn(...e)}static info(...e){Ee.default.info(...e),this.infoLogs.unshift({time:new Date,message:e.join(" ")}),this.addToDebugger()}static trace(...e){Ee.default.trace(...e)}static addToDebugger(){sessionStorage.cooeeDebug&&(this.debuggerEl=this.debuggerEl??document.querySelector("cooee-debugger"),this.debuggerEl&&this.debuggerEl&&(this.debuggerEl.logs=[...this.infoLogs]))}};function k_(t=za){Ee.default.useDefaults({formatter:function(n){n.unshift(`${t} (v${qt}):`)}});let e=of();(e==="1"||e==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Ee.default.setLevel(Ee.default[localStorage.cooeeLogLevel]):Ee.default.setLevel(Ye.debug?Ee.default.TRACE:Ee.default.OFF)}function of(){return new URL(location.href).searchParams?.get("cooee-debug")}var yt=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}};var qa=0;function sf(t=document.head){return Za(Ye.styleURL,t,"cooee-global-styles")}function af(t=document.head){return Za(Ye.swiperStyleURL,t,"cooee-swiper-styles")}function Za(t,e=document.head,n){return new Promise(r=>{if(e.querySelector(`#${n}`)){r();return}let o=document.createElement("link");o.rel="stylesheet",o.href=t,o.id=n,o.onload=()=>{r()},o.onerror=()=>{console.error("Failed to load stylesheet:",t),r()},e.appendChild(o)})}function Ui(t,e=document.head){if(!t)return;qa++;let n=document.createElement("style");n.id=`cooee-app-css-${qa}`,n.textContent=t,e.appendChild(n)}async function Ja(){let t=(await import("./swiper-bundle-WHJS64TU.js")).default;return window.CooeeSDK.Swiper=t}async function Qa(t,e=!0){if(!t)return;let n=[];e&&n.push(af(t)),n.push(sf(t)),await Promise.all(n);let r=yt.get().website.commonCSS;Ui(r,t)}var lf={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},sg=V(y({},lf),{"[class.ng-submitted]":"isSubmitted"});var uf=new Le("",{providedIn:"root",factory:()=>nc}),nc="always";var df=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Ot({type:t});static \u0275inj=wt({})}return t})();var rc=(()=>{class t{static withConfig(n){return{ngModule:t,providers:[{provide:uf,useValue:n.callSetDisabledState??nc}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Ot({type:t});static \u0275inj=wt({imports:[df]})}return t})();var yr=class t{cooeeEvent=new Oe;cooeeCTA=new Oe;elementRef=x(Ae);hasSwiper=!1;_engagementTrigger=Ue(null);_triggerContext=Ue(null);constructor(){this.elementRef.nativeElement.update=this.update.bind(this)}get classes(){let e=["letscooee-widget"],n=this._engagementTrigger();return e.push(`widget-${n?.shortID}`),e}get triggerContext(){return this._triggerContext()}set triggerContext(e){this._triggerContext.set(e),this._engagementTrigger.set(e.triggerData),this.engagementTriggerReceived(e.triggerData)}get engagementTrigger(){return this._engagementTrigger()}ngOnInit(){ae.verbose("Init",this.constructor.name);let e=this.elementRef.nativeElement.shadowRoot;e&&Qa(e,this.hasSwiper)}ngOnDestroy(){ae.verbose("Destroying",this.constructor.name)}sendEventToRenderer(e){this.cooeeEvent.emit(e)}executeCTAViaRenderer(e){this.cooeeCTA.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ee({type:t,selectors:[["ng-component"]],hostVars:2,hostBindings:function(n,r){n&2&&hr(r.classes)},inputs:{triggerContext:"triggerContext"},outputs:{cooeeEvent:"cooeeEvent",cooeeCTA:"cooeeCTA"},decls:1,vars:0,template:function(n,r){n&1&&Ia(0)},encapsulation:2})};var ff=(t,e)=>({"--option-color":t,"background-color":e}),oc=(t,e)=>e.id;function hf(t,e){if(t&1&&(nt(0,"span",6),ye(1),_t()),t&2){Re();let n=gt(0);$(),Kt(n)}}function pf(t,e){if(t&1){let n=zt();Nt(0),nt(1,"button",5),wn("click",function(){let i=Dt(n).$implicit,o=Re().$implicit,s=Re();return At(s.onOptionChange(o,i))}),je(2,hf,2,1,"span",6),_t()}if(t&2){let n=e.$implicit,r=Re().$implicit,i=gt(1),o=n.name,s=Mt(n.displayName||n.name),a=i?n.hexColor??o:"",l=Re().selectedOptions()[r.name]===o;$(),An("color-type",i)("selected",l)("disabled",n.disabled),Sa("title",s)("ngStyle",Ma(14,ff,a,a)),He("aria-checked",l?"true":"false")("data-value",o)("aria-disabled",n.disabled?"true":null)("aria-label",s),$(),Ge(i?-1:2)}}function mf(t,e){if(t&1&&(nt(0,"div"),Nt(1),nt(2,"div",1),ye(3),_t(),nt(4,"div",2),ye(5),_t(),nt(6,"div",3),ki(7,pf,3,17,"button",4,oc),_t()()),t&2){let n=e.$implicit,r=Re();hr(Na("option-group ",n.name.toLowerCase())),$(),Mt(r.hasHexColors(n)),$(2),Xt("",n.name,":"),$(2),Kt(r.selectedOptions()[n.name]),$(),He("aria-label",n.name),$(),Li(n.optionValues)}}var Mn=t=>t.trim().toLowerCase(),ic=class t extends yr{selectedVariant=new Oe;item=Ne.required();selectedOptions=Ue({});options=rt(()=>{let e=this.item();if(!e.options||e.vars.length===1)return[];if(window.cooeeManipulateProduct)try{window.cooeeManipulateProduct(e,this.engagementTrigger)}catch(n){ae.error(n)}return e.options.forEach(n=>{n.optionValues.forEach(r=>{r.disabled=this.isOptionValueDisabledFast(n,r)})}),e.options});matchedVariant=rt(()=>{let e=this.item(),n=this.selectedOptions();return e.vars.find(r=>e.options.every(i=>{let o=r.selectedOptions.find(s=>s.name===i.name)?.value;return n[i.name]===o}))});availabilityIndex=rt(()=>{let e=this.item(),n=new Map;return e?.vars?.length&&e.vars.forEach((r,i)=>{if(r.isAvailable)for(let o of r.selectedOptions){let s=Mn(o.name),a=o.value,l=n.get(s);l||n.set(s,l=new Map);let d=l.get(a);d||l.set(a,d=new Set),d.add(i)}}),n});constructor(){super(),it(()=>{let n=this.matchedVariant();n&&(this.item().setSelectedVariant(n),this.selectedVariant.emit(n))});let e=it(()=>{let n=this.item();if(!n?.options)return;let r=y({},this.selectedOptions()),i=n.vars.find(o=>o.isAvailable)??n.vars[0];n.options.forEach(o=>{let s=i?.selectedOptions.find(a=>a.name===o.name)?.value;s&&(r[o.name]=s)}),this.selectedOptions.set(r),e.destroy()})}ngOnInit(){super.ngOnInit();let e=this.elementRef.nativeElement.shadowRoot;if(!e)return;let n=yt.get().website?.itemSwatchMapping;n&&Ui(n,e)}onOptionChange(e,n){let r=y({},this.selectedOptions());r[e.name]=n.name,this.selectedOptions.set(r)}engagementTriggerReceived(){}update(){}hasHexColors(e){return!!e.optionValues[0]?.name.match(/#[a-f0-9]{6}\b/i)}getCandidateVariantsExcluding(e){let n=this.item(),r=this.availabilityIndex(),i=new Set;n.vars.forEach((s,a)=>{s.isAvailable&&i.add(a)});let o=i;for(let[s,a]of Object.entries(this.selectedOptions())){if(Mn(s)===Mn(e))continue;let l=r.get(Mn(s));if(!l)return new Set;let d=l.get(String(a));if(!d)return new Set;if(o=new Set([...o].filter(g=>d.has(g))),o.size===0)return o}return o}isOptionValueDisabledFast(e,n){let i=this.availabilityIndex().get(Mn(e.name));if(!i)return!0;let o=n.name,s=i.get(o);if(!s||s.size===0)return!0;let a=this.getCandidateVariantsExcluding(e.name);if(a.size===0)return!0;for(let l of a)if(s.has(l))return!1;return!0}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ee({type:t,selectors:[["cooee-item-options-picker"]],inputs:{item:[1,"item"]},outputs:{selectedVariant:"selectedVariant"},features:[xt],decls:2,vars:0,consts:[[3,"class"],[1,"name"],[1,"selected-value"],["role","radiogroup",1,"option-values"],["type","button","role","radio",1,"option-value",3,"color-type","selected","disabled","title","ngStyle"],["type","button","role","radio",1,"option-value",3,"click","title","ngStyle"],[1,"title"]],template:function(n,r){n&1&&ki(0,mf,9,7,"div",0,oc),n&2&&Li(r.options())},dependencies:[Va,Fa,rc],styles:[`.option-group{display:flex;gap:4px;align-items:center}.option-group+.option-group{margin-top:8px}.option-values{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:6px;gap:4px;scrollbar-gutter:stable both-edges;scrollbar-width:none}.option-values::-webkit-scrollbar{display:none}.selected-value{display:none}.option-value{padding:5px 10px;border:1px solid #ccc;cursor:pointer;border-radius:4px;min-width:32px;min-height:32px;text-align:center;position:relative;flex-shrink:0;--selected-color: var(--option-color, rgb(var(--lc-primary-button-bg-color, 0 0 0)))}.option-value.selected{box-shadow:#fff 0 0 0 2px,var(--selected-color) 0 0 0 4px}.option-value.disabled{opacity:.5;pointer-events:none}
2
+ `],encapsulation:3})};var _f=(function(t){return t.SHOPIFY_CHECKOUT="shopify_checkout",t.THIRD_PARTY_CHECKOUT="third_party_checkout",t.CART_PAGE="cart_page",t.CART_DRAWER="cart_drawer",t})(_f||{});var gf=(function(t){return t[t.NONE=0]="NONE",t[t.REJECT_POPUP=1]="REJECT_POPUP",t[t.ACCEPT_POPUP=2]="ACCEPT_POPUP",t[t.GO_TO_URL=4]="GO_TO_URL",t[t.SHARE=5]="SHARE",t[t.KEY_VALUE=100]="KEY_VALUE",t[t.GO_TO_PRODUCT=101]="GO_TO_PRODUCT",t[t.ADD_TO_CART=102]="ADD_TO_CART",t[t.COPY_COUPON_CODE=103]="COPY_COUPON_CODE",t[t.GO_TO_COLLECTION=104]="GO_TO_COLLECTION",t[t.OPEN_CART=105]="OPEN_CART",t[t.SUBMIT_FORM=106]="SUBMIT_FORM",t[t.INITIATE_CHECKOUT=107]="INITIATE_CHECKOUT",t[t.ADD_BUNDLE=108]="ADD_BUNDLE",t[t.UPGRADE_TO_SUBSCRIPTION=109]="UPGRADE_TO_SUBSCRIPTION",t})(gf||{});var vf=(function(t){return t.FREE_SHIPPING="FREE_SHIPPING",t.DISCOUNT="DISCOUNT",t.FREE_AUTO_GIFT="FREE_AUTO_GIFT",t.FREE_GIFT_SELECT="FREE_GIFT_SELECT",t.UI_ONLY="UI_ONLY",t})(vf||{});var Hi=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 FIRST_SEEN="firstSeen";static SESSION_NUMBER="sessionNumber";static GA_CLIENT_ID="gacid";static CURRENT_CART="cart";static MUTED="muted"};var Gi=Ri(ac());function Er(t){return Gi.default.createInstance({name:"lc",storeName:t,driver:Gi.default.LOCALSTORAGE})}var Jt=class{static storage;static async get(e,n){return await this.storage?.getItem(e)??n}static set(e,n){return this.storage?.setItem(e,n)}static remove(e){return this.storage?.removeItem(e)}static clear(){return this.storage?.clear()}static getForage(){return this.storage}};var Pn=class Pn extends Jt{};ur(Pn,"storeName","usr"),Pn.storage=Er(Pn.storeName);var Wi=Pn;var kn=class kn extends Jt{};ur(kn,"storeName","ses"),kn.storage=Er(kn.storeName);var $i=kn;var lc=Ri(cc());var yf=5,Ef=500,bf=(0,lc.default)(fetch),Sf={retryDelay:t=>Math.pow(2,t)*Ef,retryOn:(t,e,n)=>t>=yf?!1:!!(e!==null||n?.status&&n?.status>=500)},Ln=class extends Error{request;response;status;requestBody;responseText;constructor(e="Failed to fetch"){super(e),this.name="FetchError",Object.setPrototypeOf(this,new.target.prototype)}is40x(){return!!this.response&&this.response.status>=400&&this.response.status<500}};async function uc(t,e,n){let r=Date.now(),i=new Request(t,e),o;try{o=await bf(i,y(y({},Sf),n))}catch{}if(!o||!o.ok){let g=new Ln;throw g.request=i.clone(),g.response=o?.clone(),g.status=o?.status,g.requestBody=e?.body,g.responseText=await Cf(o),g}let s,a=(o.headers.get("content-type")||"").toLowerCase(),l=o.headers.get("content-length"),d=i.method?.toUpperCase()||"GET";return o.status===204||o.status===205||d==="HEAD"||l==="0"?s=void 0:a.includes("application/json")||a.includes("application/problem+json")||a.includes("text/javascript")?s=await o.json():a.includes("text/")||a.includes("image/svg+xml")?s=await o.text():s=await o.arrayBuffer(),{data:s,status:o.status,statusText:o.statusText,headers:o.headers,timeTakenMs:Date.now()-r,options:e,request:i}}async function Cf(t){if(t){try{return t=t.clone(),await t.json()}catch{}try{return await t.text()}catch{}}}var k=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var L=globalThis;var ze="9.42.0";function Pt(){return kt(L),L}function kt(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||ze,e[ze]=e[ze]||{}}function st(t,e,n=L){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[ze]=r[ze]||{};return i[t]||(i[t]=e())}var Ki=["debug","info","warn","error","log","assert","trace"],Tf="Sentry Logger ",Qt={};function Et(t){if(!("console"in L))return t();let e=L.console,n={},r=Object.keys(Qt);r.forEach(i=>{let o=Qt[i];n[i]=e[i],e[i]=o});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function If(){qi().enabled=!0}function wf(){qi().enabled=!1}function dc(){return qi().enabled}function Df(...t){Xi("log",...t)}function Af(...t){Xi("warn",...t)}function Of(...t){Xi("error",...t)}function Xi(t,...e){k&&dc()&&Et(()=>{L.console[t](`${Tf}[${t}]:`,...e)})}function qi(){return k?st("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var A={enable:If,disable:wf,isEnabled:dc,log:Df,warn:Af,error:Of};var fc=/\(error: (.*)\)/,hc=/captureMessage|captureException/;function Ji(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{let o=[],s=n.split(`
3
+ `);for(let a=r;a<s.length;a++){let l=s[a];if(l.length>1024)continue;let d=fc.test(l)?l.replace(fc,"$1"):l;if(!d.match(/\S*Error: /)){for(let g of e){let f=g(d);if(f){o.push(f);break}}if(o.length>=50+i)break}}return pc(o.slice(i))}}function pc(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(br(e).function||"")&&e.pop(),e.reverse(),hc.test(br(e).function||"")&&(e.pop(),hc.test(br(e).function||"")&&e.pop()),e.slice(0,50).map(n=>V(y({},n),{filename:n.filename||br(e).filename,function:n.function||"?"}))}function br(t){return t[t.length-1]||{}}var Zi="<anonymous>";function Me(t){try{return!t||typeof t!="function"?Zi:t.name||Zi}catch{return Zi}}function Sr(t){let e=t.exception;if(e){let n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}var Cr={},mc={};function fe(t,e){Cr[t]=Cr[t]||[],Cr[t].push(e)}function he(t,e){if(!mc[t]){mc[t]=!0;try{e()}catch(n){k&&A.error(`Error while instrumenting ${t}`,n)}}}function te(t,e){let n=t&&Cr[t];if(n)for(let r of n)try{r(e)}catch(i){k&&A.error(`Error while triggering instrumentation handler.
4
+ Type: ${t}
5
+ Name: ${Me(r)}
6
+ Error:`,i)}}var Qi=null;function eo(t){let e="error";fe(e,t),he(e,xf)}function xf(){Qi=L.onerror,L.onerror=function(t,e,n,r,i){return te("error",{column:r,error:i,line:n,msg:t,url:e}),Qi?Qi.apply(this,arguments):!1},L.onerror.__SENTRY_INSTRUMENTED__=!0}var to=null;function no(t){let e="unhandledrejection";fe(e,t),he(e,Rf)}function Rf(){to=L.onunhandledrejection,L.onunhandledrejection=function(t){return te("unhandledrejection",t),to?to.apply(this,arguments):!0},L.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var _c=Object.prototype.toString;function Lt(t){switch(_c.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ve(t,Error)}}function en(t,e){return _c.call(t)===`[object ${e}]`}function Tr(t){return en(t,"ErrorEvent")}function Ir(t){return en(t,"DOMError")}function ro(t){return en(t,"DOMException")}function pe(t){return en(t,"String")}function tn(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Ft(t){return t===null||tn(t)||typeof t!="object"&&typeof t!="function"}function at(t){return en(t,"Object")}function Vt(t){return typeof Event<"u"&&Ve(t,Event)}function io(t){return typeof Element<"u"&&Ve(t,Element)}function oo(t){return en(t,"RegExp")}function ct(t){return!!(t?.then&&typeof t.then=="function")}function so(t){return at(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Ve(t,e){try{return t instanceof e}catch{return!1}}function Fn(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function gc(t){return typeof Request<"u"&&Ve(t,Request)}var ao=L,Nf=80;function Vn(t,e={}){if(!t)return"<unknown>";try{let n=t,r=5,i=[],o=0,s=0,a=" > ",l=a.length,d,g=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||Nf;for(;n&&o++<r&&(d=Mf(n,g),!(d==="html"||o>1&&s+i.length*l+d.length>=f));)i.push(d),s+=d.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function Mf(t,e){let n=t,r=[];if(!n?.tagName)return"";if(ao.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=e?.length?e.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i?.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&pe(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 Bn(){try{return ao.document.location.href}catch{return""}}function co(t){if(!ao.HTMLElement)return null;let e=t,n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function bt(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function wr(t,e){if(!Array.isArray(t))return"";let n=[];for(let r=0;r<t.length;r++){let i=t[r];try{Fn(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function vc(t,e,n=!1){return pe(t)?oo(e)?e.test(t):pe(e)?n?t===e:t.includes(e):!1:!1}function nn(t,e=[],n=!1){return e.some(r=>vc(t,r,n))}function ne(t,e,n){if(!(e in t))return;let r=t[e];if(typeof r!="function")return;let i=n(r);typeof i=="function"&&Dr(i,r);try{t[e]=i}catch{k&&A.log(`Failed to replace method "${e}" in object`,t)}}function be(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{k&&A.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Dr(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,be(t,"__sentry_original__",e)}catch{}}function Bt(t){return t.__sentry_original__}function Ar(t){if(Lt(t))return y({message:t.message,name:t.name,stack:t.stack},Ec(t));if(Vt(t)){let e=y({type:t.type,target:yc(t.target),currentTarget:yc(t.currentTarget)},Ec(t));return typeof CustomEvent<"u"&&Ve(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function yc(t){try{return io(t)?Vn(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function Ec(t){if(typeof t=="object"&&t!==null){let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function lo(t,e=40){let n=Object.keys(Ar(t));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return bt(r,e);for(let i=n.length;i>0;i--){let o=n.slice(0,i).join(", ");if(!(o.length>e))return i===n.length?o:bt(o,e)}return""}function Pf(){let t=L;return t.crypto||t.msCrypto}function re(t=Pf()){let e=()=>Math.random()*16;try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"");t?.getRandomValues&&(e=()=>{let n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(e()&15)>>n/4).toString(16))}function bc(t){return t.exception?.values?.[0]}function Ke(t){let{message:e,event_id:n}=t;if(e)return e;let r=bc(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function rn(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function Xe(t,e){let n=bc(t);if(!n)return;let r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=y(y(y({},r),i),e),e&&"data"in e){let o=y(y({},i?.data),e.data);n.mechanism.data=o}}function Or(t){if(kf(t))return!0;try{be(t,"__sentry_captured__",!0)}catch{}return!1}function kf(t){try{return t.__sentry_captured__}catch{}}var Cc=1e3;function qe(){return Date.now()/Cc}function Lf(){let{performance:t}=L;if(!t?.now||!t.timeOrigin)return qe;let e=t.timeOrigin;return()=>(e+t.now())/Cc}var Sc;function ve(){return(Sc??(Sc=Lf()))()}function Tc(t){let e=ve(),n={sid:re(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Ff(n)};return t&&lt(n,t),n}function lt(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||ve(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:re()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Ic(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),lt(t,n)}function Ff(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function St(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;let r=y({},t);for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=St(r[i],e[i],n-1));return r}function uo(){return re()}function xr(){return re().substring(16)}var fo="_sentrySpan";function ho(t,e){e?be(t,fo,e):delete t[fo]}function po(t){return t[fo]}var Vf=100,le=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:uo(),sampleRand:Math.random()}}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags=y({},this._tags),e._extra=y({},this._extra),e._contexts=y({},this._contexts),this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata=y({},this._sdkProcessingMetadata),e._propagationContext=y({},this._propagationContext),e._client=this._client,e._lastEventId=this._lastEventId,ho(e,po(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&lt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags=y(y({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,n){return this._tags=V(y({},this._tags),{[e]:n}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=y(y({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,n){return this._extra=V(y({},this._extra),{[e]:n}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let n=typeof e=="function"?e(this):e,r=n instanceof t?n.getScopeData():at(n)?e:void 0,{tags:i,extra:o,user:s,contexts:a,level:l,fingerprint:d=[],propagationContext:g}=r||{};return this._tags=y(y({},this._tags),i),this._extra=y(y({},this._extra),o),this._contexts=y(y({},this._contexts),a),s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),d.length&&(this._fingerprint=d),g&&(this._propagationContext=g),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._session=void 0,ho(this,void 0),this._attachments=[],this.setPropagationContext({traceId:uo(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){let r=typeof n=="number"?n:Vf;if(r<=0)return this;let i=V(y({timestamp:qe()},e),{message:e.message?bt(e.message,2048):e.message});return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),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:po(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=St(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){let r=n?.event_id||re();if(!this._client)return k&&A.warn("No client configured on scope - will not capture exception!"),r;let i=new Error("Sentry syntheticException");return this._client.captureException(e,V(y({originalException:e,syntheticException:i},n),{event_id:r}),this),r}captureMessage(e,n,r){let i=r?.event_id||re();if(!this._client)return k&&A.warn("No client configured on scope - will not capture message!"),i;let o=new Error(e);return this._client.captureMessage(e,n,V(y({originalException:e,syntheticException:o},r),{event_id:i}),this),i}captureEvent(e,n){let r=n?.event_id||re();return this._client?(this._client.captureEvent(e,V(y({},n),{event_id:r}),this),r):(k&&A.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}};function wc(){return st("defaultCurrentScope",()=>new le)}function Dc(){return st("defaultIsolationScope",()=>new le)}var mo=class{constructor(e,n){let r;e?r=e:r=new le;let i;n?i=n:i=new le,this._stack=[{scope:r}],this._isolationScope=i}withScope(e){let n=this._pushScope(),r;try{r=e(n)}catch(i){throw this._popScope(),i}return ct(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}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 on(){let t=Pt(),e=kt(t);return e.stack=e.stack||new mo(wc(),Dc())}function Bf(t){return on().withScope(t)}function Uf(t,e){let n=on();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Ac(t){return on().withScope(()=>t(on().getIsolationScope()))}function Oc(){return{withIsolationScope:Ac,withScope:Bf,withSetScope:Uf,withSetIsolationScope:(t,e)=>Ac(e),getCurrentScope:()=>on().getScope(),getIsolationScope:()=>on().getIsolationScope()}}function Rr(t){let e=kt(t);return e.acs?e.acs:Oc()}function Ze(){let t=Pt();return Rr(t).getCurrentScope()}function Je(){let t=Pt();return Rr(t).getIsolationScope()}function Nr(){return st("globalScope",()=>new le)}function Un(...t){let e=Pt(),n=Rr(e);if(t.length===2){let[r,i]=t;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(t[0])}function K(){return Ze().getClient()}function _o(t){let e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=e,o={trace_id:n,span_id:i||xr()};return r&&(o.parent_span_id=r),o}var Mr="sentry.source",go="sentry.sample_rate",xc="sentry.previous_trace_sample_rate",vo="sentry.op",yo="sentry.origin";var Eo="sentry.profile_id",bo="sentry.exclusive_time";var Hf="_sentryScope",jf="_sentryIsolationScope";function Pr(t){return{scope:t[Hf],isolationScope:t[jf]}}var Gf="sentry-",Wf=/^sentry-/;function Nc(t){let e=$f(t);if(!e)return;let n=Object.entries(e).reduce((r,[i,o])=>{if(i.match(Wf)){let s=i.slice(Gf.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function $f(t){if(!(!t||!pe(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{let r=Rc(n);return Object.entries(r).forEach(([i,o])=>{e[i]=o}),e},{}):Rc(t)}function Rc(t){return t.split(",").map(e=>e.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function Mc(t){if(typeof t=="boolean")return Number(t);let e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}var Fc=1,Pc=!1;function So(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:sn(t).parent_span_id,o=Pr(t).scope,s=r?o?.getPropagationContext().propagationSpanId||xr():e;return{parent_span_id:i,span_id:s,trace_id:n}}function Yf(t){if(t&&t.length>0)return t.map(s=>{var a=s,{context:l}=a,d=l,{spanId:e,traceId:n,traceFlags:r}=d,i=la(d,["spanId","traceId","traceFlags"]),{attributes:o}=a;return y({span_id:e,trace_id:n,sampled:r===Fc,attributes:o},i)})}function kc(t){return typeof t=="number"?Lc(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Lc(t.getTime()):ve()}function Lc(t){return t>9999999999?t/1e3:t}function sn(t){if(Kf(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(zf(t)){let{attributes:r,startTime:i,name:o,endTime:s,status:a,links:l}=t,d="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0;return{span_id:e,trace_id:n,data:r,description:o,parent_span_id:d,start_timestamp:kc(i),timestamp:kc(s)||void 0,status:Xf(a),op:r[vo],origin:r[yo],links:Yf(l)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function zf(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Kf(t){return typeof t.getSpanJSON=="function"}function Vc(t){let{traceFlags:e}=t.spanContext();return e===Fc}function Xf(t){if(!(!t||t.code===0))return t.code===1?"ok":t.message||"unknown_error"}var qf="_sentryRootSpan";function Hn(t){return t[qf]||t}function Co(){Pc||(Et(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),Pc=!0)}function Bc(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=t||K()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}var an="production";var Zf=/^o(\d+)\./,Jf=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Qf(t){return t==="http"||t==="https"}function Ct(t,e=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=t;return`${a}://${l}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function eh(t){let e=Jf.exec(t);if(!e){Et(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,i="",o="",s="",a=""]=e.slice(1),l="",d=a,g=d.split("/");if(g.length>1&&(l=g.slice(0,-1).join("/"),d=g.pop()),d){let f=d.match(/^\d+/);f&&(d=f[0])}return Uc({host:o,pass:i,path:l,projectId:d,port:s,protocol:n,publicKey:r})}function Uc(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function th(t){if(!k)return!0;let{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(A.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Qf(r)?e&&isNaN(parseInt(e,10))?(A.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(A.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(A.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Hc(t){return t.match(Zf)?.[1]}function jc(t){let e=typeof t=="string"?eh(t):Uc(t);if(!(!e||!th(e)))return e}var nh="_frozenDsc";function Gc(t,e){let n=e.getOptions(),{publicKey:r,host:i}=e.getDsn()||{},o;n.orgId?o=String(n.orgId):i&&(o=Hc(i));let s={environment:n.environment||an,release:n.release,public_key:r,trace_id:t,org_id:o};return e.emit("createDsc",s),s}function Wc(t,e){let n=e.getPropagationContext();return n.dsc||Gc(n.traceId,t)}function To(t){let e=K();if(!e)return{};let n=Hn(t),r=sn(n),i=r.data,o=n.spanContext().traceState,s=o?.get("sentry.sample_rate")??i[go]??i[xc];function a(w){return(typeof s=="number"||typeof s=="string")&&(w.sample_rate=`${s}`),w}let l=n[nh];if(l)return a(l);let d=o?.get("sentry.dsc"),g=d&&Nc(d);if(g)return a(g);let f=Gc(t.spanContext().traceId,e),E=i[Mr],v=r.description;return E!=="url"&&v&&(f.transaction=v),Bc()&&(f.sampled=String(Vc(n)),f.sample_rand=o?.get("sentry.sample_rand")??Pr(n).scope?.getPropagationContext().sampleRand.toString()),a(f),e.emit("createDsc",f,n),f}function Pe(t,e=100,n=1/0){try{return Io("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function kr(t,e=3,n=100*1024){let r=Pe(t,e);return sh(r)>n?kr(t,e-1,n):r}function Io(t,e,n=1/0,r=1/0,i=ah()){let[o,s]=i;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;let a=rh(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;let l=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(l===0)return a.replace("object ","");if(o(e))return"[Circular ~]";let d=e;if(d&&typeof d.toJSON=="function")try{let v=d.toJSON();return Io("",v,l-1,r,i)}catch{}let g=Array.isArray(e)?[]:{},f=0,E=Ar(e);for(let v in E){if(!Object.prototype.hasOwnProperty.call(E,v))continue;if(f>=r){g[v]="[MaxProperties ~]";break}let w=E[v];g[v]=Io(v,w,l-1,r,i),f++}return s(e),g}function rh(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Fn(e))return"[VueViewModel]";if(so(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Me(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let n=ih(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function ih(t){let e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function oh(t){return~-encodeURI(t).split(/%..|./).length}function sh(t){return oh(JSON.stringify(t))}function ah(){let t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function ut(t,e=[]){return[t,e]}function $c(t,e){let[n,r]=t;return[n,[...r,e]]}function Do(t,e){let n=t[1];for(let r of n){let i=r[0].type;if(e(r,i))return!0}return!1}function wo(t){let e=kt(L);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function Yc(t){let[e,n]=t,r=JSON.stringify(e);function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[wo(r),o]:r.push(typeof o=="string"?wo(o):o)}for(let o of n){let[s,a]=o;if(i(`
7
+ ${JSON.stringify(s)}
8
+ `),typeof a=="string"||a instanceof Uint8Array)i(a);else{let l;try{l=JSON.stringify(a)}catch{l=JSON.stringify(Pe(a))}i(l)}}return typeof r=="string"?r:ch(r)}function ch(t){let e=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(e),r=0;for(let i of t)n.set(i,r),r+=i.length;return n}function zc(t){let e=typeof t.data=="string"?wo(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}var lh={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",raw_security:"security",log:"log_item"};function Ao(t){return lh[t]}function Oo(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function Kc(t,e,n,r){let i=t.sdkProcessingMetadata?.dynamicSamplingContext;return y(y(y({event_id:t.event_id,sent_at:new Date().toISOString()},e&&{sdk:e}),!!n&&r&&{dsn:Ct(r)}),i&&{trace:i})}function uh(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function Xc(t,e,n,r){let i=Oo(n),o=y(y({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&e&&{dsn:Ct(e)}),s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return ut(o,[s])}function qc(t,e,n,r){let i=Oo(n),o=t.type&&t.type!=="replay_event"?t.type:"event";uh(t,n?.sdk);let s=Kc(t,i,r,e);return delete t.sdkProcessingMetadata,ut(s,[[{type:o},t]])}var xo=0,Zc=1,Jc=2;function ke(t){return new Be(e=>{e(t)})}function Tt(t){return new Be((e,n)=>{n(t)})}var Be=class t{constructor(e){this._state=xo,this._handlers=[],this._runExecutor(e)}then(e,n){return new t((r,i)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new t((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,e&&e()},s=>{o=!0,i=s,e&&e()}).then(()=>{if(o){r(i);return}n(i)})})}_executeHandlers(){if(this._state===xo)return;let e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Zc&&n[1](this._value),this._state===Jc&&n[2](this._value),n[0]=!0)})}_runExecutor(e){let n=(o,s)=>{if(this._state===xo){if(ct(s)){s.then(r,i);return}this._state=o,this._value=s,this._executeHandlers()}},r=o=>{n(Zc,o)},i=o=>{n(Jc,o)};try{e(r,i)}catch(o){i(o)}}};function Lr(t,e,n,r=0){return new Be((i,o)=>{let s=t[r];if(e===null||typeof s!="function")i(e);else{let a=s(y({},e),n);k&&s.id&&a===null&&A.log(`Event processor "${s.id}" dropped event`),ct(a)?a.then(l=>Lr(t,l,n,r+1).then(i)).then(null,o):Lr(t,a,n,r+1).then(i).then(null,o)}})}function Qc(t,e){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=e;dh(t,e),r&&ph(t,r),mh(t,n),fh(t,i),hh(t,o)}function Ro(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:d,eventProcessors:g,attachments:f,propagationContext:E,transactionName:v,span:w}=e;Fr(t,"extra",n),Fr(t,"tags",r),Fr(t,"user",i),Fr(t,"contexts",o),t.sdkProcessingMetadata=St(t.sdkProcessingMetadata,a,2),s&&(t.level=s),v&&(t.transactionName=v),w&&(t.span=w),l.length&&(t.breadcrumbs=[...t.breadcrumbs,...l]),d.length&&(t.fingerprint=[...t.fingerprint,...d]),g.length&&(t.eventProcessors=[...t.eventProcessors,...g]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext=y(y({},t.propagationContext),E)}function Fr(t,e,n){t[e]=St(t[e],n,1)}function dh(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=e;Object.keys(n).length&&(t.extra=y(y({},n),t.extra)),Object.keys(r).length&&(t.tags=y(y({},r),t.tags)),Object.keys(i).length&&(t.user=y(y({},i),t.user)),Object.keys(o).length&&(t.contexts=y(y({},o),t.contexts)),s&&(t.level=s),a&&t.type!=="transaction"&&(t.transaction=a)}function fh(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function hh(t,e){t.sdkProcessingMetadata=y(y({},t.sdkProcessingMetadata),e)}function ph(t,e){t.contexts=y({trace:So(e)},t.contexts),t.sdkProcessingMetadata=y({dynamicSamplingContext:To(e)},t.sdkProcessingMetadata);let n=Hn(e),r=sn(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function mh(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}var Vr,el,Br;function tl(t){let e=L._sentryDebugIds;if(!e)return{};let n=Object.keys(e);return Br&&n.length===el||(el=n.length,Br=n.reduce((r,i)=>{Vr||(Vr={});let o=Vr[i];if(o)r[o[0]]=o[1];else{let s=t(i);for(let a=s.length-1;a>=0;a--){let d=s[a]?.filename,g=e[i];if(d&&g){r[d]=g,Vr[i]=[d,g];break}}}return r},{})),Br}function nl(t,e,n,r,i,o){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,l=V(y({},e),{event_id:e.event_id||n.event_id||re(),timestamp:e.timestamp||qe()}),d=n.integrations||t.integrations.map(R=>R.name);_h(l,t),yh(l,d),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&gh(l,t.stackParser);let g=bh(r,n.captureContext);n.mechanism&&Xe(l,n.mechanism);let f=i?i.getEventProcessors():[],E=Nr().getScopeData();if(o){let R=o.getScopeData();Ro(E,R)}if(g){let R=g.getScopeData();Ro(E,R)}let v=[...n.attachments||[],...E.attachments];v.length&&(n.attachments=v),Qc(l,E);let w=[...f,...E.eventProcessors];return Lr(w,l,n).then(R=>(R&&vh(R),typeof s=="number"&&s>0?Eh(R,s,a):R))}function _h(t,e){let{environment:n,release:r,dist:i,maxValueLength:o=250}=e;t.environment=t.environment||n||an,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);let s=t.request;s?.url&&(s.url=bt(s.url,o))}function gh(t,e){let n=tl(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function vh(t){let e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?e[i.abs_path]=i.debug_id:i.filename&&(e[i.filename]=i.debug_id),delete i.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.entries(e).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function yh(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Eh(t,e,n){if(!t)return null;let r=y(y(y(y(y({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>y(y({},i),i.data&&{data:Pe(i.data,e,n)}))}),t.user&&{user:Pe(t.user,e,n)}),t.contexts&&{contexts:Pe(t.contexts,e,n)}),t.extra&&{extra:Pe(t.extra,e,n)});return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Pe(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>y(y({},i),i.data&&{data:Pe(i.data,e,n)}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=Pe(t.contexts.flags,3,n)),r}function bh(t,e){if(!e)return t;let n=t?t.clone():new le;return n.update(e),n}function rl(t){if(t)return Sh(t)?{captureContext:t}:Th(t)?{captureContext:t}:t}function Sh(t){return t instanceof le||typeof t=="function"}var Ch=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Th(t){return Object.keys(t).some(e=>Ch.includes(e))}function Ur(t,e){return Ze().captureException(t,rl(e))}function jn(t,e){return Ze().captureEvent(t,e)}function Gn(t){let e=Je(),n=Ze(),{userAgent:r}=L.navigator||{},i=Tc(y(y({user:n.getUser()||e.getUser()},r&&{userAgent:r}),t)),o=e.getSession();return o?.status==="ok"&&lt(o,{status:"exited"}),Hr(),e.setSession(i),i}function Hr(){let t=Je(),n=Ze().getSession()||t.getSession();n&&Ic(n),ol(),t.setSession()}function ol(){let t=Je(),e=K(),n=t.getSession();n&&e&&e.captureSession(n)}function Wn(t=!1){if(t){Hr();return}ol()}var Ih="7";function wh(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Dh(t){return`${wh(t)}${t.projectId}/envelope/`}function Ah(t,e){let n={sentry_version:Ih};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function sl(t,e,n){return e||`${Dh(t)}?${Ah(t,n)}`}var al=[];function cl(t,e){let n={};return e.forEach(r=>{r&&Mo(t,r,n)}),n}function No(t,e){for(let n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function Mo(t,e,n){if(n[e.name]){k&&A.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,al.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),al.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){let r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,o)=>r(i,o,t))}if(typeof e.processEvent=="function"){let r=e.processEvent.bind(e),i=Object.assign((o,s)=>r(o,s,t),{id:e.name});t.addEventProcessor(i)}k&&A.log(`Integration installed: ${e.name}`)}function ll(t,e,n){let r=[{type:"client_report"},{timestamp:n||qe(),discarded_events:t}];return ut(e?{dsn:e}:{},[r])}function jr(t){let e=[];t.message&&e.push(t.message);try{let n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function ul(t){let{trace_id:e,parent_span_id:n,span_id:r,status:i,origin:o,data:s,op:a}=t.contexts?.trace??{};return{data:s??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:i,timestamp:t.timestamp,trace_id:e??"",origin:o,profile_id:s?.[Eo],exclusive_time:s?.[bo],measurements:t.measurements,is_segment:!0}}function dl(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:y(y(y({},t.data),t.profile_id&&{[Eo]:t.profile_id}),t.exclusive_time&&{[bo]:t.exclusive_time})}},measurements:t.measurements}}var fl="Not capturing exception because it's already been captured.",hl="Discarded session because of missing or non-string release",_l=Symbol.for("SentryInternalError"),gl=Symbol.for("SentryDoNotSendEventError");function Gr(t){return{message:t,[_l]:!0}}function Po(t){return{message:t,[gl]:!0}}function pl(t){return!!t&&typeof t=="object"&&_l in t}function ml(t){return!!t&&typeof t=="object"&&gl in t}var $n=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=jc(e.dsn):k&&A.warn("No DSN provided, client will not send events."),this._dsn){let n=sl(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport(V(y({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:n}))}}captureException(e,n,r){let i=re();if(Or(e))return k&&A.log(fl),i;let o=y({event_id:i},n);return this._process(this.eventFromException(e,o).then(s=>this._captureEvent(s,o,r))),o.event_id}captureMessage(e,n,r,i){let o=y({event_id:re()},r),s=tn(e)?e:String(e),a=Ft(e)?this.eventFromMessage(s,n,o):this.eventFromException(e,o);return this._process(a.then(l=>this._captureEvent(l,o,i))),o.event_id}captureEvent(e,n,r){let i=re();if(n?.originalException&&Or(n.originalException))return k&&A.log(fl),i;let o=y({event_id:i},n),s=e.sdkProcessingMetadata||{},a=s.capturedSpanScope,l=s.capturedSpanIsolationScope;return this._process(this._captureEvent(e,o,a||r,l)),o.event_id}captureSession(e){this.sendSession(e),lt(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>n.flush(e).then(i=>r&&i))):ke(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let n=this._integrations[e.name];Mo(this,e,this._integrations),n||No(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=qc(e,this._dsn,this._options._metadata,this._options.tunnel);for(let o of n.attachments||[])r=$c(r,zc(o));let i=this.sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",e,o),null)}sendSession(e){let{release:n,environment:r=an}=this._options;if("aggregates"in e){let o=e.attrs||{};if(!o.release&&!n){k&&A.warn(hl);return}o.release=o.release||n,o.environment=o.environment||r,e.attrs=o}else{if(!e.release&&!n){k&&A.warn(hl);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);let i=Xc(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){let i=`${e}:${n}`;k&&A.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,n){let r=this._hooks[e]=this._hooks[e]||[];return r.push(n),()=>{let i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(e,...n){let r=this._hooks[e];r&&r.forEach(i=>i(...n))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,n=>(k&&A.error("Error while sending envelope:",n),n)):(k&&A.error("Transport disabled"),ke({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=cl(this,e),No(this,e)}_updateSessionFromEvent(e,n){let r=n.level==="fatal",i=!1,o=n.exception?.values;if(o){i=!0;for(let l of o)if(l.mechanism?.handled===!1){r=!0;break}}let s=e.status==="ok";(s&&e.errors===0||s&&r)&&(lt(e,V(y({},r&&{status:"crashed"}),{errors:e.errors||Number(i||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return new Be(n=>{let r=0,i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,e&&r>=e&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,i){let o=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",e,n),e.type||i.setLastEventId(e.event_id||n.event_id),nl(o,e,n,r,this,i).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts=y({trace:_o(r)},a.contexts);let l=Wc(this,r);return a.sdkProcessingMetadata=y({dynamicSamplingContext:l},a.sdkProcessingMetadata),a})}_captureEvent(e,n={},r=Ze(),i=Je()){return k&&ko(e)&&A.log(`Captured error event \`${jr(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,i).then(o=>o.event_id,o=>{k&&(ml(o)?A.log(o.message):pl(o)?A.warn(o.message):A.warn(o))})}_processEvent(e,n,r,i){let o=this.getOptions(),{sampleRate:s}=o,a=vl(e),l=ko(e),d=e.type||"error",g=`before send for type \`${d}\``,f=typeof s>"u"?void 0:Mc(s);if(l&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),Tt(Po(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let E=d==="replay_event"?"replay":d;return this._prepareEvent(e,n,r,i).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",E),Po("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return v;let N=Rh(this,o,v,n);return xh(N,g)}).then(v=>{if(v===null){if(this.recordDroppedEvent("before_send",E),a){let P=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",P)}throw Po(`${g} returned \`null\`, will not send event.`)}let w=r.getSession()||i.getSession();if(l&&w&&this._updateSessionFromEvent(w,v),a){let R=v.sdkProcessingMetadata?.spanCountBeforeProcessing||0,P=v.spans?v.spans.length:0,M=R-P;M>0&&this.recordDroppedEvent("before_send","span",M)}let N=v.transaction_info;if(a&&N&&v.transaction!==e.transaction){let R="custom";v.transaction_info=V(y({},N),{source:R})}return this.sendEvent(v,n),v}).then(null,v=>{throw ml(v)||pl(v)?v:(this.captureException(v,{data:{__sentry__:!0},originalException:v}),Gr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
9
+ Reason: ${v}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{let[i,o]=n.split(":");return{reason:i,category:o,quantity:r}})}_flushOutcomes(){k&&A.log("Flushing outcomes...");let e=this._clearOutcomes();if(e.length===0){k&&A.log("No outcomes to send");return}if(!this._dsn){k&&A.log("No dsn provided, will not send outcomes");return}k&&A.log("Sending outcomes:",e);let n=ll(e,this._options.tunnel&&Ct(this._dsn));this.sendEnvelope(n)}};function xh(t,e){let n=`${e} must return \`null\` or a valid event.`;if(ct(t))return t.then(r=>{if(!at(r)&&r!==null)throw Gr(n);return r},r=>{throw Gr(`${e} rejected with ${r}`)});if(!at(t)&&t!==null)throw Gr(n);return t}function Rh(t,e,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=e,a=n;if(ko(a)&&i)return i(a,r);if(vl(a)){if(s){let l=s(ul(a));if(l?a=St(n,dl(l)):Co(),a.spans){let d=[];for(let g of a.spans){let f=s(g);f?d.push(f):(Co(),d.push(g))}a.spans=d}}if(o){if(a.spans){let l=a.spans.length;a.sdkProcessingMetadata=V(y({},n.sdkProcessingMetadata),{spanCountBeforeProcessing:l})}return o(a,r)}}return a}function ko(t){return t.type===void 0}function vl(t){return t.type==="transaction"}function Nh(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function yl(t,e,n,r){let i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=Ct(r)),ut(i,[Nh(t)])}function Yn(t,e){let n=e??Mh(t)??[];if(n.length===0)return;let r=t.getOptions(),i=yl(n,r._metadata,r.tunnel,t.getDsn());El().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(i)}function Mh(t){return El().get(t)}function El(){return st("clientToLogBufferMap",()=>new WeakMap)}var Lo=Symbol.for("SentryBufferFullError");function bl(t){let e=[];function n(){return t===void 0||e.length<t}function r(s){return e.splice(e.indexOf(s),1)[0]||Promise.resolve(void 0)}function i(s){if(!n())return Tt(Lo);let a=s();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new Be((a,l)=>{let d=e.length;if(!d)return a(!0);let g=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(f=>{ke(f).then(()=>{--d||(clearTimeout(g),a(!0))},l)})})}return{$:e,add:i,drain:o}}function Ph(t,e=Date.now()){let n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}function kh(t,e){return t[e]||t.all||0}function Sl(t,e,n=Date.now()){return kh(t,e)>n}function Cl(t,{statusCode:e,headers:n},r=Date.now()){let i=y({},t),o=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(o)for(let a of o.trim().split(",")){let[l,d,,,g]=a.split(":",5),f=parseInt(l,10),E=(isNaN(f)?60:f)*1e3;if(!d)i.all=r+E;else for(let v of d.split(";"))v==="metric_bucket"?(!g||g.split(";").includes("custom"))&&(i[v]=r+E):i[v]=r+E}else s?i.all=r+Ph(s,r):e===429&&(i.all=r+60*1e3);return i}var Lh=64;function Wr(t,e,n=bl(t.bufferSize||Lh)){let r={},i=s=>n.drain(s);function o(s){let a=[];if(Do(s,(f,E)=>{let v=Ao(E);Sl(r,v)?t.recordDroppedEvent("ratelimit_backoff",v):a.push(f)}),a.length===0)return ke({});let l=ut(s[0],a),d=f=>{Do(l,(E,v)=>{t.recordDroppedEvent(f,Ao(v))})},g=()=>e({body:Yc(l)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&k&&A.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Cl(r,f),f),f=>{throw d("network_error"),k&&A.error("Encountered error running transport request:",f),f});return n.add(g).then(f=>f,f=>{if(f===Lo)return k&&A.error("Skipped sending event because buffer is full."),d("queue_overflow"),ke({});throw f})}return{send:o,flush:i}}function Fo(t){t.user?.ip_address===void 0&&(t.user=V(y({},t.user),{ip_address:"{{auto}}"}))}function Vo(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs=V(y({},t.attrs),{ip_address:"{{auto}}"})):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function Bo(t,e,n=[e],r="npm"){let i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:ze})),version:ze}),t._metadata=i}var Fh=100;function Qe(t,e){let n=K(),r=Je();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Fh}=n.getOptions();if(o<=0)return;let s=qe(),a=y({timestamp:s},t),l=i?Et(()=>i(a,e)):a;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,e),r.addBreadcrumb(l,o))}var Tl,Vh="FunctionToString",Il=new WeakMap,Bh=()=>({name:Vh,setupOnce(){Tl=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=Bt(this),n=Il.has(K())&&e!==void 0?e:this;return Tl.apply(n,t)}}catch{}},setup(t){Il.set(t,!0)}}),$r=Bh;var Uh=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`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",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Hh="EventFilters",Uo=(t={})=>{let e;return{name:Hh,setup(n){let r=n.getOptions();e=wl(t,r)},processEvent(n,r,i){if(!e){let o=i.getOptions();e=wl(t,o)}return jh(n,e)?null:n}}},zr=(t={})=>V(y({},Uo(t)),{name:"InboundFilters"});function wl(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Uh],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function jh(t,e){if(t.type){if(t.type==="transaction"&&Wh(t,e.ignoreTransactions))return k&&A.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
10
+ Event: ${Ke(t)}`),!0}else{if(Gh(t,e.ignoreErrors))return k&&A.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
11
+ Event: ${Ke(t)}`),!0;if(Kh(t))return k&&A.warn(`Event dropped due to not having an error message, error type or stacktrace.
12
+ Event: ${Ke(t)}`),!0;if($h(t,e.denyUrls))return k&&A.warn(`Event dropped due to being matched by \`denyUrls\` option.
13
+ Event: ${Ke(t)}.
14
+ Url: ${Yr(t)}`),!0;if(!Yh(t,e.allowUrls))return k&&A.warn(`Event dropped due to not being matched by \`allowUrls\` option.
15
+ Event: ${Ke(t)}.
16
+ Url: ${Yr(t)}`),!0}return!1}function Gh(t,e){return e?.length?jr(t).some(n=>nn(n,e)):!1}function Wh(t,e){if(!e?.length)return!1;let n=t.transaction;return n?nn(n,e):!1}function $h(t,e){if(!e?.length)return!1;let n=Yr(t);return n?nn(n,e):!1}function Yh(t,e){if(!e?.length)return!0;let n=Yr(t);return n?nn(n,e):!0}function zh(t=[]){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Yr(t){try{let n=[...t.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?zh(n):null}catch{return k&&A.error(`Cannot extract url for event ${Ke(t)}`),null}}function Kh(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function jo(t,e,n,r,i,o){if(!i.exception?.values||!o||!Ve(o.originalException,Error))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=Ho(t,e,r,o.originalException,n,i.exception.values,s,0))}function Ho(t,e,n,r,i,o,s,a){if(o.length>=n+1)return o;let l=[...o];if(Ve(r[i],Error)){Dl(s,a);let d=t(e,r[i]),g=l.length;Al(d,i,g,a),l=Ho(t,e,n,r[i],i,[d,...l],d,g)}return Array.isArray(r.errors)&&r.errors.forEach((d,g)=>{if(Ve(d,Error)){Dl(s,a);let f=t(e,d),E=l.length;Al(f,`errors[${g}]`,E,a),l=Ho(t,e,n,d,i,[f,...l],f,E)}}),l}function Dl(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=V(y(y({},t.mechanism),t.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:e})}function Al(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=V(y({},t.mechanism),{type:"chained",source:e,exception_id:n,parent_id:r})}function Go(t){let e="console";fe(e,t),he(e,Xh)}function Xh(){"console"in L&&Ki.forEach(function(t){t in L.console&&ne(L.console,t,function(e){return Qt[t]=e,function(...n){te("console",{args:n,level:t}),Qt[t]?.apply(L.console,n)}})})}function Wo(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}var qh="Dedupe",Zh=()=>{let t;return{name:qh,processEvent(e){if(e.type)return e;try{if(Jh(e,t))return k&&A.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},Kr=Zh;function Jh(t,e){return e?!!(Qh(t,e)||ep(t,e)):!1}function Qh(t,e){let n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Rl(t,e)||!xl(t,e))}function ep(t,e){let n=Ol(e),r=Ol(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Rl(t,e)||!xl(t,e))}function xl(t,e){let n=Sr(t),r=Sr(e);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 Rl(t,e){let n=t.fingerprint,r=e.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 Ol(t){return t.exception?.values?.[0]}function zn(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function Xr(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}var Kn=L;function $o(){return"history"in Kn&&!!Kn.history}function tp(){if(!("fetch"in Kn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Xn(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Yo(){if(typeof EdgeRuntime=="string")return!0;if(!tp())return!1;if(Xn(Kn.fetch))return!0;let t=!1,e=Kn.document;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=Xn(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){k&&A.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function Ko(t,e){let n="fetch";fe(n,t),he(n,()=>np(void 0,e))}function np(t,e=!1){e&&!Yo()||ne(L,"fetch",function(n){return function(...r){let i=new Error,{method:o,url:s}=rp(r),a={args:r,fetchData:{method:o,url:s},startTimestamp:ve()*1e3,virtualError:i,headers:ip(r)};return t||te("fetch",y({},a)),n.apply(L,r).then(async l=>(t?t(l):te("fetch",V(y({},a),{endTimestamp:ve()*1e3,response:l})),l),l=>{if(te("fetch",V(y({},a),{endTimestamp:ve()*1e3,error:l})),Lt(l)&&l.stack===void 0&&(l.stack=i.stack,be(l,"framesToPop",1)),l instanceof TypeError&&(l.message==="Failed to fetch"||l.message==="Load failed"||l.message==="NetworkError when attempting to fetch resource."))try{let d=new URL(a.fetchData.url);l.message=`${l.message} (${d.host})`}catch{}throw l})}})}function zo(t,e){return!!t&&typeof t=="object"&&!!t[e]}function Nl(t){return typeof t=="string"?t:t?zo(t,"url")?t.url:t.toString?t.toString():"":""}function rp(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[n,r]=t;return{url:Nl(n),method:zo(r,"method")?String(r.method).toUpperCase():"GET"}}let e=t[0];return{url:Nl(e),method:zo(e,"method")?String(e.method).toUpperCase():"GET"}}function ip(t){let[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(gc(e))return new Headers(e.headers)}catch{}}function Xo(){return"npm"}var q=L,qo=0;function Zo(){return qo>0}function yp(){qo++,setTimeout(()=>{qo--})}function Ut(t,e={}){function n(i){return typeof i=="function"}if(!n(t))return t;try{let i=t.__sentry_wrapped__;if(i)return typeof i=="function"?i:t;if(Bt(t))return t}catch{return t}let r=function(...i){try{let o=i.map(s=>Ut(s,e));return t.apply(this,o)}catch(o){throw yp(),Un(s=>{s.addEventProcessor(a=>(e.mechanism&&(rn(a,void 0,void 0),Xe(a,e.mechanism)),a.extra=V(y({},a.extra),{arguments:i}),a)),Ur(o)}),o}};try{for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}Dr(r,t),be(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Ml(){let t=Bn(),{referrer:e}=q.document||{},{userAgent:n}=q.navigator||{},r=y(y({},e&&{Referer:e}),n&&{"User-Agent":n});return{url:t,headers:r}}function qr(t,e){let n=es(t,e),r={type:Tp(e),value:Ip(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Ep(t,e,n,r){let o=K()?.getOptions().normalizeDepth,s=Ap(e),a={__serialized__:kr(e,o)};if(s)return{exception:{values:[qr(t,s)]},extra:a};let l={exception:{values:[{type:Vt(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:wp(e,{isUnhandledRejection:r})}]},extra:a};if(n){let d=es(t,n);d.length&&(l.exception.values[0].stacktrace={frames:d})}return l}function Jo(t,e){return{exception:{values:[qr(t,e)]}}}function es(t,e){let n=e.stacktrace||e.stack||"",r=Sp(e),i=Cp(e);try{return t(n,r,i)}catch{}return[]}var bp=/Minified React error #\d+;/i;function Sp(t){return t&&bp.test(t.message)?1:0}function Cp(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function Pl(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function Tp(t){let e=t?.name;return!e&&Pl(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function Ip(t){let e=t?.message;return Pl(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function kl(t,e,n,r){let i=n?.syntheticException||void 0,o=Zr(t,e,i,r);return Xe(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),ke(o)}function Ll(t,e,n="info",r,i){let o=r?.syntheticException||void 0,s=Qo(t,e,o,i);return s.level=n,r?.event_id&&(s.event_id=r.event_id),ke(s)}function Zr(t,e,n,r,i){let o;if(Tr(e)&&e.error)return Jo(t,e.error);if(Ir(e)||ro(e)){let s=e;if("stack"in e)o=Jo(t,e);else{let a=s.name||(Ir(s)?"DOMError":"DOMException"),l=s.message?`${a}: ${s.message}`:a;o=Qo(t,l,n,r),rn(o,l)}return"code"in s&&(o.tags=V(y({},o.tags),{"DOMException.code":`${s.code}`})),o}return Lt(e)?Jo(t,e):at(e)||Vt(e)?(o=Ep(t,e,n,i),Xe(o,{synthetic:!0}),o):(o=Qo(t,e,n,r),rn(o,`${e}`,void 0),Xe(o,{synthetic:!0}),o)}function Qo(t,e,n,r){let i={};if(r&&n){let o=es(t,n);o.length&&(i.exception={values:[{value:e,stacktrace:{frames:o}}]}),Xe(i,{synthetic:!0})}if(tn(e)){let{__sentry_template_string__:o,__sentry_template_values__:s}=e;return i.logentry={message:o,params:s},i}return i.message=e,i}function wp(t,{isUnhandledRejection:e}){let n=lo(t),r=e?"promise rejection":"exception";return Tr(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Vt(t)?`Event \`${Dp(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Dp(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Ap(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];if(n instanceof Error)return n}}var Op=5e3,qn=class extends $n{constructor(e){let n=xp(e),r=q.SENTRY_SDK_SOURCE||Xo();Bo(n,"browser",["browser"],r),super(n);let{sendDefaultPii:i,sendClientReports:o,enableLogs:s,_experiments:a}=this._options,l=s??a?.enableLogs;q.document&&(o||l)&&q.document.addEventListener("visibilitychange",()=>{q.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),l&&Yn(this))}),l&&(this.on("flush",()=>{Yn(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Yn(this)},Op)})),i&&(this.on("postprocessEvent",Fo),this.on("beforeSendSession",Vo))}eventFromException(e,n){return kl(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Ll(this._options.stackParser,e,n,r,this._options.attachStacktrace)}_prepareEvent(e,n,r,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r,i)}};function xp(t){return y({release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:q.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},t)}var Fl=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var ie=L;var Rp=1e3,Vl,ts,ns;function rs(t){fe("dom",t),he("dom",Np)}function Np(){if(!ie.document)return;let t=te.bind(null,"dom"),e=Bl(t,!0);ie.document.addEventListener("click",e,!1),ie.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{let i=ie[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(ne(i,"addEventListener",function(o){return function(s,a,l){if(s==="click"||s=="keypress")try{let d=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},g=d[s]=d[s]||{refCount:0};if(!g.handler){let f=Bl(t);g.handler=f,o.call(this,s,f,l)}g.refCount++}catch{}return o.call(this,s,a,l)}}),ne(i,"removeEventListener",function(o){return function(s,a,l){if(s==="click"||s=="keypress")try{let d=this.__sentry_instrumentation_handlers__||{},g=d[s];g&&(g.refCount--,g.refCount<=0&&(o.call(this,s,g.handler,l),g.handler=void 0,delete d[s]),Object.keys(d).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,s,a,l)}}))})}function Mp(t){if(t.type!==ts)return!1;try{if(!t.target||t.target._sentryId!==ns)return!1}catch{}return!0}function Pp(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function Bl(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;let r=kp(n);if(Pp(n.type,r))return;be(n,"_sentryCaptured",!0),r&&!r._sentryId&&be(r,"_sentryId",re());let i=n.type==="keypress"?"input":n.type;Mp(n)||(t({event:n,name:i,global:e}),ts=n.type,ns=r?r._sentryId:void 0),clearTimeout(Vl),Vl=ie.setTimeout(()=>{ns=void 0,ts=void 0},Rp)}}function kp(t){try{return t.target}catch{return null}}var Jr;function Zn(t){let e="history";fe(e,t),he(e,Lp)}function Lp(){if(ie.addEventListener("popstate",()=>{let e=ie.location.href,n=Jr;if(Jr=e,n===e)return;te("history",{from:n,to:e})}),!$o())return;function t(e){return function(...n){let r=n.length>2?n[2]:void 0;if(r){let i=Jr,o=Fp(String(r));if(Jr=o,i===o)return e.apply(this,n);te("history",{from:i,to:o})}return e.apply(this,n)}}ne(ie.history,"pushState",t),ne(ie.history,"replaceState",t)}function Fp(t){try{return new URL(t,ie.location.origin).toString()}catch{return t}}var Qr={};function is(t){let e=Qr[t];if(e)return e;let n=ie[t];if(Xn(n))return Qr[t]=n.bind(ie);let r=ie.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?.[t]&&(n=o[t]),r.head.removeChild(i)}catch(i){Fl&&A.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,i)}return n&&(Qr[t]=n.bind(ie))}function ei(t){Qr[t]=void 0}var Ht="__sentry_xhr_v3__";function os(t){fe("xhr",t),he("xhr",Vp)}function Vp(){if(!ie.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){let i=new Error,o=ve()*1e3,s=pe(r[0])?r[0].toUpperCase():void 0,a=Bp(r[1]);if(!s||!a)return e.apply(n,r);n[Ht]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);let l=()=>{let d=n[Ht];if(d&&n.readyState===4){try{d.status_code=n.status}catch{}let g={endTimestamp:ve()*1e3,startTimestamp:o,xhr:n,virtualError:i};te("xhr",g)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(d,g,f){return l(),d.apply(g,f)}}):n.addEventListener("readystatechange",l),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(d,g,f){let[E,v]=f,w=g[Ht];return w&&pe(E)&&pe(v)&&(w.request_headers[E.toLowerCase()]=v),d.apply(g,f)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){let i=n[Ht];if(!i)return e.apply(n,r);r[0]!==void 0&&(i.body=r[0]);let o={startTimestamp:ve()*1e3,xhr:n};return te("xhr",o),e.apply(n,r)}})}function Bp(t){if(pe(t))return t;try{return t.toString()}catch{}}function ss(t,e=is("fetch")){let n=0,r=0;function i(o){let s=o.body.length;n+=s,r++;let a=y({body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15},t.fetchOptions);if(!e)return ei("fetch"),Tt("No fetch implementation available");try{return e(t.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 ei("fetch"),n-=s,r--,Tt(l)}}return Wr(t,i)}var Up=30;var Hp=50;function as(t,e,n,r){let i={filename:t,function:e==="<anonymous>"?"?":e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var jp=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Gp=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Wp=/\((\S*)(?::(\d+))(?::(\d+))\)/,$p=t=>{let e=jp.exec(t);if(e){let[,r,i,o]=e;return as(r,"?",+i,+o)}let n=Gp.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){let s=Wp.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}let[i,o]=Gl(n[1]||"?",n[2]);return as(o,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},Ul=[Up,$p],Yp=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,zp=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Kp=t=>{let e=Yp.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let o=zp.exec(e[3]);o&&(e[1]=e[1]||"eval",e[3]=o[1],e[4]=o[2],e[5]="")}let r=e[3],i=e[1]||"?";return[i,r]=Gl(i,r),as(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Hl=[Hp,Kp];var jl=[Ul,Hl],cs=Ji(...jl),Gl=(t,e)=>{let n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:"?",n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};var cn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var ti=1024,Xp="Breadcrumbs",qp=(t={})=>{let e=y({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t);return{name:Xp,setup(n){e.console&&Go(Qp(n)),e.dom&&rs(Jp(n,e.dom)),e.xhr&&os(em(n)),e.fetch&&Ko(tm(n)),e.history&&Zn(nm(n)),e.sentry&&n.on("beforeSendEvent",Zp(n))}}},Wl=qp;function Zp(t){return function(n){K()===t&&Qe({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ke(n)},{event:n})}}function Jp(t,e){return function(r){if(K()!==t)return;let i,o,s=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>ti&&(cn&&A.warn(`\`dom.maxStringLength\` cannot exceed ${ti}, but a value of ${a} was configured. Sentry will use ${ti} instead.`),a=ti),typeof s=="string"&&(s=[s]);try{let d=r.event,g=rm(d)?d.target:d;i=Vn(g,{keyAttrs:s,maxStringLength:a}),o=co(g)}catch{i="<unknown>"}if(i.length===0)return;let l={category:`ui.${r.name}`,message:i};o&&(l.data={"ui.component_name":o}),Qe(l,{event:r.event,name:r.name,global:r.global})}}function Qp(t){return function(n){if(K()!==t)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:Wo(n.level),message:wr(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${wr(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Qe(r,{input:n.args,level:n.level})}}function em(t){return function(n){if(K()!==t)return;let{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[Ht];if(!r||!i||!o)return;let{method:s,url:a,status_code:l,body:d}=o,g={method:s,url:a,status_code:l},f={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:i},E={category:"xhr",data:g,type:"http",level:Xr(l)};t.emit("beforeOutgoingRequestBreadcrumb",E,f),Qe(E,f)}}function tm(t){return function(n){if(K()!==t)return;let{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){let o=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},a={category:"fetch",data:o,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",a,s),Qe(a,s)}else{let o=n.response,s=V(y({},n.fetchData),{status_code:o?.status});n.fetchData.request_body_size,n.fetchData.response_body_size,o?.status;let a={input:n.args,response:o,startTimestamp:r,endTimestamp:i},l={category:"fetch",data:s,type:"http",level:Xr(s.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",l,a),Qe(l,a)}}}function nm(t){return function(n){if(K()!==t)return;let r=n.from,i=n.to,o=zn(q.location.href),s=r?zn(r):void 0,a=zn(i);s?.path||(s=o),o.protocol===a.protocol&&o.host===a.host&&(i=a.relative),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),Qe({category:"navigation",data:{from:r,to:i}})}}function rm(t){return!!t&&!!t.target}var im=["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"],om="BrowserApiErrors",sm=(t={})=>{let e=y({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},t);return{name:om,setupOnce(){e.setTimeout&&ne(q,"setTimeout",$l),e.setInterval&&ne(q,"setInterval",$l),e.requestAnimationFrame&&ne(q,"requestAnimationFrame",am),e.XMLHttpRequest&&"XMLHttpRequest"in q&&ne(XMLHttpRequest.prototype,"send",cm);let n=e.eventTarget;n&&(Array.isArray(n)?n:im).forEach(i=>lm(i,e))}}},Yl=sm;function $l(t){return function(...e){let n=e[0];return e[0]=Ut(n,{mechanism:{data:{function:Me(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function am(t){return function(e){return t.apply(this,[Ut(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Me(t)},handled:!1,type:"instrument"}})])}}function cm(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&ne(n,i,function(o){let s={mechanism:{data:{function:i,handler:Me(o)},handled:!1,type:"instrument"}},a=Bt(o);return a&&(s.mechanism.data.handler=Me(a)),Ut(o,s)})}),t.apply(this,e)}}function lm(t,e){let r=q[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(ne(r,"addEventListener",function(i){return function(o,s,a){try{um(s)&&(s.handleEvent=Ut(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Me(s),target:t},handled:!1,type:"instrument"}}))}catch{}return e.unregisterOriginalCallbacks&&dm(this,o,s),i.apply(this,[o,Ut(s,{mechanism:{data:{function:"addEventListener",handler:Me(s),target:t},handled:!1,type:"instrument"}}),a])}}),ne(r,"removeEventListener",function(i){return function(o,s,a){try{let l=s.__sentry_wrapped__;l&&i.call(this,o,l,a)}catch{}return i.call(this,o,s,a)}}))}function um(t){return typeof t.handleEvent=="function"}function dm(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}var zl=()=>({name:"BrowserSession",setupOnce(){if(typeof q.document>"u"){cn&&A.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Gn({ignoreDuration:!0}),Wn(),Zn(({from:t,to:e})=>{t!==void 0&&t!==e&&(Gn({ignoreDuration:!0}),Wn())})}});var fm="GlobalHandlers",hm=(t={})=>{let e=y({onerror:!0,onunhandledrejection:!0},t);return{name:fm,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(pm(n),Kl("onerror")),e.onunhandledrejection&&(mm(n),Kl("onunhandledrejection"))}}},Xl=hm;function pm(t){eo(e=>{let{stackParser:n,attachStacktrace:r}=ql();if(K()!==t||Zo())return;let{msg:i,url:o,line:s,column:a,error:l}=e,d=vm(Zr(n,l||i,void 0,r,!1),o,s,a);d.level="error",jn(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function mm(t){no(e=>{let{stackParser:n,attachStacktrace:r}=ql();if(K()!==t||Zo())return;let i=_m(e),o=Ft(i)?gm(i):Zr(n,i,void 0,r,!0);o.level="error",jn(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function _m(t){if(Ft(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function gm(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function vm(t,e,n,r){let i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],d=r,g=n,f=pe(e)&&e.length>0?e:Bn();return l.length===0&&l.push({colno:d,filename:f,function:"?",in_app:!0,lineno:g}),t}function Kl(t){cn&&A.log(`Global Handler attached: ${t}`)}function ql(){return K()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var Zl=()=>({name:"HttpContext",preprocessEvent(t){if(!q.navigator&&!q.location&&!q.document)return;let e=Ml(),n=y(y({},e.headers),t.request?.headers);t.request=V(y(y({},e),t.request),{headers:n})}});var ym="cause",Em=5,bm="LinkedErrors",Sm=(t={})=>{let e=t.limit||Em,n=t.key||ym;return{name:bm,preprocessEvent(r,i,o){let s=o.getOptions();jo(qr,s.stackParser,n,e,r,i)}}},Jl=Sm;function ls(t){return[zr(),$r(),Yl(),Wl(),Xl(),Jl(),Kr(),Zl(),zl()]}var Ql={},eu,us,Cm;(()=>{let t=ls({}).filter(e=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name));us=new qn({dsn:"https://1bc3dda4c861f60cd6be1b67584f4bc6@o559187.ingest.us.sentry.io/4507626484203520",transport:ss,stackParser:cs,integrations:t,environment:Ye.mode,release:`web-sdk@${qt}`,debug:Ye.debug}),us.init()})();function tu(t,e,n){ae.error(`${e}:`,t);let r=wm(n);if(r.setTag("operation",e),t instanceof Ln){Tm(r,t,e);return}r.captureException(t)}function Tm(t,e,n){if(Im(t,e),e.response){let r=e.response;t.setTag("http.status_code",r.status),t.setExtras({responseText:e.responseText,statusText:r.statusText,responseType:r.type,redirected:r.redirected,responseUrl:r.url}),t.captureMessage(`${n} failed with ${r.status}`,"error");return}if(e.request){t.captureMessage(`No response was received for ${n}`,"error");return}}function Im(t,e){let n=e.request;n&&t.setExtras({body:e.requestBody,headers:n.headers,method:n.method,url:n.url})}function wm(t){t??={};let{extra:e,tags:n}=t,r=new le;if(r.setClient(us),r.setUser(Cm),t.triggerContext&&!t.engagementTrigger&&(t.engagementTrigger=t.triggerContext.triggerData),t.engagementTrigger){let i=t.engagementTrigger;r.setTags({"engagement.id":i.engagementID,"engagement.short_id":i.shortID,"engagement.objective":i.objective,"engagement.delivery_type":i.onsiteDeliveryType,"engagement.content_id":i.contentID,"engagement.variation":i.variation,"engagement.currency":i.currency})}return e&&r.setExtras(e),n&&r.setTags(n),eu&&r.setTags(eu),Object.keys(Ql).forEach(i=>{r.setContext(i,Ql[i])}),r.setTag("language",navigator.language),r.setTag("timezone",nu()),Dm(r),r}function Dm(t){window.Shopify&&(t.setTag("shopify.shop",window.Shopify.shop),t.setTag("shopify.currency",window.Shopify.currency?.active),t.setTag("shopify.locale",window.Shopify.locale),t.setTag("theme.schema_name",window.Shopify.theme?.schema_name),t.setTag("theme.schema_version",window.Shopify.theme?.schema_version))}var ri=class{static format(e,n){let r=/{{\s*(\w+)\s*}}/;return n.replace(r,(i,o)=>{switch(o){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 i}})}static formatWithDelimiters(e,n=2,r=",",i="."){if(isNaN(e)||e==null)return"0";let s=(e/100).toFixed(n).split("."),a=s[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+r),l=s[1]?i+s[1]:"";return a+l}};var Jn=class{id;mID;vID;vName;imageURL;name;link;quantity;price;finalPrice;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,this.finalPrice=e.finalPrice??e.price}};function ru(t){let e=new Date(Date.UTC(0,0,0,0,0,0,t)),n=[];return e.getUTCMinutes()&&n.push(e.getUTCMinutes()+"m"),e.getUTCSeconds()&&n.push(e.getUTCSeconds()+"s"),e.getUTCMilliseconds()&&n.push(e.getUTCMilliseconds()+"ms"),n.length||n.push("0ms"),n.join(" ")}var ii=class{constructor(e){this.sdkLoadTime=e}isCartDirty=!0;cartEngagements;isGoKwikPopupOpen;previewIDs;previewVariant;pageName;moneyFormat;jsLoadTime=new Date;shopCurrencyCode;locale;customContext={};activeExperiments;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 Jn(e)}getSDKLoadTimeDiff(){return ru(Date.now()-this.sdkLoadTime.getTime())}};function Am(t,e,n){return{[t]:ds(e,n),[t+"_wo_currency"]:e}}function ds(t,e){if(t==0&&e)return"Free";let n=ii.get(),r=yt.get(),i=n.shopCurrencyCode||r.currency,o=n.currencyCode;o||ae.warn("Currency code is not set in RuntimeData");let s=r.money?.format??n.moneyFormat,a;if(s&&i===o)a=ri.format(t*100,s);else{let l;try{l=new Intl.NumberFormat(Om(),{style:"currency",currency:o||i,minimumFractionDigits:0,maximumFractionDigits:2})}catch(d){return tu(d,"format-currency",{extra:{currentCurrency:o,shopCurrency:i}}),""}a=l.format(t),a=a.replace("\u20B9","Rs. "),r.money?.showCurrency&&o!=="INR"&&(a=a.concat(` ${o}`))}return a}function Om(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}var oi;function nu(){if(oi)return oi;try{return oi=Intl.DateTimeFormat().resolvedOptions().timeZone,oi}catch{return""}}var cu,Y,lu,_s,jt,iu,uu,du,fu,gs,hs,ps,xm,ms={},hu=[],Rm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ci=Array.isArray;function dt(t,e){for(var n in e)t[n]=e[n];return t}function vs(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function fs(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++lu,__i:-1,__u:0};return i==null&&Y.vnode!=null&&Y.vnode(o),o}function ys(t){return t.children}function ln(t,e){this.props=t,this.context=e}function un(t,e){if(e==null)return t.__?un(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?un(t):null}function pu(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return pu(t)}}function ou(t){(!t.__d&&(t.__d=!0)&&jt.push(t)&&!ai.__r++||iu!=Y.debounceRendering)&&((iu=Y.debounceRendering)||uu)(ai)}function ai(){for(var t,e,n,r,i,o,s,a=1;jt.length;)jt.length>a&&jt.sort(du),t=jt.shift(),a=jt.length,t.__d&&(n=void 0,i=(r=(e=t).__v).__e,o=[],s=[],e.__P&&((n=dt({},r)).__v=r.__v+1,Y.vnode&&Y.vnode(n),gu(e.__P,n,r,e.__n,e.__P.namespaceURI,32&r.__u?[i]:null,o,i??un(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Pm(o,n,s),n.__e!=i&&pu(n)));ai.__r=0}function mu(t,e,n,r,i,o,s,a,l,d,g){var f,E,v,w,N,R,P=r&&r.__k||hu,M=e.length;for(l=Nm(n,e,P,l,M),f=0;f<M;f++)(v=n.__k[f])!=null&&(E=v.__i==-1?ms:P[v.__i]||ms,v.__i=f,R=gu(t,v,E,i,o,s,a,l,d,g),w=v.__e,v.ref&&E.ref!=v.ref&&(E.ref&&Es(E.ref,null,v),g.push(v.ref,v.__c||w,v)),N==null&&w!=null&&(N=w),4&v.__u||E.__k===v.__k?l=_u(v,l,t):typeof v.type=="function"&&R!==void 0?l=R:w&&(l=w.nextSibling),v.__u&=-7);return n.__e=N,l}function Nm(t,e,n,r,i){var o,s,a,l,d,g=n.length,f=g,E=0;for(t.__k=new Array(i),o=0;o<i;o++)(s=e[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+E,(s=t.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?fs(null,s,null,null,null):ci(s)?fs(ys,{children:s},null,null,null):s.constructor==null&&s.__b>0?fs(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,a=null,(d=s.__i=Mm(s,n,l,f))!=-1&&(f--,(a=n[d])&&(a.__u|=2)),a==null||a.__v==null?(d==-1&&(i>g?E--:i<g&&E++),typeof s.type!="function"&&(s.__u|=4)):d!=l&&(d==l-1?E--:d==l+1?E++:(d>l?E--:E++,s.__u|=4))):t.__k[o]=null;if(f)for(o=0;o<g;o++)(a=n[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=un(a)),yu(a,a));return r}function _u(t,e,n){var r,i;if(typeof t.type=="function"){for(r=t.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=t,e=_u(r[i],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=un(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Mm(t,e,n,r){var i,o,s=t.key,a=t.type,l=e[n];if(l===null&&t.key==null||l&&s==l.key&&a==l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(i=n-1,o=n+1;i>=0||o<e.length;){if(i>=0){if((l=e[i])&&(2&l.__u)==0&&s==l.key&&a==l.type)return i;i--}if(o<e.length){if((l=e[o])&&(2&l.__u)==0&&s==l.key&&a==l.type)return o;o++}}return-1}function su(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Rm.test(e)?n:n+"px"}function si(t,e,n,r,i){var o,s;e:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||su(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||su(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(fu,"$1")),s=e.toLowerCase(),e=s in t||e=="onFocusOut"||e=="onFocusIn"?s.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r?n.u=r.u:(n.u=gs,t.addEventListener(e,o?ps:hs,o)):t.removeEventListener(e,o?ps:hs,o);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function au(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=gs++;else if(e.t<n.u)return;return n(Y.event?Y.event(e):e)}}}function gu(t,e,n,r,i,o,s,a,l,d){var g,f,E,v,w,N,R,P,M,U,Ce,Te,D,H,F,j,Z,X=e.type;if(e.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=e.__e=n.__e]),(g=Y.__b)&&g(e);e:if(typeof X=="function")try{if(P=e.props,M="prototype"in X&&X.prototype.render,U=(g=X.contextType)&&r[g.__c],Ce=g?U?U.props.value:g.__:r,n.__c?R=(f=e.__c=n.__c).__=f.__E:(M?e.__c=f=new X(P,Ce):(e.__c=f=new ln(P,Ce),f.constructor=X,f.render=Lm),U&&U.sub(f),f.props=P,f.state||(f.state={}),f.context=Ce,f.__n=r,E=f.__d=!0,f.__h=[],f._sb=[]),M&&f.__s==null&&(f.__s=f.state),M&&X.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=dt({},f.__s)),dt(f.__s,X.getDerivedStateFromProps(P,f.__s))),v=f.props,w=f.state,f.__v=e,E)M&&X.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),M&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(M&&X.getDerivedStateFromProps==null&&P!==v&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(P,Ce),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(P,f.__s,Ce)===!1||e.__v==n.__v){for(e.__v!=n.__v&&(f.props=P,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(se){se&&(se.__=e)}),Te=0;Te<f._sb.length;Te++)f.__h.push(f._sb[Te]);f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(P,f.__s,Ce),M&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(v,w,N)})}if(f.context=Ce,f.props=P,f.__P=t,f.__e=!1,D=Y.__r,H=0,M){for(f.state=f.__s,f.__d=!1,D&&D(e),g=f.render(f.props,f.state,f.context),F=0;F<f._sb.length;F++)f.__h.push(f._sb[F]);f._sb=[]}else do f.__d=!1,D&&D(e),g=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++H<25);f.state=f.__s,f.getChildContext!=null&&(r=dt(dt({},r),f.getChildContext())),M&&!E&&f.getSnapshotBeforeUpdate!=null&&(N=f.getSnapshotBeforeUpdate(v,w)),j=g,g!=null&&g.type===ys&&g.key==null&&(j=vu(g.props.children)),a=mu(t,ci(j)?j:[j],e,n,r,i,o,s,a,l,d),f.base=e.__e,e.__u&=-161,f.__h.length&&s.push(f),R&&(f.__E=f.__=null)}catch(se){if(e.__v=null,l||o!=null)if(se.then){for(e.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,e.__e=a}else for(Z=o.length;Z--;)vs(o[Z]);else e.__e=n.__e,e.__k=n.__k;Y.__e(se,e,n)}else o==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=km(n.__e,e,n,r,i,o,s,l,d);return(g=Y.diffed)&&g(e),128&e.__u?void 0:a}function Pm(t,e,n){for(var r=0;r<n.length;r++)Es(n[r],n[++r],n[++r]);Y.__c&&Y.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){Y.__e(o,i.__v)}})}function vu(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:ci(t)?t.map(vu):dt({},t)}function km(t,e,n,r,i,o,s,a,l){var d,g,f,E,v,w,N,R=n.props,P=e.props,M=e.type;if(M=="svg"?i="http://www.w3.org/2000/svg":M=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(d=0;d<o.length;d++)if((v=o[d])&&"setAttribute"in v==!!M&&(M?v.localName==M:v.nodeType==3)){t=v,o[d]=null;break}}if(t==null){if(M==null)return document.createTextNode(P);t=document.createElementNS(i,M,P.is&&P),a&&(Y.__m&&Y.__m(e,o),a=!1),o=null}if(M==null)R===P||a&&t.data==P||(t.data=P);else{if(o=o&&cu.call(t.childNodes),R=n.props||ms,!a&&o!=null)for(R={},d=0;d<t.attributes.length;d++)R[(v=t.attributes[d]).name]=v.value;for(d in R)if(v=R[d],d!="children"){if(d=="dangerouslySetInnerHTML")f=v;else if(!(d in P)){if(d=="value"&&"defaultValue"in P||d=="checked"&&"defaultChecked"in P)continue;si(t,d,null,v,i)}}for(d in P)v=P[d],d=="children"?E=v:d=="dangerouslySetInnerHTML"?g=v:d=="value"?w=v:d=="checked"?N=v:a&&typeof v!="function"||R[d]===v||si(t,d,v,R[d],i);if(g)a||f&&(g.__html==f.__html||g.__html==t.innerHTML)||(t.innerHTML=g.__html),e.__k=[];else if(f&&(t.innerHTML=""),mu(e.type=="template"?t.content:t,ci(E)?E:[E],e,n,r,M=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&un(n,0),a,l),o!=null)for(d=o.length;d--;)vs(o[d]);a||(d="value",M=="progress"&&w==null?t.removeAttribute("value"):w!=null&&(w!==t[d]||M=="progress"&&!w||M=="option"&&w!=R[d])&&si(t,d,w,R[d],i),d="checked",N!=null&&N!=t[d]&&si(t,d,N,R[d],i))}return t}function Es(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){Y.__e(i,n)}}function yu(t,e,n){var r,i;if(Y.unmount&&Y.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||Es(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Y.__e(o,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&yu(r[i],e,n||typeof t.type!="function");n||vs(t.__e),t.__c=t.__=t.__e=void 0}function Lm(t,e,n){return this.constructor(t,n)}cu=hu.slice,Y={__e:function(t,e,n,r){for(var i,o,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),s=i.__d),s)return i.__E=i}catch(a){t=a}throw t}},lu=0,_s=function(t){return t!=null&&t.constructor==null},ln.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=dt({},this.state),typeof t=="function"&&(t=t(dt({},n),this.props)),t&&dt(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),ou(this))},ln.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),ou(this))},ln.prototype.render=ys,jt=[],uu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,du=function(t,e){return t.__v.__b-e.__v.__b},ai.__r=0,fu=/(PointerCapture)$|Capture$/i,gs=0,hs=au(!1),ps=au(!0),xm=0;var Ss,Se,bs,Eu,bu=0,Ou=[],oe=Y,Su=oe.__b,Cu=oe.__r,Tu=oe.diffed,Iu=oe.__c,wu=oe.unmount,Du=oe.__;function Fm(t,e){oe.__h&&oe.__h(Se,t,bu||e),bu=0;var n=Se.__H||(Se.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function Ts(t,e){var n=Fm(Ss++,7);return Um(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Vm(){for(var t;t=Ou.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(li),t.__H.__h.forEach(Cs),t.__H.__h=[]}catch(e){t.__H.__h=[],oe.__e(e,t.__v)}}oe.__b=function(t){Se=null,Su&&Su(t)},oe.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Du&&Du(t,e)},oe.__r=function(t){Cu&&Cu(t),Ss=0;var e=(Se=t.__c).__H;e&&(bs===Se?(e.__h=[],Se.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.forEach(li),e.__h.forEach(Cs),e.__h=[],Ss=0)),bs=Se},oe.diffed=function(t){Tu&&Tu(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Ou.push(e)!==1&&Eu===oe.requestAnimationFrame||((Eu=oe.requestAnimationFrame)||Bm)(Vm)),e.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),bs=Se=null},oe.__c=function(t,e){e.some(function(n){try{n.__h.forEach(li),n.__h=n.__h.filter(function(r){return!r.__||Cs(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],oe.__e(r,n.__v)}}),Iu&&Iu(t,e)},oe.unmount=function(t){wu&&wu(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{li(r)}catch(i){e=i}}),n.__H=void 0,e&&oe.__e(e,n.__v))};var Au=typeof requestAnimationFrame=="function";function Bm(t){var e,n=function(){clearTimeout(r),Au&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,35);Au&&(e=requestAnimationFrame(n))}function li(t){var e=Se,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Se=e}function Cs(t){var e=Se;t.__c=t.__(),Se=e}function Um(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}var Hm=Symbol.for("preact-signals");function ws(){if(dn>1)dn--;else{for(var t,e=!1;Qn!==void 0;){var n=Qn;for(Qn=void 0,Is++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Ru(n))try{n.c()}catch(i){e||(t=i,e=!0)}n=r}}if(Is=0,dn--,e)throw t}}var z=void 0;var Qn=void 0,dn=0,Is=0,ui=0;function xu(t){if(z!==void 0){var e=t.n;if(e===void 0||e.t!==z)return e={i:0,S:t,p:z.s,n:void 0,t:z,e:void 0,x:void 0,r:e},z.s!==void 0&&(z.s.n=e),z.s=e,t.n=e,32&z.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=z.s,e.n=void 0,z.s.n=e,z.s=e),e}}function ce(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}ce.prototype.brand=Hm;ce.prototype.h=function(){return!0};ce.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};ce.prototype.U=function(t){if(this.t!==void 0){var e=t.e,n=t.x;e!==void 0&&(e.x=n,t.e=void 0),n!==void 0&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}};ce.prototype.subscribe=function(t){var e=this;return di(function(){var n=e.value,r=z;z=void 0;try{t(n)}finally{z=r}})};ce.prototype.valueOf=function(){return this.value};ce.prototype.toString=function(){return this.value+""};ce.prototype.toJSON=function(){return this.value};ce.prototype.peek=function(){var t=z;z=void 0;try{return this.value}finally{z=t}};Object.defineProperty(ce.prototype,"value",{get:function(){var t=xu(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Is>100)throw new Error("Cycle detected");this.v=t,this.i++,ui++,dn++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{ws()}}}});function er(t){return new ce(t)}function Ru(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function Nu(t){for(var e=t.s;e!==void 0;e=e.n){var n=e.S.n;if(n!==void 0&&(e.r=n),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function Mu(t){for(var e=t.s,n=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):n=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}t.s=n}function fn(t){ce.call(this,void 0),this.x=t,this.s=void 0,this.g=ui-1,this.f=4}(fn.prototype=new ce).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ui))return!0;if(this.g=ui,this.f|=1,this.i>0&&!Ru(this))return this.f&=-2,!0;var t=z;try{Nu(this),z=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return z=t,Mu(this),this.f&=-2,!0};fn.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}ce.prototype.S.call(this,t)};fn.prototype.U=function(t){if(this.t!==void 0&&(ce.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};fn.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(fn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=xu(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function Pu(t){return new fn(t)}function ku(t){var e=t.u;if(t.u=void 0,typeof e=="function"){dn++;var n=z;z=void 0;try{e()}catch(r){throw t.f&=-2,t.f|=8,Ds(t),r}finally{z=n,ws()}}}function Ds(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,ku(t)}function jm(t){if(z!==this)throw new Error("Out-of-order effect");Mu(this),z=t,this.f&=-2,8&this.f&&Ds(this),ws()}function tr(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}tr.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}};tr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ku(this),Nu(this),dn++;var t=z;return z=this,jm.bind(this,t)};tr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Qn,Qn=this)};tr.prototype.d=function(){this.f|=8,1&this.f||Ds(this)};function di(t){var e=new tr(t);try{e.c()}catch(n){throw e.d(),n}return e.d.bind(e)}var Os,As;function hn(t,e){Y[t]=e.bind(null,Y[t]||function(){})}function fi(t){As&&As(),As=t&&t.S()}function Lu(t){var e=this,n=t.data,r=Wm(n);r.value=n;var i=Ts(function(){for(var o=e.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return e.__$u.c=function(){var s,a=e.__$u.S(),l=i.value;a(),_s(l)||((s=e.base)==null?void 0:s.nodeType)!==3?(e.__$f|=1,e.setState({})):e.base.data=l},Pu(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}Lu.displayName="_st";Object.defineProperties(ce.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Lu},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});hn("__b",function(t,e){if(typeof e.type=="string"){var n,r=e.props;for(var i in r)if(i!=="children"){var o=r[i];o instanceof ce&&(n||(e.__np=n={}),n[i]=o,r[i]=o.peek())}}t(e)});hn("__r",function(t,e){fi();var n,r=e.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=(function(i){var o;return di(function(){o=this}),o.c=function(){r.__$f|=1,r.setState({})},o})())),Os=r,fi(n),t(e)});hn("__e",function(t,e,n,r){fi(),Os=void 0,t(e,n,r)});hn("diffed",function(t,e){fi(),Os=void 0;var n;if(typeof e.type=="string"&&(n=e.__e)){var r=e.__np,i=e.props;if(r){var o=n.U;if(o)for(var s in o){var a=o[s];a!==void 0&&!(s in r)&&(a.d(),o[s]=void 0)}else n.U=o={};for(var l in r){var d=o[l],g=r[l];d===void 0?(d=Gm(n,l,g,i),o[l]=d):d.o(g,i)}}}t(e)});function Gm(t,e,n,r){var i=e in t&&t.ownerSVGElement===void 0,o=er(n);return{o:function(s,a){o.value=s,r=a},d:di(function(){var s=o.value.value;r[e]!==s&&(r[e]=s,i?t[e]=s:s?t.setAttribute(e,s):t.removeAttribute(e))})}}hn("unmount",function(t,e){if(typeof e.type=="string"){var n=e.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var o=r[i];o&&o.d()}}}}else{var s=e.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}t(e)});hn("__h",function(t,e,n,r){(r<3||r===9)&&(e.__$f|=2),t(e,n,r)});ln.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u,r=n&&n.s!==void 0;for(var i in e)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){if(!(r||2&this.__$f||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in t)if(o!=="__source"&&t[o]!==this.props[o])return!0;for(var s in this.props)if(!(s in t))return!0;return!1};function Wm(t){return Ts(function(){return er(t)},[])}var $m=(r=>(r.ON="ON",r.OFF="OFF",r.ON_HOVER="ON_HOVER",r))($m||{}),Ym=(r=>(r.FIRST_ITEM="FIRST_ITEM",r.CARD="CARD",r.NONE="NONE",r))(Ym||{});var nr=class{_attachedHost;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},pn=class extends nr{component;viewContainerRef;injector;projectableNodes;constructor(e,n,r,i){super(),this.component=e,this.viewContainerRef=n,this.injector=r,this.projectableNodes=i}},mn=class extends nr{templateRef;viewContainerRef;context;injector;constructor(e,n,r,i){super(),this.templateRef=e,this.viewContainerRef=n,this.context=r,this.injector=i}get origin(){return this.templateRef.elementRef}attach(e,n=this.context){return this.context=n,super.attach(e)}detach(){return this.context=void 0,super.detach()}},xs=class extends nr{element;constructor(e){super(),this.element=e instanceof Ae?e.nativeElement:e}},_n=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof pn)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof mn)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof xs)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},hi=class extends _n{outletElement;_appRef;_defaultInjector;constructor(e,n,r){super(),this.outletElement=e,this._appRef=n,this._defaultInjector=r}attachComponentPortal(e){let n;if(e.viewContainerRef){let r=e.injector||e.viewContainerRef.injector,i=r.get(Mi,null,{optional:!0})||void 0;n=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:r,ngModuleRef:i,projectableNodes:e.projectableNodes||void 0}),this.setDisposeFn(()=>n.destroy())}else{let r=this._appRef,i=e.injector||this._defaultInjector||De.NULL,o=i.get(dr,r.injector);n=ka(e.component,{elementInjector:i,environmentInjector:o,projectableNodes:e.projectableNodes||void 0}),r.attachView(n.hostView),this.setDisposeFn(()=>{r.viewCount>0&&r.detachView(n.hostView),n.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=e,n}attachTemplatePortal(e){let n=e.viewContainerRef,r=n.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return r.rootNodes.forEach(i=>this.outletElement.appendChild(i)),r.detectChanges(),this.setDisposeFn(()=>{let i=n.indexOf(r);i!==-1&&n.remove(i)}),this._attachedPortal=e,r}attachDomPortal=e=>{let n=e.element;n.parentNode;let r=this.outletElement.ownerDocument.createComment("dom-portal");n.parentNode.insertBefore(r,n),this.outletElement.appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(n,r)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var Rs=(()=>{class t extends _n{_moduleRef=x(Mi,{optional:!0});_document=x(_e);_viewContainerRef=x(Ni);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}attached=new Oe;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);let r=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,i=r.createComponent(n.component,{index:r.length,injector:n.injector||r.injector,projectableNodes:n.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return r!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=n,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(n){n.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}attachDomPortal=n=>{let r=n.element;r.parentNode;let i=this._document.createComment("dom-portal");n.setAttachedHost(this),r.parentNode.insertBefore(i,r),this._getRootNode().appendChild(r),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(r,i)})};_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Yt({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[xt]})}return t})();var rr;function zm(){if(rr==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>rr=!0}))}finally{rr=rr||!1}return rr}function Fu(t){return zm()?t:!!t.capture}var Km=new Le("cdk-input-modality-detector-options"),Xm={ignoreKeys:[18,17,224,91,16]},Vu=650,Ns={passive:!0,capture:!0},qm=(()=>{class t{_platform=x($e);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new da(null);_options;_lastTouchMs=0;_onKeydown=n=>{this._options?.ignoreKeys?.some(r=>r===n.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ot(n))};_onMousedown=n=>{Date.now()-this._lastTouchMs<Vu||(this._modality.next(Ha(n)?"keyboard":"mouse"),this._mostRecentTarget=ot(n))};_onTouchstart=n=>{if(ja(n)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ot(n)};constructor(){let n=x(Fe),r=x(_e),i=x(Km,{optional:!0});if(this._options=y(y({},Xm),i),this.modalityDetected=this._modality.pipe(_a(1)),this.modalityChanged=this.modalityDetected.pipe(ma()),this._platform.isBrowser){let o=x($t).createRenderer(null,null);this._listenerCleanups=n.runOutsideAngular(()=>[o.listen(r,"keydown",this._onKeydown,Ns),o.listen(r,"mousedown",this._onMousedown,Ns),o.listen(r,"touchstart",this._onTouchstart,Ns)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(n=>n())}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mi=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(mi||{}),Zm=new Le("cdk-focus-monitor-default-options"),pi=Fu({passive:!0,capture:!0}),Bu=(()=>{class t{_ngZone=x(Fe);_platform=x($e);_inputModalityDetector=x(qm);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=x(_e);_stopInputModalityDetector=new me;constructor(){let n=x(Zm,{optional:!0});this._detectionMode=n?.detectionMode||mi.IMMEDIATE}_rootNodeFocusAndBlurListener=n=>{let r=ot(n);for(let i=r;i;i=i.parentElement)n.type==="focus"?this._onFocus(n,i):this._onBlur(n,i)};monitor(n,r=!1){let i=mr(n);if(!this._platform.isBrowser||i.nodeType!==1)return fa();let o=Ga(i)||this._document,s=this._elementInfo.get(i);if(s)return r&&(s.checkChildren=!0),s.subject;let a={checkChildren:r,subject:new me,rootNode:o};return this._elementInfo.set(i,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(n){let r=mr(n),i=this._elementInfo.get(r);i&&(i.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(i))}focusVia(n,r,i){let o=mr(n),s=this._document.activeElement;o===s?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,r,l)):(this._setOrigin(r),typeof o.focus=="function"&&o.focus(i))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===mi.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===mi.IMMEDIATE){clearTimeout(this._originTimeoutId);let i=this._originFromTouchInteraction?Vu:1;this._originTimeoutId=setTimeout(()=>this._origin=null,i)}})}_onFocus(n,r){let i=this._elementInfo.get(r),o=ot(n);!i||!i.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),i)}_onBlur(n,r){let i=this._elementInfo.get(r);!i||i.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(i,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,i=this._rootNodeFocusListenerCount.get(r)||0;i||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,pi),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,pi)}),this._rootNodeFocusListenerCount.set(r,i+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(va(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let i=this._rootNodeFocusListenerCount.get(r);i>1?this._rootNodeFocusListenerCount.set(r,i-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,pi),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,pi),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,i){this._setClasses(n,r),this._emitOrigin(i,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((i,o)=>{(o===n||i.checkChildren&&o.contains(n))&&r.push([o,i])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:i}=this._inputModalityDetector;if(i!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let o=n.labels;if(o){for(let s=0;s<o.length;s++)if(o[s].contains(r))return!0}return!1}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Uu=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=ee({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(r,i){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}
17
+ `],encapsulation:2,changeDetection:0})}return t})();var Ps=(()=>{class t{_platform=x($e);constructor(){}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return Qm(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let r=Jm(a_(n));if(r&&(Hu(r)===-1||!this.isVisible(r)))return!1;let i=n.nodeName.toLowerCase(),o=Hu(n);return n.hasAttribute("contenteditable")?o!==-1:i==="iframe"||i==="object"||this._platform.WEBKIT&&this._platform.IOS&&!o_(n)?!1:i==="audio"?n.hasAttribute("controls")?o!==-1:!1:i==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,r){return s_(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Jm(t){try{return t.frameElement}catch{return null}}function Qm(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function e_(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function t_(t){return r_(t)&&t.type=="hidden"}function n_(t){return i_(t)&&t.hasAttribute("href")}function r_(t){return t.nodeName.toLowerCase()=="input"}function i_(t){return t.nodeName.toLowerCase()=="a"}function ju(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function Hu(t){if(!ju(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function o_(t){let e=t.nodeName.toLowerCase(),n=e==="input"&&t.type;return n==="text"||n==="password"||e==="select"||e==="textarea"}function s_(t){return t_(t)?!1:e_(t)||n_(t)||t.hasAttribute("contenteditable")||ju(t)}function a_(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Ms=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_enabled=!0;constructor(e,n,r,i,o=!1,s){this._element=e,this._checker=n,this._ngZone=r,this._document=i,this._injector=s,o||this.attachAnchors()}destroy(){let e=this._startAnchor,n=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let n=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){let r=this._getFirstTabbableElement(n);return r?.focus(e),!!r}return n.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let n=this._getRegionBoundary("start");return n&&n.focus(e),!!n}focusLastTabbableElement(e){let n=this._getRegionBoundary("end");return n&&n.focus(e),!!n}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let n=e.children;for(let r=0;r<n.length;r++){let i=n[r].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(n[r]):null;if(i)return i}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let n=e.children;for(let r=n.length-1;r>=0;r--){let i=n[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[r]):null;if(i)return i}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,n){e?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?mt(e,{injector:this._injector}):setTimeout(e)}},Gu=(()=>{class t{_checker=x(Ps);_ngZone=x(Fe);_document=x(_e);_injector=x(De);constructor(){x(Rn).load(Uu)}create(n,r=!1){return new Ms(n,this._checker,this._ngZone,this._document,r,this._injector)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wu(t,...e){return e.length?e.some(n=>t[n]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function ks(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ft(t){return t==null?"":typeof t=="string"?t:`${t}px`}var $u=$a();function Ku(t){return new Ls(t.get(Ya),t.get(_e))}var Ls=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(e,n){this._viewportRuler=e,this._document=n}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=ft(-this._previousScrollPosition.left),e.style.top=ft(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,n=this._document.body,r=e.style,i=n.style,o=r.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,r.left=this._previousHTMLStyles.left,r.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),$u&&(r.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),$u&&(r.scrollBehavior=o,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let n=this._document.documentElement,r=this._viewportRuler.getViewportSize();return n.scrollHeight>r.height||n.scrollWidth>r.width}};var Fs=class{enable(){}disable(){}attach(){}};var ir=class{positionStrategy;scrollStrategy=new Fs;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(e){if(e){let n=Object.keys(e);for(let r of n)e[r]!==void 0&&(this[r]=e[r])}}};var Xu=(()=>{class t{_attachedOverlays=[];_document=x(_e);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),l_=(()=>{class t extends Xu{_ngZone=x(Fe);_renderer=x($t).createRenderer(null,null);_cleanupKeydown;add(n){super.add(n),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=n=>{let r=this._attachedOverlays;for(let i=r.length-1;i>-1;i--)if(r[i]._keydownEvents.observers.length>0){this._ngZone.run(()=>r[i]._keydownEvents.next(n));break}};static \u0275fac=(()=>{let n;return function(i){return(n||(n=Sn(t)))(i||t)}})();static \u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),u_=(()=>{class t extends Xu{_platform=x($e);_ngZone=x(Fe);_renderer=x($t).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(n){if(super.add(n),!this._isAttached){let r=this._document.body,i={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(r,"pointerdown",this._pointerDownListener,i),o.listen(r,"click",this._clickListener,i),o.listen(r,"auxclick",this._clickListener,i),o.listen(r,"contextmenu",this._clickListener,i)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(n=>n()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=n=>{this._pointerDownEventTarget=ot(n)};_clickListener=n=>{let r=ot(n),i=n.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){let a=o[s];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(Yu(a.overlayElement,r)||Yu(a.overlayElement,i))break;let l=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(n)):l.next(n)}};static \u0275fac=(()=>{let n;return function(i){return(n||(n=Sn(t)))(i||t)}})();static \u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Yu(t,e){let n=typeof ShadowRoot<"u"&&ShadowRoot,r=e;for(;r;){if(r===t)return!0;r=n&&r instanceof ShadowRoot?r.host:r.parentNode}return!1}var qu=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=ee({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(r,i){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
18
+ `],encapsulation:2,changeDetection:0})}return t})(),Us=(()=>{class t{_platform=x($e);_containerElement;_document=x(_e);_styleLoader=x(Rn);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||ks()){let i=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let o=0;o<i.length;o++)i[o].remove()}let r=this._document.createElement("div");r.classList.add(n),ks()?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}_loadStyles(){this._styleLoader.load(qu)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vs=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,n,r,i){this._renderer=n,this._ngZone=r,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=n.listen(this.element,"click",i)}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},or=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new me;_attachments=new me;_detachments=new me;_positionStrategy;_scrollStrategy;_locationChanges=ua.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new me;_outsidePointerEvents=new me;_afterNextRenderRef;constructor(e,n,r,i,o,s,a,l,d,g=!1,f,E){this._portalOutlet=e,this._host=n,this._pane=r,this._config=i,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=d,this._animationsDisabled=g,this._injector=f,this._renderer=E,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let n=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=mt(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof n?.onDestroy=="function"&&n.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),n}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=y(y({},this._config),e),this._updateElementSize()}setDirection(e){this._config=V(y({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=ft(this._config.width),e.height=ft(this._config.height),e.minWidth=ft(this._config.minWidth),e.minHeight=ft(this._config.minHeight),e.maxWidth=ft(this._config.maxWidth),e.maxHeight=ft(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Vs(this._document,this._renderer,this._ngZone,n=>{this._backdropClick.next(n)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e))}):this._backdropRef.element.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(e,n,r){let i=Wa(n||[]).filter(o=>!!o);i.length&&(r?e.classList.add(...i):e.classList.remove(...i))}_detachContentWhenEmpty(){let e=!1;try{this._detachContentAfterRenderRef=mt(()=>{e=!0,this._detachContent()},{injector:this._injector})}catch(n){if(e)throw n;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.()}};var zu="cdk-global-overlay-wrapper";function Zu(t){return new Bs}var Bs=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(e){let n=e.getConfig();this._overlayRef=e,this._width&&!n.width&&e.updateSize({width:this._width}),this._height&&!n.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(zu),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,r=this._overlayRef.getConfig(),{width:i,height:o,maxWidth:s,maxHeight:a}=r,l=(i==="100%"||i==="100vw")&&(!s||s==="100%"||s==="100vw"),d=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),g=this._xPosition,f=this._xOffset,E=this._overlayRef.getConfig().direction==="rtl",v="",w="",N="";l?N="flex-start":g==="center"?(N="center",E?w=f:v=f):E?g==="left"||g==="end"?(N="flex-end",v=f):(g==="right"||g==="start")&&(N="flex-start",w=f):g==="left"||g==="start"?(N="flex-start",v=f):(g==="right"||g==="end")&&(N="flex-end",w=f),e.position=this._cssPosition,e.marginLeft=l?"0":v,e.marginTop=d?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":w,n.justifyContent=N,n.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,r=n.style;n.classList.remove(zu),r.justifyContent=r.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}};function Ju(t,e){t.get(Rn).load(qu);let n=t.get(Us),r=t.get(_e),i=t.get(_r),o=t.get(Pi),s=t.get(Nn),a=r.createElement("div"),l=r.createElement("div");l.id=i.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),a.appendChild(l),n.getContainerElement().appendChild(a);let d=new hi(l,o,t),g=new ir(e),f=t.get(In,null,{optional:!0})||t.get($t).createRenderer(null,null);return g.direction=g.direction||s.value,new or(d,a,l,g,t.get(Fe),t.get(l_),r,t.get(La),t.get(u_),e?.disableAnimations??t.get(ya,null,{optional:!0})==="NoopAnimations",t.get(dr),f)}function d_(t,e){}var gn=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var f_=(()=>{class t extends _n{_elementRef=x(Ae);_focusTrapFactory=x(Gu);_config;_interactivityChecker=x(Ps);_ngZone=x(Fe);_focusMonitor=x(Bu);_renderer=x(In);_changeDetectorRef=x(Vi);_injector=x(De);_platform=x($e);_document=x(_e);_portalOutlet;_focusTrapped=new me;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=x(gn,{optional:!0})||new gn,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(n){this._ariaLabelledByQueue.push(n),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(n){let r=this._ariaLabelledByQueue.indexOf(n);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(n);return this._contentAttached(),r}attachTemplatePortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(n);return this._contentAttached(),r}attachDomPortal=n=>{this._portalOutlet.hasAttached();let r=this._portalOutlet.attachDomPortal(n);return this._contentAttached(),r};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(n,r){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{o(),s(),n.removeAttribute("tabindex")},o=this._renderer.listen(n,"blur",i),s=this._renderer.listen(n,"mousedown",i)})),n.focus(r)}_focusByCssSelector(n,r){let i=this._elementRef.nativeElement.querySelector(n);i&&this._forceFocus(i,r)}_trapFocus(n){this._isDestroyed||mt(()=>{let r=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||r.focus(n);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(n)||this._focusDialogContainer(n);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',n);break;default:this._focusByCssSelector(this._config.autoFocus,n);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let n=this._config.restoreFocus,r=null;if(typeof n=="string"?r=this._document.querySelector(n):typeof n=="boolean"?r=n?this._elementFocusedBeforeDialogWasOpened:null:n&&(r=n),this._config.restoreFocus&&r&&typeof r.focus=="function"){let i=pr(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(n){this._elementRef.nativeElement.focus?.(n)}_containsFocus(){let n=this._elementRef.nativeElement,r=pr();return n===r||n.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=pr()))}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=ee({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(r,i){if(r&1&&Aa(Rs,7),r&2){let o;Oa(o=xa())&&(i._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,i){r&2&&He("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[xt],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,i){r&1&&ba(0,d_,0,0,"ng-template",0)},dependencies:[Rs],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
19
+ `],encapsulation:2})}return t})(),sr=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new me;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(e,n){this.overlayRef=e,this.config=n,this.disableClose=n.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=n.id,this.keydownEvents.subscribe(r=>{r.keyCode===27&&!this.disableClose&&!Wu(r)&&(r.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=e.detachments().subscribe(()=>{n.closeOnOverlayDetachments!==!1&&this.close()})}close(e,n){if(this._canClose(e)){let r=this.closed;this.containerInstance._closeInteractionType=n?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),r.next(e),r.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",n=""){return this.overlayRef.updateSize({width:e,height:n}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}_canClose(e){let n=this.config;return!!this.containerInstance&&(!n.closePredicate||n.closePredicate(e,n,this.componentInstance))}},h_=new Le("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=x(De);return()=>Ku(t)}}),p_=new Le("DialogData"),m_=new Le("DefaultDialogConfig");function __(t){let e=Ue(t),n=new Oe;return{valueSignal:e,get value(){return e()},change:n,ngOnDestroy(){n.complete()}}}var F0=(()=>{class t{_injector=x(De);_defaultOptions=x(m_,{optional:!0});_parentDialog=x(t,{optional:!0,skipSelf:!0});_overlayContainer=x(Us);_idGenerator=x(_r);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new me;_afterOpenedAtThisLevel=new me;_ariaHiddenElements=new Map;_scrollStrategy=x(h_);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=ha(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ga(void 0)));constructor(){}open(n,r){let i=this._defaultOptions||new gn;r=y(y({},i),r),r.id=r.id||this._idGenerator.getId("cdk-dialog-"),r.id&&this.getDialogById(r.id);let o=this._getOverlayConfig(r),s=Ju(this._injector,o),a=new sr(s,r),l=this._attachContainer(s,a,r);if(a.containerInstance=l,!this.openDialogs.length){let d=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(pa(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(d)}):this._hideNonDialogContentFromAssistiveTechnology(d)}return this._attachDialogContent(n,a,l,r),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){Hs(this.openDialogs,n=>n.close())}getDialogById(n){return this.openDialogs.find(r=>r.id===n)}ngOnDestroy(){Hs(this._openDialogsAtThisLevel,n=>{n.config.closeOnDestroy===!1&&this._removeOpenDialog(n,!1)}),Hs(this._openDialogsAtThisLevel,n=>n.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(n){let r=new ir({positionStrategy:n.positionStrategy||Zu().centerHorizontally().centerVertically(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,width:n.width,height:n.height,disposeOnNavigation:n.closeOnNavigation,disableAnimations:n.disableAnimations});return n.backdropClass&&(r.backdropClass=n.backdropClass),r}_attachContainer(n,r,i){let o=i.injector||i.viewContainerRef?.injector,s=[{provide:gn,useValue:i},{provide:sr,useValue:r},{provide:or,useValue:n}],a;i.container?typeof i.container=="function"?a=i.container:(a=i.container.type,s.push(...i.container.providers(i))):a=f_;let l=new pn(a,i.viewContainerRef,De.create({parent:o||this._injector,providers:s}));return n.attach(l).instance}_attachDialogContent(n,r,i,o){if(n instanceof fr){let s=this._createInjector(o,r,i,void 0),a={$implicit:o.data,dialogRef:r};o.templateContext&&(a=y(y({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),i.attachTemplatePortal(new mn(n,null,a,s))}else{let s=this._createInjector(o,r,i,this._injector),a=i.attachComponentPortal(new pn(n,o.viewContainerRef,s));r.componentRef=a,r.componentInstance=a.instance}}_createInjector(n,r,i,o){let s=n.injector||n.viewContainerRef?.injector,a=[{provide:p_,useValue:n.data},{provide:sr,useValue:r}];return n.providers&&(typeof n.providers=="function"?a.push(...n.providers(r,n,i)):a.push(...n.providers)),n.direction&&(!s||!s.get(Nn,null,{optional:!0}))&&a.push({provide:Nn,useValue:__(n.direction)}),De.create({parent:s||o,providers:a})}_removeOpenDialog(n,r){let i=this.openDialogs.indexOf(n);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(n){if(n.parentElement){let r=n.parentElement.children;for(let i=r.length-1;i>-1;i--){let o=r[i];o!==n&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Hs(t,e){let n=t.length;for(;n--;)e(t[n])}var _i=class{lastWidth;lastHeight;resizeTimeout=null;debounceDelay=200;onResizeCallback;constructor(e){this.onResizeCallback=e,this.lastWidth=window.innerWidth,this.lastHeight=window.innerHeight,window.addEventListener("resize",this.debouncedResize),window.addEventListener("orientationchange",this.handleImmediateResize)}destroy(){window.removeEventListener("resize",this.debouncedResize),window.removeEventListener("orientationchange",this.handleImmediateResize)}handleImmediateResize=()=>{this.triggerResize()};debouncedResize=()=>{this.resizeTimeout!==null&&clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.triggerResize()},this.debounceDelay)};triggerResize(){let e=window.innerWidth,n=window.innerHeight;(n!==this.lastHeight||e!==this.lastWidth)&&(this.onResizeCallback(),this.lastWidth=e,this.lastHeight=n)}};var gi=class t{static cache=new Map;static loadingPromises=new Map;async getSvg(e){if(t.cache.has(e))return t.cache.get(e);if(t.loadingPromises.has(e))return t.loadingPromises.get(e);let n=this.fetchSvgContent(e);t.loadingPromises.set(e,n);try{let r=await n;return t.cache.set(e,r),r}finally{t.loadingPromises.delete(e)}}getCachedSvg(e){return t.cache.get(e)??null}async preloadIcons(e){let n=e.map(r=>this.getSvg(r).catch(i=>(ae.error(`Failed to preload icon: ${r}`,i),"")));await Promise.all(n)}clearCache(){t.cache.clear(),t.loadingPromises.clear()}async fetchSvgContent(e){let n=`${Ye.baseURL}/svg/${e}.svg`;try{return(await uc(n,{cache:"force-cache",headers:{Accept:"image/svg+xml,text/plain"}})).data}catch(r){return ae.error(`Unable to get the icon: ${e}`,r),""}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})};var vi=class t{name=Ne.required();rawSvg=Ue("");sanitisedSvg=rt(()=>this.sanitizer.bypassSecurityTrustHtml(this.rawSvg()));sanitizer=x(Ba);iconService=x(gi);constructor(){it(()=>{let e=this.name();this.loadIcon(e)})}async loadIcon(e){try{let n=await this.iconService.getSvg(e);this.rawSvg.set(n)}catch{this.rawSvg.set("")}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ee({type:t,selectors:[["cooee-icon"]],hostAttrs:["role","img"],hostVars:2,hostBindings:function(n,r){n&2&&(We("innerHTML",r.sanitisedSvg(),Cn),He("aria-label",r.name()))},inputs:{name:[1,"name"]},decls:0,vars:0,template:function(n,r){},encapsulation:2})};var g_=[[["swiper-slides"]]],v_=["swiper-slides"],Qu=class t{options=Ne.required();slideChange=vt();elementRef=x(Ae);swiperInstance;initToken=0;resizeDebouncer=new _i(this.onResize.bind(this));constructor(){it(()=>{this.options()&&this.reInitSwiper()})}get swiper(){return this.swiperInstance}ngOnDestroy(){this.resizeDebouncer?.destroy(),this.swiperInstance?.destroy?.(),this.swiperInstance=void 0}async initSwiper(e=this.initToken){if(await Ja(),e!==this.initToken){ae.warn("Swiper token not matching");return}let n=this.elementRef.nativeElement;this.swiperInstance=new window.CooeeSDK.Swiper(n,y({navigation:{nextEl:n.querySelector(".swiper-button-next"),prevEl:n.querySelector(".swiper-button-prev")}},this.options())),this.swiperInstance.on("slideChange",r=>{this.slideChange.emit(r)})}onResize(){this.swiperInstance?(ae.verbose("Updating swiper"),this.swiperInstance.update()):(ae.verbose("Reinitialising swiper"),this.reInitSwiper())}reInitSwiper(){this.initToken++;let e=this.initToken;this.swiperInstance?.destroy?.(),this.swiperInstance=void 0,this.initSwiper(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ee({type:t,selectors:[["cooee-swiper"]],hostAttrs:[1,"swiper"],inputs:{options:[1,"options"]},outputs:{slideChange:"slideChange"},ngContentSelectors:v_,decls:4,vars:0,consts:[[1,"swiper-wrapper"],[1,"swiper-button-prev"],[1,"swiper-button-next"]],template:function(n,r){n&1&&(wa(g_),ge(0,"div",0),Da(1),xe(),Rt(2,"div",1)(3,"div",2))},styles:[`:host{display:block}.swiper-wrapper{scrollbar-width:none;display:flex}.swiper-wrapper::-webkit-scrollbar{display:none}
20
+ `],encapsulation:2})};function y_(t,e){if(t&1&&(ge(0,"span",1),ye(1),xe()),t&2){Re();let n=gt(0);$(),Kt(n.heading)}}function E_(t,e){if(t&1&&(ge(0,"span",2),ye(1),xe()),t&2){Re();let n=gt(0);$(),Kt(n.subHeading)}}var ed=class t{card=Ne.required();linkClicked=vt();linkAfterSanity(){return this.card()?.buttonLink?.startsWith("https")?this.card().buttonLink:null}clickLink(e){e.stopPropagation(),this.linkClicked.emit()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ee({type:t,selectors:[["cooee-video-card"]],inputs:{card:[1,"card"]},outputs:{linkClicked:"linkClicked"},decls:6,vars:6,consts:[[1,"video-card-details"],[1,"heading"],[1,"subheading"],["rel","noopener noreferrer",1,"cta-button",3,"click","href","target"]],template:function(n,r){if(n&1){let i=zt();Nt(0),ge(1,"div",0),je(2,y_,2,1,"span",1),je(3,E_,2,1,"span",2),ge(4,"a",3),Dn("click",function(s){return Dt(i),At(r.clickLink(s))}),ye(5),xe()()}if(n&2){let i=Mt(r.card());$(2),Ge(i!=null&&i.heading?2:-1),$(),Ge(i!=null&&i.subHeading?3:-1),$(),We("href",r.linkAfterSanity(),Tn)("target",i.newTab?"_blank":"_self"),$(),Xt(" ",i==null?null:i.buttonTitle," ")}},styles:["[_nghost-%COMP%]{display:block}.video-card-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.75px;font-size:14px;line-height:normal}.video-card-details[_ngcontent-%COMP%] .cta-button[_ngcontent-%COMP%]{text-align:center;background-color:#fff;border-radius:var(--lc-button-radius);padding:7.5px 15px;font-weight:500;color:var(--lc-primary-button-bg-color);font-size:12px;border:0;text-decoration:none}.video-card-details[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%], .video-card-details[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{text-align:start;color:#000;font-weight:600;overflow:hidden}.video-card-details[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{font-size:18px}.video-card-details[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{font-size:16px}"],changeDetection:0})};function b_(t,e){t&1&&Fi(0,"cooee-icon",1)}function S_(t,e){t&1&&Fi(0,"cooee-icon",2)}var td=class t{muted=Pa.required();videoEl=Ne.required();toggled=vt();constructor(){it(()=>{this.videoEl().muted=this.muted(),this.muted()||this.videoEl().play()})}toggle(e){e.stopPropagation(),e.preventDefault(),this.muted.update(n=>!n),this.toggled.emit(this.muted())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ee({type:t,selectors:[["cooee-mute-toggle"]],inputs:{muted:[1,"muted"],videoEl:[1,"videoEl"]},outputs:{muted:"mutedChange",toggled:"toggled"},decls:3,vars:5,consts:[["type","button",3,"click"],["name","unmute"],["name","mute"]],template:function(n,r){n&1&&(nt(0,"button",0),wn("click",function(o){return r.toggle(o)}),je(1,b_,1,0,"cooee-icon",1)(2,S_,1,0,"cooee-icon",2),_t()),n&2&&(An("unmute",!r.muted()),He("aria-label",r.muted()?"Unmute video":"Mute video")("aria-pressed",r.muted()),$(),Ge(r.muted()?1:2))},dependencies:[vi],styles:["button[_ngcontent-%COMP%]{width:44px;height:44px;display:flex;justify-content:center;align-items:center;border:none;border-radius:100%;background:#00000080;background:color-mix(in oklab,#000 50%,transparent)}"]})};var yi=class t{transform(e){return e==null?null:ds(e)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=Ea({name:"cooeeCurrency",type:t,pure:!0})};function C_(t,e){if(t&1&&(Rt(0,"span",6),On(1,"cooeeCurrency"),On(2,"safeHtml")),t&2){Re();let n=gt(7);We("innerHTML",xn(2,3,xn(1,1,n.cmp)),Cn)}}function T_(t,e){t&1&&ye(0," Out of Stock ")}function I_(t,e){t&1&&ye(0," Add To Cart ")}var nd=class t{buttonClick=vt();item=Ne.required();isButtonDisabled=rt(()=>{let e=this.item();return e.hasVariants()?!e.vars.some(n=>n.isAvailable):!e.selectedOrFirstVariant.value.isAvailable});addToCartClicked(e){e.stopPropagation(),this.buttonClick.emit(this.item())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ee({type:t,selectors:[["cooee-item-card"]],inputs:{item:[1,"item"]},outputs:{buttonClick:"buttonClick"},decls:20,vars:14,consts:[[1,"card-body"],[1,"item-image",3,"alt","src"],[1,"item-info"],[1,"item-name"],[1,"prices"],[1,"item-price",3,"innerHTML"],[1,"item-cmp-price",3,"innerHTML"],["type","button",1,"shop-now-button",3,"click","href"],[1,"card-footer"],["type","button",1,"cta-button",3,"click","disabled"],["href","/cart","title","View Cart",1,"view-cart-button"],["width","32","height","32","src","https://img.icons8.com/material-sharp/48/shopping-cart.png","alt","shopping-cart"]],template:function(n,r){if(n&1){let i=zt();Ca(0),ge(1,"div",0),Rt(2,"img",1),ge(3,"div",2)(4,"div",3),ye(5),xe(),ge(6,"div",4),Nt(7),Rt(8,"span",5),On(9,"cooeeCurrency"),On(10,"safeHtml"),je(11,C_,3,5,"span",6),xe(),ge(12,"a",7),Dn("click",function(s){return Dt(i),At(s.stopPropagation())}),ye(13," Shop now "),xe()()(),ge(14,"div",8)(15,"button",9),Dn("click",function(s){return Dt(i),At(r.addToCartClicked(s))}),je(16,T_,1,0)(17,I_,1,0),xe(),ge(18,"a",10),Rt(19,"img",11),xe()(),Ta()}if(n&2){let i=r.item().selectedOrFirstVariant.value;$(2),We("alt",Ra(r.item().name))("src",r.item().firstImageURL,Tn),$(3),Xt(" ",r.item().name," "),$(2);let o=Mt(i.price);$(),We("innerHTML",xn(10,12,xn(9,10,o.d)),Cn),$(3),Ge(o.cmp?11:-1),$(),We("href","/products/"+r.item().slug,Tn),$(3),We("disabled",r.isButtonDisabled()),$(),Ge(r.isButtonDisabled()?16:17)}},dependencies:[yi,Ua],styles:["[_nghost-%COMP%]{max-width:100%;position:relative;display:flex;flex-direction:column;gap:8px;padding:8px}.card-body[_ngcontent-%COMP%]{display:flex;gap:8px;width:100%;align-items:flex-start}.item-image[_ngcontent-%COMP%]{width:70px;height:70px;object-fit:cover;box-sizing:border-box;border-radius:var(--lc-media-radius, 8px)}.item-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.5px;font-size:10.5px}.item-name[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.item-cmp-price[_ngcontent-%COMP%]{margin-left:10px;display:none}.card-footer[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center}.cta-button[_ngcontent-%COMP%]{padding:10px;border:none;width:100%;text-align:center}.shop-now-button[_ngcontent-%COMP%]{display:none;background-color:rgb(var(--lc-primary-button-bg-color));color:rgb(var(--lc-primary-button-color));font-size:var(--lc-button-size);font-weight:var(--lc-primary-button-weight);text-transform:var(--lc-primary-button-transform);border-radius:var(--lc-button-radius);transition:filter .12s ease,background-color .2s ease,color .2s ease;font-size:12px;width:fit-content;height:auto;text-align:center;z-index:4;padding:4px 10px;text-decoration:none}.shop-now-button[_ngcontent-%COMP%]:hover{filter:brightness(.95)}.shop-now-button[_ngcontent-%COMP%]:active{filter:brightness(.9)}.shop-now-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid rgb(var(--lc-primary-color, 0, 0, 0));outline-offset:2px}.view-cart-button[_ngcontent-%COMP%]{display:none}"]})};export{ae as a,k_ as b,yt as c,Ja as d,Qa as e,yr as f,ic as g,_f as h,gf as i,vf as j,Hi as k,Wi as l,tu as m,Am as n,ds as o,yi as p,$m as q,Ym as r,sr as s,p_ as t,F0 as u,_i as v,vi as w,Qu as x,ed as y,td as z,nd as A};
@@ -0,0 +1 @@
1
+ var k=Object.create;var h=Object.defineProperty,l=Object.defineProperties,m=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var g=(a,b,c)=>b in a?h(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c,r=(a,b)=>{for(var c in b||={})i.call(b,c)&&g(a,c,b[c]);if(f)for(var c of f(b))j.call(b,c)&&g(a,c,b[c]);return a},s=(a,b)=>l(a,n(b));var t=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var u=(a,b)=>{var c={};for(var d in a)i.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&f)for(var d of f(a))b.indexOf(d)<0&&j.call(a,d)&&(c[d]=a[d]);return c};var v=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var q=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of o(b))!i.call(a,e)&&e!==c&&h(a,e,{get:()=>b[e],enumerable:!(d=m(b,e))||d.enumerable});return a};var w=(a,b,c)=>(c=a!=null?k(p(a)):{},q(b||!a||!a.__esModule?h(c,"default",{value:a,enumerable:!0}):c,a));var x=(a,b,c)=>g(a,typeof b!="symbol"?b+"":b,c);export{r as a,s as b,t as c,u as d,v as e,w as f,x as g};
@@ -0,0 +1,2 @@
1
+ import{a as k}from"./chunk-4VKHDOSF.js";import{$a as p,Aa as b,K as d,M as n,Na as a,Oa as h,V as m,_ as l,ab as v,bb as w,ha as g,hb as y,ia as c,ja as u,oa as r,pa as o,qa as f,sb as D,wb as E,ya as x}from"./chunk-KFBNKCMH.js";import"./chunk-V7UGKYBN.js";function _(i,t){if(i&1&&(r(0,"li")(1,"span",2),a(2),p(3,"date"),o(),a(4,"\xA0 "),f(5,"span",3),p(6,"safeHtml"),o()),i&2){let e=t.$implicit;n(2),h(w(3,2,e.time,"hh:mm:ss a")),n(3),x("innerHTML",v(6,5,e.message),d)}}var C=class i{logs=y.required();constructor(){}shareLogs(){let t=JSON.stringify(this.logs());if(navigator.share){navigator.share({text:t});return}navigator.clipboard.writeText(t)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=m({type:i,selectors:[["cooee-debugger"]],inputs:{logs:[1,"logs"]},features:[l([k])],decls:5,vars:0,consts:[["reversed",""],[1,"btn-copy",3,"click"],[2,"color","rgb(100, 116, 139)"],[3,"innerHTML"]],template:function(e,s){e&1&&(r(0,"ol",0),c(1,_,7,7,"li",null,g),o(),r(3,"button",1),b("click",function(){return s.shareLogs()}),a(4,"Share"),o()),e&2&&(n(),u(s.logs()))},dependencies:[E,D],styles:[`:host{display:block;position:fixed;top:calc(100vh - 90px);left:10px;right:10px;width:auto;max-width:100%;min-width:calc(100vw - 20px);height:80px;background:#fff;z-index:111111111111;overflow-y:auto;font-size:13px;line-height:1.5;padding:5px;font-family:Arial,"sans-serif";font-weight:500;border:2px solid rgb(245,28,143);border-radius:6px;resize:both;-webkit-user-select:auto;user-select:auto;box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px}@media (min-width: 768px){:host{width:600px;min-width:auto}}ol{margin:0;padding:0 0 0 28px}.btn-copy{position:absolute;top:5px;right:5px;background:#f51c8f;border:none;cursor:pointer;padding:6px 8px;font-size:12px;font-weight:500;border-radius:6px;color:#fff}
2
+ `],encapsulation:3})};export{C as DebuggerComponent};