@letscooee/web-sdk 11.0.0-rc.1 → 11.0.0-rc.2

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 Ea,$a as On,Aa as Dn,Ab as pr,B as De,Ba as Re,Bb as ot,C as me,Ca as Ia,Cb as We,Da as wa,E as Ue,Ea as Da,Eb as mr,Fa as Aa,Fb as Rn,Ga as Oa,Gb as Ga,H as Sn,Hb as Nn,I as Ae,Ib as Wa,J as va,Jb as $a,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 Ri,Ta as Nt,U as Ni,Ua as Mt,V as ee,Va as vt,W as Ot,Wa as xa,X as Yt,Xa as Ra,Y as ya,Z as xt,_a as Na,a as la,aa as Oe,ab as xn,ba as Fe,c as he,ca as mt,d as ua,da as Mi,ea as _t,eb as rt,fa as He,fb as it,g as da,ga as je,gb as yt,hb as Ne,i as fa,ia as Pi,ja as ki,jb as Ma,ka as ba,kb as Fi,l as ha,la as nt,m as pa,ma as gt,n as ma,na as Li,nb as Pa,o as _a,oa as _e,ob as ka,pa as xe,q as ga,qa as Rt,qb as La,s as pe,t as wt,tb as Fa,u as Le,ua as Sa,v as R,va as Ca,vb as Va,w as dr,wa as Ta,wb as Ba,x as Dt,xa as zt,xb as Ua,y as At,ya as Ge,yb as Ha,za as wn,zb as ja}from"./chunk-LSQP3FNO.js";import{a as y,b as V,c as bn,d as ca,e as Oi,f as xi,g as ur}from"./chunk-V7UGKYBN.js";var Ka=Oi((za,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)})(za)});var sc=Oi((oc,Hi)=>{"use strict";(function(t){if(typeof oc=="object"&&typeof Hi<"u")Hi.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 x=i[g][1][N];return a(x||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=x;function x(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&&x(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(J){return l.reject(D,J)}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)x(D,j);else{D.state=g,D.outcome=H;for(var J=-1,X=D.queue.length;++J<X;)D.queue[J].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 x(D,H){var F=!1;function j(Ie){F||(F=!0,l.reject(D,Ie))}function J(Ie){F||(F=!0,l.resolve(D,Ie))}function X(){H(J,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 J=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(yi,function(Gt){j||(j=!0,l.reject(Ie,Gt))});function yi(Gt){J[ar]=Gt,++X===F&&!j&&(j=!0,l.resolve(Ie,J))}}}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 J=-1,X=new this(a);++J<F;)se(D[J]);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 x(){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 J(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]||js(),c.db)if(h)J(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 yi(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 Hs(c){return c&&c.__local_forage_encoded_blob}function nd(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 rd(c){J(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 rd(c).then(function(){tt(c,h,u,m-1)})}).catch(u);u(p)}}function js(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function id(c){var h=this,u={db:null};if(c)for(var m in c)u[m]=c[m];var _=U[u.name];_||(_=js(),U[u.name]=_),_.forages.push(h),h._initReady||(h._initReady=h.ready,h.ready=nd);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 od(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),Hs(I)&&(I=Gt(I)),_(I)},T.onerror=function(){p(T.error)}}catch(I){p(I)}})}).catch(p)});return v(m,h),m}function sd(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;Hs(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 ad(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:yi(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 cd(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 ld(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 ud(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 dd(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 fd(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 hd(c,h){h=x.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;J(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 Z=d.open(c.name,C);Z.onerror=function(we){var En=Z.result;En.close(),Q(we)},Z.onupgradeneeded=function(){var we=Z.result;we.deleteObjectStore(c.storeName)},Z.onsuccess=function(){var we=Z.result;we.close(),W(we)}});return G.then(function(W){T.db=W;for(var Q=0;Q<I.length;Q++){var Z=I[Q];Z._dbInfo.db=W,X(Z._dbInfo)}}).catch(function(W){throw(se(c,W)||E.resolve()).catch(function(){}),W})}}):_=b.then(function(S){J(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 Z=Q.result;Z&&Z.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 Z=Q.result;Z&&Z.close(),G(Z)}});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 pd={_driver:"asyncStorage",_initStorage:id,_support:g(),iterate:sd,getItem:od,setItem:ad,removeItem:cd,clear:ld,length:ud,key:dd,keys:fd,dropInstance:hd};function md(){return typeof openDatabase=="function"}var ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_d="~~local_forage_type~",Gs=/^~~local_forage_type~([^~]+)~/,cr="__lfsc__:",Ei=cr.length,bi="arbf",Si="blob",Ws="si08",$s="ui08",Ys="uic8",zs="si16",Ks="si32",Xs="ur16",qs="ui32",Js="fl32",Zs="fl64",Qs=Ei+bi.length,ea=Object.prototype.toString;function ta(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 Ci(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 gd(c,h){var u="";if(c&&(u=ea.call(c)),c&&(u==="[object ArrayBuffer]"||c.buffer&&ea.call(c.buffer)==="[object ArrayBuffer]")){var m,_=cr;c instanceof ArrayBuffer?(m=c,_+=bi):(m=c.buffer,u==="[object Int8Array]"?_+=Ws:u==="[object Uint8Array]"?_+=$s:u==="[object Uint8ClampedArray]"?_+=Ys:u==="[object Int16Array]"?_+=zs:u==="[object Uint16Array]"?_+=Xs:u==="[object Int32Array]"?_+=Ks:u==="[object Uint32Array]"?_+=qs:u==="[object Float32Array]"?_+=Js:u==="[object Float64Array]"?_+=Zs:h(new Error("Failed to get type for BinaryArray"))),h(_+Ci(m))}else if(u==="[object Blob]"){var p=new FileReader;p.onload=function(){var b=_d+c.type+"~"+Ci(this.result);h(cr+Si+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 vd(c){if(c.substring(0,Ei)!==cr)return JSON.parse(c);var h=c.substring(Qs),u=c.substring(Ei,Qs),m;if(u===Si&&Gs.test(h)){var _=h.match(Gs);m=_[1],h=h.substring(_[0].length)}var p=ta(h);switch(u){case bi:return p;case Si:return f([p],{type:m});case Ws:return new Int8Array(p);case $s:return new Uint8Array(p);case Ys:return new Uint8ClampedArray(p);case zs:return new Int16Array(p);case Xs:return new Uint16Array(p);case Ks:return new Int32Array(p);case qs:return new Uint32Array(p);case Js:return new Float32Array(p);case Zs:return new Float64Array(p);default:throw new Error("Unkown type: "+u)}}var Ti={serialize:gd,deserialize:vd,stringToBuffer:ta,bufferToString:Ci};function na(c,h,u,m){c.executeSql("CREATE TABLE IF NOT EXISTS "+h.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],u,m)}function yd(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){na(S,u,function(){h._dbInfo=u,p()},function(C,T){b(T)})},b)});return u.serializer=Ti,_}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):na(C,h,function(){C.executeSql(u,m,_,p)},p)},p):p(b,S)},p)}function Ed(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 bd(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 ra(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(ra.apply(_,[c,C,u,m-1]));return}S(B)}})})}).catch(S)});return v(p,u),p}function Sd(c,h,u){return ra.apply(this,[c,h,u,1])}function Cd(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 Td(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 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,"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 wd(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 Dd(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 Ad(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 Od(c,h){h=x.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(Ad(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(Z,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 xd={_driver:"webSQLStorage",_initStorage:yd,_support:md(),iterate:bd,getItem:Ed,setItem:Sd,removeItem:Cd,clear:Td,length:Id,key:wd,keys:Dd,dropInstance:Od};function Rd(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function ia(c,h){var u=c.name+"/";return c.storeName!==h.storeName&&(u+=c.storeName+"/"),u}function Nd(){var c="_localforage_support_test";try{return localStorage.setItem(c,!0),localStorage.removeItem(c),!1}catch{return!0}}function Md(){return!Nd()||localStorage.length>0}function Pd(c){var h=this,u={};if(c)for(var m in c)u[m]=c[m];return u.keyPrefix=ia(c,h._defaultConfig),Md()?(h._dbInfo=u,u.serializer=Ti,E.resolve()):E.reject()}function kd(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 Ld(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 Fd(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 Vd(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 Bd(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 Ud(c){var h=this,u=h.keys().then(function(m){return m.length});return v(u,c),u}function Hd(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 jd(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 Gd(c,h){if(h=x.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(ia(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 Wd={_driver:"localStorageWrapper",_initStorage:Pd,_support:Rd(),iterate:Fd,getItem:Ld,setItem:jd,removeItem:Hd,clear:kd,length:Ud,key:Vd,keys:Bd,dropInstance:Gd},$d=function(h,u){return h===u||typeof h=="number"&&typeof u=="number"&&isNaN(h)&&isNaN(u)},Yd=function(h,u){for(var m=h.length,_=0;_<m;){if($d(h[_],u))return!0;_++}return!1},oa=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"},yn={},sa={},Wt={INDEXEDDB:pd,WEBSQL:xd,LOCALSTORAGE:Wd},zd=[Wt.INDEXEDDB._driver,Wt.WEBSQL._driver,Wt.LOCALSTORAGE._driver],lr=["dropInstance"],Ii=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(lr),Kd={description:"",driver:zd.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Xd(c,h){c[h]=function(){var u=arguments;return c.ready().then(function(){return c[h].apply(c,u)})}}function wi(){for(var c=1;c<arguments.length;c++){var h=arguments[c];if(h)for(var u in h)h.hasOwnProperty(u)&&(oa(h[u])?arguments[0][u]=h[u].slice():arguments[0][u]=h[u])}return arguments[0]}var qd=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=wi({},Kd),this._config=wi({},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=Ii.concat("_initStorage"),O=0,B=I.length;O<B;O++){var G=I[O],W=!Yd(lr,G);if((W||u[G])&&typeof u[G]!="function"){S(T);return}}var Q=function(){for(var En=function(Qd){return function(){var ef=new Error("Method "+Qd+" is not implemented by the current driver"),aa=E.reject(ef);return v(aa,arguments[arguments.length-1]),aa}},Di=0,Zd=lr.length;Di<Zd;Di++){var Ai=lr[Di];u[Ai]||(u[Ai]=En(Ai))}};Q();var Z=function(En){yn[C]&&console.info("Redefining LocalForage driver: "+C),yn[C]=u,sa[C]=En,b()};"_support"in u?u._support&&typeof u._support=="function"?u._support().then(Z,S):Z(!!u._support):Z(!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(Ti);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;oa(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!!sa[u]},c.prototype._extend=function(u){wi(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=Ii.length;u<m;u++)Xd(this,Ii[u])},c.prototype.createInstance=function(u){return new c(u)},c}(),Jd=new qd;i.exports=Jd},{3:3}]},{},[4])(4)})});var ac=Oi(($i,Yi)=>{"use strict";(function(t,e){typeof $i=="object"&&typeof Yi<"u"?Yi.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.fetchRetry=e())})($i,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(x){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(x,null,M)).then(function(U){U?N(x,null,M):E(M)}).catch(v)}catch(U){v(U)}else x<d?N(x,null,M):E(M)}).catch(function(M){if(typeof f=="function")try{Promise.resolve(f(x,M,null)).then(function(U){U?N(x,M,null):v(M)}).catch(function(U){v(U)})}catch(U){v(U)}else x<d?N(x,M,null):v(M)})};function N(x,P,M){var U=typeof g=="function"?g(x,P,M):g;setTimeout(function(){w(++x)},U)}w(0)})}};function e(r){return Number.isInteger(r)&&r>=0}function n(r){this.name="ArgumentError",this.message=r}return t})});var Vi="11.0.0-rc.2";var nf=Vi.split("-")[0].split(".").slice(0,3).map(t=>t.padStart(2,"0")).join("");var Ya="CooeeSDK",qt=Vi,A_=parseInt(nf,10);var gr=`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${qt}/dist`,$e={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=xi(Ka());var ce=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 P_(t=Ya){Ee.default.useDefaults({formatter:function(n){n.unshift(`${t} (v${qt}):`)}});let e=rf();(e==="1"||e==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Ee.default.setLevel(Ee.default[localStorage.cooeeLogLevel]):Ee.default.setLevel($e.debug?Ee.default.TRACE:Ee.default.OFF)}function rf(){return new URL(location.href).searchParams?.get("cooee-debug")}var Et=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 Xa=0;function of(t=document.head){qa($e.styleURL,t,"cooee-global-styles")}function sf(t=document.head){qa($e.swiperStyleURL,t,"cooee-swiper-styles")}function qa(t,e=document.head,n){let r=document.createElement("link");r.rel="stylesheet",r.href=t,r.id=n,e.appendChild(r)}function Bi(t,e=document.head){if(!t)return;Xa++;let n=document.createElement("style");n.id=`cooee-app-css-${Xa}`,n.textContent=t,e.appendChild(n)}async function Ja(){let t=(await import("./swiper-bundle-WHJS64TU.js")).default;return window.CooeeSDK.Swiper=t}function Za(t,e=!0){if(!t)return;e&&sf(t),of(t);let n=Et.get().website.commonCSS;Bi(n,t)}var cf={"[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"},og=V(y({},cf),{"[class.ng-submitted]":"isSubmitted"});var lf=new Le("",{providedIn:"root",factory:()=>tc}),tc="always";var uf=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Ot({type:t});static \u0275inj=wt({})}return t})();var nc=(()=>{class t{static withConfig(n){return{ngModule:t,providers:[{provide:lf,useValue:n.callSetDisabledState??tc}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Ot({type:t});static \u0275inj=wt({imports:[uf]})}return t})();var yr=class t{cooeeEvent=new Oe;cooeeCTA=new Oe;elementRef=R(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(){ce.verbose("Init",this.constructor.name);let e=this.elementRef.nativeElement.shadowRoot;e&&Za(e,this.hasSwiper)}ngOnDestroy(){ce.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&&Ta(0)},encapsulation:2})};var df=(t,e)=>({"--option-color":t,"background-color":e}),ic=(t,e)=>e.id;function ff(t,e){if(t&1&&(nt(0,"span",6),ye(1),gt()),t&2){Re();let n=vt(0);$(),Kt(n)}}function hf(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))}),He(2,ff,2,1,"span",6),gt()}if(t&2){let n=e.$implicit,r=Re().$implicit,i=vt(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),ba("title",s)("ngStyle",Na(14,df,a,a)),_t("aria-checked",l?"true":"false")("data-value",o)("aria-disabled",n.disabled?"true":null)("aria-label",s),$(),je(i?-1:2)}}function pf(t,e){if(t&1&&(nt(0,"div"),Nt(1),nt(2,"div",1),ye(3),gt(),nt(4,"div",2),ye(5),gt(),nt(6,"div",3),Pi(7,hf,3,17,"button",4,ic),gt()()),t&2){let n=e.$implicit,r=Re();hr(Ra("option-group ",n.name.toLowerCase())),$(),Mt(r.hasHexColors(n)),$(2),Xt("",n.name,":"),$(2),Kt(r.selectedOptions()[n.name]),$(),_t("aria-label",n.name),$(),ki(n.optionValues)}}var Mn=t=>t.trim().toLowerCase(),rc=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){ce.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=Et.get().website?.itemSwatchMapping;n&&Bi(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&&Pi(0,pf,9,7,"div",0,ic),n&2&&ki(r.options())},dependencies:[Fa,La,nc],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-color-button, 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 mf=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}(mf||{});var _f=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}(_f||{});var gf=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}(gf||{});var Ui=class{static ID="id";static SESSION_LANDING_PAGE="landing";static SESSION_LAST_USED_TIME="lastUsedTime";static SESSION_SYNCED="synced";static APP_CONFIG="conf";static DEVICE_ID="did";static SDK_TOKEN="token";static FIRST_SEEN="firstSeen";static SESSION_NUMBER="sessionNumber";static GA_CLIENT_ID="gacid";static CURRENT_CART="cart";static MUTED="muted"};var ji=xi(sc());function Er(t){return ji.default.createInstance({name:"lc",storeName:t,driver:ji.default.LOCALSTORAGE})}var Zt=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 Zt{};ur(Pn,"storeName","usr"),Pn.storage=Er(Pn.storeName);var Gi=Pn;var kn=class kn extends Zt{};ur(kn,"storeName","ses"),kn.storage=Er(kn.storeName);var Wi=kn;var cc=xi(ac());var vf=5,yf=500,Ef=(0,cc.default)(fetch),bf={retryDelay:t=>Math.pow(2,t)*yf,retryOn:(t,e,n)=>t>=vf?!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 lc(t,e,n){let r=Date.now(),i=new Request(t,e),o;try{o=await Ef(i,y(y({},bf),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 Sf(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 Sf(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 Ye="9.42.0";function Pt(){return kt(L),L}function kt(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Ye,e[Ye]=e[Ye]||{}}function st(t,e,n=L){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[Ye]=r[Ye]||{};return i[t]||(i[t]=e())}var zi=["debug","info","warn","error","log","assert","trace"],Cf="Sentry Logger ",Qt={};function bt(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 Tf(){Xi().enabled=!0}function If(){Xi().enabled=!1}function uc(){return Xi().enabled}function wf(...t){Ki("log",...t)}function Df(...t){Ki("warn",...t)}function Af(...t){Ki("error",...t)}function Ki(t,...e){k&&uc()&&bt(()=>{L.console[t](`${Cf}[${t}]:`,...e)})}function Xi(){return k?st("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var A={enable:Tf,disable:If,isEnabled:uc,log:wf,warn:Df,error:Af};var ze="?",dc=/\(error: (.*)\)/,fc=/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=dc.test(l)?l.replace(dc,"$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 hc(o.slice(i))}}function hc(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(br(e).function||"")&&e.pop(),e.reverse(),fc.test(br(e).function||"")&&(e.pop(),fc.test(br(e).function||"")&&e.pop()),e.slice(0,50).map(n=>V(y({},n),{filename:n.filename||br(e).filename,function:n.function||ze}))}function br(t){return t[t.length-1]||{}}var qi="<anonymous>";function Me(t){try{return!t||typeof t!="function"?qi:t.name||qi}catch{return qi}}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={},pc={};function ue(t,e){Cr[t]=Cr[t]||[],Cr[t].push(e)}function de(t,e){if(!pc[t]){pc[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 Zi=null;function Qi(t){let e="error";ue(e,t),de(e,Of)}function Of(){Zi=L.onerror,L.onerror=function(t,e,n,r,i){return te("error",{column:r,error:i,line:n,msg:t,url:e}),Zi?Zi.apply(this,arguments):!1},L.onerror.__SENTRY_INSTRUMENTED__=!0}var eo=null;function to(t){let e="unhandledrejection";ue(e,t),de(e,xf)}function xf(){eo=L.onunhandledrejection,L.onunhandledrejection=function(t){return te("unhandledrejection",t),eo?eo.apply(this,arguments):!0},L.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var mc=Object.prototype.toString;function Lt(t){switch(mc.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 mc.call(t)===`[object ${e}]`}function Tr(t){return en(t,"ErrorEvent")}function Ir(t){return en(t,"DOMError")}function no(t){return en(t,"DOMException")}function fe(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 ro(t){return typeof Element<"u"&&Ve(t,Element)}function io(t){return en(t,"RegExp")}function ct(t){return!!(t?.then&&typeof t.then=="function")}function oo(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 _c(t){return typeof Request<"u"&&Ve(t,Request)}var so=L,Rf=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||Rf;for(;n&&o++<r&&(d=Nf(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 Nf(t,e){let n=t,r=[];if(!n?.tagName)return"";if(so.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&&fe(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 so.document.location.href}catch{return""}}function ao(t){if(!so.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 St(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 gc(t,e,n=!1){return fe(t)?io(e)?e.test(t):fe(e)?n?t===e:t.includes(e):!1:!1}function nn(t,e=[],n=!1){return e.some(r=>gc(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},yc(t));if(Vt(t)){let e=y({type:t.type,target:vc(t.target),currentTarget:vc(t.currentTarget)},yc(t));return typeof CustomEvent<"u"&&Ve(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function vc(t){try{return ro(t)?Vn(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function yc(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 co(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 St(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:St(o,e)}return""}function Mf(){let t=L;return t.crypto||t.msCrypto}function re(t=Mf()){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 Ec(t){return t.exception?.values?.[0]}function Ke(t){let{message:e,event_id:n}=t;if(e)return e;let r=Ec(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=Ec(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(Pf(t))return!0;try{be(t,"__sentry_captured__",!0)}catch{}return!1}function Pf(t){try{return t.__sentry_captured__}catch{}}var Sc=1e3;function qe(){return Date.now()/Sc}function kf(){let{performance:t}=L;if(!t?.now||!t.timeOrigin)return qe;let e=t.timeOrigin;return()=>(e+t.now())/Sc}var bc;function ve(){return(bc??(bc=kf()))()}function Cc(t){let e=ve(),n={sid:re(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Lf(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 Tc(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),lt(t,n)}function Lf(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 Ct(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]=Ct(r[i],e[i],n-1));return r}function lo(){return re()}function xr(){return re().substring(16)}var uo="_sentrySpan";function fo(t,e){e?be(t,uo,e):delete t[uo]}function ho(t){return t[uo]}var Ff=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:lo(),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,fo(e,ho(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,fo(this,void 0),this._attachments=[],this.setPropagationContext({traceId:lo(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){let r=typeof n=="number"?n:Ff;if(r<=0)return this;let i=V(y({timestamp:qe()},e),{message:e.message?St(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:ho(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Ct(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 Ic(){return st("defaultCurrentScope",()=>new le)}function wc(){return st("defaultIsolationScope",()=>new le)}var po=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 po(Ic(),wc())}function Vf(t){return on().withScope(t)}function Bf(t,e){let n=on();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Dc(t){return on().withScope(()=>t(on().getIsolationScope()))}function Ac(){return{withIsolationScope:Dc,withScope:Vf,withSetScope:Bf,withSetIsolationScope:(t,e)=>Dc(e),getCurrentScope:()=>on().getScope(),getIsolationScope:()=>on().getIsolationScope()}}function Rr(t){let e=kt(t);return e.acs?e.acs:Ac()}function Je(){let t=Pt();return Rr(t).getCurrentScope()}function Ze(){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 Je().getClient()}function mo(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",_o="sentry.sample_rate",Oc="sentry.previous_trace_sample_rate",go="sentry.op",vo="sentry.origin";var yo="sentry.profile_id",Eo="sentry.exclusive_time";var Uf="_sentryScope",Hf="_sentryIsolationScope";function Pr(t){return{scope:t[Uf],isolationScope:t[Hf]}}var jf="sentry-",Gf=/^sentry-/;function Rc(t){let e=Wf(t);if(!e)return;let n=Object.entries(e).reduce((r,[i,o])=>{if(i.match(Gf)){let s=i.slice(jf.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function Wf(t){if(!(!t||!fe(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{let r=xc(n);return Object.entries(r).forEach(([i,o])=>{e[i]=o}),e},{}):xc(t)}function xc(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 Nc(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 Lc=1,Mc=!1;function bo(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 $f(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=ca(d,["spanId","traceId","traceFlags"]),{attributes:o}=a;return y({span_id:e,trace_id:n,sampled:r===Lc,attributes:o},i)})}function Pc(t){return typeof t=="number"?kc(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?kc(t.getTime()):ve()}function kc(t){return t>9999999999?t/1e3:t}function sn(t){if(zf(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(Yf(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:Pc(i),timestamp:Pc(s)||void 0,status:Kf(a),op:r[go],origin:r[vo],links:$f(l)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function Yf(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function zf(t){return typeof t.getSpanJSON=="function"}function Fc(t){let{traceFlags:e}=t.spanContext();return e===Lc}function Kf(t){if(!(!t||t.code===0))return t.code===1?"ok":t.message||"unknown_error"}var Xf="_sentryRootSpan";function Hn(t){return t[Xf]||t}function So(){Mc||(bt(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),Mc=!0)}function Vc(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 qf=/^o(\d+)\./,Jf=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Zf(t){return t==="http"||t==="https"}function Tt(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 Qf(t){let e=Jf.exec(t);if(!e){bt(()=>{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 Bc({host:o,pass:i,path:l,projectId:d,port:s,protocol:n,publicKey:r})}function Bc(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function eh(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+$/)?Zf(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 Uc(t){return t.match(qf)?.[1]}function Hc(t){let e=typeof t=="string"?Qf(t):Bc(t);if(!(!e||!eh(e)))return e}var th="_frozenDsc";function jc(t,e){let n=e.getOptions(),{publicKey:r,host:i}=e.getDsn()||{},o;n.orgId?o=String(n.orgId):i&&(o=Uc(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 Gc(t,e){let n=e.getPropagationContext();return n.dsc||jc(n.traceId,t)}function Co(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[_o]??i[Oc];function a(w){return(typeof s=="number"||typeof s=="string")&&(w.sample_rate=`${s}`),w}let l=n[th];if(l)return a(l);let d=o?.get("sentry.dsc"),g=d&&Rc(d);if(g)return a(g);let f=jc(t.spanContext().traceId,e),E=i[Mr],v=r.description;return E!=="url"&&v&&(f.transaction=v),Vc()&&(f.sampled=String(Fc(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 To("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function kr(t,e=3,n=100*1024){let r=Pe(t,e);return oh(r)>n?kr(t,e-1,n):r}function To(t,e,n=1/0,r=1/0,i=sh()){let[o,s]=i;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;let a=nh(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 To("",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]=To(v,w,l-1,r,i),f++}return s(e),g}function nh(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(oo(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=rh(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function rh(t){let e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function ih(t){return~-encodeURI(t).split(/%..|./).length}function oh(t){return ih(JSON.stringify(t))}function sh(){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 Wc(t,e){let[n,r]=t;return[n,[...r,e]]}function wo(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 Io(t){let e=kt(L);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function $c(t){let[e,n]=t,r=JSON.stringify(e);function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[Io(r),o]:r.push(typeof o=="string"?Io(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:ah(r)}function ah(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 Yc(t){let e=typeof t.data=="string"?Io(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}var ch={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 Do(t){return ch[t]}function Ao(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function zc(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:Tt(r)}),i&&{trace:i})}function lh(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 Kc(t,e,n,r){let i=Ao(n),o=y(y({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&e&&{dsn:Tt(e)}),s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return ut(o,[s])}function Xc(t,e,n,r){let i=Ao(n),o=t.type&&t.type!=="replay_event"?t.type:"event";lh(t,n?.sdk);let s=zc(t,i,r,e);return delete t.sdkProcessingMetadata,ut(s,[[{type:o},t]])}var Oo=0,qc=1,Jc=2;function ke(t){return new Be(e=>{e(t)})}function It(t){return new Be((e,n)=>{n(t)})}var Be=class t{constructor(e){this._state=Oo,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===Oo)return;let e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===qc&&n[1](this._value),this._state===Jc&&n[2](this._value),n[0]=!0)})}_runExecutor(e){let n=(o,s)=>{if(this._state===Oo){if(ct(s)){s.then(r,i);return}this._state=o,this._value=s,this._executeHandlers()}},r=o=>{n(qc,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 Zc(t,e){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=e;uh(t,e),r&&hh(t,r),ph(t,n),dh(t,i),fh(t,o)}function xo(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=Ct(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]=Ct(t[e],n,1)}function uh(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 dh(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function fh(t,e){t.sdkProcessingMetadata=y(y({},t.sdkProcessingMetadata),e)}function hh(t,e){t.contexts=y({trace:bo(e)},t.contexts),t.sdkProcessingMetadata=y({dynamicSamplingContext:Co(e)},t.sdkProcessingMetadata);let n=Hn(e),r=sn(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function ph(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,Qc,Br;function el(t){let e=L._sentryDebugIds;if(!e)return{};let n=Object.keys(e);return Br&&n.length===Qc||(Qc=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 tl(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(x=>x.name);mh(l,t),vh(l,d),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&_h(l,t.stackParser);let g=Eh(r,n.captureContext);n.mechanism&&Xe(l,n.mechanism);let f=i?i.getEventProcessors():[],E=Nr().getScopeData();if(o){let x=o.getScopeData();xo(E,x)}if(g){let x=g.getScopeData();xo(E,x)}let v=[...n.attachments||[],...E.attachments];v.length&&(n.attachments=v),Zc(l,E);let w=[...f,...E.eventProcessors];return Lr(w,l,n).then(x=>(x&&gh(x),typeof s=="number"&&s>0?yh(x,s,a):x))}function mh(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=St(s.url,o))}function _h(t,e){let n=el(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function gh(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 vh(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function yh(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 Eh(t,e){if(!e)return t;let n=t?t.clone():new le;return n.update(e),n}function nl(t){if(t)return bh(t)?{captureContext:t}:Ch(t)?{captureContext:t}:t}function bh(t){return t instanceof le||typeof t=="function"}var Sh=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Ch(t){return Object.keys(t).some(e=>Sh.includes(e))}function Ur(t,e){return Je().captureException(t,nl(e))}function jn(t,e){return Je().captureEvent(t,e)}function Gn(t){let e=Ze(),n=Je(),{userAgent:r}=L.navigator||{},i=Cc(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=Ze(),n=Je().getSession()||t.getSession();n&&Tc(n),il(),t.setSession()}function il(){let t=Ze(),e=K(),n=t.getSession();n&&e&&e.captureSession(n)}function Wn(t=!1){if(t){Hr();return}il()}var Th="7";function Ih(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function wh(t){return`${Ih(t)}${t.projectId}/envelope/`}function Dh(t,e){let n={sentry_version:Th};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function ol(t,e,n){return e||`${wh(t)}?${Dh(t,n)}`}var sl=[];function al(t,e){let n={};return e.forEach(r=>{r&&No(t,r,n)}),n}function Ro(t,e){for(let n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function No(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,sl.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),sl.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 cl(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 ll(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?.[yo],exclusive_time:s?.[Eo],measurements:t.measurements,is_segment:!0}}function ul(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&&{[yo]:t.profile_id}),t.exclusive_time&&{[Eo]:t.exclusive_time})}},measurements:t.measurements}}var dl="Not capturing exception because it's already been captured.",fl="Discarded session because of missing or non-string release",ml=Symbol.for("SentryInternalError"),_l=Symbol.for("SentryDoNotSendEventError");function Gr(t){return{message:t,[ml]:!0}}function Mo(t){return{message:t,[_l]:!0}}function hl(t){return!!t&&typeof t=="object"&&ml in t}function pl(t){return!!t&&typeof t=="object"&&_l 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=Hc(e.dsn):k&&A.warn("No DSN provided, client will not send events."),this._dsn){let n=ol(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(dl),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(dl),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];No(this,e,this._integrations),n||Ro(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=Xc(e,this._dsn,this._options._metadata,this._options.tunnel);for(let o of n.attachments||[])r=Wc(r,Yc(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(fl);return}o.release=o.release||n,o.environment=o.environment||r,e.attrs=o}else{if(!e.release&&!n){k&&A.warn(fl);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);let i=Kc(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=al(this,e),Ro(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),tl(o,e,n,r,this,i).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts=y({trace:mo(r)},a.contexts);let l=Gc(this,r);return a.sdkProcessingMetadata=y({dynamicSamplingContext:l},a.sdkProcessingMetadata),a})}_captureEvent(e,n={},r=Je(),i=Ze()){return k&&Po(e)&&A.log(`Captured error event \`${jr(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,i).then(o=>o.event_id,o=>{k&&(pl(o)?A.log(o.message):hl(o)?A.warn(o.message):A.warn(o))})}_processEvent(e,n,r,i){let o=this.getOptions(),{sampleRate:s}=o,a=gl(e),l=Po(e),d=e.type||"error",g=`before send for type \`${d}\``,f=typeof s>"u"?void 0:Nc(s);if(l&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),It(Mo(`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),Mo("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return v;let N=xh(this,o,v,n);return Oh(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 Mo(`${g} returned \`null\`, will not send event.`)}let w=r.getSession()||i.getSession();if(l&&w&&this._updateSessionFromEvent(w,v),a){let x=v.sdkProcessingMetadata?.spanCountBeforeProcessing||0,P=v.spans?v.spans.length:0,M=x-P;M>0&&this.recordDroppedEvent("before_send","span",M)}let N=v.transaction_info;if(a&&N&&v.transaction!==e.transaction){let x="custom";v.transaction_info=V(y({},N),{source:x})}return this.sendEvent(v,n),v}).then(null,v=>{throw pl(v)||hl(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=cl(e,this._options.tunnel&&Tt(this._dsn));this.sendEnvelope(n)}};function Oh(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 xh(t,e,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=e,a=n;if(Po(a)&&i)return i(a,r);if(gl(a)){if(s){let l=s(ll(a));if(l?a=Ct(n,ul(l)):So(),a.spans){let d=[];for(let g of a.spans){let f=s(g);f?d.push(f):(So(),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 Po(t){return t.type===void 0}function gl(t){return t.type==="transaction"}function Rh(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function vl(t,e,n,r){let i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=Tt(r)),ut(i,[Rh(t)])}function Yn(t,e){let n=e??Nh(t)??[];if(n.length===0)return;let r=t.getOptions(),i=vl(n,r._metadata,r.tunnel,t.getDsn());yl().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(i)}function Nh(t){return yl().get(t)}function yl(){return st("clientToLogBufferMap",()=>new WeakMap)}var ko=Symbol.for("SentryBufferFullError");function El(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 It(ko);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 Mh(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 Ph(t,e){return t[e]||t.all||0}function bl(t,e,n=Date.now()){return Ph(t,e)>n}function Sl(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+Mh(s,r):e===429&&(i.all=r+60*1e3);return i}var kh=64;function Wr(t,e,n=El(t.bufferSize||kh)){let r={},i=s=>n.drain(s);function o(s){let a=[];if(wo(s,(f,E)=>{let v=Do(E);bl(r,v)?t.recordDroppedEvent("ratelimit_backoff",v):a.push(f)}),a.length===0)return ke({});let l=ut(s[0],a),d=f=>{wo(l,(E,v)=>{t.recordDroppedEvent(f,Do(v))})},g=()=>e({body:$c(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=Sl(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===ko)return k&&A.error("Skipped sending event because buffer is full."),d("queue_overflow"),ke({});throw f})}return{send:o,flush:i}}function Lo(t){t.user?.ip_address===void 0&&(t.user=V(y({},t.user),{ip_address:"{{auto}}"}))}function Fo(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 Vo(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:Ye})),version:Ye}),t._metadata=i}var Lh=100;function Qe(t,e){let n=K(),r=Ze();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Lh}=n.getOptions();if(o<=0)return;let s=qe(),a=y({timestamp:s},t),l=i?bt(()=>i(a,e)):a;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,e),r.addBreadcrumb(l,o))}var Cl,Fh="FunctionToString",Tl=new WeakMap,Vh=()=>({name:Fh,setupOnce(){Cl=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=Bt(this),n=Tl.has(K())&&e!==void 0?e:this;return Cl.apply(n,t)}}catch{}},setup(t){Tl.set(t,!0)}}),$r=Vh;var Bh=[/^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$/],Uh="EventFilters",Bo=(t={})=>{let e;return{name:Uh,setup(n){let r=n.getOptions();e=Il(t,r)},processEvent(n,r,i){if(!e){let o=i.getOptions();e=Il(t,o)}return Hh(n,e)?null:n}}},zr=(t={})=>V(y({},Bo(t)),{name:"InboundFilters"});function Il(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Bh],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function Hh(t,e){if(t.type){if(t.type==="transaction"&&Gh(t,e.ignoreTransactions))return k&&A.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
10
+ Event: ${Ke(t)}`),!0}else{if(jh(t,e.ignoreErrors))return k&&A.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
11
+ Event: ${Ke(t)}`),!0;if(zh(t))return k&&A.warn(`Event dropped due to not having an error message, error type or stacktrace.
12
+ Event: ${Ke(t)}`),!0;if(Wh(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(!$h(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 jh(t,e){return e?.length?jr(t).some(n=>nn(n,e)):!1}function Gh(t,e){if(!e?.length)return!1;let n=t.transaction;return n?nn(n,e):!1}function Wh(t,e){if(!e?.length)return!1;let n=Yr(t);return n?nn(n,e):!1}function $h(t,e){if(!e?.length)return!0;let n=Yr(t);return n?nn(n,e):!0}function Yh(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?Yh(n):null}catch{return k&&A.error(`Cannot extract url for event ${Ke(t)}`),null}}function zh(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function Ho(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=Uo(t,e,r,o.originalException,n,i.exception.values,s,0))}function Uo(t,e,n,r,i,o,s,a){if(o.length>=n+1)return o;let l=[...o];if(Ve(r[i],Error)){wl(s,a);let d=t(e,r[i]),g=l.length;Dl(d,i,g,a),l=Uo(t,e,n,r[i],i,[d,...l],d,g)}return Array.isArray(r.errors)&&r.errors.forEach((d,g)=>{if(Ve(d,Error)){wl(s,a);let f=t(e,d),E=l.length;Dl(f,`errors[${g}]`,E,a),l=Uo(t,e,n,d,i,[f,...l],f,E)}}),l}function wl(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 Dl(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 jo(t){let e="console";ue(e,t),de(e,Kh)}function Kh(){"console"in L&&zi.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 Go(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}var Xh="Dedupe",qh=()=>{let t;return{name:Xh,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=qh;function Jh(t,e){return e?!!(Zh(t,e)||Qh(t,e)):!1}function Zh(t,e){let n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!xl(t,e)||!Ol(t,e))}function Qh(t,e){let n=Al(e),r=Al(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!xl(t,e)||!Ol(t,e))}function Ol(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 xl(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 Al(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 Wo(){return"history"in Kn&&!!Kn.history}function ep(){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 $o(){if(typeof EdgeRuntime=="string")return!0;if(!ep())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 zo(t,e){let n="fetch";ue(n,t),de(n,()=>tp(void 0,e))}function tp(t,e=!1){e&&!$o()||ne(L,"fetch",function(n){return function(...r){let i=new Error,{method:o,url:s}=np(r),a={args:r,fetchData:{method:o,url:s},startTimestamp:ve()*1e3,virtualError:i,headers:rp(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 Yo(t,e){return!!t&&typeof t=="object"&&!!t[e]}function Rl(t){return typeof t=="string"?t:t?Yo(t,"url")?t.url:t.toString?t.toString():"":""}function np(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[n,r]=t;return{url:Rl(n),method:Yo(r,"method")?String(r.method).toUpperCase():"GET"}}let e=t[0];return{url:Rl(e),method:Yo(e,"method")?String(e.method).toUpperCase():"GET"}}function rp(t){let[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(_c(e))return new Headers(e.headers)}catch{}}function Ko(){return"npm"}var q=L,Xo=0;function qo(){return Xo>0}function vp(){Xo++,setTimeout(()=>{Xo--})}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 vp(),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 Nl(){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=Qo(t,e),r={type:Cp(e),value:Tp(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function yp(t,e,n,r){let o=K()?.getOptions().normalizeDepth,s=Dp(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:Ip(e,{isUnhandledRejection:r})}]},extra:a};if(n){let d=Qo(t,n);d.length&&(l.exception.values[0].stacktrace={frames:d})}return l}function Jo(t,e){return{exception:{values:[qr(t,e)]}}}function Qo(t,e){let n=e.stacktrace||e.stack||"",r=bp(e),i=Sp(e);try{return t(n,r,i)}catch{}return[]}var Ep=/Minified React error #\d+;/i;function bp(t){return t&&Ep.test(t.message)?1:0}function Sp(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function Ml(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function Cp(t){let e=t?.name;return!e&&Ml(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function Tp(t){let e=t?.message;return Ml(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 Pl(t,e,n,r){let i=n?.syntheticException||void 0,o=Jr(t,e,i,r);return Xe(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),ke(o)}function kl(t,e,n="info",r,i){let o=r?.syntheticException||void 0,s=Zo(t,e,o,i);return s.level=n,r?.event_id&&(s.event_id=r.event_id),ke(s)}function Jr(t,e,n,r,i){let o;if(Tr(e)&&e.error)return Jo(t,e.error);if(Ir(e)||no(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=Zo(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=yp(t,e,n,i),Xe(o,{synthetic:!0}),o):(o=Zo(t,e,n,r),rn(o,`${e}`,void 0),Xe(o,{synthetic:!0}),o)}function Zo(t,e,n,r){let i={};if(r&&n){let o=Qo(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 Ip(t,{isUnhandledRejection:e}){let n=co(t),r=e?"promise rejection":"exception";return Tr(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Vt(t)?`Event \`${wp(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function wp(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Dp(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];if(n instanceof Error)return n}}var Ap=5e3,qn=class extends $n{constructor(e){let n=Op(e),r=q.SENTRY_SDK_SOURCE||Ko();Vo(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)},Ap)})),i&&(this.on("postprocessEvent",Lo),this.on("beforeSendSession",Fo))}eventFromException(e,n){return Pl(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return kl(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 Op(t){return y({release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:q.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},t)}var Ll=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var ie=L;var xp=1e3,Fl,es,ts;function ns(t){let e="dom";ue(e,t),de(e,Rp)}function Rp(){if(!ie.document)return;let t=te.bind(null,"dom"),e=Vl(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=Vl(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 Np(t){if(t.type!==es)return!1;try{if(!t.target||t.target._sentryId!==ts)return!1}catch{}return!0}function Mp(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function Vl(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Pp(n);if(Mp(n.type,r))return;be(n,"_sentryCaptured",!0),r&&!r._sentryId&&be(r,"_sentryId",re());let i=n.type==="keypress"?"input":n.type;Np(n)||(t({event:n,name:i,global:e}),es=n.type,ts=r?r._sentryId:void 0),clearTimeout(Fl),Fl=ie.setTimeout(()=>{ts=void 0,es=void 0},xp)}}function Pp(t){try{return t.target}catch{return null}}var Zr;function Jn(t){let e="history";ue(e,t),de(e,kp)}function kp(){if(ie.addEventListener("popstate",()=>{let e=ie.location.href,n=Zr;if(Zr=e,n===e)return;te("history",{from:n,to:e})}),!Wo())return;function t(e){return function(...n){let r=n.length>2?n[2]:void 0;if(r){let i=Zr,o=Lp(String(r));if(Zr=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 Lp(t){try{return new URL(t,ie.location.origin).toString()}catch{return t}}var Qr={};function rs(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){Ll&&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 is(t){let e="xhr";ue(e,t),de(e,Fp)}function Fp(){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=fe(r[0])?r[0].toUpperCase():void 0,a=Vp(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&&fe(E)&&fe(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 Vp(t){if(fe(t))return t;try{return t.toString()}catch{}}function os(t,e=rs("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"),It("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--,It(l)}}return Wr(t,i)}var Bp=30;var Up=50;function ss(t,e,n,r){let i={filename:t,function:e==="<anonymous>"?ze:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Hp=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,jp=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gp=/\((\S*)(?::(\d+))(?::(\d+))\)/,Wp=t=>{let e=Hp.exec(t);if(e){let[,r,i,o]=e;return ss(r,ze,+i,+o)}let n=jp.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){let s=Gp.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}let[i,o]=jl(n[1]||ze,n[2]);return ss(o,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},Bl=[Bp,Wp],$p=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Yp=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,zp=t=>{let e=$p.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let o=Yp.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]||ze;return[i,r]=jl(i,r),ss(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Ul=[Up,zp];var Hl=[Bl,Ul],as=Ji(...Hl),jl=(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]:ze,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};var cn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var ti=1024,Kp="Breadcrumbs",Xp=(t={})=>{let e=y({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t);return{name:Kp,setup(n){e.console&&jo(Zp(n)),e.dom&&ns(Jp(n,e.dom)),e.xhr&&is(Qp(n)),e.fetch&&zo(em(n)),e.history&&Jn(tm(n)),e.sentry&&n.on("beforeSendEvent",qp(n))}}},Gl=Xp;function qp(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=nm(d)?d.target:d;i=Vn(g,{keyAttrs:s,maxStringLength:a}),o=ao(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 Zp(t){return function(n){if(K()!==t)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:Go(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 Qp(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 em(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 tm(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 nm(t){return!!t&&!!t.target}var rm=["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"],im="BrowserApiErrors",om=(t={})=>{let e=y({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},t);return{name:im,setupOnce(){e.setTimeout&&ne(q,"setTimeout",Wl),e.setInterval&&ne(q,"setInterval",Wl),e.requestAnimationFrame&&ne(q,"requestAnimationFrame",sm),e.XMLHttpRequest&&"XMLHttpRequest"in q&&ne(XMLHttpRequest.prototype,"send",am);let n=e.eventTarget;n&&(Array.isArray(n)?n:rm).forEach(i=>cm(i,e))}}},$l=om;function Wl(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 sm(t){return function(e){return t.apply(this,[Ut(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Me(t)},handled:!1,type:"instrument"}})])}}function am(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 cm(t,e){let r=q[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(ne(r,"addEventListener",function(i){return function(o,s,a){try{lm(s)&&(s.handleEvent=Ut(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Me(s),target:t},handled:!1,type:"instrument"}}))}catch{}return e.unregisterOriginalCallbacks&&um(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 lm(t){return typeof t.handleEvent=="function"}function um(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}var Yl=()=>({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(),Jn(({from:t,to:e})=>{t!==void 0&&t!==e&&(Gn({ignoreDuration:!0}),Wn())})}});var dm="GlobalHandlers",fm=(t={})=>{let e=y({onerror:!0,onunhandledrejection:!0},t);return{name:dm,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(hm(n),zl("onerror")),e.onunhandledrejection&&(pm(n),zl("onunhandledrejection"))}}},Kl=fm;function hm(t){Qi(e=>{let{stackParser:n,attachStacktrace:r}=Xl();if(K()!==t||qo())return;let{msg:i,url:o,line:s,column:a,error:l}=e,d=gm(Jr(n,l||i,void 0,r,!1),o,s,a);d.level="error",jn(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function pm(t){to(e=>{let{stackParser:n,attachStacktrace:r}=Xl();if(K()!==t||qo())return;let i=mm(e),o=Ft(i)?_m(i):Jr(n,i,void 0,r,!0);o.level="error",jn(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function mm(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 _m(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function gm(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=fe(e)&&e.length>0?e:Bn();return l.length===0&&l.push({colno:d,filename:f,function:ze,in_app:!0,lineno:g}),t}function zl(t){cn&&A.log(`Global Handler attached: ${t}`)}function Xl(){return K()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var ql=()=>({name:"HttpContext",preprocessEvent(t){if(!q.navigator&&!q.location&&!q.document)return;let e=Nl(),n=y(y({},e.headers),t.request?.headers);t.request=V(y(y({},e),t.request),{headers:n})}});var vm="cause",ym=5,Em="LinkedErrors",bm=(t={})=>{let e=t.limit||ym,n=t.key||vm;return{name:Em,preprocessEvent(r,i,o){let s=o.getOptions();Ho(qr,s.stackParser,n,e,r,i)}}},Jl=bm;function cs(t){return[zr(),$r(),$l(),Gl(),Kl(),Jl(),Kr(),ql(),Yl()]}var Zl={},Ql,ls,Sm;(()=>{let t=cs({}).filter(e=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name));ls=new qn({dsn:"https://1bc3dda4c861f60cd6be1b67584f4bc6@o559187.ingest.us.sentry.io/4507626484203520",transport:os,stackParser:as,integrations:t,environment:$e.mode,release:`web-sdk@${qt}`,debug:$e.debug}),ls.init()})();function eu(t,e,n){ce.error(`${e}:`,t);let r=Im(n);if(r.setTag("operation",e),t instanceof Ln){Cm(r,t,e);return}r.captureException(t)}function Cm(t,e,n){if(Tm(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 Tm(t,e){let n=e.request;n&&t.setExtras({body:e.requestBody,headers:n.headers,method:n.method,url:n.url})}function Im(t){t??={};let{extra:e,tags:n}=t,r=new le;if(r.setClient(ls),r.setUser(Sm),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),Ql&&r.setTags(Ql),Object.keys(Zl).forEach(i=>{r.setContext(i,Zl[i])}),r.setTag("language",navigator.language),r.setTag("timezone",tu()),wm(r),r}function wm(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 Zn=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 nu(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{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 Zn(e)}getJSLoadTimeDiff(){return nu(Date.now()-this.jsLoadTime.getTime())}};function Dm(t,e,n){return{[t]:us(e,n),[t+"_wo_currency"]:e}}function us(t,e){if(t==0&&e)return"Free";let n=ii.get(),r=Et.get(),i=n.shopCurrencyCode||r.currency,o=n.currencyCode;o||ce.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(Am(),{style:"currency",currency:o||i,minimumFractionDigits:0,maximumFractionDigits:2})}catch(d){return eu(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 Am(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}var oi;function tu(){if(oi)return oi;try{return oi=Intl.DateTimeFormat().resolvedOptions().timeZone,oi}catch{return""}}var au,Y,cu,ms,jt,ru,lu,uu,du,_s,fs,hs,Om,ps={},fu=[],xm=/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 gs(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function ds(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??++cu,__i:-1,__u:0};return i==null&&Y.vnode!=null&&Y.vnode(o),o}function vs(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 hu(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 hu(t)}}function iu(t){(!t.__d&&(t.__d=!0)&&jt.push(t)&&!ai.__r++||ru!=Y.debounceRendering)&&((ru=Y.debounceRendering)||lu)(ai)}function ai(){for(var t,e,n,r,i,o,s,a=1;jt.length;)jt.length>a&&jt.sort(uu),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),_u(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,Mm(o,n,s),n.__e!=i&&hu(n)));ai.__r=0}function pu(t,e,n,r,i,o,s,a,l,d,g){var f,E,v,w,N,x,P=r&&r.__k||fu,M=e.length;for(l=Rm(n,e,P,l,M),f=0;f<M;f++)(v=n.__k[f])!=null&&(E=v.__i==-1?ps:P[v.__i]||ps,v.__i=f,x=_u(t,v,E,i,o,s,a,l,d,g),w=v.__e,v.ref&&E.ref!=v.ref&&(E.ref&&ys(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=mu(v,l,t):typeof v.type=="function"&&x!==void 0?l=x:w&&(l=w.nextSibling),v.__u&=-7);return n.__e=N,l}function Rm(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?ds(null,s,null,null,null):ci(s)?ds(vs,{children:s},null,null,null):s.constructor==null&&s.__b>0?ds(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=Nm(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)),vu(a,a));return r}function mu(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=mu(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 Nm(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 ou(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||xm.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||ou(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||ou(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(du,"$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=_s,t.addEventListener(e,o?hs:fs,o)):t.removeEventListener(e,o?hs:fs,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 su(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=_s++;else if(e.t<n.u)return;return n(Y.event?Y.event(e):e)}}}function _u(t,e,n,r,i,o,s,a,l,d){var g,f,E,v,w,N,x,P,M,U,Ce,Te,D,H,F,j,J,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?x=(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=km),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===vs&&g.key==null&&(j=gu(g.props.children)),a=pu(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),x&&(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(J=o.length;J--;)gs(o[J]);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=Pm(n.__e,e,n,r,i,o,s,l,d);return(g=Y.diffed)&&g(e),128&e.__u?void 0:a}function Mm(t,e,n){for(var r=0;r<n.length;r++)ys(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 gu(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:ci(t)?t.map(gu):dt({},t)}function Pm(t,e,n,r,i,o,s,a,l){var d,g,f,E,v,w,N,x=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)x===P||a&&t.data==P||(t.data=P);else{if(o=o&&au.call(t.childNodes),x=n.props||ps,!a&&o!=null)for(x={},d=0;d<t.attributes.length;d++)x[(v=t.attributes[d]).name]=v.value;for(d in x)if(v=x[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"||x[d]===v||si(t,d,v,x[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=""),pu(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--;)gs(o[d]);a||(d="value",M=="progress"&&w==null?t.removeAttribute("value"):w!=null&&(w!==t[d]||M=="progress"&&!w||M=="option"&&w!=x[d])&&si(t,d,w,x[d],i),d="checked",N!=null&&N!=t[d]&&si(t,d,N,x[d],i))}return t}function ys(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 vu(t,e,n){var r,i;if(Y.unmount&&Y.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||ys(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]&&vu(r[i],e,n||typeof t.type!="function");n||gs(t.__e),t.__c=t.__=t.__e=void 0}function km(t,e,n){return this.constructor(t,n)}au=fu.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}},cu=0,ms=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),iu(this))},ln.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),iu(this))},ln.prototype.render=vs,jt=[],lu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,uu=function(t,e){return t.__v.__b-e.__v.__b},ai.__r=0,du=/(PointerCapture)$|Capture$/i,_s=0,fs=su(!1),hs=su(!0),Om=0;var bs,Se,Es,yu,Eu=0,Au=[],oe=Y,bu=oe.__b,Su=oe.__r,Cu=oe.diffed,Tu=oe.__c,Iu=oe.unmount,wu=oe.__;function Lm(t,e){oe.__h&&oe.__h(Se,t,Eu||e),Eu=0;var n=Se.__H||(Se.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function Cs(t,e){var n=Lm(bs++,7);return Bm(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Fm(){for(var t;t=Au.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(li),t.__H.__h.forEach(Ss),t.__H.__h=[]}catch(e){t.__H.__h=[],oe.__e(e,t.__v)}}oe.__b=function(t){Se=null,bu&&bu(t)},oe.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),wu&&wu(t,e)},oe.__r=function(t){Su&&Su(t),bs=0;var e=(Se=t.__c).__H;e&&(Es===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(Ss),e.__h=[],bs=0)),Es=Se},oe.diffed=function(t){Cu&&Cu(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Au.push(e)!==1&&yu===oe.requestAnimationFrame||((yu=oe.requestAnimationFrame)||Vm)(Fm)),e.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Es=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.__||Ss(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],oe.__e(r,n.__v)}}),Tu&&Tu(t,e)},oe.unmount=function(t){Iu&&Iu(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 Du=typeof requestAnimationFrame=="function";function Vm(t){var e,n=function(){clearTimeout(r),Du&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,35);Du&&(e=requestAnimationFrame(n))}function li(t){var e=Se,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Se=e}function Ss(t){var e=Se;t.__c=t.__(),Se=e}function Bm(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}var Um=Symbol.for("preact-signals");function Is(){if(dn>1)dn--;else{for(var t,e=!1;Qn!==void 0;){var n=Qn;for(Qn=void 0,Ts++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&xu(n))try{n.c()}catch(i){e||(t=i,e=!0)}n=r}}if(Ts=0,dn--,e)throw t}}var z=void 0;var Qn=void 0,dn=0,Ts=0,ui=0;function Ou(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 ae(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}ae.prototype.brand=Um;ae.prototype.h=function(){return!0};ae.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)};ae.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)}};ae.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}})};ae.prototype.valueOf=function(){return this.value};ae.prototype.toString=function(){return this.value+""};ae.prototype.toJSON=function(){return this.value};ae.prototype.peek=function(){var t=z;z=void 0;try{return this.value}finally{z=t}};Object.defineProperty(ae.prototype,"value",{get:function(){var t=Ou(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Ts>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{Is()}}}});function er(t){return new ae(t)}function xu(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 Ru(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 Nu(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){ae.call(this,void 0),this.x=t,this.s=void 0,this.g=ui-1,this.f=4}(fn.prototype=new ae).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&&!xu(this))return this.f&=-2,!0;var t=z;try{Ru(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,Nu(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)}ae.prototype.S.call(this,t)};fn.prototype.U=function(t){if(this.t!==void 0&&(ae.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=Ou(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function Mu(t){return new fn(t)}function Pu(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,ws(t),r}finally{z=n,Is()}}}function ws(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Pu(t)}function Hm(t){if(z!==this)throw new Error("Out-of-order effect");Nu(this),z=t,this.f&=-2,8&this.f&&ws(this),Is()}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,Pu(this),Ru(this),dn++;var t=z;return z=this,Hm.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||ws(this)};function di(t){var e=new tr(t);try{e.c()}catch(n){throw e.d(),n}return e.d.bind(e)}var As,Ds;function hn(t,e){Y[t]=e.bind(null,Y[t]||function(){})}function fi(t){Ds&&Ds(),Ds=t&&t.S()}function ku(t){var e=this,n=t.data,r=Gm(n);r.value=n;var i=Cs(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(),ms(l)||((s=e.base)==null?void 0:s.nodeType)!==3?(e.__$f|=1,e.setState({})):e.base.data=l},Mu(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}ku.displayName="_st";Object.defineProperties(ae.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ku},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 ae&&(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}())),As=r,fi(n),t(e)});hn("__e",function(t,e,n,r){fi(),As=void 0,t(e,n,r)});hn("diffed",function(t,e){fi(),As=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=jm(n,l,g,i),o[l]=d):d.o(g,i)}}}t(e)});function jm(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 Gm(t){return Cs(function(){return er(t)},[])}var Wm=(r=>(r.ON="ON",r.OFF="OFF",r.ON_HOVER="ON_HOVER",r))(Wm||{}),$m=(r=>(r.FIRST_ITEM="FIRST_ITEM",r.CARD="CARD",r.NONE="NONE",r))($m||{});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()}},Os=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 Os)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(Ni,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=Pa(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 xs=(()=>{class t extends _n{_moduleRef=R(Ni,{optional:!0});_document=R(me);_viewContainerRef=R(Ri);_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 Ym(){if(rr==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>rr=!0}))}finally{rr=rr||!1}return rr}function Lu(t){return Ym()?t:!!t.capture}var zm=new Le("cdk-input-modality-detector-options"),Km={ignoreKeys:[18,17,224,91,16]},Fu=650,Rs={passive:!0,capture:!0},Xm=(()=>{class t{_platform=R(We);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new ua(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<Fu||(this._modality.next(Ua(n)?"keyboard":"mouse"),this._mostRecentTarget=ot(n))};_onTouchstart=n=>{if(Ha(n)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ot(n)};constructor(){let n=R(Fe),r=R(me),i=R(zm,{optional:!0});if(this._options=y(y({},Km),i),this.modalityDetected=this._modality.pipe(ma(1)),this.modalityChanged=this.modalityDetected.pipe(pa()),this._platform.isBrowser){let o=R($t).createRenderer(null,null);this._listenerCleanups=n.runOutsideAngular(()=>[o.listen(r,"keydown",this._onKeydown,Rs),o.listen(r,"mousedown",this._onMousedown,Rs),o.listen(r,"touchstart",this._onTouchstart,Rs)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(n=>n())}static \u0275fac=function(r){return new(r||t)};static \u0275prov=pe({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||{}),qm=new Le("cdk-focus-monitor-default-options"),pi=Lu({passive:!0,capture:!0}),Vu=(()=>{class t{_ngZone=R(Fe);_platform=R(We);_inputModalityDetector=R(Xm);_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=R(me);_stopInputModalityDetector=new he;constructor(){let n=R(qm,{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 da();let o=ja(i)||this._document,s=this._elementInfo.get(i);if(s)return r&&(s.checkChildren=!0),s.subject;let a={checkChildren:r,subject:new he,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?Fu: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(ga(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=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Bu=(()=>{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 Ms=(()=>{class t{_platform=R(We);constructor(){}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return Zm(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let r=Jm(s_(n));if(r&&(Uu(r)===-1||!this.isVisible(r)))return!1;let i=n.nodeName.toLowerCase(),o=Uu(n);return n.hasAttribute("contenteditable")?o!==-1:i==="iframe"||i==="object"||this._platform.WEBKIT&&this._platform.IOS&&!i_(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 o_(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Jm(t){try{return t.frameElement}catch{return null}}function Zm(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function Qm(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function e_(t){return n_(t)&&t.type=="hidden"}function t_(t){return r_(t)&&t.hasAttribute("href")}function n_(t){return t.nodeName.toLowerCase()=="input"}function r_(t){return t.nodeName.toLowerCase()=="a"}function Hu(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function Uu(t){if(!Hu(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function i_(t){let e=t.nodeName.toLowerCase(),n=e==="input"&&t.type;return n==="text"||n==="password"||e==="select"||e==="textarea"}function o_(t){return e_(t)?!1:Qm(t)||t_(t)||t.hasAttribute("contenteditable")||Hu(t)}function s_(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Ns=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)}},ju=(()=>{class t{_checker=R(Ms);_ngZone=R(Fe);_document=R(me);_injector=R(De);constructor(){R(Rn).load(Bu)}create(n,r=!1){return new Ns(n,this._checker,this._ngZone,this._document,r,this._injector)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Gu(t,...e){return e.length?e.some(n=>t[n]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Ps(){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 Wu=Wa();function zu(t){return new ks(t.get($a),t.get(me))}var ks=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"),Wu&&(r.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Wu&&(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 Ls=class{enable(){}disable(){}attach(){}};var ir=class{positionStrategy;scrollStrategy=new Ls;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 Ku=(()=>{class t{_attachedOverlays=[];_document=R(me);_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=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),c_=(()=>{class t extends Ku{_ngZone=R(Fe);_renderer=R($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=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),l_=(()=>{class t extends Ku{_platform=R(We);_ngZone=R(Fe);_renderer=R($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($u(a.overlayElement,r)||$u(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=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $u(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 Xu=(()=>{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})(),Bs=(()=>{class t{_platform=R(We);_containerElement;_document=R(me);_styleLoader=R(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||Ps()){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),Ps()?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}_loadStyles(){this._styleLoader.load(Xu)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fs=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 he;_attachments=new he;_detachments=new he;_positionStrategy;_scrollStrategy;_locationChanges=la.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new he;_outsidePointerEvents=new he;_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 Fs(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=Ga(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 Yu="cdk-global-overlay-wrapper";function qu(t){return new Vs}var Vs=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(Yu),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(Yu),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(Xu);let n=t.get(Bs),r=t.get(me),i=t.get(_r),o=t.get(Mi),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(c_),r,t.get(ka),t.get(l_),e?.disableAnimations??t.get(va,null,{optional:!0})==="NoopAnimations",t.get(dr),f)}function u_(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 d_=(()=>{class t extends _n{_elementRef=R(Ae);_focusTrapFactory=R(ju);_config;_interactivityChecker=R(Ms);_ngZone=R(Fe);_focusMonitor=R(Vu);_renderer=R(In);_changeDetectorRef=R(Fi);_injector=R(De);_platform=R(We);_document=R(me);_portalOutlet;_focusTrapped=new he;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=R(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&&Da(xs,7),r&2){let o;Aa(o=Oa())&&(i._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,i){r&2&&_t("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&&Ea(0,u_,0,0,"ng-template",0)},dependencies:[xs],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 he;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&&!Gu(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))}},f_=new Le("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=R(De);return()=>zu(t)}}),h_=new Le("DialogData"),p_=new Le("DefaultDialogConfig");function m_(t){let e=Ue(t),n=new Oe;return{valueSignal:e,get value(){return e()},change:n,ngOnDestroy(){n.complete()}}}var L0=(()=>{class t{_injector=R(De);_defaultOptions=R(p_,{optional:!0});_parentDialog=R(t,{optional:!0,skipSelf:!0});_overlayContainer=R(Bs);_idGenerator=R(_r);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new he;_afterOpenedAtThisLevel=new he;_ariaHiddenElements=new Map;_scrollStrategy=R(f_);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=fa(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(_a(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(ha(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(){Us(this.openDialogs,n=>n.close())}getDialogById(n){return this.openDialogs.find(r=>r.id===n)}ngOnDestroy(){Us(this._openDialogsAtThisLevel,n=>{n.config.closeOnDestroy===!1&&this._removeOpenDialog(n,!1)}),Us(this._openDialogsAtThisLevel,n=>n.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(n){let r=new ir({positionStrategy:n.positionStrategy||qu().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=d_;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:h_,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:m_(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=pe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Us(t,e){let n=t.length;for(;n--;)e(t[n])}var _i=class t{static cache=new Map;name=Ne.required();rawSvg=Ue("");sanitisedSvg=rt(()=>this.sanitizer.bypassSecurityTrustHtml(this.rawSvg()));sanitizer=R(Va);constructor(){it(()=>{let e=this.name();this.fetchSvg(e)})}async fetchSvg(e){if(t.cache.has(e)){this.rawSvg.set(t.cache.get(e));return}let n=`${$e.baseURL}/svg/${e}.svg`;try{let i=(await lc(n,{cache:"force-cache",headers:{"Content-Type":"text/plain"}})).data;this.rawSvg.set(i),t.cache.set(e,i)}catch(r){ce.error(`Unable to get the icon: ${e}`,r)}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ee({type:t,selectors:[["cooee-icon"]],hostVars:1,hostBindings:function(n,r){n&2&&Ge("innerHTML",r.sanitisedSvg(),Cn)},inputs:{name:[1,"name"]},decls:0,vars:0,template:function(n,r){},encapsulation:2})};var gi=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 __=[[["swiper-slides"]]],g_=["swiper-slides"],Zu=class t{options=Ne.required();slideChange=yt();elementRef=R(Ae);swiperInstance;initToken=0;resizeDebouncer=new gi(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){ce.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?(ce.verbose("Updating swiper"),this.swiperInstance.update()):(ce.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:g_,decls:4,vars:0,consts:[[1,"swiper-wrapper"],[1,"swiper-button-prev"],[1,"swiper-button-next"]],template:function(n,r){n&1&&(Ia(__),_e(0,"div",0),wa(1),xe(),Rt(2,"div",1)(3,"div",2))},styles:[`:host{display:block}.swiper-wrapper{scrollbar-width:none}.swiper-wrapper::-webkit-scrollbar{display:none}
20
+ `],encapsulation:2})};function v_(t,e){if(t&1&&(_e(0,"span",1),ye(1),xe()),t&2){Re();let n=vt(0);$(),Kt(n.heading)}}function y_(t,e){if(t&1&&(_e(0,"span",2),ye(1),xe()),t&2){Re();let n=vt(0);$(),Kt(n.subHeading)}}var Qu=class t{card=Ne.required();linkClicked=yt();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),_e(1,"div",0),He(2,v_,2,1,"span",1),He(3,y_,2,1,"span",2),_e(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),je(i!=null&&i.heading?2:-1),$(),je(i!=null&&i.subHeading?3:-1),$(),Ge("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-color-button);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 E_(t,e){t&1&&Li(0,"cooee-icon",1)}function b_(t,e){t&1&&Li(0,"cooee-icon",2)}var ed=class t{muted=Ma.required();videoEl=Ne.required();toggled=yt();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)}),He(1,E_,1,0,"cooee-icon",1)(2,b_,1,0,"cooee-icon",2),gt()),n&2&&(An("unmute",!r.muted()),_t("aria-label",r.muted()?"Unmute video":"Mute video")("aria-pressed",r.muted()),$(),je(r.muted()?1:2))},dependencies:[_i],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 vi=class t{transform(e){return e==null?null:us(e)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=ya({name:"cooeeCurrency",type:t,pure:!0})};function S_(t,e){if(t&1&&(Rt(0,"span",6),On(1,"cooeeCurrency"),On(2,"safeHtml")),t&2){Re();let n=vt(7);Ge("innerHTML",xn(2,3,xn(1,1,n.cmp)),Cn)}}function C_(t,e){t&1&&ye(0," Out of Stock ")}function T_(t,e){t&1&&ye(0," Add To Cart ")}var td=class t{buttonClick=yt();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();Sa(0),_e(1,"div",0),Rt(2,"img",1),_e(3,"div",2)(4,"div",3),ye(5),xe(),_e(6,"div",4),Nt(7),Rt(8,"span",5),On(9,"cooeeCurrency"),On(10,"safeHtml"),He(11,S_,3,5,"span",6),xe(),_e(12,"a",7),Dn("click",function(s){return Dt(i),At(s.stopPropagation())}),ye(13," Shop now "),xe()()(),_e(14,"div",8)(15,"button",9),Dn("click",function(s){return Dt(i),At(r.addToCartClicked(s))}),He(16,C_,1,0)(17,T_,1,0),xe(),_e(18,"a",10),Rt(19,"img",11),xe()(),Ca()}if(n&2){let i=r.item().selectedOrFirstVariant.value;$(2),Ge("alt",xa(r.item().name))("src",r.item().firstImageURL,Tn),$(3),Xt(" ",r.item().name," "),$(2);let o=Mt(i.price);$(),Ge("innerHTML",xn(10,12,xn(9,10,o.d)),Cn),$(3),je(o.cmp?11:-1),$(),Ge("href","/products/"+r.item().slug,Tn),$(3),Ge("disabled",r.isButtonDisabled()),$(),je(r.isButtonDisabled()?16:17)}},dependencies:[vi,Ba],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%]{font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;line-height:normal;color:rgb(var(--lc-color-text))}.item-price[_ngcontent-%COMP%]{font-size:16px;line-height:normal;color:rgb(var(--lc-color-text))}.item-cmp-price[_ngcontent-%COMP%]{font-size:16px;line-height:normal;color:rgba(var(--lc-color-text),.75);margin-left:10px;text-decoration:line-through;display:none}.card-footer[_ngcontent-%COMP%]{display:flex;gap:4px;align-items:center}.cta-button[_ngcontent-%COMP%]{padding:10px;border:none;width:100%;text-align:center;font-weight:500;font-size:16px;background:rgb(var(--lc-color-button));color:rgb(var(--lc-color-button-text));border-radius:var(--lc-button-radius)}.cta-button[_ngcontent-%COMP%]:hover{filter:brightness(.95)}.cta-button[_ngcontent-%COMP%]:active{filter:brightness(.9)}.cta-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid rgb(var(--lc-color-primary, 0, 0, 0));outline-offset:2px}.cta-button[aria-busy=true][_ngcontent-%COMP%], .cta-button[_ngcontent-%COMP%]:disabled{opacity:.7;cursor:default}.shop-now-button[_ngcontent-%COMP%]{display:none;background:rgb(var(--lc-color-button));color:rgb(var(--lc-color-button-text));border-radius:var(--lc-button-radius);width:fit-content;height:auto;text-align:center;z-index:4;padding:4px 10px;font-size:12px;text-decoration:none}.view-cart-button[_ngcontent-%COMP%]{display:none}"]})};export{ce as a,P_ as b,Et as c,Ja as d,Za as e,yr as f,rc as g,mf as h,_f as i,gf as j,Ui as k,Gi as l,eu as m,Dm as n,us as o,vi as p,Wm as q,$m as r,sr as s,h_ as t,L0 as u,_i as v,Zu as w,Qu as x,ed as y,td as z};