const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CDNCollectionView.HxF9gCVv.js","assets/DialogAndDrawerLayout.cNoMF-N5.js","assets/index.CdK6CXtq.js","assets/useDebounce.C63fdV7A.js","assets/useToggle.DdqvYd6m.js","assets/ServicesContext.evdkDFPj.js","assets/Tote.6EUtH_zK.js","assets/useTracker.BPnu9wyI.js","assets/has-cart-integration.CuCbkMiG.js","assets/IconBase.qlnA-fUo.js","assets/FeatureContext.BK7Z95Tx.js","assets/play.DTROaJ8Q.js","assets/decode-html.gliwiHdG.js","assets/useWindowSize.BR4xL7V6.js","assets/position-carousel.service.DJqw9bnQ.js","assets/usePromiseAsHook.DREC2OsF.js","assets/index.CrZg3gKe.js","assets/CaretUp.D265CT4f.js","assets/clsx.B-dksMZM.js","assets/CaretDown.C0XhKqWg.js","assets/StoryAutoChangeContext.Bkf8JuVt.js","assets/useTouchSlide.Dtoe6AF3.js","assets/SendButton.u2U3UkDF.js","assets/DrawerLoading.DAplRO-O.js","assets/FloatingView.DCAfxmrm.js","assets/useInitializeWebComponent.BlaUmh31.js","assets/index.B40lqYFz.js","assets/getValueMobileDesktop.CFJG-4Qw.js","assets/browser-info.service.IOAriZQN.js","assets/useBlockStyle.BCPw4RJE.js","assets/index.Dpvc83lt.js","assets/useIntersectionObserver.BdV4-rg9.js","assets/ProHighlightsView.CIxyMJI6.js","assets/LimiterByParentWidth.xewSp2Bi.js","assets/ProHighlightsViewTwo.ogLNaWb6.js","assets/ProHighlightsViewThree.DPvTNX6v.js","assets/CarouselView.DaWCKi7Q.js","assets/index.D9UnEzeo.js","assets/useIsMobile.8NX_v4Rd.js","assets/index.Clike9Ag.js","assets/VideoImage.nsINx6t4.js","assets/index.CUqo0Wgp.js","assets/cn.Dk0ba8pw.js","assets/index.VrXpu5OE.js","assets/LoadingElements.CFMbpS8j.js","assets/index.Dk0ba8pw.js","assets/current-token.context.D_pRX6Bp.js","assets/react.2YUL2UnA.js","assets/CarouselTwoView.B6fN-Xfi.js","assets/index.DSBUMBTu.js","assets/index.DZpytfJQ.js","assets/index.CKEtkY-O.js","assets/Combination.DGBBY5DP.js","assets/button.rq0dO4Sn.js","assets/style.hnw4e8Bu.js","assets/FeedView.DbN0VU-y.js","assets/useTransformBodyToFeed.Cg3Ic8gj.js","assets/ExplorerView.D4plPUY5.js","assets/ExplorerPreviewView.C0vqpLPt.js","assets/WiddePositionPickerMenu.BbX2Pg-O.js","assets/X.VjUkbxpz.js"])))=>i.map(i=>d[i]); var bf=Object.defineProperty;var vf=(t,e,r)=>e in t?bf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var w=(t,e,r)=>vf(t,typeof e!="symbol"?e+"":e,r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var ni=function(t,e){return ni=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},ni(t,e)};function tr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ni(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ya=function(){return ya=Object.assign||function(e){for(var r,n=1,o=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ir(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function Rn(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n1||c(p,g)})},h&&(o[p]=h(o[p])))}function c(p,h){try{l(n[p](h))}catch(g){f(i[0][3],g)}}function l(p){p.value instanceof Nt?Promise.resolve(p.value.v).then(d,u):f(i[0][2],p)}function d(p){c("next",p)}function u(p){c("throw",p)}function f(p,h){p(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function xf(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Mt=="function"?Mt(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}function F(t){return typeof t=="function"}function Ul(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Oo=Ul(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription: `+r.map(function(n,o){return o+1+") "+n.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=r}});function oi(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Zn=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Mt(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(g){e={error:g}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(F(d))try{d()}catch(g){i=g instanceof Oo?g.errors:[g]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=Mt(u),p=f.next();!p.done;p=f.next()){var h=p.value;try{wa(h)}catch(g){i=i??[],g instanceof Oo?i=Rn(Rn([],Ir(i)),Ir(g.errors)):i.push(g)}}}catch(g){n={error:g}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}if(i)throw new Oo(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)wa(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&oi(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&oi(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Ol=Zn.EMPTY;function Rl(t){return t instanceof Zn||t&&"closed"in t&&F(t.remove)&&F(t.add)&&F(t.unsubscribe)}function wa(t){F(t)?t():t.unsubscribe()}var Ef={Promise:void 0},Cf={setTimeout:function(t,e){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Ol:(this.currentObservers=null,a.push(r),new Zn(function(){n.currentObservers=null,oi(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},e.prototype.asObservable=function(){var r=new re;return r.source=this,r},e.create=function(r,n){return new _a(r,n)},e}(re),_a=function(t){tr(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return e.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},e.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Ol},e}(to),Lf=function(t){tr(e,t);function e(r){var n=t.call(this)||this;return n._value=r,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var n=t.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},e.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},e.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},e}(to),Bf=new re(function(t){return t.complete()});function Nf(t){return t&&F(t.schedule)}function us(t){return t[t.length-1]}function Ff(t){return F(us(t))?t.pop():void 0}function Dl(t){return Nf(us(t))?t.pop():void 0}function Mf(t,e){return typeof us(t)=="number"?t.pop():e}var ds=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Ll(t){return F(t==null?void 0:t.then)}function Bl(t){return F(t[ls])}function Nl(t){return Symbol.asyncIterator&&F(t==null?void 0:t[Symbol.asyncIterator])}function Fl(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function $f(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ml=$f();function $l(t){return F(t==null?void 0:t[Ml])}function Hl(t){return Sf(this,arguments,function(){var r,n,o,i;return Pl(this,function(s){switch(s.label){case 0:r=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Nt(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,Nt(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Nt(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Wl(t){return F(t==null?void 0:t.getReader)}function Tt(t){if(t instanceof re)return t;if(t!=null){if(Bl(t))return Hf(t);if(ds(t))return Wf(t);if(Ll(t))return jf(t);if(Nl(t))return jl(t);if($l(t))return Vf(t);if(Wl(t))return qf(t)}throw Fl(t)}function Hf(t){return new re(function(e){var r=t[ls]();if(F(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Wf(t){return new re(function(e){for(var r=0;rn.entityName===e.name&&n.eventName===r),Pr(n=>n.context))}onEntity(e){return this.eventSubject.asObservable().pipe(Ro(r=>r.entityName===e.name),Pr(r=>({event:r.eventName,context:r.context})))}onAll(){return this.eventSubject.asObservable()}onEventName(e){return this.eventSubject.asObservable().pipe(Ro(r=>r.eventName===e))}}let Ao=null;function vh(){return Ao||(Ao=new bh),Ao}const _h="modulepreload",Sh=function(t){return"https://cdn.widde.io/"+t},Ea={},Y=function(e,r,n){let o=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(r.map(c=>{if(c=Sh(c),c in Ea)return;Ea[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":_h,l||(u.as="script"),u.crossOrigin="",u.href=c,a&&u.setAttribute("nonce",a),document.head.appendChild(u),l)return new Promise((f,p)=>{u.addEventListener("load",f),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})};var E;(t=>{(e=>{e.STORY_INLINE="widde-story-inline",e.STORY_FLOATING="widde-story-floating",e.FULLSCREEN="widde-fullscreen",e.CONFIGURATION_PREVIEW="widde-configuration-preview",e.FEED="widde-feed",e.BLOCK_CONFIGURATION="widde-block-configuration",e.PRO_CAROUSEL="widde-pro-carousel",e.PRO_CAROUSEL_TWO="widde-pro-carousel-two",e.PRO_PRODUCTS_HIGHLIGHTS="widde-pro-products-highlights",e.PRO_HOME_HIGHLIGHTS="widde-pro-highlights",e.PRO_HIGHLIGHTS_TWO="widde-pro-highlights-two",e.PRO_HIGHLIGHTS_THREE="widde-pro-highlights-three",e.WIDDE_FLOATING_BLOCK="widde-floating-block",e.WIDDE_FEED_BLOCK="widde-feed-block",e.WIDDE_EXPLORER="widde-explorer",e.WIDDE_EXPLORER_PREVIEW="widde-explorer-preview",e.WIDDE_PREVIEW="widde-preview",e.WIDDE_POSITION_PICKER_MENU="widde-pro-position-picker-menu",e.CDN_COLLECTION="widde-cdn-collection"})(t.WebComponentTags||(t.WebComponentTags={}))})(E||(E={}));function Ca(t){return customElements.get(t)!==void 0}async function xh(){const t=E.WebComponentTags.CDN_COLLECTION;if(!Ca(t)){const{registerWebComponents:e}=await Y(async()=>{const{registerWebComponents:r}=await Promise.resolve().then(()=>j1);return{registerWebComponents:r}},void 0);if(e(),!Ca(t))throw new Error(`Falha ao registrar web component ${t}`)}}async function Eh(){try{const t=new URLSearchParams(window.location.search),e=t.get("collectionAppId"),r=t.get("domain");if(!e||!r)return;await xh();const n=document.createElement(E.WebComponentTags.CDN_COLLECTION);n.setAttribute("collection-app-id",e),n.setAttribute("domain",r),document.body.appendChild(n)}catch(t){console.error("Erro ao iniciar fluxo CDN:",t)}}const de={api:"https://api-admin.widde.io",web_admin:"https://widde-dev.web.app",api_prod:"https://api-admin.widde.io",cdn:"https://cdn2.widde.io",auth_to_api_prod:"0d84b636-7ee1-4655-b39b-78984960cb5a",auth_param:"e2e8cb6d-0d27-4ea8-bd32-7235449d2ccc",sentry_dsn:"https://955a93fdabce152bcc77a7aba5d082ac@o4509708062818304.ingest.us.sentry.io/4509719990894592",salt:"B809ADD2-6B64-4D05-83C6-EW9I14D1D7E6"};function wE(t,e){if(document.querySelector(`link[href='${t}']`))return;const r=document.createElement("link");r.rel="preload",r.as=e,r.href=t,document.head.appendChild(r)}function Ch(t){if(document.querySelector(`link[href='${t}']`))return;const e=document.createElement("link");e.rel="dns-prefetch",e.href=t,document.head.appendChild(e)}const kh=".mm-wrapper--opened widde-story-floating,.mm-wrapper--opened widde-story-inline,.mm-wrapper--opened widde-configuration-previewe,.mm-wrapper_opened widde-story-floating,.mm-wrapper_opened widde-story-inline,.mm-wrapper_opened widde-configuration-previewe,.mm-opened widde-story-floating,.mm-opened widde-story-inline,.mm-opened widde-configuration-previewe,html.js-drawer-open widde-story-floating,html.js-drawer-open widde-story-inline,html.js-drawer-open widde-configuration-previewe,body.snapjs-left widde-story-floating,body.snapjs-left widde-story-inline,body.snapjs-left widde-configuration-previewe{display:none!important}widde-configuration-preview,widde-story-inline,widde-story-floating,widde-fullscreen{box-sizing:content-box!important;display:inline!important}widde-feed{width:100%!important}";function Th(){const t=document.createElement("style");t.innerHTML=kh,document.head.appendChild(t)}function Ih(){["https://fonts.googleapis.com","https://videos.widde.io",de.api].map(Ch)}class Ve{static isCDNWidde(){return this.cdnDomains.includes(window.location.host)}static isCDNWiddeApp(){return this.cdnDomains.includes(window.location.host)&&window.location.pathname==="/app"}static getDomain(){const e=new window.URL(window.location.href);return this.cleanUrl(e.searchParams.get("domain"))}static cleanUrl(e){return e==null?void 0:e.replace("https://","").replace("http://","").replace("www.","")}}w(Ve,"cdnDomains",["localhost:5173","cdn.widde.io","widde-dev.web.app","widde-video-dev.web.app"]);new TextEncoder;const Ph=4096;function Kl(t,e,r){let n=e;const o=n+r,i=[];let s="";for(;n65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u)}else i.push(a);i.length>=Ph&&(s+=String.fromCharCode(...i),i.length=0)}return i.length>0&&(s+=String.fromCharCode(...i)),s}const Uh=new TextDecoder,Oh=200;function Rh(t,e,r){const n=t.subarray(e,e+r);return Uh.decode(n)}function Ah(t,e,r){return r>Oh?Rh(t,e,r):Kl(t,e,r)}class nn{constructor(e,r){this.type=e,this.data=r}}class Z extends Error{constructor(e){super(e);const r=Object.create(Z.prototype);Object.setPrototypeOf(this,r),Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:Z.name})}}const gr=4294967295;function Dh(t,e,r){const n=Math.floor(r/4294967296),o=r;t.setUint32(e,n),t.setUint32(e+4,o)}function Jl(t,e){const r=t.getInt32(e),n=t.getUint32(e+4);return r*4294967296+n}function Lh(t,e){const r=t.getUint32(e),n=t.getUint32(e+4);return r*4294967296+n}const Bh=-1,Nh=4294967296-1,Fh=17179869184-1;function Mh({sec:t,nsec:e}){if(t>=0&&e>=0&&t<=Fh)if(e===0&&t<=Nh){const r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,t),r}else{const r=t/4294967296,n=t&4294967295,o=new Uint8Array(8),i=new DataView(o.buffer);return i.setUint32(0,e<<2|r&3),i.setUint32(4,n),o}else{const r=new Uint8Array(12),n=new DataView(r.buffer);return n.setUint32(0,e),Dh(n,4,t),r}}function $h(t){const e=t.getTime(),r=Math.floor(e/1e3),n=(e-r*1e3)*1e6,o=Math.floor(n/1e9);return{sec:r+o,nsec:n-o*1e9}}function Hh(t){if(t instanceof Date){const e=$h(t);return Mh(e)}else return null}function Wh(t){const e=new DataView(t.buffer,t.byteOffset,t.byteLength);switch(t.byteLength){case 4:return{sec:e.getUint32(0),nsec:0};case 8:{const r=e.getUint32(0),n=e.getUint32(4),o=(r&3)*4294967296+n,i=r>>>2;return{sec:o,nsec:i}}case 12:{const r=Jl(e,4),n=e.getUint32(0);return{sec:r,nsec:n}}default:throw new Z(`Unrecognized data size for timestamp (expected 4, 8, or 12): ${t.length}`)}}function jh(t){const e=Wh(t);return new Date(e.sec*1e3+e.nsec/1e6)}const Vh={type:Bh,encode:Hh,decode:jh};class ai{constructor(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(Vh)}register({type:e,encode:r,decode:n}){if(e>=0)this.encoders[e]=r,this.decoders[e]=n;else{const o=-1-e;this.builtInEncoders[o]=r,this.builtInDecoders[o]=n}}tryToEncode(e,r){for(let n=0;n0&&e<=this.maxKeyLength}find(e,r,n){const o=this.caches[n-1];e:for(const i of o){const s=i.bytes;for(let a=0;a=this.maxLengthPerKey?n[Math.random()*n.length|0]=o:n.push(o)}decode(e,r,n){const o=this.find(e,r,n);if(o!=null)return this.hit++,o;this.miss++;const i=Kl(e,r,n),s=Uint8Array.prototype.slice.call(e,r,r+n);return this.store(s,i),i}}const ci="array",xr="map_key",Yl="map_value",Jh=t=>{if(typeof t=="string"||typeof t=="number")return t;throw new Z("The type of key must be string or number but "+typeof t)};class Yh{constructor(){this.stack=[],this.stackHeadPosition=-1}get length(){return this.stackHeadPosition+1}top(){return this.stack[this.stackHeadPosition]}pushArrayState(e){const r=this.getUninitializedStateFromPool();r.type=ci,r.position=0,r.size=e,r.array=new Array(e)}pushMapState(e){const r=this.getUninitializedStateFromPool();r.type=xr,r.readCount=0,r.size=e,r.map={}}getUninitializedStateFromPool(){if(this.stackHeadPosition++,this.stackHeadPosition===this.stack.length){const e={type:void 0,size:0,array:void 0,position:0,readCount:0,map:void 0,key:null};this.stack.push(e)}return this.stack[this.stackHeadPosition]}release(e){if(this.stack[this.stackHeadPosition]!==e)throw new Error("Invalid stack state. Released state is not on top of the stack.");if(e.type===ci){const n=e;n.size=0,n.array=void 0,n.position=0,n.type=void 0}if(e.type===xr||e.type===Yl){const n=e;n.size=0,n.map=void 0,n.readCount=0,n.type=void 0}this.stackHeadPosition--}reset(){this.stack.length=0,this.stackHeadPosition=-1}}const yr=-1,hs=new DataView(new ArrayBuffer(0)),Xh=new Uint8Array(hs.buffer);try{hs.getInt8(0)}catch(t){if(!(t instanceof RangeError))throw new Error("This module is not supported in the current JavaScript engine because DataView does not throw RangeError on out-of-bounds access")}const Ta=new RangeError("Insufficient data"),Qh=new Kh;class ms{constructor(e){this.totalPos=0,this.pos=0,this.view=hs,this.bytes=Xh,this.headByte=yr,this.stack=new Yh,this.entered=!1,this.extensionCodec=(e==null?void 0:e.extensionCodec)??ai.defaultCodec,this.context=e==null?void 0:e.context,this.useBigInt64=(e==null?void 0:e.useBigInt64)??!1,this.rawStrings=(e==null?void 0:e.rawStrings)??!1,this.maxStrLength=(e==null?void 0:e.maxStrLength)??gr,this.maxBinLength=(e==null?void 0:e.maxBinLength)??gr,this.maxArrayLength=(e==null?void 0:e.maxArrayLength)??gr,this.maxMapLength=(e==null?void 0:e.maxMapLength)??gr,this.maxExtLength=(e==null?void 0:e.maxExtLength)??gr,this.keyDecoder=(e==null?void 0:e.keyDecoder)!==void 0?e.keyDecoder:Qh,this.mapKeyConverter=(e==null?void 0:e.mapKeyConverter)??Jh}clone(){return new ms({extensionCodec:this.extensionCodec,context:this.context,useBigInt64:this.useBigInt64,rawStrings:this.rawStrings,maxStrLength:this.maxStrLength,maxBinLength:this.maxBinLength,maxArrayLength:this.maxArrayLength,maxMapLength:this.maxMapLength,maxExtLength:this.maxExtLength,keyDecoder:this.keyDecoder})}reinitializeState(){this.totalPos=0,this.headByte=yr,this.stack.reset()}setBuffer(e){const r=ka(e);this.bytes=r,this.view=new DataView(r.buffer,r.byteOffset,r.byteLength),this.pos=0}appendBuffer(e){if(this.headByte===yr&&!this.hasRemaining(1))this.setBuffer(e);else{const r=this.bytes.subarray(this.pos),n=ka(e),o=new Uint8Array(r.length+n.length);o.set(r),o.set(n,r.length),this.setBuffer(o)}}hasRemaining(e){return this.view.byteLength-this.pos>=e}createExtraByteError(e){const{view:r,pos:n}=this;return new RangeError(`Extra ${r.byteLength-n} of ${r.byteLength} byte(s) found at buffer[${e}]`)}decode(e){if(this.entered)return this.clone().decode(e);try{this.entered=!0,this.reinitializeState(),this.setBuffer(e);const r=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return r}finally{this.entered=!1}}*decodeMulti(e){if(this.entered){yield*this.clone().decodeMulti(e);return}try{for(this.entered=!0,this.reinitializeState(),this.setBuffer(e);this.hasRemaining(1);)yield this.doDecodeSync()}finally{this.entered=!1}}async decodeAsync(e){if(this.entered)return this.clone().decodeAsync(e);try{this.entered=!0;let r=!1,n;for await(const a of e){if(r)throw this.entered=!1,this.createExtraByteError(this.totalPos);this.appendBuffer(a);try{n=this.doDecodeSync(),r=!0}catch(c){if(!(c instanceof RangeError))throw c}this.totalPos+=this.pos}if(r){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return n}const{headByte:o,pos:i,totalPos:s}=this;throw new RangeError(`Insufficient data in parsing ${Do(o)} at ${s} (${i} in the current buffer)`)}finally{this.entered=!1}}decodeArrayStream(e){return this.decodeMultiAsync(e,!0)}decodeStream(e){return this.decodeMultiAsync(e,!1)}async*decodeMultiAsync(e,r){if(this.entered){yield*this.clone().decodeMultiAsync(e,r);return}try{this.entered=!0;let n=r,o=-1;for await(const i of e){if(r&&o===0)throw this.createExtraByteError(this.totalPos);this.appendBuffer(i),n&&(o=this.readArraySize(),n=!1,this.complete());try{for(;yield this.doDecodeSync(),--o!==0;);}catch(s){if(!(s instanceof RangeError))throw s}this.totalPos+=this.pos}}finally{this.entered=!1}}doDecodeSync(){e:for(;;){const e=this.readHeadByte();let r;if(e>=224)r=e-256;else if(e<192)if(e<128)r=e;else if(e<144){const o=e-128;if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e<160){const o=e-144;if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else{const o=e-160;r=this.decodeString(o,0)}else if(e===192)r=null;else if(e===194)r=!1;else if(e===195)r=!0;else if(e===202)r=this.readF32();else if(e===203)r=this.readF64();else if(e===204)r=this.readU8();else if(e===205)r=this.readU16();else if(e===206)r=this.readU32();else if(e===207)this.useBigInt64?r=this.readU64AsBigInt():r=this.readU64();else if(e===208)r=this.readI8();else if(e===209)r=this.readI16();else if(e===210)r=this.readI32();else if(e===211)this.useBigInt64?r=this.readI64AsBigInt():r=this.readI64();else if(e===217){const o=this.lookU8();r=this.decodeString(o,1)}else if(e===218){const o=this.lookU16();r=this.decodeString(o,2)}else if(e===219){const o=this.lookU32();r=this.decodeString(o,4)}else if(e===220){const o=this.readU16();if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else if(e===221){const o=this.readU32();if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else if(e===222){const o=this.readU16();if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e===223){const o=this.readU32();if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e===196){const o=this.lookU8();r=this.decodeBinary(o,1)}else if(e===197){const o=this.lookU16();r=this.decodeBinary(o,2)}else if(e===198){const o=this.lookU32();r=this.decodeBinary(o,4)}else if(e===212)r=this.decodeExtension(1,0);else if(e===213)r=this.decodeExtension(2,0);else if(e===214)r=this.decodeExtension(4,0);else if(e===215)r=this.decodeExtension(8,0);else if(e===216)r=this.decodeExtension(16,0);else if(e===199){const o=this.lookU8();r=this.decodeExtension(o,1)}else if(e===200){const o=this.lookU16();r=this.decodeExtension(o,2)}else if(e===201){const o=this.lookU32();r=this.decodeExtension(o,4)}else throw new Z(`Unrecognized type byte: ${Do(e)}`);this.complete();const n=this.stack;for(;n.length>0;){const o=n.top();if(o.type===ci)if(o.array[o.position]=r,o.position++,o.position===o.size)r=o.array,n.release(o);else continue e;else if(o.type===xr){if(r==="__proto__")throw new Z("The key __proto__ is not allowed");o.key=this.mapKeyConverter(r),o.type=Yl;continue e}else if(o.map[o.key]=r,o.readCount++,o.readCount===o.size)r=o.map,n.release(o);else{o.key=null,o.type=xr;continue e}}return r}}readHeadByte(){return this.headByte===yr&&(this.headByte=this.readU8()),this.headByte}complete(){this.headByte=yr}readArraySize(){const e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:{if(e<160)return e-144;throw new Z(`Unrecognized array type byte: ${Do(e)}`)}}}pushMapState(e){if(e>this.maxMapLength)throw new Z(`Max length exceeded: map length (${e}) > maxMapLengthLength (${this.maxMapLength})`);this.stack.pushMapState(e)}pushArrayState(e){if(e>this.maxArrayLength)throw new Z(`Max length exceeded: array length (${e}) > maxArrayLength (${this.maxArrayLength})`);this.stack.pushArrayState(e)}decodeString(e,r){return!this.rawStrings||this.stateIsMapKey()?this.decodeUtf8String(e,r):this.decodeBinary(e,r)}decodeUtf8String(e,r){var i;if(e>this.maxStrLength)throw new Z(`Max length exceeded: UTF-8 byte length (${e}) > maxStrLength (${this.maxStrLength})`);if(this.bytes.byteLength0?this.stack.top().type===xr:!1}decodeBinary(e,r){if(e>this.maxBinLength)throw new Z(`Max length exceeded: bin length (${e}) > maxBinLength (${this.maxBinLength})`);if(!this.hasRemaining(e+r))throw Ta;const n=this.pos+r,o=this.bytes.subarray(n,n+e);return this.pos+=r+e,o}decodeExtension(e,r){if(e>this.maxExtLength)throw new Z(`Max length exceeded: ext length (${e}) > maxExtLength (${this.maxExtLength})`);const n=this.view.getInt8(this.pos+r),o=this.decodeBinary(e,r+1);return this.extensionCodec.decode(o,n,this.context)}lookU8(){return this.view.getUint8(this.pos)}lookU16(){return this.view.getUint16(this.pos)}lookU32(){return this.view.getUint32(this.pos)}readU8(){const e=this.view.getUint8(this.pos);return this.pos++,e}readI8(){const e=this.view.getInt8(this.pos);return this.pos++,e}readU16(){const e=this.view.getUint16(this.pos);return this.pos+=2,e}readI16(){const e=this.view.getInt16(this.pos);return this.pos+=2,e}readU32(){const e=this.view.getUint32(this.pos);return this.pos+=4,e}readI32(){const e=this.view.getInt32(this.pos);return this.pos+=4,e}readU64(){const e=Lh(this.view,this.pos);return this.pos+=8,e}readI64(){const e=Jl(this.view,this.pos);return this.pos+=8,e}readU64AsBigInt(){const e=this.view.getBigUint64(this.pos);return this.pos+=8,e}readI64AsBigInt(){const e=this.view.getBigInt64(this.pos);return this.pos+=8,e}readF32(){const e=this.view.getFloat32(this.pos);return this.pos+=4,e}readF64(){const e=this.view.getFloat64(this.pos);return this.pos+=8,e}}function Zh(t,e){return new ms(e).decode(t)}class em{async parse(e){try{if(e instanceof Response){const r=await e.arrayBuffer();return this.parseSync(r)}return e instanceof ArrayBuffer?this.parseSync(e):this.parseSync(e)}catch(r){throw r instanceof Z?new Error(`MessagePack decode error: ${r.message}. Data may be corrupted or invalid.`):new Error(`Failed to parse MessagePack data: ${r}`)}}parseSync(e){try{const r=e instanceof ArrayBuffer?new Uint8Array(e):e;return Zh(r)}catch(r){throw r instanceof Z?new Error(`MessagePack decode error: ${r.message}. Data may be corrupted or invalid.`):new Error(`Failed to parse MessagePack data: ${r}`)}}static isMessagePackResponse(e){const r=e.headers.get("Content-Type");return(r==null?void 0:r.includes("application/x-msgpack"))??!1}static getOriginalSize(e){const r=e.headers.get("X-Original-Size");return r?parseInt(r,10):null}static getMessagePackSize(e){const r=e.headers.get("X-Msgpack-Size");return r?parseInt(r,10):null}static getCompressionRatio(e){const r=this.getOriginalSize(e),n=this.getMessagePackSize(e);return r&&n?(r-n)/r*100:null}}const tm=new em;function Xl(t,e){return function(){return t.apply(e,arguments)}}const{toString:rm}=Object.prototype,{getPrototypeOf:gs}=Object,ro=(t=>e=>{const r=rm.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ce=t=>(t=t.toLowerCase(),e=>ro(e)===t),no=t=>e=>typeof e===t,{isArray:rr}=Array,Ur=no("undefined");function nm(t){return t!==null&&!Ur(t)&&t.constructor!==null&&!Ur(t.constructor)&&ue(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ql=Ce("ArrayBuffer");function om(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ql(t.buffer),e}const im=no("string"),ue=no("function"),Zl=no("number"),oo=t=>t!==null&&typeof t=="object",sm=t=>t===!0||t===!1,wn=t=>{if(ro(t)!=="object")return!1;const e=gs(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},am=Ce("Date"),cm=Ce("File"),lm=Ce("Blob"),um=Ce("FileList"),dm=t=>oo(t)&&ue(t.pipe),pm=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ue(t.append)&&((e=ro(t))==="formdata"||e==="object"&&ue(t.toString)&&t.toString()==="[object FormData]"))},fm=Ce("URLSearchParams"),[hm,mm,gm,ym]=["ReadableStream","Request","Response","Headers"].map(Ce),wm=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mr(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),rr(t))for(n=0,o=t.length;n0;)if(o=r[n],e===o.toLowerCase())return o;return null}const gt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tu=t=>!Ur(t)&&t!==gt;function li(){const{caseless:t}=tu(this)&&this||{},e={},r=(n,o)=>{const i=t&&eu(e,o)||o;wn(e[i])&&wn(n)?e[i]=li(e[i],n):wn(n)?e[i]=li({},n):rr(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n(Mr(e,(o,i)=>{r&&ue(o)?t[i]=Xl(o,r):t[i]=o},{allOwnKeys:n}),t),vm=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),_m=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Sm=(t,e,r,n)=>{let o,i,s;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!n||n(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=r!==!1&&gs(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},xm=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},Em=t=>{if(!t)return null;if(rr(t))return t;let e=t.length;if(!Zl(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Cm=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&gs(Uint8Array)),km=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},Tm=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Im=Ce("HTMLFormElement"),Pm=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ia=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Um=Ce("RegExp"),ru=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Mr(r,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(n[i]=s||o)}),Object.defineProperties(t,n)},Om=t=>{ru(t,(e,r)=>{if(ue(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(ue(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Rm=(t,e)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return rr(t)?n(t):n(String(t).split(e)),r},Am=()=>{},Dm=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Lm(t){return!!(t&&ue(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Bm=t=>{const e=new Array(10),r=(n,o)=>{if(oo(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const i=rr(n)?[]:{};return Mr(n,(s,a)=>{const c=r(s,o+1);!Ur(c)&&(i[a]=c)}),e[o]=void 0,i}}return n};return r(t,0)},Nm=Ce("AsyncFunction"),Fm=t=>t&&(oo(t)||ue(t))&&ue(t.then)&&ue(t.catch),nu=((t,e)=>t?setImmediate:e?((r,n)=>(gt.addEventListener("message",({source:o,data:i})=>{o===gt&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),gt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ue(gt.postMessage)),Mm=typeof queueMicrotask<"u"?queueMicrotask.bind(gt):typeof process<"u"&&process.nextTick||nu,m={isArray:rr,isArrayBuffer:Ql,isBuffer:nm,isFormData:pm,isArrayBufferView:om,isString:im,isNumber:Zl,isBoolean:sm,isObject:oo,isPlainObject:wn,isReadableStream:hm,isRequest:mm,isResponse:gm,isHeaders:ym,isUndefined:Ur,isDate:am,isFile:cm,isBlob:lm,isRegExp:Um,isFunction:ue,isStream:dm,isURLSearchParams:fm,isTypedArray:Cm,isFileList:um,forEach:Mr,merge:li,extend:bm,trim:wm,stripBOM:vm,inherits:_m,toFlatObject:Sm,kindOf:ro,kindOfTest:Ce,endsWith:xm,toArray:Em,forEachEntry:km,matchAll:Tm,isHTMLForm:Im,hasOwnProperty:Ia,hasOwnProp:Ia,reduceDescriptors:ru,freezeMethods:Om,toObjectSet:Rm,toCamelCase:Pm,noop:Am,toFiniteNumber:Dm,findKey:eu,global:gt,isContextDefined:tu,isSpecCompliantForm:Lm,toJSONObject:Bm,isAsyncFn:Nm,isThenable:Fm,setImmediate:nu,asap:Mm};function O(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}m.inherits(O,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:m.toJSONObject(this.config),code:this.code,status:this.status}}});const ou=O.prototype,iu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{iu[t]={value:t}});Object.defineProperties(O,iu);Object.defineProperty(ou,"isAxiosError",{value:!0});O.from=(t,e,r,n,o,i)=>{const s=Object.create(ou);return m.toFlatObject(t,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),O.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const $m=null;function ui(t){return m.isPlainObject(t)||m.isArray(t)}function su(t){return m.endsWith(t,"[]")?t.slice(0,-2):t}function Pa(t,e,r){return t?t.concat(e).map(function(o,i){return o=su(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function Hm(t){return m.isArray(t)&&!t.some(ui)}const Wm=m.toFlatObject(m,{},null,function(e){return/^is[A-Z]/.test(e)});function io(t,e,r){if(!m.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=m.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!m.isUndefined(y[g])});const n=r.metaTokens,o=r.visitor||d,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&m.isSpecCompliantForm(e);if(!m.isFunction(o))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(m.isDate(h))return h.toISOString();if(!c&&m.isBlob(h))throw new O("Blob is not supported. Use a Buffer instead.");return m.isArrayBuffer(h)||m.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,g,y){let b=h;if(h&&!y&&typeof h=="object"){if(m.endsWith(g,"{}"))g=n?g:g.slice(0,-2),h=JSON.stringify(h);else if(m.isArray(h)&&Hm(h)||(m.isFileList(h)||m.endsWith(g,"[]"))&&(b=m.toArray(h)))return g=su(g),b.forEach(function(S,I){!(m.isUndefined(S)||S===null)&&e.append(s===!0?Pa([g],I,i):s===null?g:g+"[]",l(S))}),!1}return ui(h)?!0:(e.append(Pa(y,g,i),l(h)),!1)}const u=[],f=Object.assign(Wm,{defaultVisitor:d,convertValue:l,isVisitable:ui});function p(h,g){if(!m.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(h),m.forEach(h,function(b,v){(!(m.isUndefined(b)||b===null)&&o.call(e,b,m.isString(v)?v.trim():v,g,f))===!0&&p(b,g?g.concat(v):[v])}),u.pop()}}if(!m.isObject(t))throw new TypeError("data must be an object");return p(t),e}function Ua(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function ys(t,e){this._pairs=[],t&&io(t,this,e)}const au=ys.prototype;au.append=function(e,r){this._pairs.push([e,r])};au.toString=function(e){const r=e?function(n){return e.call(this,n,Ua)}:Ua;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function jm(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cu(t,e,r){if(!e)return t;const n=r&&r.encode||jm;m.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(e,r):i=m.isURLSearchParams(e)?e.toString():new ys(e,r).toString(n),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Oa{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){m.forEach(this.handlers,function(n){n!==null&&e(n)})}}const lu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Vm=typeof URLSearchParams<"u"?URLSearchParams:ys,qm=typeof FormData<"u"?FormData:null,Gm=typeof Blob<"u"?Blob:null,zm={isBrowser:!0,classes:{URLSearchParams:Vm,FormData:qm,Blob:Gm},protocols:["http","https","file","blob","url","data"]},ws=typeof window<"u"&&typeof document<"u",di=typeof navigator=="object"&&navigator||void 0,Km=ws&&(!di||["ReactNative","NativeScript","NS"].indexOf(di.product)<0),Jm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ym=ws&&window.location.href||"http://localhost",Xm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ws,hasStandardBrowserEnv:Km,hasStandardBrowserWebWorkerEnv:Jm,navigator:di,origin:Ym},Symbol.toStringTag,{value:"Module"})),K={...Xm,...zm};function Qm(t,e){return io(t,new K.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return K.isNode&&m.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Zm(t){return m.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function eg(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n=r.length;return s=!s&&m.isArray(o)?o.length:s,c?(m.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!m.isObject(o[s]))&&(o[s]=[]),e(r,n,o[s],i)&&m.isArray(o[s])&&(o[s]=eg(o[s])),!a)}if(m.isFormData(t)&&m.isFunction(t.entries)){const r={};return m.forEachEntry(t,(n,o)=>{e(Zm(n),o,r,0)}),r}return null}function tg(t,e,r){if(m.isString(t))try{return(e||JSON.parse)(t),m.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const $r={transitional:lu,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=m.isObject(e);if(i&&m.isHTMLForm(e)&&(e=new FormData(e)),m.isFormData(e))return o?JSON.stringify(uu(e)):e;if(m.isArrayBuffer(e)||m.isBuffer(e)||m.isStream(e)||m.isFile(e)||m.isBlob(e)||m.isReadableStream(e))return e;if(m.isArrayBufferView(e))return e.buffer;if(m.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Qm(e,this.formSerializer).toString();if((a=m.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return io(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),tg(e)):e}],transformResponse:[function(e){const r=this.transitional||$r.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(m.isResponse(e)||m.isReadableStream(e))return e;if(e&&m.isString(e)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?O.from(a,O.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:K.classes.FormData,Blob:K.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};m.forEach(["delete","get","head","post","put","patch"],t=>{$r.headers[t]={}});const rg=m.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ng=t=>{const e={};let r,n,o;return t&&t.split(` `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||e[r]&&rg[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Ra=Symbol("internals");function wr(t){return t&&String(t).trim().toLowerCase()}function bn(t){return t===!1||t==null?t:m.isArray(t)?t.map(bn):String(t)}function og(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const ig=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Lo(t,e,r,n,o){if(m.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!m.isString(e)){if(m.isString(n))return e.indexOf(n)!==-1;if(m.isRegExp(n))return n.test(e)}}function sg(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function ag(t,e){const r=m.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,s){return this[n].call(this,e,o,i,s)},configurable:!0})})}let ie=class{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function i(a,c,l){const d=wr(c);if(!d)throw new Error("header name must be a non-empty string");const u=m.findKey(o,d);(!u||o[u]===void 0||l===!0||l===void 0&&o[u]!==!1)&&(o[u||c]=bn(a))}const s=(a,c)=>m.forEach(a,(l,d)=>i(l,d,c));if(m.isPlainObject(e)||e instanceof this.constructor)s(e,r);else if(m.isString(e)&&(e=e.trim())&&!ig(e))s(ng(e),r);else if(m.isHeaders(e))for(const[a,c]of e.entries())i(c,a,n);else e!=null&&i(r,e,n);return this}get(e,r){if(e=wr(e),e){const n=m.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return og(o);if(m.isFunction(r))return r.call(this,o,n);if(m.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=wr(e),e){const n=m.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Lo(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function i(s){if(s=wr(s),s){const a=m.findKey(n,s);a&&(!r||Lo(n,n[a],a,r))&&(delete n[a],o=!0)}}return m.isArray(e)?e.forEach(i):i(e),o}clear(e){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!e||Lo(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const r=this,n={};return m.forEach(this,(o,i)=>{const s=m.findKey(n,i);if(s){r[s]=bn(o),delete r[i];return}const a=e?sg(i):String(i).trim();a!==i&&delete r[i],r[a]=bn(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return m.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&m.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[Ra]=this[Ra]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=wr(s);n[a]||(ag(o,s),n[a]=!0)}return m.isArray(e)?e.forEach(i):i(e),this}};ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);m.reduceDescriptors(ie.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});m.freezeMethods(ie);function Bo(t,e){const r=this||$r,n=e||r,o=ie.from(n.headers);let i=n.data;return m.forEach(t,function(a){i=a.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function du(t){return!!(t&&t.__CANCEL__)}function nr(t,e,r){O.call(this,t??"canceled",O.ERR_CANCELED,e,r),this.name="CanceledError"}m.inherits(nr,O,{__CANCEL__:!0});function pu(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new O("Request failed with status code "+r.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function cg(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function lg(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),d=n[i];s||(s=l),r[o]=c,n[o]=l;let u=i,f=0;for(;u!==o;)f+=r[u++],u=u%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),l-s{r=d,o=null,i&&(clearTimeout(i),i=null),t.apply(null,l)};return[(...l)=>{const d=Date.now(),u=d-r;u>=n?s(l,d):(o=l,i||(i=setTimeout(()=>{i=null,s(o)},n-u)))},()=>o&&s(o)]}const An=(t,e,r=3)=>{let n=0;const o=lg(50,250);return ug(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=s-n,l=o(c),d=s<=a;n=s;const u={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&d?(a-s)/l:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(u)},r)},Aa=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Da=t=>(...e)=>m.asap(()=>t(...e)),dg=K.hasStandardBrowserEnv?((t,e)=>r=>(r=new window.URL(r,K.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new window.URL(K.origin),K.navigator&&/(msie|trident)/i.test(K.navigator.userAgent)):()=>!0,pg=K.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const s=[t+"="+encodeURIComponent(e)];m.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),m.isString(n)&&s.push("path="+n),m.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fg(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function hg(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function fu(t,e,r){let n=!fg(e);return t&&(n||r==!1)?hg(t,e):e}const La=t=>t instanceof ie?{...t}:t;function xt(t,e){e=e||{};const r={};function n(l,d,u,f){return m.isPlainObject(l)&&m.isPlainObject(d)?m.merge.call({caseless:f},l,d):m.isPlainObject(d)?m.merge({},d):m.isArray(d)?d.slice():d}function o(l,d,u,f){if(m.isUndefined(d)){if(!m.isUndefined(l))return n(void 0,l,u,f)}else return n(l,d,u,f)}function i(l,d){if(!m.isUndefined(d))return n(void 0,d)}function s(l,d){if(m.isUndefined(d)){if(!m.isUndefined(l))return n(void 0,l)}else return n(void 0,d)}function a(l,d,u){if(u in e)return n(l,d);if(u in t)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,d,u)=>o(La(l),La(d),u,!0)};return m.forEach(Object.keys(Object.assign({},t,e)),function(d){const u=c[d]||o,f=u(t[d],e[d],d);m.isUndefined(f)&&u!==a||(r[d]=f)}),r}const hu=t=>{const e=xt({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=e;e.headers=s=ie.from(s),e.url=cu(fu(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(m.isFormData(r)){if(K.hasStandardBrowserEnv||K.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[l,...d]=c?c.split(";").map(u=>u.trim()).filter(Boolean):[];s.setContentType([l||"multipart/form-data",...d].join("; "))}}if(K.hasStandardBrowserEnv&&(n&&m.isFunction(n)&&(n=n(e)),n||n!==!1&&dg(e.url))){const l=o&&i&&pg.read(i);l&&s.set(o,l)}return e},mg=typeof XMLHttpRequest<"u",gg=mg&&function(t){return new Promise(function(r,n){const o=hu(t);let i=o.data;const s=ie.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=o,d,u,f,p,h;function g(){p&&p(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function b(){if(!y)return;const S=ie.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),P={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:S,config:t,request:y};pu(function(_){r(_),g()},function(_){n(_),g()},P),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(n(new O("Request aborted",O.ECONNABORTED,t,y)),y=null)},y.onerror=function(){n(new O("Network Error",O.ERR_NETWORK,t,y)),y=null},y.ontimeout=function(){let I=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const P=o.transitional||lu;o.timeoutErrorMessage&&(I=o.timeoutErrorMessage),n(new O(I,P.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,y)),y=null},i===void 0&&s.setContentType(null),"setRequestHeader"in y&&m.forEach(s.toJSON(),function(I,P){y.setRequestHeader(P,I)}),m.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),a&&a!=="json"&&(y.responseType=o.responseType),l&&([f,h]=An(l,!0),y.addEventListener("progress",f)),c&&y.upload&&([u,p]=An(c),y.upload.addEventListener("progress",u),y.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(d=S=>{y&&(n(!S||S.type?new nr(null,t,y):S),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const v=cg(o.url);if(v&&K.protocols.indexOf(v)===-1){n(new O("Unsupported protocol "+v+":",O.ERR_BAD_REQUEST,t));return}y.send(i||null)})},yg=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,a();const d=l instanceof Error?l:this.reason;n.abort(d instanceof O?d:new nr(d instanceof Error?d.message:d))}};let s=e&&setTimeout(()=>{s=null,i(new O(`timeout ${e} of ms exceeded`,O.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),t=null)};t.forEach(l=>l.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>m.asap(a),c}},wg=function*(t,e){let r=t.byteLength;if(r{const o=bg(t,e);let i=0,s,a=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:d}=await o.next();if(l){a(),c.close();return}let u=d.byteLength;if(r){let f=i+=u;r(f)}c.enqueue(new Uint8Array(d))}catch(l){throw a(l),l}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},so=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",mu=so&&typeof ReadableStream=="function",_g=so&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),gu=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Sg=mu&&gu(()=>{let t=!1;const e=new Request(K.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Na=64*1024,pi=mu&&gu(()=>m.isReadableStream(new Response("").body)),Dn={stream:pi&&(t=>t.body)};so&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Dn[e]&&(Dn[e]=m.isFunction(t[e])?r=>r[e]():(r,n)=>{throw new O(`Response type '${e}' is not supported`,O.ERR_NOT_SUPPORT,n)})})})(new Response);const xg=async t=>{if(t==null)return 0;if(m.isBlob(t))return t.size;if(m.isSpecCompliantForm(t))return(await new Request(K.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(m.isArrayBufferView(t)||m.isArrayBuffer(t))return t.byteLength;if(m.isURLSearchParams(t)&&(t=t+""),m.isString(t))return(await _g(t)).byteLength},Eg=async(t,e)=>{const r=m.toFiniteNumber(t.getContentLength());return r??xg(e)},Cg=so&&(async t=>{let{url:e,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:d,withCredentials:u="same-origin",fetchOptions:f}=hu(t);l=l?(l+"").toLowerCase():"text";let p=yg([o,i&&i.toAbortSignal()],s),h;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(c&&Sg&&r!=="get"&&r!=="head"&&(y=await Eg(d,n))!==0){let P=new Request(e,{method:"POST",body:n,duplex:"half"}),C;if(m.isFormData(n)&&(C=P.headers.get("content-type"))&&d.setContentType(C),P.body){const[_,j]=Aa(y,An(Da(c)));n=Ba(P.body,Na,_,j)}}m.isString(u)||(u=u?"include":"omit");const b="credentials"in Request.prototype;h=new Request(e,{...f,signal:p,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:b?u:void 0});let v=await fetch(h);const S=pi&&(l==="stream"||l==="response");if(pi&&(a||S&&g)){const P={};["status","statusText","headers"].forEach(Q=>{P[Q]=v[Q]});const C=m.toFiniteNumber(v.headers.get("content-length")),[_,j]=a&&Aa(C,An(Da(a),!0))||[];v=new Response(Ba(v.body,Na,_,()=>{j&&j(),g&&g()}),P)}l=l||"text";let I=await Dn[m.findKey(Dn,l)||"text"](v,t);return!S&&g&&g(),await new Promise((P,C)=>{pu(P,C,{data:I,headers:ie.from(v.headers),status:v.status,statusText:v.statusText,config:t,request:h})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new O("Network Error",O.ERR_NETWORK,t,h),{cause:b.cause||b}):O.from(b,b&&b.code,t,h)}}),fi={http:$m,xhr:gg,fetch:Cg};m.forEach(fi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Fa=t=>`- ${t}`,kg=t=>m.isFunction(t)||t===null||t===!1,yu={getAdapter:t=>{t=m.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since : `+i.map(Fa).join(` `):" "+Fa(i[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:fi};function No(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new nr(null,t)}function Ma(t){return No(t),t.headers=ie.from(t.headers),t.data=Bo.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),yu.getAdapter(t.adapter||$r.adapter)(t).then(function(n){return No(t),n.data=Bo.call(t,t.transformResponse,n),n.headers=ie.from(n.headers),n},function(n){return du(n)||(No(t),n&&n.response&&(n.response.data=Bo.call(t,t.transformResponse,n.response),n.response.headers=ie.from(n.response.headers))),Promise.reject(n)})}const wu="1.8.4",ao={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ao[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const $a={};ao.transitional=function(e,r,n){function o(i,s){return"[Axios v"+wu+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(e===!1)throw new O(o(s," has been removed"+(r?" in "+r:"")),O.ERR_DEPRECATED);return r&&!$a[s]&&($a[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,s,a):!0}};ao.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Tg(t,e,r){if(typeof t!="object")throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],s=e[i];if(s){const a=t[i],c=a===void 0||s(a,i,t);if(c!==!0)throw new O("option "+i+" must be "+c,O.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new O("Unknown option "+i,O.ERR_BAD_OPTION)}}const vn={assertOptions:Tg,validators:ao},ke=vn.validators;let wt=class{constructor(e){this.defaults=e,this.interceptors={request:new Oa,response:new Oa}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+i):n.stack=i}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=xt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&vn.assertOptions(n,{silentJSONParsing:ke.transitional(ke.boolean),forcedJSONParsing:ke.transitional(ke.boolean),clarifyTimeoutError:ke.transitional(ke.boolean)},!1),o!=null&&(m.isFunction(o)?r.paramsSerializer={serialize:o}:vn.assertOptions(o,{encode:ke.function,serialize:ke.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),vn.assertOptions(r,{baseUrl:ke.spelling("baseURL"),withXsrfToken:ke.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&m.merge(i.common,i[r.method]);i&&m.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),r.headers=ie.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(c=c&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let d,u=0,f;if(!c){const h=[Ma.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,l),f=h.length,d=Promise.resolve(r);u{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},e(function(i,s,a){n.reason||(n.reason=new nr(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new bu(function(o){e=o}),cancel:e}}};function Pg(t){return function(r){return t.apply(null,r)}}function Ug(t){return m.isObject(t)&&t.isAxiosError===!0}const hi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(hi).forEach(([t,e])=>{hi[e]=t});function vu(t){const e=new wt(t),r=Xl(wt.prototype.request,e);return m.extend(r,wt.prototype,e,{allOwnKeys:!0}),m.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return vu(xt(t,o))},r}const W=vu($r);W.Axios=wt;W.CanceledError=nr;W.CancelToken=Ig;W.isCancel=du;W.VERSION=wu;W.toFormData=io;W.AxiosError=O;W.Cancel=W.CanceledError;W.all=function(e){return Promise.all(e)};W.spread=Pg;W.isAxiosError=Ug;W.mergeConfig=xt;W.AxiosHeaders=ie;W.formToJSON=t=>uu(m.isHTMLForm(t)?new FormData(t):t);W.getAdapter=yu.getAdapter;W.HttpStatusCode=hi;W.default=W;const{Axios:_E,AxiosError:SE,CanceledError:xE,isCancel:EE,CancelToken:CE,VERSION:kE,all:TE,Cancel:IE,isAxiosError:PE,spread:UE,toFormData:OE,AxiosHeaders:RE,HttpStatusCode:AE,formToJSON:DE,getAdapter:LE,mergeConfig:BE}=W,st=class st{constructor(){w(this,"chunkSize",1024)}static getInstance(){return st.instance||(st.instance=new st),st.instance}safeBtoa(e){try{const r=encodeURIComponent(e);if(r.length<=this.chunkSize)return btoa(r);const n=[];for(let o=0;oatob(i)).join("");return decodeURIComponent(o)}return decodeURIComponent(atob(e))}catch(r){throw console.error("Erro no safeAtob:",r),new Error("Falha na decodificação Base64")}}encrypt(e){const r=JSON.stringify(e),n=Date.now().toString(),o=`${r}${de.salt}${n}`;let i="";for(let c=0;c{var n;const r=(n=e.headers)==null?void 0:n["content-type"];if(r!=null&&r.includes("application/x-msgpack"))try{return await tm.parse(e.data)}catch(o){return console.error("Failed to decode MessagePack:",o),e.data}return this.obfuscateDecrypt.isObfuscatedResponse(e.data)?this.obfuscateDecrypt.decryptResponse(e.data):e.data})}async get(e,r){var i,s;const n={...r==null?void 0:r.headers},o=((i=n==null?void 0:n.Accept)==null?void 0:i.includes("application/x-msgpack"))||((s=n==null?void 0:n.accept)==null?void 0:s.includes("application/x-msgpack"));return this.axiosInstance.get(e,{headers:n,...o?{responseType:"arraybuffer"}:{}})}async post(e,r,n){let o={...n==null?void 0:n.headers},i=r;const s=r instanceof FormData,a=r instanceof URLSearchParams;return!s&&!a&&typeof r=="object"&&r!==null&&(i=JSON.stringify(r),o["content-type"]="application/json"),this.axiosInstance.post(e,i,{headers:o})}async put(e,r,n){let o={...n==null?void 0:n.headers};return this.axiosInstance.put(e,r,{headers:o})}async patch(e,r,n){let o={...n==null?void 0:n.headers};return this.axiosInstance.patch(e,r,{headers:o})}async delete(e,r,n){let o={...n==null?void 0:n.headers};return this.axiosInstance.delete(e,{data:r,headers:o})}}function bs(t){let e=t;return e||(e={baseURL:de.api+"/api",headers:{accept:"application/json, text/plain, */*","accept-language":"pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6,zh;q=0.5","content-type":"application/json"}}),new Og(e)}function vs(){const t={baseURL:de.api+"/api",headers:{accept:"application/json, text/plain, */*","accept-language":"pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6,zh;q=0.5","content-type":"application/json"}};return bs(t)}function Rg(){const t={baseURL:de.api+"/api",headers:{accept:"application/x-msgpack","accept-language":"pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6,zh;q=0.5","content-type":"application/json"}};return bs(t)}var J;(t=>{(e=>{e.HOME="Home",e.PRODUCT="Product",e.SECTION="Section",e.CUSTOM="Custom"})(t.PageType||(t.PageType={})),(e=>{e.MOBILE="mobile",e.DESKTOP="desktop"})(t.DeviceType||(t.DeviceType={})),(e=>{e.PRODUCTS_HIGHLIGHTS="widde-pro-products-highlights",e.HIGHLIGHTS="widde-pro-highlights",e.HIGHLIGHTS_TWO="widde-pro-highlights-two",e.HIGHLIGHTS_THREE="widde-pro-highlights-three",e.CAROUSEL="widde-pro-carousel",e.CAROUSEL_TWO="widde-pro-carousel-two"})(t.WebComponentType||(t.WebComponentType={})),(e=>{e.API="api",e.USER="user"})(t.CreatedBy||(t.CreatedBy={})),(e=>{e.CSS="css",e.NO_VIDEOS="no_videos",e.NO_ADDRESS="no_address"})(t.InvisibleReason||(t.InvisibleReason={}))})(J||(J={}));const _u=new Map;function nt(t,e){_u.set(t,e)}function se(t){return _u.get(t)}const ct=class ct{constructor(){w(this,"blocksQueue",[]);w(this,"debounceTimeout",null);w(this,"updateVisibilityStatusUseCase");w(this,"getBlockByWebComponentUseCase");w(this,"getBlockByIdUseCase");this.updateVisibilityStatusUseCase=se("UpdateVisibilityStatusUseCase"),this.getBlockByWebComponentUseCase=se("GetBlockByWebComponentUseCase"),this.getBlockByIdUseCase=se("GetBlockByIdUseCase")}static getInstance(){return ct.instance||(ct.instance=new ct),ct.instance}schedule(e){e.forEach(n=>this.blocksQueue.push(n)),this.debounceTimeout&&clearTimeout(this.debounceTimeout);const r=1500;this.debounceTimeout=setTimeout(async()=>{const n=await this.deduplicate(this.blocksQueue),o=await this.filterDifferentBlocks(n);o.length&&(this.updateVisibilityStatusUseCase.execute(window.location.host,o),this.debounceTimeout=null)},r)}async deduplicate(e){var n,o;const r={};for(const i of e)if(i!=null&&i.blockPositionId)r[i.blockPositionId]={invisibleReason:[...new Set([...((o=r[i.blockPositionId])==null?void 0:o.invisibleReason)??[],...i.invisibleReason??[]])],isVisible:i.isVisible,webComponent:i.webComponent,blockPositionId:i.blockPositionId};else{const s=await this.getCurrentBlockByWebComponent({version:i.blockPosition.version,pageType:i.blockPosition.page,device:i.blockPosition.device,webComponent:i.blockPosition.webcomponent});s!=null&&s.id&&(r[s.id]={invisibleReason:[...new Set([...((n=r[s.id])==null?void 0:n.invisibleReason)??[],...i.invisibleReason??[]])],isVisible:i.isVisible,webComponent:i.webComponent,blockPositionId:s.id})}return Object.values(r)}async getCurrentBlockByWebComponent(e){return await this.getBlockByWebComponentUseCase.execute({...e,createdBy:J.CreatedBy.API})||await this.getBlockByWebComponentUseCase.execute({...e,createdBy:J.CreatedBy.USER})}async filterDifferentBlocks(e){var n,o;const r=[];for(const i of e){const s=await this.getBlockByIdUseCase.execute(i.blockPositionId);s==null||s.invisible_reason,(s==null?void 0:s.is_visible)===i.isVisible&&JSON.stringify((n=s.invisible_reason)==null?void 0:n.sort())===JSON.stringify((o=i.invisibleReason)==null?void 0:o.sort())||r.push(i)}return r}};w(ct,"instance",null);let gi=ct;class Ag{constructor(){w(this,"blockPositionsGateway");w(this,"getBlockByWebComponentUseCase");this.blockPositionsGateway=se("BlockPositionsGateway"),this.getBlockByWebComponentUseCase=se("GetBlockByWebComponentUseCase")}async execute(e,r){var o;if(!((o=this.blockPositionsGateway)!=null&&o.updateBlockVisibilityStatus))return;const n=[];for(const i of r){const s=await this.getBlockByWebComponentUseCase.execute({version:i.blockPosition.version,pageType:i.blockPosition.page,device:i.blockPosition.device,createdBy:J.CreatedBy.API,webComponent:i.blockPosition.webcomponent})||await this.getBlockByWebComponentUseCase.execute({version:i.blockPosition.version,pageType:i.blockPosition.page,device:i.blockPosition.device,createdBy:J.CreatedBy.USER,webComponent:i.blockPosition.webcomponent});n.push({blockPositionId:(s==null?void 0:s.id)||"",invisibleReason:i.invisibleReason,isVisible:i.isVisible,webComponent:i.blockPosition.webcomponent})}return this.blockPositionsGateway.updateBlockVisibilityStatus(e,n)}}class Dg{constructor(){w(this,"blockPositionsGateway");this.blockPositionsGateway=se("BlockPositionsGateway")}async execute(e,r){var n;if((n=this.blockPositionsGateway)!=null&&n.updateBlockVisibilityStatus)return this.blockPositionsGateway.updateBlockVisibilityStatus(e,r)}}class Lg{constructor(){w(this,"setupRepository");this.setupRepository=se("SetupRepository")}async execute({version:e,pageType:r,device:n,createdBy:o,webComponent:i}){const s=await this.setupRepository.getData();return s!=null&&s.getBlocksByWebComponent?s.getBlocksByWebComponent(e,r,n,o,i):null}}var ee=(t=>(t.WIDDE_POSITION_PICKER="widde-position-picker",t.WIDDE_LOCAL_DEBUG="widde-local-debug",t.WIDDE_VERSION="widde-version",t.WIDDE_DEFAULT_VERSION="default",t.WIDDE_TOKEN="widde-token",t.WIDDE_HIDE_STORY="widde-hide-story",t.WIDDE_NO_CACHE="no-cache",t))(ee||{});let Ot=null;class Be{static getPreviewConfig(){if(Ot)return Ot;try{const e=new window.URL(window.location.href),r=e.searchParams.get("widde-preview-block"),n=e.pathname.includes("/previews/"),o=r===E.WebComponentTags.WIDDE_FLOATING_BLOCK||e.pathname.includes("/previews/widde-floating-block");return Ot={isPreview:!!r||n,isFloatingBlockPreview:o},Ot}catch{return Ot={isPreview:!1,isFloatingBlockPreview:!1},Ot}}static isEditing(e){const n=new window.URL(window.location.href).searchParams.get("widde-webcomponent-editor")===e,o=this.getPreviewUrl();return n&&this.isSameOrigin((o==null?void 0:o.toString())||null)}static isDemoUrl(){const e=this.getDemoUrl();return!!(e&&this.previewDomains.includes(window.location.host)&&e)}static isPreview(){return!!this.getPreviewUrl()}static isSameOrigin(e){return e?new window.URL(e).origin===new window.URL(window.location.href).origin:!1}static getDemoUrl(){return new window.URL(window.location.href).searchParams.get("widde-demo-url")}static getPreviewUrl(){const e=new window.URL(window.location.href).searchParams.get("widde-preview-url");if(!e)return null;let r=e;try{r=decodeURIComponent(e)}catch{r=e}try{return new window.URL(r)}catch{return console.error("[PreviewHelper] Failed to parse widde-preview-url:",e),null}}static getPreviewHref(){const e=new window.URL(window.location.href).searchParams.get("widde-preview-href");if(!e)return null;let r=e;try{r=decodeURIComponent(e)}catch{r=e}try{return new window.URL(r)}catch{return console.error("[PreviewHelper] Failed to parse widde-preview-href:",e),null}}}w(Be,"previewDomains",["localhost:5173","cdn.widde.io","widde-dev.web.app","widde-video-dev.web.app"]);class Bg{constructor(){w(this,"widdeSetup");w(this,"resolve",()=>{});w(this,"reject",()=>{});this.widdeSetup=new Promise(e=>{this.resolve=e}),this.load()}async load(){try{const e=Ve.isCDNWiddeApp(),r=Ve.getDomain();let n=null;if(e){if(!r)return;n=await this.getSetupByDomain(r)}else{const o=Be.isDemoUrl(),i=Be.getDemoUrl(),s=o?i:window.location.host,a=new URLSearchParams(window.location.search).has(ee.WIDDE_VERSION);n=await this.getSetupByDomain(s,a)}this.resolve(n)}catch(e){this.reject(e)}}async getSetupByDomain(e,r=!1){var o,i;const n=r?`&${ee.WIDDE_NO_CACHE}=1`:"";try{const s=Rg();return await((o=s==null?void 0:s.get)==null?void 0:o.call(s,`/get-setup?domain=${e}${n}`,{headers:{Accept:"application/x-msgpack"}}))}catch{const a=vs();return await((i=a==null?void 0:a.get)==null?void 0:i.call(a,`/get-setup?domain=${e}${n}`))}}async getSetup(){return this.widdeSetup}}class Ng{constructor(e,r,n,o){this.subscription=e,this.blocks=r,this.styles=n,this.collections=o}getBlocksBy(e,r,n,o){var i,s;return((s=(i=this.blocks)==null?void 0:i[r])==null?void 0:s.filter(a=>a.device===n&&a.version===e&&a.created_by===o))||[]}getBlocksByWebComponent(e,r,n,o,i){var s,a;return((a=(s=this.blocks)==null?void 0:s[r])==null?void 0:a.find(c=>c.device===n&&c.version===e&&c.created_by===o&&c.webcomponent===i))||null}getBlockById(e){var r;return((r=Object.values(this.blocks||{}).flat())==null?void 0:r.find(n=>n.id===e))||null}getCollectionOrDefault(e,r){var o,i,s;let n=(i=(o=this==null?void 0:this.collections)==null?void 0:o[e])==null?void 0:i[r];return n||(n=Object.values(((s=this.collections)==null?void 0:s[e])||{})[0]),n||null}getCollectionBy(e,r){var n,o;return((o=(n=this==null?void 0:this.collections)==null?void 0:n[e])==null?void 0:o[r])||null}getStylesBy(e){var r;return((r=this==null?void 0:this.styles)==null?void 0:r[e])||null}getBlockUrlBy(e,r){const n=Object.values(this.blocks||{}).flat(),o=n==null?void 0:n.find(i=>i.version===e&&i.webcomponent===r);return(o==null?void 0:o.url)||null}}class Fg{constructor(e){this.dataSource=e}async getData(){try{const e=await this.dataSource.getSetup();if(!e)return null;const r=new Ng(e.subscription,e.blocks,e.styles,e.collections);return window.___WDD&&(window.___WDD.setup=r),r}catch(e){return console.error("SetupRepository.getData - error occurred:",e),null}}}const Ht={widdeCustomElementAnchorDisconnected:"widdeCustomElement.anchorDisconnected",widdeCustomElementDidNotAppearNoAddress:"widdeCustomElement.didNotAppearNoAddress",widdeCustomElementDidNotAppearNoVideos:"widdeCustomElement.didNotAppearNoVideos"};class Mg{constructor(){w(this,"updateVisibilityStatusService");this.updateVisibilityStatusService=se("UpdateVisibilityStatusService")}listen(){window.addEventListener(Ht.widdeCustomElementDidNotAppearNoVideos,async e=>{const r=e;this.updateVisibilityStatusService.schedule(r.detail)})}}class $g{constructor(){w(this,"updateVisibilityStatusService");this.updateVisibilityStatusService=se("UpdateVisibilityStatusService")}listen(){window.addEventListener(Ht.widdeCustomElementDidNotAppearNoAddress,async e=>{const r=e;this.updateVisibilityStatusService.schedule(r.detail)})}}var Hg=(t=>(t.PRODUCTS_HIGHLIGHTS="widde-pro-products-highlights",t.HIGHLIGHTS="widde-pro-highlights",t.HIGHLIGHTS_TWO="widde-pro-highlights-two",t.HIGHLIGHTS_THREE="widde-pro-highlights-three",t.CAROUSEL="widde-pro-carousel",t.CAROUSEL_TWO="widde-pro-carousel-two",t.EXPLORER="widde-explorer",t.EXPLORER_PREVIEW="widde-explorer-preview",t))(Hg||{}),Bn=(t=>(t.HOME="Home",t.PRODUCT="Product",t.SECTION="Section",t.CUSTOM="Custom",t))(Bn||{}),we=(t=>(t.MOBILE="mobile",t.DESKTOP="desktop",t))(we||{});class _s{constructor(){w(this,"setupRepository");this.setupRepository=se("SetupRepository")}async execute(e,r,n,o){const i=await this.setupRepository.getData();if(!(i!=null&&i.getBlocksBy))return[];let s;if(s=i.getBlocksBy(e,r,n,o),!s.length)switch(n){case we.DESKTOP:s=i.getBlocksBy(e,r,we.MOBILE,o);break;case we.MOBILE:s=i.getBlocksBy(e,r,we.DESKTOP,o);break}return s}}class Wg{constructor(){w(this,"setupRepository");this.setupRepository=se("SetupRepository")}async execute(e,r){const n=await this.setupRepository.getData();return n!=null&&n.getBlockUrlBy?n.getBlockUrlBy(e,r):null}}class _n{static buildUrl(e,r){return e.split("/").map(n=>{if(n.startsWith(":")){const o=n.slice(1);return r[o]}return n}).join("/")}static generateUrl(e){if(!e)return null;try{return e.startsWith("http://")?this.generateUrlByHttp(e):new window.URL(e)}catch{return new window.URL("https://"+e)}}static generateUrlByHttp(e){const r=e.replace(/^http:\/\//,""),[n,o]=r.split("?"),[i,...s]=n.split("/"),a=s.length>0?s[s.length-1].indexOf("#"):-1;let c="";a!==-1&&(c=s[s.length-1].slice(a),s[s.length-1]=s[s.length-1].slice(0,a));const[l,d]=i.split("@").reverse(),[u,f]=(l||"").split(":"),[p,h]=d?d.split(":"):[i,""],g=s.length>0?"/"+s.join("/"):"",y=new URLSearchParams(o||"");return{href:`http://${r}`,origin:`http://${p}${h?":"+h:""}`,protocol:"http:",username:u||"",password:f||"",host:`${p}${h?":"+h:""}`,hostname:p,port:h||"",pathname:g,search:o?`?${o}`:"",searchParams:y,hash:c||"",toJSON:function(){return this.href}}}}class Su{constructor(e,r){this.httpClient=e,this.version=r,this.version||(this.version="default")}async getWebComponentUrl(e,r){return new Wg().execute(r,e)}async createBlockPositionAddedByUser(e,r){const n=_n.buildUrl("/block-positions/:token/by-user",{token:e});return await this.httpClient.post(n,{...r,version:this.version||"default"})}async getBlockPositionsAddedByUser(e,r){return await new _s().execute("default",e,r,J.CreatedBy.USER)}async updateBlockVisibilityStatus(e,r){const n=_n.buildUrl("/block-position-status/:domain/visibility",{domain:e});return await this.httpClient.patch(n,r)}async updateBlockVisibilityStatusByWebComponent(e,r){const n=_n.buildUrl("/block-position-status/:domain/visibility-by-webcomponent",{domain:e});return await this.httpClient.patch(n,r)}}function jg(){window.___WDD||Object.defineProperty(window,"___WDD",{value:{setup:null},writable:!1,enumerable:!1,configurable:!1})}class Vg{constructor(){w(this,"setupRepository");this.setupRepository=se("SetupRepository")}async execute(e){const r=await this.setupRepository.getData();return r!=null&&r.getBlockById?r.getBlockById(e):null}}var At=(t=>(t.LinkClick="link-click",t.Redirect="redirect",t.UrlChange="url-change",t.LoadScript="load-script",t))(At||{});const qg="widde-iframe-monitor";function xu(){return window.parent&&window.parent!==window}function Dt(t){xu()&&window.parent.postMessage(t,"*")}var yi=(t=>(t.ADD_TO_CART="cart_add_item",t.VIEW_ITEM="view_item",t))(yi||{});const Ha={add_to_cart:yi.ADD_TO_CART,view_item:yi.VIEW_ITEM};class Gg{constructor(){this.interceptDataLayer()}interceptDataLayer(){const e=this.findDataLayer();if(e)for(const r of e.names){const n=window[r],o=n.push;n.push=(...i)=>{const s=o.apply(n,i),a=i[0];return this.processEvent(this.mapEventAssertion(a)),s}}}mapEventAssertion(e){return{event:e[1],data:e[2]}}findDataLayer(){const e=["dataLayerGa4","dataLayer","gtmDataLayer","gtagDataLayer"],r=[];for(const n of e){const o=window==null?void 0:window[n];o&&Array.isArray(o)&&r.push(n)}return r.length>0?{names:r}:null}processEvent(e){if(!this.isValidEvent(e))return;const r=this.mapEventType(e.event);r&&this.sendEventToParent(r,e)}isValidEvent(e){return e&&typeof e=="object"&&typeof e.event=="string"&&e.event in Ha}mapEventType(e){return Ha[e]||null}sendEventToParent(e,r){const n={type:e,data:r,source:qg,timestamp:Date.now()};Dt(n)}}const lt=class lt{constructor(){w(this,"initialUrl");this.initialUrl=window.location.href}static getInstance(){return lt.instance||(lt.instance=new lt),lt.instance}initialize(){this.initLinkClickHandler(),this.initRedirectInterceptor(),this.initUrlChangeEvents(),this.initScriptLifecycleEvents(),new Gg}initLinkClickHandler(){document.addEventListener("click",e=>{var n;const r=(n=e.target)==null?void 0:n.closest("a");r&&Dt({type:At.LinkClick,url:r.href,timestamp:Date.now()})},!0)}initRedirectInterceptor(){document.addEventListener("submit",e=>{const r=e.target;if(!(r!=null&&r.action))return;const n=window.location.href;r.action!==n&&setTimeout(()=>{window.location.href!==n&&Dt({type:At.Redirect,url:window.location.href,timestamp:Date.now()})},100)},!0)}initUrlChangeEvents(){const e=()=>{if(!xu())return;const r=window.location.href;r!==this.initialUrl&&Dt({type:At.UrlChange,url:r})};window.addEventListener("popstate",e),window.addEventListener("pushState",e)}initScriptLifecycleEvents(){let e=!1;const r=()=>{e||(Dt({type:At.LoadScript,loaded:!0}),e=!0)};["complete","interactive"].includes(document.readyState)?r():document.addEventListener("DOMContentLoaded",r),setTimeout(r,1e3),window.addEventListener("pagehide",n=>{n.persisted||Dt({type:At.LoadScript,loaded:!1})})}};w(lt,"instance");let wi=lt;const k=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,B=globalThis,bt="9.41.0";function Hr(){return co(B),B}function co(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||bt,e[bt]=e[bt]||{}}function Wr(t,e,r=B){const n=r.__SENTRY__=r.__SENTRY__||{},o=n[bt]=n[bt]||{};return o[t]||(o[t]=e())}const zg=["debug","info","warn","error","log","assert","trace"],Kg="Sentry Logger ",Nn={};function or(t){if(!("console"in B))return t();const e=B.console,r={},n=Object.keys(Nn);n.forEach(o=>{const i=Nn[o];r[o]=e[o],e[o]=i});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function Jg(){xs().enabled=!0}function Yg(){xs().enabled=!1}function Eu(){return xs().enabled}function Xg(...t){Ss("log",...t)}function Qg(...t){Ss("warn",...t)}function Zg(...t){Ss("error",...t)}function Ss(t,...e){k&&Eu()&&or(()=>{B.console[t](`${Kg}[${t}]:`,...e)})}function xs(){return k?Wr("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const x={enable:Jg,disable:Yg,isEnabled:Eu,log:Xg,warn:Qg,error:Zg},Cu=50,Et="?",Wa=/\(error: (.*)\)/,ja=/captureMessage|captureException/;function ku(...t){const e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{const i=[],s=r.split(` `);for(let a=n;a1024)continue;const l=Wa.test(c)?c.replace(Wa,"$1"):c;if(!l.match(/\S*Error: /)){for(const d of e){const u=d(l);if(u){i.push(u);break}}if(i.length>=Cu+o)break}}return ty(i.slice(o))}}function ey(t){return Array.isArray(t)?ku(...t):t}function ty(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(on(e).function||"")&&e.pop(),e.reverse(),ja.test(on(e).function||"")&&(e.pop(),ja.test(on(e).function||"")&&e.pop()),e.slice(0,Cu).map(r=>({...r,filename:r.filename||on(e).filename,function:r.function||Et}))}function on(t){return t[t.length-1]||{}}const Fo="";function Ye(t){try{return!t||typeof t!="function"?Fo:t.name||Fo}catch{return Fo}}function Va(t){const e=t.exception;if(e){const r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}const Sn={},qa={};function It(t,e){Sn[t]=Sn[t]||[],Sn[t].push(e)}function Pt(t,e){if(!qa[t]){qa[t]=!0;try{e()}catch(r){k&&x.error(`Error while instrumenting ${t}`,r)}}}function be(t,e){const r=t&&Sn[t];if(r)for(const n of r)try{n(e)}catch(o){k&&x.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${Ye(n)} Error:`,o)}}let Mo=null;function ry(t){const e="error";It(e,t),Pt(e,ny)}function ny(){Mo=B.onerror,B.onerror=function(t,e,r,n,o){return be("error",{column:n,error:o,line:r,msg:t,url:e}),Mo?Mo.apply(this,arguments):!1},B.onerror.__SENTRY_INSTRUMENTED__=!0}let $o=null;function oy(t){const e="unhandledrejection";It(e,t),Pt(e,iy)}function iy(){$o=B.onunhandledrejection,B.onunhandledrejection=function(t){return be("unhandledrejection",t),$o?$o.apply(this,arguments):!0},B.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Tu=Object.prototype.toString;function Es(t){switch(Tu.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Xe(t,Error)}}function ir(t,e){return Tu.call(t)===`[object ${e}]`}function Iu(t){return ir(t,"ErrorEvent")}function Ga(t){return ir(t,"DOMError")}function sy(t){return ir(t,"DOMException")}function Ae(t){return ir(t,"String")}function Cs(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function ks(t){return t===null||Cs(t)||typeof t!="object"&&typeof t!="function"}function Or(t){return ir(t,"Object")}function lo(t){return typeof Event<"u"&&Xe(t,Event)}function ay(t){return typeof Element<"u"&&Xe(t,Element)}function cy(t){return ir(t,"RegExp")}function uo(t){return!!(t!=null&&t.then&&typeof t.then=="function")}function ly(t){return Or(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Xe(t,e){try{return t instanceof e}catch{return!1}}function Pu(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function uy(t){return typeof Request<"u"&&Xe(t,Request)}const Ts=B,dy=80;function Uu(t,e={}){if(!t)return"";try{let r=t;const n=5,o=[];let i=0,s=0;const a=" > ",c=a.length;let l;const d=Array.isArray(e)?e:e.keyAttrs,u=!Array.isArray(e)&&e.maxStringLength||dy;for(;r&&i++1&&s+o.length*c+l.length>=u));)o.push(l),s+=l.length,r=r.parentNode;return o.reverse().join(a)}catch{return""}}function py(t,e){const r=t,n=[];if(!(r!=null&&r.tagName))return"";if(Ts.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const o=e!=null&&e.length?e.filter(s=>r.getAttribute(s)).map(s=>[s,r.getAttribute(s)]):null;if(o!=null&&o.length)o.forEach(s=>{n.push(`[${s[0]}="${s[1]}"]`)});else{r.id&&n.push(`#${r.id}`);const s=r.className;if(s&&Ae(s)){const a=s.split(/\s+/);for(const c of a)n.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const s of i){const a=r.getAttribute(s);a&&n.push(`[${s}="${a}"]`)}return n.join("")}function Is(){try{return Ts.document.location.href}catch{return""}}function fy(t){if(!Ts.HTMLElement)return null;let e=t;const r=5;for(let n=0;nhy(t,n,r))}function le(t,e,r){if(!(e in t))return;const n=t[e];if(typeof n!="function")return;const o=r(n);typeof o=="function"&&Ou(o,n);try{t[e]=o}catch{k&&x.log(`Failed to replace method "${e}" in object`,t)}}function me(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{k&&x.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Ou(t,e){try{const r=e.prototype||{};t.prototype=e.prototype=r,me(t,"__sentry_original__",e)}catch{}}function Ps(t){return t.__sentry_original__}function Ru(t){if(Es(t))return{message:t.message,name:t.name,stack:t.stack,...Ja(t)};if(lo(t)){const e={type:t.type,target:Ka(t.target),currentTarget:Ka(t.currentTarget),...Ja(t)};return typeof CustomEvent<"u"&&Xe(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function Ka(t){try{return ay(t)?Uu(t):Object.prototype.toString.call(t)}catch{return""}}function Ja(t){if(typeof t=="object"&&t!==null){const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function my(t,e=40){const r=Object.keys(Ru(t));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=e)return Fn(n,e);for(let o=r.length;o>0;o--){const i=r.slice(0,o).join(", ");if(!(i.length>e))return o===r.length?i:Fn(i,e)}return""}function gy(){const t=B;return t.crypto||t.msCrypto}function fe(t=gy()){let e=()=>Math.random()*16;try{if(t!=null&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t!=null&&t.getRandomValues&&(e=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(e()&15)>>r/4).toString(16))}function Au(t){var e,r;return(r=(e=t.exception)==null?void 0:e.values)==null?void 0:r[0]}function ot(t){const{message:e,event_id:r}=t;if(e)return e;const n=Au(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function bi(t,e,r){const n=t.exception=t.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type="Error")}function Wt(t,e){const r=Au(t);if(!r)return;const n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){const i={...o==null?void 0:o.data,...e.data};r.mechanism.data=i}}function Ya(t){if(yy(t))return!0;try{me(t,"__sentry_captured__",!0)}catch{}return!1}function yy(t){try{return t.__sentry_captured__}catch{}}const Du=1e3;function jr(){return Date.now()/Du}function wy(){const{performance:t}=B;if(!(t!=null&&t.now)||!t.timeOrigin)return jr;const e=t.timeOrigin;return()=>(e+t.now())/Du}let Xa;function ve(){return(Xa??(Xa=wy()))()}function by(t){const e=ve(),r={sid:fe(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>_y(r)};return t&&jt(r,t),r}function jt(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:fe()),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{const r=t.timestamp-t.started;t.duration=r>=0?r: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 vy(t,e){let r={};t.status==="ok"&&(r={status:"exited"}),jt(t,r)}function _y(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 Vr(t,e,r=2){if(!e||typeof e!="object"||r<=0)return e;if(t&&Object.keys(e).length===0)return t;const n={...t};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=Vr(n[o],e[o],r-1));return n}function Mn(){return fe()}function fo(){return fe().substring(16)}const vi="_sentrySpan";function _i(t,e){e?me(t,vi,e):delete t[vi]}function Si(t){return t[vi]}const Sy=100;class Ne{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:Mn(),sampleRand:Math.random()}}clone(){const e=new Ne;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...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={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,_i(e,Si(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&&jt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},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,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,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;const r=typeof e=="function"?e(this):e,n=r instanceof Ne?r.getScopeData():Or(r)?e:void 0,{tags:o,extra:i,user:s,contexts:a,level:c,fingerprint:l=[],propagationContext:d}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),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,_i(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Mn(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,r){var i;const n=typeof r=="number"?r:Sy;if(n<=0)return this;const o={timestamp:jr(),...e,message:e.message?Fn(e.message,2048):e.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),(i=this._client)==null||i.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:Si(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Vr(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,r){const n=(r==null?void 0:r.event_id)||fe();if(!this._client)return k&&x.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){const o=(n==null?void 0:n.event_id)||fe();if(!this._client)return k&&x.warn("No client configured on scope - will not capture message!"),o;const i=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:i,...n,event_id:o},this),o}captureEvent(e,r){const n=(r==null?void 0:r.event_id)||fe();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(k&&x.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function xy(){return Wr("defaultCurrentScope",()=>new Ne)}function Ey(){return Wr("defaultIsolationScope",()=>new Ne)}class Cy{constructor(e,r){let n;e?n=e:n=new Ne;let o;r?o=r:o=new Ne,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){const r=this._pushScope();let n;try{n=e(r)}catch(o){throw this._popScope(),o}return uo(n)?n.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const 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 Vt(){const t=Hr(),e=co(t);return e.stack=e.stack||new Cy(xy(),Ey())}function ky(t){return Vt().withScope(t)}function Ty(t,e){const r=Vt();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function Qa(t){return Vt().withScope(()=>t(Vt().getIsolationScope()))}function Iy(){return{withIsolationScope:Qa,withScope:ky,withSetScope:Ty,withSetIsolationScope:(t,e)=>Qa(e),getCurrentScope:()=>Vt().getScope(),getIsolationScope:()=>Vt().getIsolationScope()}}function ho(t){const e=co(t);return e.acs?e.acs:Iy()}function Pe(){const t=Hr();return ho(t).getCurrentScope()}function et(){const t=Hr();return ho(t).getIsolationScope()}function Py(){return Wr("globalScope",()=>new Ne)}function mo(...t){const e=Hr(),r=ho(e);if(t.length===2){const[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function q(){return Pe().getClient()}function Uy(t){const e=t.getPropagationContext(),{traceId:r,parentSpanId:n,propagationSpanId:o}=e,i={trace_id:r,span_id:o||fo()};return n&&(i.parent_span_id=n),i}const $n="sentry.source",Lu="sentry.sample_rate",Oy="sentry.previous_trace_sample_rate",xi="sentry.op",Ei="sentry.origin",Ry="sentry.measurement_unit",Ay="sentry.measurement_value",Za="sentry.custom_span_name",Us="sentry.profile_id",Os="sentry.exclusive_time",Dy=0,Ly=1,Bu="_sentryScope",Nu="_sentryIsolationScope";function By(t,e,r){t&&(me(t,Nu,r),me(t,Bu,e))}function Hn(t){return{scope:t[Bu],isolationScope:t[Nu]}}const Ny="sentry-",Fy=/^sentry-/;function My(t){const e=$y(t);if(!e)return;const r=Object.entries(e).reduce((n,[o,i])=>{if(o.match(Fy)){const s=o.slice(Ny.length);n[s]=i}return n},{});if(Object.keys(r).length>0)return r}function $y(t){if(!(!t||!Ae(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{const n=ec(r);return Object.entries(n).forEach(([o,i])=>{e[o]=i}),e},{}):ec(t)}function ec(t){return t.split(",").map(e=>e.split("=").map(r=>{try{return decodeURIComponent(r.trim())}catch{return}})).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}function Rs(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const Fu=0,As=1;let tc=!1;function Hy(t){const{spanId:e,traceId:r}=t.spanContext(),{data:n,op:o,parent_span_id:i,status:s,origin:a,links:c}=Se(t);return{parent_span_id:i,span_id:e,trace_id:r,data:n,op:o,status:s,origin:a,links:c}}function Wy(t){const{spanId:e,traceId:r,isRemote:n}=t.spanContext(),o=n?e:Se(t).parent_span_id,i=Hn(t).scope,s=n?(i==null?void 0:i.getPropagationContext().propagationSpanId)||fo():e;return{parent_span_id:o,span_id:s,trace_id:r}}function Mu(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:r,traceFlags:n,...o},attributes:i})=>({span_id:e,trace_id:r,sampled:n===As,attributes:i,...o}))}function Ft(t){return typeof t=="number"?rc(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?rc(t.getTime()):ve()}function rc(t){return t>9999999999?t/1e3:t}function Se(t){var n;if(Vy(t))return t.getSpanJSON();const{spanId:e,traceId:r}=t.spanContext();if(jy(t)){const{attributes:o,startTime:i,name:s,endTime:a,status:c,links:l}=t,d="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?(n=t.parentSpanContext)==null?void 0:n.spanId:void 0;return{span_id:e,trace_id:r,data:o,description:s,parent_span_id:d,start_timestamp:Ft(i),timestamp:Ft(a)||void 0,status:$u(c),op:o[xi],origin:o[Ei],links:Mu(l)}}return{span_id:e,trace_id:r,start_timestamp:0,data:{}}}function jy(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Vy(t){return typeof t.getSpanJSON=="function"}function qr(t){const{traceFlags:e}=t.spanContext();return e===As}function $u(t){if(!(!t||t.code===Dy))return t.code===Ly?"ok":t.message||"unknown_error"}const Er="_sentryChildSpans",Ci="_sentryRootSpan";function Hu(t,e){const r=t[Ci]||t;me(e,Ci,r),t[Er]?t[Er].add(e):me(t,Er,new Set([e]))}function qy(t){const e=new Set;function r(n){if(!e.has(n)&&qr(n)){e.add(n);const o=n[Er]?Array.from(n[Er]):[];for(const i of o)r(i)}}return r(t),Array.from(e)}function Ke(t){return t[Ci]||t}function ki(){tc||(or(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),tc=!0)}function Ds(t){var r;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||((r=q())==null?void 0:r.getOptions());return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}const Ls="production",Gy=/^o(\d+)\./,zy=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ky(t){return t==="http"||t==="https"}function Gr(t,e=!1){const{host:r,path:n,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&o?`:${o}`:""}@${r}${i?`:${i}`:""}/${n&&`${n}/`}${s}`}function Jy(t){const e=zy.exec(t);if(!e){or(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[r,n,o="",i="",s="",a=""]=e.slice(1);let c="",l=a;const d=l.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),l=d.pop()),l){const u=l.match(/^\d+/);u&&(l=u[0])}return Wu({host:i,pass:o,path:c,projectId:l,port:s,protocol:r,publicKey:n})}function Wu(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Yy(t){if(!k)return!0;const{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(x.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:r.match(/^\d+$/)?Ky(n)?e&&isNaN(parseInt(e,10))?(x.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(x.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(x.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Xy(t){const e=t.match(Gy);return e==null?void 0:e[1]}function Qy(t){const e=typeof t=="string"?Jy(t):Wu(t);if(!(!e||!Yy(e)))return e}const ju="_frozenDsc";function Ho(t,e){me(t,ju,e)}function Vu(t,e){const r=e.getOptions(),{publicKey:n,host:o}=e.getDsn()||{};let i;r.orgId?i=String(r.orgId):o&&(i=Xy(o));const s={environment:r.environment||Ls,release:r.release,public_key:n,trace_id:t,org_id:i};return e.emit("createDsc",s),s}function Zy(t,e){const r=e.getPropagationContext();return r.dsc||Vu(r.traceId,t)}function Rr(t){var h;const e=q();if(!e)return{};const r=Ke(t),n=Se(r),o=n.data,i=r.spanContext().traceState,s=(i==null?void 0:i.get("sentry.sample_rate"))??o[Lu]??o[Oy];function a(g){return(typeof s=="number"||typeof s=="string")&&(g.sample_rate=`${s}`),g}const c=r[ju];if(c)return a(c);const l=i==null?void 0:i.get("sentry.dsc"),d=l&&My(l);if(d)return a(d);const u=Vu(t.spanContext().traceId,e),f=o[$n],p=n.description;return f!=="url"&&p&&(u.transaction=p),Ds()&&(u.sampled=String(qr(r)),u.sample_rand=(i==null?void 0:i.get("sentry.sample_rand"))??((h=Hn(r).scope)==null?void 0:h.getPropagationContext().sampleRand.toString())),a(u),e.emit("createDsc",u,r),u}class Bs{constructor(e={}){this._traceId=e.traceId||Mn(),this._spanId=e.spanId||fo()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Fu}}end(e){}setAttribute(e,r){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,r,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,r){}}function Oe(t,e=100,r=1/0){try{return Ti("",t,e,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function qu(t,e=3,r=100*1024){const n=Oe(t,e);return nw(n)>r?qu(t,e-1,r):n}function Ti(t,e,r=1/0,n=1/0,o=ow()){const[i,s]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const a=ew(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(c===0)return a.replace("object ","");if(i(e))return"[Circular ~]";const l=e;if(l&&typeof l.toJSON=="function")try{const p=l.toJSON();return Ti("",p,c-1,n,o)}catch{}const d=Array.isArray(e)?[]:{};let u=0;const f=Ru(e);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(u>=n){d[p]="[MaxProperties ~]";break}const h=f[p];d[p]=Ti(p,h,c-1,n,o),u++}return s(e),d}function ew(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(Pu(e))return"[VueViewModel]";if(ly(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Ye(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=tw(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function tw(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function rw(t){return~-encodeURI(t).split(/%..|./).length}function nw(t){return rw(JSON.stringify(t))}function ow(){const t=new WeakSet;function e(n){return t.has(n)?!0:(t.add(n),!1)}function r(n){t.delete(n)}return[e,r]}function sr(t,e=[]){return[t,e]}function iw(t,e){const[r,n]=t;return[r,[...n,e]]}function nc(t,e){const r=t[1];for(const n of r){const o=n[0].type;if(e(n,o))return!0}return!1}function Ii(t){const e=co(B);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function sw(t){const[e,r]=t;let n=JSON.stringify(e);function o(i){typeof n=="string"?n=typeof i=="string"?n+i:[Ii(n),i]:n.push(typeof i=="string"?Ii(i):i)}for(const i of r){const[s,a]=i;if(o(` ${JSON.stringify(s)} `),typeof a=="string"||a instanceof Uint8Array)o(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Oe(a))}o(c)}}return typeof n=="string"?n:aw(n)}function aw(t){const e=t.reduce((o,i)=>o+i.length,0),r=new Uint8Array(e);let n=0;for(const o of t)r.set(o,n),n+=o.length;return r}function cw(t){return[{type:"span"},t]}function lw(t){const e=typeof t.data=="string"?Ii(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const uw={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 oc(t){return uw[t]}function Gu(t){if(!(t!=null&&t.sdk))return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function dw(t,e,r,n){var i;const o=(i=t.sdkProcessingMetadata)==null?void 0:i.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:Gr(n)},...o&&{trace:o}}}function pw(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 fw(t,e,r,n){const o=Gu(r),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:Gr(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return sr(i,[s])}function hw(t,e,r,n){const o=Gu(r),i=t.type&&t.type!=="replay_event"?t.type:"event";pw(t,r==null?void 0:r.sdk);const s=dw(t,o,n,e);return delete t.sdkProcessingMetadata,sr(s,[[{type:i},t]])}function mw(t,e){function r(d){return!!d.trace_id&&!!d.public_key}const n=Rr(t[0]),o=e==null?void 0:e.getDsn(),i=e==null?void 0:e.getOptions().tunnel,s={sent_at:new Date().toISOString(),...r(n)&&{trace:n},...!!i&&o&&{dsn:Gr(o)}},a=e==null?void 0:e.getOptions().beforeSendSpan,c=a?d=>{const u=Se(d),f=a(u);return f||(ki(),u)}:Se,l=[];for(const d of t){const u=c(d);u&&l.push(cw(u))}return sr(s,l)}function gw(t){if(!k)return;const{description:e="< unknown name >",op:r="< unknown op >",parent_span_id:n}=Se(t),{spanId:o}=t.spanContext(),i=qr(t),s=Ke(t),a=s===t,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${r}`,`name: ${e}`,`ID: ${o}`];if(n&&l.push(`parent ID: ${n}`),!a){const{op:d,description:u}=Se(s);l.push(`root ID: ${s.spanContext().spanId}`),d&&l.push(`root op: ${d}`),u&&l.push(`root description: ${u}`)}x.log(`${c} ${l.join(` `)}`)}function yw(t){if(!k)return;const{description:e="< unknown name >",op:r="< unknown op >"}=Se(t),{spanId:n}=t.spanContext(),i=Ke(t)===t,s=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${e}" with ID ${n}`;x.log(s)}function ic(t){if(!t||t.length===0)return;const e={};return t.forEach(r=>{const n=r.attributes||{},o=n[Ry],i=n[Ay];typeof o=="string"&&typeof i=="number"&&(e[r.name]={value:i,unit:o})}),e}const sc=1e3;class Ns{constructor(e={}){this._traceId=e.traceId||Mn(),this._spanId=e.spanId||fo(),this._startTime=e.startTimestamp||ve(),this._links=e.links,this._attributes={},this.setAttributes({[Ei]:"manual",[xi]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,r){}spanContext(){const{_spanId:e,_traceId:r,_sampled:n}=this;return{spanId:e,traceId:r,traceFlags:n?As:Fu}}setAttribute(e,r){return r===void 0?delete this._attributes[e]:this._attributes[e]=r,this}setAttributes(e){return Object.keys(e).forEach(r=>this.setAttribute(r,e[r])),this}updateStartTime(e){this._startTime=Ft(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute($n,"custom"),this}end(e){this._endTime||(this._endTime=Ft(e),yw(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[xi],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:$u(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Ei],profile_id:this._attributes[Us],exclusive_time:this._attributes[Os],measurements:ic(this._events),is_segment:this._isStandaloneSpan&&Ke(this)===this||void 0,segment_id:this._isStandaloneSpan?Ke(this).spanContext().spanId:void 0,links:Mu(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,r,n){k&&x.log("[Tracing] Adding an event to span:",e);const o=ac(r)?r:n||ve(),i=ac(r)?{}:r||{},s={name:e,time:Ft(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=q();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===Ke(this)))return;if(this._isStandaloneSpan){this._sampled?bw(mw([this],e)):(k&&x.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}const n=this._convertSpanToTransaction();n&&(Hn(this).scope||Pe()).captureEvent(n)}_convertSpanToTransaction(){var d;if(!cc(Se(this)))return;this._name||(k&&x.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:e,isolationScope:r}=Hn(this),n=(d=e==null?void 0:e.getScopeData().sdkProcessingMetadata)==null?void 0:d.normalizedRequest;if(this._sampled!==!0)return;const i=qy(this).filter(u=>u!==this&&!ww(u)).map(u=>Se(u)).filter(cc),s=this._attributes[$n];delete this._attributes[Za],i.forEach(u=>{delete u.data[Za]});const a={contexts:{trace:Hy(this)},spans:i.length>sc?i.sort((u,f)=>u.start_timestamp-f.start_timestamp).slice(0,sc):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:r,dynamicSamplingContext:Rr(this)},request:n,...s&&{transaction_info:{source:s}}},c=ic(this._events);return c&&Object.keys(c).length&&(k&&x.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}}function ac(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function cc(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function ww(t){return t instanceof Ns&&t.isStandaloneSpan()}function bw(t){const e=q();if(!e)return;const r=t[1];if(!r||r.length===0){e.recordDroppedEvent("before_send","span");return}e.sendEnvelope(t)}function vw(t,e,r){if(!Ds(t))return[!1];let n,o;typeof t.tracesSampler=="function"?(o=t.tracesSampler({...e,inheritOrSampleWith:a=>typeof e.parentSampleRate=="number"?e.parentSampleRate:typeof e.parentSampled=="boolean"?Number(e.parentSampled):a}),n=!0):e.parentSampled!==void 0?o=e.parentSampled:typeof t.tracesSampleRate<"u"&&(o=t.tracesSampleRate,n=!0);const i=Rs(o);if(i===void 0)return k&&x.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return k&&x.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,n];const s=rmo(t.scope,s):o!==void 0?s=>Sw(o,s):s=>s())(()=>{const s=Pe(),a=kw(s,o);return t.onlyIfParent&&!a?new Bs:xw({parentSpan:a,spanArguments:r,forceTransaction:n,scope:s})})}function Sw(t,e){const r=Ku();return r.withActiveSpan?r.withActiveSpan(t,e):mo(n=>(_i(n,t||void 0),e(n)))}function xw({parentSpan:t,spanArguments:e,forceTransaction:r,scope:n}){if(!Ds()){const s=new Bs;if(r||!t){const a={sampled:"false",sample_rate:"0",transaction:e.name,...Rr(s)};Ho(s,a)}return s}const o=et();let i;if(t&&!r)i=Cw(t,n,e),Hu(t,i);else if(t){const s=Rr(t),{traceId:a,spanId:c}=t.spanContext(),l=qr(t);i=lc({traceId:a,parentSpanId:c,...e},n,l),Ho(i,s)}else{const{traceId:s,dsc:a,parentSpanId:c,sampled:l}={...o.getPropagationContext(),...n.getPropagationContext()};i=lc({traceId:s,parentSpanId:c,...e},n,l),a&&Ho(i,a)}return gw(i),By(i,n,o),i}function Ew(t){const r={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const n={...r};return n.startTimestamp=Ft(t.startTime),delete n.startTime,n}return r}function Ku(){const t=Hr();return ho(t)}function lc(t,e,r){var h;const n=q(),o=(n==null?void 0:n.getOptions())||{},{name:i=""}=t,s={spanAttributes:{...t.attributes},spanName:i,parentSampled:r};n==null||n.emit("beforeSampling",s,{decision:!1});const a=s.parentSampled??r,c=s.spanAttributes,l=e.getPropagationContext(),[d,u,f]=e.getScopeData().sdkProcessingMetadata[zu]?[!1]:vw(o,{name:i,parentSampled:a,attributes:c,parentSampleRate:Rs((h=l.dsc)==null?void 0:h.sample_rate)},l.sampleRand),p=new Ns({...t,attributes:{[$n]:"custom",[Lu]:u!==void 0&&f?u:void 0,...c},sampled:d});return!d&&n&&(k&&x.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",p),p}function Cw(t,e,r){const{spanId:n,traceId:o}=t.spanContext(),i=e.getScopeData().sdkProcessingMetadata[zu]?!1:qr(t),s=i?new Ns({...r,parentSpanId:n,traceId:o,sampled:i}):new Bs({traceId:o});Hu(t,s);const a=q();return a&&(a.emit("spanStart",s),r.endTimestamp&&a.emit("spanEnd",s)),s}function kw(t,e){if(e)return e;if(e===null)return;const r=Si(t);if(!r)return;const n=q();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Ke(r):r}const Wo=0,uc=1,dc=2;function Ct(t){return new Qe(e=>{e(t)})}function Wn(t){return new Qe((e,r)=>{r(t)})}class Qe{constructor(e){this._state=Wo,this._handlers=[],this._runExecutor(e)}then(e,r){return new Qe((n,o)=>{this._handlers.push([!1,i=>{if(!e)n(i);else try{n(e(i))}catch(s){o(s)}},i=>{if(!r)o(i);else try{n(r(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new Qe((r,n)=>{let o,i;return this.then(s=>{i=!1,o=s,e&&e()},s=>{i=!0,o=s,e&&e()}).then(()=>{if(i){n(o);return}r(o)})})}_executeHandlers(){if(this._state===Wo)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===uc&&r[1](this._value),this._state===dc&&r[2](this._value),r[0]=!0)})}_runExecutor(e){const r=(i,s)=>{if(this._state===Wo){if(uo(s)){s.then(n,o);return}this._state=i,this._value=s,this._executeHandlers()}},n=i=>{r(uc,i)},o=i=>{r(dc,i)};try{e(n,o)}catch(i){o(i)}}}function Pi(t,e,r,n=0){return new Qe((o,i)=>{const s=t[n];if(e===null||typeof s!="function")o(e);else{const a=s({...e},r);k&&s.id&&a===null&&x.log(`Event processor "${s.id}" dropped event`),uo(a)?a.then(c=>Pi(t,c,r,n+1).then(o)).then(null,i):Pi(t,a,r,n+1).then(o).then(null,i)}})}function Tw(t,e){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:i}=e;Iw(t,e),n&&Ow(t,n),Rw(t,r),Pw(t,o),Uw(t,i)}function pc(t,e){const{extra:r,tags:n,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:d,attachments:u,propagationContext:f,transactionName:p,span:h}=e;sn(t,"extra",r),sn(t,"tags",n),sn(t,"user",o),sn(t,"contexts",i),t.sdkProcessingMetadata=Vr(t.sdkProcessingMetadata,a,2),s&&(t.level=s),p&&(t.transactionName=p),h&&(t.span=h),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),u.length&&(t.attachments=[...t.attachments,...u]),t.propagationContext={...t.propagationContext,...f}}function sn(t,e,r){t[e]=Vr(t[e],r,1)}function Iw(t,e){const{extra:r,tags:n,user:o,contexts:i,level:s,transactionName:a}=e;Object.keys(r).length&&(t.extra={...r,...t.extra}),Object.keys(n).length&&(t.tags={...n,...t.tags}),Object.keys(o).length&&(t.user={...o,...t.user}),Object.keys(i).length&&(t.contexts={...i,...t.contexts}),s&&(t.level=s),a&&t.type!=="transaction"&&(t.transaction=a)}function Pw(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function Uw(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Ow(t,e){t.contexts={trace:Wy(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Rr(e),...t.sdkProcessingMetadata};const r=Ke(e),n=Se(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function Rw(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}let an,fc,cn;function Aw(t){const e=B._sentryDebugIds;if(!e)return{};const r=Object.keys(e);return cn&&r.length===fc||(fc=r.length,cn=r.reduce((n,o)=>{an||(an={});const i=an[o];if(i)n[i[0]]=i[1];else{const s=t(o);for(let a=s.length-1;a>=0;a--){const c=s[a],l=c==null?void 0:c.filename,d=e[o];if(l&&d){n[l]=d,an[o]=[l,d];break}}}return n},{})),cn}function Dw(t,e,r,n,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||r.event_id||fe(),timestamp:e.timestamp||jr()},l=r.integrations||t.integrations.map(y=>y.name);Lw(c,t),Fw(c,l),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&Bw(c,t.stackParser);const d=$w(n,r.captureContext);r.mechanism&&Wt(c,r.mechanism);const u=o?o.getEventProcessors():[],f=Py().getScopeData();if(i){const y=i.getScopeData();pc(f,y)}if(d){const y=d.getScopeData();pc(f,y)}const p=[...r.attachments||[],...f.attachments];p.length&&(r.attachments=p),Tw(c,f);const h=[...u,...f.eventProcessors];return Pi(h,c,r).then(y=>(y&&Nw(y),typeof s=="number"&&s>0?Mw(y,s,a):y))}function Lw(t,e){const{environment:r,release:n,dist:o,maxValueLength:i=250}=e;t.environment=t.environment||r||Ls,!t.release&&n&&(t.release=n),!t.dist&&o&&(t.dist=o);const s=t.request;s!=null&&s.url&&(s.url=Fn(s.url,i))}function Bw(t,e){var n,o;const r=Aw(e);(o=(n=t.exception)==null?void 0:n.values)==null||o.forEach(i=>{var s,a;(a=(s=i.stacktrace)==null?void 0:s.frames)==null||a.forEach(c=>{c.filename&&(c.debug_id=r[c.filename])})})}function Nw(t){var n,o;const e={};if((o=(n=t.exception)==null?void 0:n.values)==null||o.forEach(i=>{var s,a;(a=(s=i.stacktrace)==null?void 0:s.frames)==null||a.forEach(c=>{c.debug_id&&(c.abs_path?e[c.abs_path]=c.debug_id:c.filename&&(e[c.filename]=c.debug_id),delete c.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const r=t.debug_meta.images;Object.entries(e).forEach(([i,s])=>{r.push({type:"sourcemap",code_file:i,debug_id:s})})}function Fw(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Mw(t,e,r){var o,i;if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(s=>({...s,...s.data&&{data:Oe(s.data,e,r)}}))},...t.user&&{user:Oe(t.user,e,r)},...t.contexts&&{contexts:Oe(t.contexts,e,r)},...t.extra&&{extra:Oe(t.extra,e,r)}};return(o=t.contexts)!=null&&o.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=Oe(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(s=>({...s,...s.data&&{data:Oe(s.data,e,r)}}))),(i=t.contexts)!=null&&i.flags&&n.contexts&&(n.contexts.flags=Oe(t.contexts.flags,3,r)),n}function $w(t,e){if(!e)return t;const r=t?t.clone():new Ne;return r.update(e),r}function Ju(t,e){return Pe().captureException(t,void 0)}function Yu(t,e){return Pe().captureEvent(t,e)}function Hw(t,e){et().setContext(t,e)}function Ww(t){et().setUser(t)}function hc(t){const e=et(),r=Pe(),{userAgent:n}=B.navigator||{},o=by({user:r.getUser()||e.getUser(),...n&&{userAgent:n},...t}),i=e.getSession();return(i==null?void 0:i.status)==="ok"&&jt(i,{status:"exited"}),Xu(),e.setSession(o),o}function Xu(){const t=et(),r=Pe().getSession()||t.getSession();r&&vy(r),Qu(),t.setSession()}function Qu(){const t=et(),e=q(),r=t.getSession();r&&e&&e.captureSession(r)}function mc(t=!1){if(t){Xu();return}Qu()}const jw="7";function Vw(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function qw(t){return`${Vw(t)}${t.projectId}/envelope/`}function Gw(t,e){const r={sentry_version:jw};return t.publicKey&&(r.sentry_key=t.publicKey),e&&(r.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(r).toString()}function zw(t,e,r){return e||`${qw(t)}?${Gw(t,r)}`}const gc=[];function Kw(t){const e={};return t.forEach(r=>{const{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function Jw(t){const e=t.defaultIntegrations||[],r=t.integrations;e.forEach(o=>{o.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...e,...r];else if(typeof r=="function"){const o=r(e);n=Array.isArray(o)?o:[o]}else n=e;return Kw(n)}function Yw(t,e){const r={};return e.forEach(n=>{n&&Zu(t,n,r)}),r}function yc(t,e){for(const r of e)r!=null&&r.afterAllSetup&&r.afterAllSetup(t)}function Zu(t,e,r){if(r[e.name]){k&&x.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,gc.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),gc.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,i)=>n(o,i,t))}if(typeof e.processEvent=="function"){const n=e.processEvent.bind(e),o=Object.assign((i,s)=>n(i,s,t),{id:e.name});t.addEventProcessor(o)}k&&x.log(`Integration installed: ${e.name}`)}function Xw(t,e,r){const n=[{type:"client_report"},{timestamp:jr(),discarded_events:t}];return sr(e?{dsn:e}:{},[n])}function ed(t){const e=[];t.message&&e.push(t.message);try{const r=t.exception.values[t.exception.values.length-1];r!=null&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`))}catch{}return e}function Qw(t){var c;const{trace_id:e,parent_span_id:r,span_id:n,status:o,origin:i,data:s,op:a}=((c=t.contexts)==null?void 0:c.trace)??{};return{data:s??{},description:t.transaction,op:a,parent_span_id:r,span_id:n??"",start_timestamp:t.start_timestamp??0,status:o,timestamp:t.timestamp,trace_id:e??"",origin:i,profile_id:s==null?void 0:s[Us],exclusive_time:s==null?void 0:s[Os],measurements:t.measurements,is_segment:!0}}function Zw(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:{...t.data,...t.profile_id&&{[Us]:t.profile_id},...t.exclusive_time&&{[Os]:t.exclusive_time}}}},measurements:t.measurements}}const wc="Not capturing exception because it's already been captured.",bc="Discarded session because of missing or non-string release",td=Symbol.for("SentryInternalError"),rd=Symbol.for("SentryDoNotSendEventError");function xn(t){return{message:t,[td]:!0}}function jo(t){return{message:t,[rd]:!0}}function vc(t){return!!t&&typeof t=="object"&&td in t}function _c(t){return!!t&&typeof t=="object"&&rd in t}class e0{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Qy(e.dsn):k&&x.warn("No DSN provided, client will not send events."),this._dsn){const r=zw(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}}captureException(e,r,n){const o=fe();if(Ya(e))return k&&x.log(wc),o;const i={event_id:o,...r};return this._process(this.eventFromException(e,i).then(s=>this._captureEvent(s,i,n))),i.event_id}captureMessage(e,r,n,o){const i={event_id:fe(),...n},s=Cs(e)?e:String(e),a=ks(e)?this.eventFromMessage(s,r,i):this.eventFromException(e,i);return this._process(a.then(c=>this._captureEvent(c,i,o))),i.event_id}captureEvent(e,r,n){const o=fe();if(r!=null&&r.originalException&&Ya(r.originalException))return k&&x.log(wc),o;const i={event_id:o,...r},s=e.sdkProcessingMetadata||{},a=s.capturedSpanScope,c=s.capturedSpanIsolationScope;return this._process(this._captureEvent(e,i,a||n,c)),i.event_id}captureSession(e){this.sendSession(e),jt(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o))):Ct(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}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){const r=this._integrations[e.name];Zu(this,e,this._integrations),r||yc(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=hw(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of r.attachments||[])n=iw(n,lw(i));const o=this.sendEnvelope(n);o&&o.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){const{release:r,environment:n=Ls}=this._options;if("aggregates"in e){const i=e.attrs||{};if(!i.release&&!r){k&&x.warn(bc);return}i.release=i.release||r,i.environment=i.environment||n,e.attrs=i}else{if(!e.release&&!r){k&&x.warn(bc);return}e.release=e.release||r,e.environment=e.environment||n}this.emit("beforeSendSession",e);const o=fw(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(e,r,n=1){if(this._options.sendClientReports){const o=`${e}:${r}`;k&&x.log(`Recording outcome: "${o}"${n>1?` (${n} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+n}}on(e,r){const n=this._hooks[e]=this._hooks[e]||[];return n.push(r),()=>{const o=n.indexOf(r);o>-1&&n.splice(o,1)}}emit(e,...r){const n=this._hooks[e];n&&n.forEach(o=>o(...r))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,r=>(k&&x.error("Error while sending envelope:",r),r)):(k&&x.error("Transport disabled"),Ct({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=Yw(this,e),yc(this,e)}_updateSessionFromEvent(e,r){var c;let n=r.level==="fatal",o=!1;const i=(c=r.exception)==null?void 0:c.values;if(i){o=!0;for(const l of i){const d=l.mechanism;if((d==null?void 0:d.handled)===!1){n=!0;break}}}const s=e.status==="ok";(s&&e.errors===0||s&&n)&&(jt(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Qe(r=>{let n=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),r(!0)):(n+=o,e&&n>=e&&(clearInterval(i),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n,o){const i=this.getOptions(),s=Object.keys(this._integrations);return!r.integrations&&(s!=null&&s.length)&&(r.integrations=s),this.emit("preprocessEvent",e,r),e.type||o.setLastEventId(e.event_id||r.event_id),Dw(i,e,r,n,this,o).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,r),a.contexts={trace:Uy(n),...a.contexts};const c=Zy(this,n);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(e,r={},n=Pe(),o=et()){return k&&Ui(e)&&x.log(`Captured error event \`${ed(e)[0]||""}\``),this._processEvent(e,r,n,o).then(i=>i.event_id,i=>{k&&(_c(i)?x.log(i.message):vc(i)?x.warn(i.message):x.warn(i))})}_processEvent(e,r,n,o){const i=this.getOptions(),{sampleRate:s}=i,a=nd(e),c=Ui(e),l=e.type||"error",d=`before send for type \`${l}\``,u=typeof s>"u"?void 0:Rs(s);if(c&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error"),Wn(jo(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const f=l==="replay_event"?"replay":l;return this._prepareEvent(e,r,n,o).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",f),jo("An event processor returned `null`, will not send event.");if(r.data&&r.data.__sentry__===!0)return p;const g=r0(this,i,p,r);return t0(g,d)}).then(p=>{var y;if(p===null){if(this.recordDroppedEvent("before_send",f),a){const v=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",v)}throw jo(`${d} returned \`null\`, will not send event.`)}const h=n.getSession()||o.getSession();if(c&&h&&this._updateSessionFromEvent(h,p),a){const b=((y=p.sdkProcessingMetadata)==null?void 0:y.spanCountBeforeProcessing)||0,v=p.spans?p.spans.length:0,S=b-v;S>0&&this.recordDroppedEvent("before_send","span",S)}const g=p.transaction_info;if(a&&g&&p.transaction!==e.transaction){const b="custom";p.transaction_info={...g,source:b}}return this.sendEvent(p,r),p}).then(null,p=>{throw _c(p)||vc(p)?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),xn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${p}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{const[o,i]=r.split(":");return{reason:o,category:i,quantity:n}})}_flushOutcomes(){k&&x.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){k&&x.log("No outcomes to send");return}if(!this._dsn){k&&x.log("No dsn provided, will not send outcomes");return}k&&x.log("Sending outcomes:",e);const r=Xw(e,this._options.tunnel&&Gr(this._dsn));this.sendEnvelope(r)}}function t0(t,e){const r=`${e} must return \`null\` or a valid event.`;if(uo(t))return t.then(n=>{if(!Or(n)&&n!==null)throw xn(r);return n},n=>{throw xn(`${e} rejected with ${n}`)});if(!Or(t)&&t!==null)throw xn(r);return t}function r0(t,e,r,n){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=e;let a=r;if(Ui(a)&&o)return o(a,n);if(nd(a)){if(s){const c=s(Qw(a));if(c?a=Vr(r,Zw(c)):ki(),a.spans){const l=[];for(const d of a.spans){const u=s(d);u?l.push(u):(ki(),l.push(d))}a.spans=l}}if(i){if(a.spans){const c=a.spans.length;a.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:c}}return i(a,n)}}return a}function Ui(t){return t.type===void 0}function nd(t){return t.type==="transaction"}function n0(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function o0(t,e,r,n){const o={};return e!=null&&e.sdk&&(o.sdk={name:e.sdk.name,version:e.sdk.version}),r&&n&&(o.dsn=Gr(n)),sr(o,[n0(t)])}function Vo(t,e){const r=i0(t)??[];if(r.length===0)return;const n=t.getOptions(),o=o0(r,n._metadata,n.tunnel,t.getDsn());od().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(o)}function i0(t){return od().get(t)}function od(){return Wr("clientToLogBufferMap",()=>new WeakMap)}function s0(t,e){e.debug===!0&&(k?x.enable():or(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Pe().update(e.initialScope);const n=new t(e);return a0(n),n.init(),n}function a0(t){Pe().setClient(t)}const id=Symbol.for("SentryBufferFullError");function c0(t){const e=[];function r(){return t===void 0||e.lengthn(a)).then(null,()=>n(a).then(null,()=>{})),a}function i(s){return new Qe((a,c)=>{let l=e.length;if(!l)return a(!0);const d=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(u=>{Ct(u).then(()=>{--l||(clearTimeout(d),a(!0))},c)})})}return{$:e,add:o,drain:i}}const l0=60*1e3;function u0(t,e=Date.now()){const r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${t}`);return isNaN(n)?l0:n-e}function d0(t,e){return t[e]||t.all||0}function p0(t,e,r=Date.now()){return d0(t,e)>r}function f0(t,{statusCode:e,headers:r},n=Date.now()){const o={...t},i=r==null?void 0:r["x-sentry-rate-limits"],s=r==null?void 0:r["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,l,,,d]=a.split(":",5),u=parseInt(c,10),f=(isNaN(u)?60:u)*1e3;if(!l)o.all=n+f;else for(const p of l.split(";"))p==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(o[p]=n+f):o[p]=n+f}else s?o.all=n+u0(s,n):e===429&&(o.all=n+60*1e3);return o}const h0=64;function m0(t,e,r=c0(t.bufferSize||h0)){let n={};const o=s=>r.drain(s);function i(s){const a=[];if(nc(s,(u,f)=>{const p=oc(f);p0(n,p)?t.recordDroppedEvent("ratelimit_backoff",p):a.push(u)}),a.length===0)return Ct({});const c=sr(s[0],a),l=u=>{nc(c,(f,p)=>{t.recordDroppedEvent(u,oc(p))})},d=()=>e({body:sw(c)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&k&&x.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),n=f0(n,u),u),u=>{throw l("network_error"),k&&x.error("Encountered error running transport request:",u),u});return r.add(d).then(u=>u,u=>{if(u===id)return k&&x.error("Skipped sending event because buffer is full."),l("queue_overflow"),Ct({});throw u})}return{send:i,flush:o}}function g0(t){var e;((e=t.user)==null?void 0:e.ip_address)===void 0&&(t.user={...t.user,ip_address:"{{auto}}"})}function y0(t){var e;"aggregates"in t?((e=t.attrs)==null?void 0:e.ip_address)===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function sd(t,e,r=[e],n="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:r.map(i=>({name:`${n}:@sentry/${i}`,version:bt})),version:bt}),t._metadata=o}const w0=100;function kt(t,e){const r=q(),n=et();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=w0}=r.getOptions();if(i<=0)return;const a={timestamp:jr(),...t},c=o?or(()=>o(a,e)):a;c!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",c,e),n.addBreadcrumb(c,i))}let Sc;const b0="FunctionToString",xc=new WeakMap,v0=()=>({name:b0,setupOnce(){Sc=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Ps(this),r=xc.has(q())&&e!==void 0?e:this;return Sc.apply(r,t)}}catch{}},setup(t){xc.set(t,!0)}}),_0=v0,S0=[/^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$/],x0="EventFilters",E0=(t={})=>{let e;return{name:x0,setup(r){const n=r.getOptions();e=Ec(t,n)},processEvent(r,n,o){if(!e){const i=o.getOptions();e=Ec(t,i)}return k0(r,e)?null:r}}},C0=(t={})=>({...E0(t),name:"InboundFilters"});function Ec(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:S0],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function k0(t,e){if(t.type){if(t.type==="transaction"&&I0(t,e.ignoreTransactions))return k&&x.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${ot(t)}`),!0}else{if(T0(t,e.ignoreErrors))return k&&x.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${ot(t)}`),!0;if(R0(t))return k&&x.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${ot(t)}`),!0;if(P0(t,e.denyUrls))return k&&x.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${ot(t)}. Url: ${jn(t)}`),!0;if(!U0(t,e.allowUrls))return k&&x.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${ot(t)}. Url: ${jn(t)}`),!0}return!1}function T0(t,e){return e!=null&&e.length?ed(t).some(r=>po(r,e)):!1}function I0(t,e){if(!(e!=null&&e.length))return!1;const r=t.transaction;return r?po(r,e):!1}function P0(t,e){if(!(e!=null&&e.length))return!1;const r=jn(t);return r?po(r,e):!1}function U0(t,e){if(!(e!=null&&e.length))return!0;const r=jn(t);return r?po(r,e):!0}function O0(t=[]){for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function jn(t){var e,r;try{const n=[...((e=t.exception)==null?void 0:e.values)??[]].reverse().find(i=>{var s,a,c;return((s=i.mechanism)==null?void 0:s.parent_id)===void 0&&((c=(a=i.stacktrace)==null?void 0:a.frames)==null?void 0:c.length)}),o=(r=n==null?void 0:n.stacktrace)==null?void 0:r.frames;return o?O0(o):null}catch{return k&&x.error(`Cannot extract url for event ${ot(t)}`),null}}function R0(t){var e,r;return(r=(e=t.exception)==null?void 0:e.values)!=null&&r.length?!t.message&&!t.exception.values.some(n=>n.stacktrace||n.type&&n.type!=="Error"||n.value):!1}function A0(t,e,r,n,o,i){var a;if(!((a=o.exception)!=null&&a.values)||!i||!Xe(i.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=Oi(t,e,n,i.originalException,r,o.exception.values,s,0))}function Oi(t,e,r,n,o,i,s,a){if(i.length>=r+1)return i;let c=[...i];if(Xe(n[o],Error)){Cc(s,a);const l=t(e,n[o]),d=c.length;kc(l,o,d,a),c=Oi(t,e,r,n[o],o,[l,...c],l,d)}return Array.isArray(n.errors)&&n.errors.forEach((l,d)=>{if(Xe(l,Error)){Cc(s,a);const u=t(e,l),f=c.length;kc(u,`errors[${d}]`,f,a),c=Oi(t,e,r,l,o,[u,...c],u,f)}}),c}function Cc(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function kc(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function D0(t){const e="console";It(e,t),Pt(e,L0)}function L0(){"console"in B&&zg.forEach(function(t){t in B.console&&le(B.console,t,function(e){return Nn[t]=e,function(...r){be("console",{args:r,level:t});const o=Nn[t];o==null||o.apply(B.console,r)}})})}function B0(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const N0="Dedupe",F0=()=>{let t;return{name:N0,processEvent(e){if(e.type)return e;try{if($0(e,t))return k&&x.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},M0=F0;function $0(t,e){return e?!!(H0(t,e)||W0(t,e)):!1}function H0(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!cd(t,e)||!ad(t,e))}function W0(t,e){const r=Tc(e),n=Tc(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!cd(t,e)||!ad(t,e))}function ad(t,e){let r=Va(t),n=Va(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o=400&&t<500?"warning":t>=500?"error":void 0}const Ar=B;function j0(){return"history"in Ar&&!!Ar.history}function V0(){if(!("fetch"in Ar))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Ri(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function q0(){var r;if(typeof EdgeRuntime=="string")return!0;if(!V0())return!1;if(Ri(Ar.fetch))return!0;let t=!1;const e=Ar.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),(r=n.contentWindow)!=null&&r.fetch&&(t=Ri(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){k&&x.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function G0(t,e){const r="fetch";It(r,t),Pt(r,()=>z0(void 0,e))}function z0(t,e=!1){e&&!q0()||le(B,"fetch",function(r){return function(...n){const o=new Error,{method:i,url:s}=K0(n),a={args:n,fetchData:{method:i,url:s},startTimestamp:ve()*1e3,virtualError:o,headers:J0(n)};return be("fetch",{...a}),r.apply(B,n).then(async c=>(be("fetch",{...a,endTimestamp:ve()*1e3,response:c}),c),c=>{if(be("fetch",{...a,endTimestamp:ve()*1e3,error:c}),Es(c)&&c.stack===void 0&&(c.stack=o.stack,me(c,"framesToPop",1)),c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const l=new window.URL(a.fetchData.url);c.message=`${c.message} (${l.host})`}catch{}throw c})}})}function Ai(t,e){return!!t&&typeof t=="object"&&!!t[e]}function Ic(t){return typeof t=="string"?t:t?Ai(t,"url")?t.url:t.toString?t.toString():"":""}function K0(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:Ic(r),method:Ai(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Ic(e),method:Ai(e,"method")?String(e.method).toUpperCase():"GET"}}function J0(t){const[e,r]=t;try{if(typeof r=="object"&&r!==null&&"headers"in r&&r.headers)return new Headers(r.headers);if(uy(e))return new Headers(e.headers)}catch{}}function Y0(){return"npm"}const H=B;let Di=0;function ud(){return Di>0}function X0(){Di++,setTimeout(()=>{Di--})}function qt(t,e={}){function r(o){return typeof o=="function"}if(!r(t))return t;try{const o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(Ps(t))return t}catch{return t}const n=function(...o){try{const i=o.map(s=>qt(s,e));return t.apply(this,i)}catch(i){throw X0(),mo(s=>{s.addEventProcessor(a=>(e.mechanism&&(bi(a,void 0),Wt(a,e.mechanism)),a.extra={...a.extra,arguments:o},a)),Ju(i)}),i}};try{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch{}Ou(n,t),me(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}function Q0(){const t=Is(),{referrer:e}=H.document||{},{userAgent:r}=H.navigator||{},n={...e&&{Referer:e},...r&&{"User-Agent":r}};return{url:t,headers:n}}function Fs(t,e){const r=Ms(t,e),n={type:nb(e),value:ob(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function Z0(t,e,r,n){const o=q(),i=o==null?void 0:o.getOptions().normalizeDepth,s=lb(e),a={__serialized__:qu(e,i)};if(s)return{exception:{values:[Fs(t,s)]},extra:a};const c={exception:{values:[{type:lo(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:ab(e,{isUnhandledRejection:n})}]},extra:a};if(r){const l=Ms(t,r);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function Go(t,e){return{exception:{values:[Fs(t,e)]}}}function Ms(t,e){const r=e.stacktrace||e.stack||"",n=tb(e),o=rb(e);try{return t(r,n,o)}catch{}return[]}const eb=/Minified React error #\d+;/i;function tb(t){return t&&eb.test(t.message)?1:0}function rb(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function dd(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function nb(t){const e=t==null?void 0:t.name;return!e&&dd(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function ob(t){const e=t==null?void 0:t.message;return dd(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 ib(t,e,r,n){const o=(r==null?void 0:r.syntheticException)||void 0,i=$s(t,e,o,n);return Wt(i),i.level="error",r!=null&&r.event_id&&(i.event_id=r.event_id),Ct(i)}function sb(t,e,r="info",n,o){const i=(n==null?void 0:n.syntheticException)||void 0,s=Li(t,e,i,o);return s.level=r,n!=null&&n.event_id&&(s.event_id=n.event_id),Ct(s)}function $s(t,e,r,n,o){let i;if(Iu(e)&&e.error)return Go(t,e.error);if(Ga(e)||sy(e)){const s=e;if("stack"in e)i=Go(t,e);else{const a=s.name||(Ga(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;i=Li(t,c,r,n),bi(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Es(e)?Go(t,e):Or(e)||lo(e)?(i=Z0(t,e,r,o),Wt(i,{synthetic:!0}),i):(i=Li(t,e,r,n),bi(i,`${e}`),Wt(i,{synthetic:!0}),i)}function Li(t,e,r,n){const o={};if(n&&r){const i=Ms(t,r);i.length&&(o.exception={values:[{value:e,stacktrace:{frames:i}}]}),Wt(o,{synthetic:!0})}if(Cs(e)){const{__sentry_template_string__:i,__sentry_template_values__:s}=e;return o.logentry={message:i,params:s},o}return o.message=e,o}function ab(t,{isUnhandledRejection:e}){const r=my(t),n=e?"promise rejection":"exception";return Iu(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:lo(t)?`Event \`${cb(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function cb(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function lb(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];if(r instanceof Error)return r}}const ub=5e3;class db extends e0{constructor(e){const r=pb(e),n=H.SENTRY_SDK_SOURCE||Y0();sd(r,"browser",["browser"],n),super(r);const{sendDefaultPii:o,sendClientReports:i,enableLogs:s,_experiments:a}=this._options,c=s??(a==null?void 0:a.enableLogs);H.document&&(i||c)&&H.document.addEventListener("visibilitychange",()=>{H.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),c&&Vo(this))}),c&&(this.on("flush",()=>{Vo(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Vo(this)},ub)})),o&&(this.on("postprocessEvent",g0),this.on("beforeSendSession",y0))}eventFromException(e,r){return ib(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return sb(this._options.stackParser,e,r,n,this._options.attachStacktrace)}_prepareEvent(e,r,n,o){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n,o)}}function pb(t){var e;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(e=H.SENTRY_RELEASE)==null?void 0:e.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const fb=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,te=B,hb=1e3;let Pc,Bi,Ni;function mb(t){const e="dom";It(e,t),Pt(e,gb)}function gb(){if(!te.document)return;const t=be.bind(null,"dom"),e=Uc(t,!0);te.document.addEventListener("click",e,!1),te.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{var i,s;const o=(i=te[r])==null?void 0:i.prototype;(s=o==null?void 0:o.hasOwnProperty)!=null&&s.call(o,"addEventListener")&&(le(o,"addEventListener",function(a){return function(c,l,d){if(c==="click"||c=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=u[c]=u[c]||{refCount:0};if(!f.handler){const p=Uc(t);f.handler=p,a.call(this,c,p,d)}f.refCount++}catch{}return a.call(this,c,l,d)}}),le(o,"removeEventListener",function(a){return function(c,l,d){if(c==="click"||c=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},f=u[c];f&&(f.refCount--,f.refCount<=0&&(a.call(this,c,f.handler,d),f.handler=void 0,delete u[c]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,c,l,d)}}))})}function yb(t){if(t.type!==Bi)return!1;try{if(!t.target||t.target._sentryId!==Ni)return!1}catch{}return!0}function wb(t,e){return t!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function Uc(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=bb(r);if(wb(r.type,n))return;me(r,"_sentryCaptured",!0),n&&!n._sentryId&&me(n,"_sentryId",fe());const o=r.type==="keypress"?"input":r.type;yb(r)||(t({event:r,name:o,global:e}),Bi=r.type,Ni=n?n._sentryId:void 0),clearTimeout(Pc),Pc=te.setTimeout(()=>{Ni=void 0,Bi=void 0},hb)}}function bb(t){try{return t.target}catch{return null}}let ln;function pd(t){const e="history";It(e,t),Pt(e,vb)}function vb(){if(te.addEventListener("popstate",()=>{const e=te.location.href,r=ln;if(ln=e,r===e)return;be("history",{from:r,to:e})}),!j0())return;function t(e){return function(...r){const n=r.length>2?r[2]:void 0;if(n){const o=ln,i=_b(String(n));if(ln=i,o===i)return e.apply(this,r);be("history",{from:o,to:i})}return e.apply(this,r)}}le(te.history,"pushState",t),le(te.history,"replaceState",t)}function _b(t){try{return new window.URL(t,te.location.origin).toString()}catch{return t}}const En={};function Sb(t){const e=En[t];if(e)return e;let r=te[t];if(Ri(r))return En[t]=r.bind(te);const n=te.document;if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i!=null&&i[t]&&(r=i[t]),n.head.removeChild(o)}catch(o){fb&&x.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,o)}return r&&(En[t]=r.bind(te))}function Oc(t){En[t]=void 0}const vr="__sentry_xhr_v3__";function xb(t){const e="xhr";It(e,t),Pt(e,Eb)}function Eb(){if(!te.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,r,n){const o=new Error,i=ve()*1e3,s=Ae(n[0])?n[0].toUpperCase():void 0,a=Cb(n[1]);if(!s||!a)return e.apply(r,n);r[vr]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const c=()=>{const l=r[vr];if(l&&r.readyState===4){try{l.status_code=r.status}catch{}const d={endTimestamp:ve()*1e3,startTimestamp:i,xhr:r,virtualError:o};be("xhr",d)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(l,d,u){return c(),l.apply(d,u)}}):r.addEventListener("readystatechange",c),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(l,d,u){const[f,p]=u,h=d[vr];return h&&Ae(f)&&Ae(p)&&(h.request_headers[f.toLowerCase()]=p),l.apply(d,u)}}),e.apply(r,n)}}),t.send=new Proxy(t.send,{apply(e,r,n){const o=r[vr];if(!o)return e.apply(r,n);n[0]!==void 0&&(o.body=n[0]);const i={startTimestamp:ve()*1e3,xhr:r};return be("xhr",i),e.apply(r,n)}})}function Cb(t){if(Ae(t))return t;try{return t.toString()}catch{}}function kb(t,e=Sb("fetch")){let r=0,n=0;function o(i){const s=i.body.length;r+=s,n++;const a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};if(!e)return Oc("fetch"),Wn("No fetch implementation available");try{return e(t.url,a).then(c=>(r-=s,n--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Oc("fetch"),r-=s,n--,Wn(c)}}return m0(t,o)}const Tb=30,Ib=50;function Fi(t,e,r,n){const o={filename:t,function:e===""?Et:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}const Pb=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ub=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ob=/\((\S*)(?::(\d+))(?::(\d+))\)/,Rb=t=>{const e=Pb.exec(t);if(e){const[,n,o,i]=e;return Fi(n,Et,+o,+i)}const r=Ub.exec(t);if(r){if(r[2]&&r[2].indexOf("eval")===0){const s=Ob.exec(r[2]);s&&(r[2]=s[1],r[3]=s[2],r[4]=s[3])}const[o,i]=fd(r[1]||Et,r[2]);return Fi(i,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Ab=[Tb,Rb],Db=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Lb=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Bb=t=>{const e=Db.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const i=Lb.exec(e[3]);i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let n=e[3],o=e[1]||Et;return[o,n]=fd(o,n),Fi(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Nb=[Ib,Bb],Fb=[Ab,Nb],Mb=ku(...Fb),fd=(t,e)=>{const r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:Et,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},go=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,un=1024,$b="Breadcrumbs",Hb=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:$b,setup(r){e.console&&D0(qb(r)),e.dom&&mb(Vb(r,e.dom)),e.xhr&&xb(Gb(r)),e.fetch&&G0(zb(r)),e.history&&pd(Kb(r)),e.sentry&&r.on("beforeSendEvent",jb(r))}}},Wb=Hb;function jb(t){return function(r){q()===t&&kt({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:ot(r)},{event:r})}}function Vb(t,e){return function(n){if(q()!==t)return;let o,i,s=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>un&&(go&&x.warn(`\`dom.maxStringLength\` cannot exceed ${un}, but a value of ${a} was configured. Sentry will use ${un} instead.`),a=un),typeof s=="string"&&(s=[s]);try{const l=n.event,d=Jb(l)?l.target:l;o=Uu(d,{keyAttrs:s,maxStringLength:a}),i=fy(d)}catch{o=""}if(o.length===0)return;const c={category:`ui.${n.name}`,message:o};i&&(c.data={"ui.component_name":i}),kt(c,{event:n.event,name:n.name,global:n.global})}}function qb(t){return function(r){if(q()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:B0(r.level),message:za(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${za(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;kt(n,{input:r.args,level:r.level})}}function Gb(t){return function(r){if(q()!==t)return;const{startTimestamp:n,endTimestamp:o}=r,i=r.xhr[vr];if(!n||!o||!i)return;const{method:s,url:a,status_code:c,body:l}=i,d={method:s,url:a,status_code:c},u={xhr:r.xhr,input:l,startTimestamp:n,endTimestamp:o},f={category:"xhr",data:d,type:"http",level:ld(c)};t.emit("beforeOutgoingRequestBreadcrumb",f,u),kt(f,u)}}function zb(t){return function(r){if(q()!==t)return;const{startTimestamp:n,endTimestamp:o}=r;if(o&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.fetchData.method,r.fetchData.url,r.error){const i=r.fetchData,s={data:r.error,input:r.args,startTimestamp:n,endTimestamp:o},a={category:"fetch",data:i,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",a,s),kt(a,s)}else{const i=r.response,s={...r.fetchData,status_code:i==null?void 0:i.status};r.fetchData.request_body_size,r.fetchData.response_body_size,i==null||i.status;const a={input:r.args,response:i,startTimestamp:n,endTimestamp:o},c={category:"fetch",data:s,type:"http",level:ld(s.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,a),kt(c,a)}}}function Kb(t){return function(r){if(q()!==t)return;let n=r.from,o=r.to;const i=qo(H.location.href);let s=n?qo(n):void 0;const a=qo(o);s!=null&&s.path||(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),kt({category:"navigation",data:{from:n,to:o}})}}function Jb(t){return!!t&&!!t.target}const Yb=["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"],Xb="BrowserApiErrors",Qb=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:Xb,setupOnce(){e.setTimeout&&le(H,"setTimeout",Rc),e.setInterval&&le(H,"setInterval",Rc),e.requestAnimationFrame&&le(H,"requestAnimationFrame",ev),e.XMLHttpRequest&&"XMLHttpRequest"in H&&le(XMLHttpRequest.prototype,"send",tv);const r=e.eventTarget;r&&(Array.isArray(r)?r:Yb).forEach(o=>rv(o,e))}}},Zb=Qb;function Rc(t){return function(...e){const r=e[0];return e[0]=qt(r,{mechanism:{data:{function:Ye(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function ev(t){return function(e){return t.apply(this,[qt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Ye(t)},handled:!1,type:"instrument"}})])}}function tv(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&le(r,o,function(i){const s={mechanism:{data:{function:o,handler:Ye(i)},handled:!1,type:"instrument"}},a=Ps(i);return a&&(s.mechanism.data.handler=Ye(a)),qt(i,s)})}),t.apply(this,e)}}function rv(t,e){var o,i;const n=(o=H[t])==null?void 0:o.prototype;(i=n==null?void 0:n.hasOwnProperty)!=null&&i.call(n,"addEventListener")&&(le(n,"addEventListener",function(s){return function(a,c,l){try{nv(c)&&(c.handleEvent=qt(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ye(c),target:t},handled:!1,type:"instrument"}}))}catch{}return e.unregisterOriginalCallbacks&&ov(this,a,c),s.apply(this,[a,qt(c,{mechanism:{data:{function:"addEventListener",handler:Ye(c),target:t},handled:!1,type:"instrument"}}),l])}}),le(n,"removeEventListener",function(s){return function(a,c,l){try{const d=c.__sentry_wrapped__;d&&s.call(this,a,d,l)}catch{}return s.call(this,a,c,l)}}))}function nv(t){return typeof t.handleEvent=="function"}function ov(t,e,r){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,r)}const iv=()=>({name:"BrowserSession",setupOnce(){if(typeof H.document>"u"){go&&x.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}hc({ignoreDuration:!0}),mc(),pd(({from:t,to:e})=>{t!==void 0&&t!==e&&(hc({ignoreDuration:!0}),mc())})}}),sv="GlobalHandlers",av=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:sv,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(lv(r),Ac("onerror")),e.onunhandledrejection&&(uv(r),Ac("onunhandledrejection"))}}},cv=av;function lv(t){ry(e=>{const{stackParser:r,attachStacktrace:n}=hd();if(q()!==t||ud())return;const{msg:o,url:i,line:s,column:a,error:c}=e,l=fv($s(r,c||o,void 0,n,!1),i,s,a);l.level="error",Yu(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function uv(t){oy(e=>{const{stackParser:r,attachStacktrace:n}=hd();if(q()!==t||ud())return;const o=dv(e),i=ks(o)?pv(o):$s(r,o,void 0,n,!0);i.level="error",Yu(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function dv(t){if(ks(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 pv(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function fv(t,e,r,n){const o=t.exception=t.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],l=n,d=r,u=Ae(e)&&e.length>0?e:Is();return c.length===0&&c.push({colno:l,filename:u,function:Et,in_app:!0,lineno:d}),t}function Ac(t){go&&x.log(`Global Handler attached: ${t}`)}function hd(){const t=q();return(t==null?void 0:t.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}const hv=()=>({name:"HttpContext",preprocessEvent(t){var n;if(!H.navigator&&!H.location&&!H.document)return;const e=Q0(),r={...e.headers,...(n=t.request)==null?void 0:n.headers};t.request={...e,...t.request,headers:r}}}),mv="cause",gv=5,yv="LinkedErrors",wv=(t={})=>{const e=t.limit||gv,r=t.key||mv;return{name:yv,preprocessEvent(n,o,i){const s=i.getOptions();A0(Fs,s.stackParser,r,e,n,o)}}},bv=wv;function vv(){return _v()?(go&&or(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function _v(){var i;if(typeof H.window>"u")return!1;const t=H;if(t.nw)return!1;const e=t.chrome||t.browser;if(!((i=e==null?void 0:e.runtime)!=null&&i.id))return!1;const r=Is(),n=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(H===H.top&&n.some(s=>r.startsWith(`${s}://`)))}function Sv(t){return[C0(),_0(),Zb(),Wb(),cv(),bv(),M0(),hv(),iv()]}function xv(t={}){const e=!t.skipBrowserExtensionCheck&&vv(),r={...t,enabled:e?!1:t.enabled,stackParser:ey(t.stackParser||Mb),integrations:Jw({integrations:t.integrations,defaultIntegrations:t.defaultIntegrations==null?Sv():t.defaultIntegrations}),transport:t.transport||kb};return s0(db,r)}const ut=class ut{constructor(){w(this,"transaction",null)}static getInstance(){return ut.instance||(ut.instance=new ut),ut.instance}startLoadTimeTracking(){this.transaction||(this.transaction=_w({name:"Widde Component Initial Load",op:"component.load",forceTransaction:!0,attributes:{metric_type:"load_time"}}))}finishLoadTimeTracking(e){this.transaction&&(this.transaction.setAttribute("first_component_tag",e.tagName),this.transaction.end(),this.transaction=null)}};w(ut,"instance");let Mi=ut;const md=Mi.getInstance();var zr,R,gd,it,Dc,yd,wd,bd,Hs,$i,Hi,vd,Dr={},_d=[],Ev=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Kr=Array.isArray;function Ie(t,e){for(var r in e)t[r]=e[r];return t}function Ws(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function xe(t,e,r){var n,o,i,s={};for(i in e)i=="key"?n=e[i]:i=="ref"?o=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?zr.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)s[i]==null&&(s[i]=t.defaultProps[i]);return Cr(t,s,n,o,null)}function Cr(t,e,r,n,o){var i={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++gd,__i:-1,__u:0};return o==null&&R.vnode!=null&&R.vnode(i),i}function Sd(){return{current:null}}function Ee(t){return t.children}function he(t,e){this.props=t,this.context=e}function Gt(t,e){if(e==null)return t.__?Gt(t.__,t.__i+1):null;for(var r;ea&&it.sort(wd),t=it.shift(),a=it.length,t.__d&&(r=void 0,o=(n=(e=t).__v).__e,i=[],s=[],e.__P&&((r=Ie({},n)).__v=n.__v+1,R.vnode&&R.vnode(r),js(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[o]:null,i,o??Gt(n),!!(32&n.__u),s),r.__v=n.__v,r.__.__k[r.__i]=r,kd(i,r,s),r.__e!=o&&xd(r)));Vn.__r=0}function Ed(t,e,r,n,o,i,s,a,c,l,d){var u,f,p,h,g,y,b=n&&n.__k||_d,v=e.length;for(c=Cv(r,e,b,c,v),u=0;u0?Cr(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,a=null,(l=s.__i=kv(s,r,c,u))!=-1&&(u--,(a=r[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(o>d?f--:oc?f--:f++,s.__u|=4))):t.__k[i]=null;if(u)for(i=0;i(c!=null&&!(2&c.__u)?1:0))for(o=r-1,i=r+1;o>=0||i=0){if((c=e[o])&&!(2&c.__u)&&s==c.key&&a==c.type)return o;o--}if(i0?t:Kr(t)?t.map(Td):Ie({},t)}function Tv(t,e,r,n,o,i,s,a,c){var l,d,u,f,p,h,g,y=r.props,b=e.props,v=e.type;if(v=="svg"?o="http://www.w3.org/2000/svg":v=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l2&&(a.children=arguments.length>3?zr.call(arguments,2):r),Cr(t.type,a,n||t.key,o||t.ref,null)}function Ud(t){function e(r){var n,o;return this.getChildContext||(n=new Set,(o={})[e.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&n.forEach(function(s){s.__e=!0,Wi(s)})},this.sub=function(i){n.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){n&&n.delete(i),s&&s.call(i)}}),r.children}return e.__c="__cC"+vd++,e.__=t,e.Provider=e.__l=(e.Consumer=function(r,n){return r.children(n)}).contextType=e,e}zr=_d.slice,R={__e:function(t,e,r,n){for(var o,i,s;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(t)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,n||{}),s=o.__d),s)return o.__E=o}catch(a){t=a}throw t}},gd=0,he.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ie({},this.state),typeof t=="function"&&(t=t(Ie({},r),this.props)),t&&Ie(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Wi(this))},he.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Wi(this))},he.prototype.render=Ee,it=[],yd=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,wd=function(t,e){return t.__v.__b-e.__v.__b},Vn.__r=0,bd=/(PointerCapture)$|Capture$/i,Hs=0,$i=Bc(!1),Hi=Bc(!0),vd=0;var Fe,L,zo,Nc,Kt=0,Od=[],$=R,Fc=$.__b,Mc=$.__r,$c=$.diffed,Hc=$.__c,Wc=$.unmount,jc=$.__;function Ut(t,e){$.__h&&$.__h(L,t,Kt||e),Kt=0;var r=L.__H||(L.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function ar(t){return Kt=1,yo(Rd,t)}function yo(t,e,r){var n=Ut(Fe++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):Rd(void 0,e),function(a){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,a);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=L,!L.__f)){var o=function(a,c,l){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!i||i.call(this,a,c,l);var u=n.__c.props!==a;return d.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(u=!0)}}),i&&i.call(this,a,c,l)||u};L.__f=!0;var i=L.shouldComponentUpdate,s=L.componentWillUpdate;L.componentWillUpdate=function(a,c,l){if(this.__e){var d=i;i=void 0,o(a,c,l),i=d}s&&s.call(this,a,c,l)},L.shouldComponentUpdate=o}return n.__N||n.__}function cr(t,e){var r=Ut(Fe++,3);!$.__s&&Ys(r.__H,e)&&(r.__=t,r.u=e,L.__H.__h.push(r))}function lr(t,e){var r=Ut(Fe++,4);!$.__s&&Ys(r.__H,e)&&(r.__=t,r.u=e,L.__h.push(r))}function qs(t){return Kt=5,Le(function(){return{current:t}},[])}function Gs(t,e,r){Kt=6,lr(function(){if(typeof t=="function"){var n=t(e());return function(){t(null),n&&typeof n=="function"&&n()}}if(t)return t.current=e(),function(){return t.current=null}},r==null?r:r.concat(t))}function Le(t,e){var r=Ut(Fe++,7);return Ys(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function zs(t,e){return Kt=8,Le(function(){return t},e)}function wo(t){var e=L.context[t.__c],r=Ut(Fe++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(L)),e.props.value):t.__}function Ks(t,e){$.useDebugValue&&$.useDebugValue(e?e(t):t)}function Uv(t){var e=Ut(Fe++,10),r=ar();return e.__=t,L.componentDidCatch||(L.componentDidCatch=function(n,o){e.__&&e.__(n,o),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Js(){var t=Ut(Fe++,11);if(!t.__){for(var e=L.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function Ov(){for(var t;t=Od.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Cn),t.__H.__h.forEach(ji),t.__H.__h=[]}catch(e){t.__H.__h=[],$.__e(e,t.__v)}}$.__b=function(t){L=null,Fc&&Fc(t)},$.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),jc&&jc(t,e)},$.__r=function(t){Mc&&Mc(t),Fe=0;var e=(L=t.__c).__H;e&&(zo===L?(e.__h=[],L.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(e.__h.forEach(Cn),e.__h.forEach(ji),e.__h=[],Fe=0)),zo=L},$.diffed=function(t){$c&&$c(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Od.push(e)!==1&&Nc===$.requestAnimationFrame||((Nc=$.requestAnimationFrame)||Rv)(Ov)),e.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),zo=L=null},$.__c=function(t,e){e.some(function(r){try{r.__h.forEach(Cn),r.__h=r.__h.filter(function(n){return!n.__||ji(n)})}catch(n){e.some(function(o){o.__h&&(o.__h=[])}),e=[],$.__e(n,r.__v)}}),Hc&&Hc(t,e)},$.unmount=function(t){Wc&&Wc(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Cn(n)}catch(o){e=o}}),r.__H=void 0,e&&$.__e(e,r.__v))};var Vc=typeof requestAnimationFrame=="function";function Rv(t){var e,r=function(){clearTimeout(n),Vc&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);Vc&&(e=requestAnimationFrame(r))}function Cn(t){var e=L,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),L=e}function ji(t){var e=L;t.__c=t.__(),L=e}function Ys(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function Rd(t,e){return typeof e=="function"?e(t):e}function Ad(t,e){for(var r in e)t[r]=e[r];return t}function Vi(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function Xs(t,e){var r=e(),n=ar({t:{__:r,u:e}}),o=n[0].t,i=n[1];return lr(function(){o.__=r,o.u=e,Ko(o)&&i({t:o})},[t,r,e]),cr(function(){return Ko(o)&&i({t:o}),t(function(){Ko(o)&&i({t:o})})},[t]),r}function Ko(t){var e,r,n=t.u,o=t.__;try{var i=n();return!((e=o)===(r=i)&&(e!==0||1/e==1/r)||e!=e&&r!=r)}catch{return!0}}function Qs(t){t()}function Zs(t){return t}function ea(){return[!1,Qs]}var ta=lr;function qn(t,e){this.props=t,this.context=e}function Dd(t,e){function r(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!s:Vi(this.props,o)}function n(o){return this.shouldComponentUpdate=r,xe(t,o)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(qn.prototype=new he).isPureReactComponent=!0,qn.prototype.shouldComponentUpdate=function(t,e){return Vi(this.props,t)||Vi(this.state,e)};var qc=R.__b;R.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),qc&&qc(t)};var Av=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ld(t){function e(r){var n=Ad({},r);return delete n.ref,t(n,r.ref||null)}return e.$$typeof=Av,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Gc=function(t,e){return t==null?null:De(De(t).map(e))},Bd={map:Gc,forEach:Gc,count:function(t){return t?De(t).length:0},only:function(t){var e=De(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:De},Dv=R.__e;R.__e=function(t,e,r,n){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),o.__c(t,e)}Dv(t,e,r,n)};var zc=R.unmount;function Nd(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Ad({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=e),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return Nd(n,e,r)})),t}function Fd(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Fd(n,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}function vt(){this.__u=0,this.o=null,this.__b=null}function Md(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function z(t){var e,r,n;function o(i){if(e||(e=t()).then(function(s){r=s.default||s},function(s){n=s}),n)throw n;if(!r)throw e;return xe(r,i)}return o.displayName="Lazy",o.__f=!0,o}function Lt(){this.i=null,this.l=null}R.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),zc&&zc(t)},(vt.prototype=new he).__c=function(t,e){var r=e.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Md(n.__v),i=!1,s=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=s;var a=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Fd(c,c.__c.__P,c.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.o.pop();)l.forceUpdate()}};n.__u++||32&e.__u||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(s,s)},vt.prototype.componentWillUnmount=function(){this.o=[]},vt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Nd(this.__b,r,n.__O=n.__P)}this.__b=null}var o=e.__a&&xe(Ee,null,t.fallback);return o&&(o.__u&=-33),[xe(Ee,null,e.__a?null:t.children),o]};var Kc=function(t,e,r){if(++r[1]===r[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(r=t.i;r;){for(;r.length>3;)r.pop()();if(r[1]>>1,1),e.h.removeChild(n)}}),zt(xe(Lv,{context:e.context},t.__v),e.v)}function $d(t,e){var r=xe(Bv,{__v:t,h:e});return r.containerInfo=e,r}(Lt.prototype=new he).__a=function(t){var e=this,r=Md(e.__v),n=e.l.get(t);return n[0]++,function(o){var i=function(){e.props.revealOrder?(n.push(o),Kc(e,t,n)):o()};r?r(i):i()}},Lt.prototype.render=function(t){this.i=null,this.l=new Map;var e=De(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.l.set(e[r],this.i=[1,0,this.i]);return t.children},Lt.prototype.componentDidUpdate=Lt.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,r){Kc(t,r,e)})};var Hd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Nv=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Fv=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Mv=/[A-Z0-9]/g,$v=typeof document<"u",Hv=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Wd(t,e,r){return e.__k==null&&(e.textContent=""),zt(t,e),typeof r=="function"&&r(),t?t.__c:null}function jd(t,e,r){return Pd(t,e),typeof r=="function"&&r(),t?t.__c:null}he.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(he.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Jc=R.event;function Wv(){}function jv(){return this.cancelBubble}function Vv(){return this.defaultPrevented}R.event=function(t){return Jc&&(t=Jc(t)),t.persist=Wv,t.isPropagationStopped=jv,t.isDefaultPrevented=Vv,t.nativeEvent=t};var ra,qv={enumerable:!1,configurable:!0,get:function(){return this.class}},Yc=R.vnode;R.vnode=function(t){typeof t.type=="string"&&function(e){var r=e.props,n=e.type,o={},i=n.indexOf("-")===-1;for(var s in r){var a=r[s];if(!(s==="value"&&"defaultValue"in r&&a==null||$v&&s==="children"&&n==="noscript"||s==="class"||s==="className")){var c=s.toLowerCase();s==="defaultValue"&&"value"in r&&r.value==null?s="value":s==="download"&&a===!0?a="":c==="translate"&&a==="no"?a=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?s="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||Hv(r.type)?c==="onfocus"?s="onfocusin":c==="onblur"?s="onfocusout":Fv.test(s)&&(s=c):c=s="oninput":i&&Nv.test(s)?s=s.replace(Mv,"-$&").toLowerCase():a===null&&(a=void 0),c==="oninput"&&o[s=c]&&(s="oninputCapture"),o[s]=a}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=De(r.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=De(r.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",qv)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),e.props=o}(t),t.$$typeof=Hd,Yc&&Yc(t)};var Xc=R.__r;R.__r=function(t){Xc&&Xc(t),ra=t.__c};var Qc=R.diffed;R.diffed=function(t){Qc&&Qc(t);var e=t.props,r=t.__e;r!=null&&t.type==="textarea"&&"value"in e&&e.value!==r.value&&(r.value=e.value==null?"":e.value),ra=null};var Vd={ReactCurrentDispatcher:{current:{readContext:function(t){return ra.__n[t.__c].props.value},useCallback:zs,useContext:wo,useDebugValue:Ks,useDeferredValue:Zs,useEffect:cr,useId:Js,useImperativeHandle:Gs,useInsertionEffect:ta,useLayoutEffect:lr,useMemo:Le,useReducer:yo,useRef:qs,useState:ar,useSyncExternalStore:Xs,useTransition:ea}}},qd="18.3.1";function Gd(t){return xe.bind(null,t)}function Jr(t){return!!t&&t.$$typeof===Hd}function zd(t){return Jr(t)&&t.type===Ee}function Kd(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Jd(t){return Jr(t)?Pv.apply(null,arguments):t}function Yd(t){return!!t.__k&&(zt(null,t),!0)}function Xd(t){return t&&(t.base||t.nodeType===1&&t)||null}var Qd=function(t,e){return t(e)},Zd=function(t,e){return t(e)},ep=Ee,tp=Jr,Ze={useState:ar,useId:Js,useReducer:yo,useEffect:cr,useLayoutEffect:lr,useInsertionEffect:ta,useTransition:ea,useDeferredValue:Zs,useSyncExternalStore:Xs,startTransition:Qs,useRef:qs,useImperativeHandle:Gs,useMemo:Le,useCallback:zs,useContext:wo,useDebugValue:Ks,version:"18.3.1",Children:Bd,render:Wd,hydrate:jd,unmountComponentAtNode:Yd,createPortal:$d,createElement:xe,createContext:Ud,createFactory:Gd,cloneElement:Jd,createRef:Sd,Fragment:Ee,isValidElement:Jr,isElement:tp,isFragment:zd,isMemo:Kd,findDOMNode:Xd,Component:he,PureComponent:qn,memo:Dd,forwardRef:Ld,flushSync:Zd,unstable_batchedUpdates:Qd,StrictMode:ep,Suspense:vt,SuspenseList:Lt,lazy:z,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vd};const NE=Object.freeze(Object.defineProperty({__proto__:null,Children:Bd,Component:he,Fragment:Ee,PureComponent:qn,StrictMode:ep,Suspense:vt,SuspenseList:Lt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vd,cloneElement:Jd,createContext:Ud,createElement:xe,createFactory:Gd,createPortal:$d,createRef:Sd,default:Ze,findDOMNode:Xd,flushSync:Zd,forwardRef:Ld,hydrate:jd,isElement:tp,isFragment:zd,isMemo:Kd,isValidElement:Jr,lazy:z,memo:Dd,render:Wd,startTransition:Qs,unmountComponentAtNode:Yd,unstable_batchedUpdates:Qd,useCallback:zs,useContext:wo,useDebugValue:Ks,useDeferredValue:Zs,useEffect:cr,useErrorBoundary:Uv,useId:Js,useImperativeHandle:Gs,useInsertionEffect:ta,useLayoutEffect:lr,useMemo:Le,useReducer:yo,useRef:qs,useState:ar,useSyncExternalStore:Xs,useTransition:ea,version:qd},Symbol.toStringTag,{value:"Module"}));function Gv(t){const e={...t};return sd(e,"react"),Hw("react",{version:qd}),xv(e)}var FE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ME(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}function Kv(t){const e=de.sentry_dsn;Gv({dsn:e,environment:"production",enabled:!1,sendDefaultPii:!1,beforeSend:(r,n)=>Jv(r,n)?r:null,tracesSampleRate:.01,sampleRate:.005,...t})}function Jv(t,e){var i,s,a,c,l,d,u,f;if(!e.originalException&&!((c=(a=(s=(i=t.exception)==null?void 0:i.values)==null?void 0:s[0])==null?void 0:a.stacktrace)!=null&&c.frames))return!1;const o=(((f=(u=(d=(l=t.exception)==null?void 0:l.values)==null?void 0:d[0])==null?void 0:u.stacktrace)==null?void 0:f.frames)||[])[0];if(o){const p=o.abs_path||o.filename||"";return Yv(p)}return!1}function Yv(t){return t?["cdn.widde.io","widde.io","web-video-novo"].some(r=>t.includes(r)):!1}class Xv{constructor(e=""){w(this,"get",async e=>{try{const r=localStorage.getItem(this.keyName(e));return r?JSON.parse(r):void 0}catch{return}});w(this,"add",async(e,r)=>{try{return localStorage.setItem(this.keyName(e),JSON.stringify(r)),!0}catch{return!1}});w(this,"remove",async e=>localStorage.removeItem(this.keyName(e)));this.prefix=e}keyName(e){return this.prefix?`${this.prefix}:${e}`:e}}class Qv{constructor(e=""){w(this,"get",e=>{try{const r=localStorage.getItem(this.keyName(e));return r?JSON.parse(r):void 0}catch{return}});w(this,"add",(e,r)=>{try{return localStorage.setItem(this.keyName(e),JSON.stringify(r)),!0}catch{return!1}});w(this,"remove",e=>localStorage.removeItem(this.keyName(e)));this.prefix=e}keyName(e){return this.prefix?`${this.prefix}:${e}`:e}}class Zv{constructor(){w(this,"memory",{});w(this,"get",async e=>this.memory[e]);w(this,"add",async(e,r)=>(this.memory[e]=r,!0));w(this,"remove",async e=>{delete this.memory[e]})}}class rp{constructor(){w(this,"memory",{});w(this,"get",e=>this.memory[e]);w(this,"add",(e,r)=>(this.memory[e]=r,!0));w(this,"remove",e=>{delete this.memory[e]})}}function np(){return new rp}function Je(t=""){return op()?new Xv(t):new Zv}function na(t=""){return op()?new Qv(t):new rp}function op(){var t="test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch{return!1}}class N{static getUrl(){return Zc()}static urlObject(){return new window.URL(Zc())}static isHome(){return window.location.pathname==="/"}static getHost(){const r=Jt()("widde-demo-url");if(r){const n=_n.generateUrl(r);return(n==null?void 0:n.host)||window.location.host}return window.location.host}static getSearchParams(){var e;return(e=new window.URL(window.location.href))==null?void 0:e.searchParams}static getStoredRealUrl(){return ip()}static getPreview(){const e=Jt();return e("widde-configuration-preview")?{my:e("my"),mx:e("mx"),direction:e("direction"),zIndex:e("index"),type:e("type"),colors:{primary:"#"+e("primary"),secondary:"#"+e("secondary")}}:{}}static clearUrl(e){try{const r=new window.URL(e);let n=r.pathname;return n.endsWith("/")&&n!=="/"&&(n=n.slice(0,-1)),`${r.host}${n}`}catch{let n=e==null?void 0:e.split("?")[0];return n.endsWith("/")&&(n=n.slice(0,-1)),n}}}function Zc(t=[]){const e=Jt(),r=["widde-demo-url","widde-preview-url"],n=ip();for(const o of r)if(e_(o,t)){const i=e(o);if(i)return t_(o,n),i}return n}function ip(){return`${window.location.origin}${window.location.pathname||""}`}function e_(t,e){return!e.includes(t)}function t_(t,e){t==="widde-preview-url"&&na().add("widde-real-url",e)}function Jt(){const t=new URLSearchParams(window.location.search);return e=>{const r=t.get(e);return r==""?!0:r}}class oa{static isInIframe(){try{return window.self!==window.top}catch{return!0}}static isIframeWithCartParam(){const r=Jt()("cart-iframe");return oa.isInIframe()&&r!==null}}function r_(t){const e=o_(),r=JSON.stringify({gtms:n_(),widdeInstalled:!0,widdeSelectors:e});window.opener&&window.opener.postMessage(r,"*")}function n_(){const t=document.querySelectorAll('script[src^="https://www.googletagmanager.com'),e=[];return t.forEach(r=>{const n=new window.URL(r.src).searchParams.get("id");n&&e.push(n)}),e}function o_(t){return null}let i_=class{constructor(e){this._db=e}async get(e){return await this._db.get(e)||!1}async like(e){await this._db.get(e)?this._db.remove(e):this._db.add(e,!0)}},s_=class{async hasMeasurement(){}async get(){return await new Promise(e=>setTimeout(e,1e3)),{mediaKey:"mock-media-key",linkedModels:[{id:"model-1",name:"Maria",status:"ACTIVE",values:[{id:"value-1",propertyId:"prop-1",value:"83",property:{id:"prop-1",label:"Busto",icon:"ruler",suffix:"cm",valueType:"NUMBER",sort:1}},{id:"value-2",propertyId:"prop-2",value:"67",property:{id:"prop-2",label:"Cintura",icon:"ruler",suffix:"cm",valueType:"NUMBER",sort:2}}]}],propertyValues:[{property:{id:"media-prop-1",label:"Tamanho",icon:"t-shirt",suffix:"",valueType:"STRING",sort:1},value:"M",valueId:"media-value-1"}]}}};function a_(t,e){var r=t.split("?");if(r.length>=2){for(var n=encodeURIComponent(e)+"=",o=r[1].split(/[&;]/g),i=o.length;i-- >0;)o[i].lastIndexOf(n,0)!==-1&&o.splice(i,1);var s=r[0]+(o.length>0?"?"+o.join("&"):"");window.history.pushState({path:s},"",s)}return t}const bo="widde-story";function c_(t){return`?${bo}=${t}`}function WE(){let e=new URLSearchParams(document.location.search).get(bo)||"";if(e)return e}function jE(){a_(window.location.href,bo)}class sp{constructor(e){this.storage=e}async storyView(e){this.storage.get(e)||(this.storage.add(e,!0),this.sendStoryView(e))}async collectionView(e){this.storage.get(e)||(this.storage.add(e,!0),this.sendCollectionView(e))}}class ap{constructor(e){this.ldJsonService=e}async getProductsByStoryKey(e){const r=await this.get(e),n=this.ldJsonService.readAllProducts();return r.map(i=>this.formatProduct(i,n.find(s=>o(i.url,s.url))));function o(i,s){try{const a=new window.URL(i),c=new window.URL(s);return a.hostname===c.hostname&&a.pathname===c.pathname}catch{return!1}}}formatProduct(e,r){return!r||e.price&&e.price>=Math.round(r.offer.minPrice*100)&&e.price<=Math.round(r.offer.maxPrice*100)?e:{...e,priceFormatted:"",price:0}}}class cp{constructor(e,r){w(this,"CACHE_KEY","feedback");this.storage=e,this.options=r}async hideFeedbackByCache(){if(!this.options.commentWhenVideoEnds)return!0;const e=await this.storage.get(this.CACHE_KEY);if(!e)return!1;const r=new Date().getTime(),n=Math.abs(r-e);return!(Math.floor(n/(1e3*60*60*24))>1)}async feedbacksShowed(){await this.storage.add(this.CACHE_KEY,new Date().getTime())}async showFeedbacks(){return await this.hideFeedbackByCache()?!1:(await this.feedbacks()).length>0}}class lp{async getShareData(e,r){const n=new window.URL(window.location.href),o=`${n.origin}${n.pathname}${c_(r)}`,i=this.addShareUtmParams(o,r),s=`Olha que legal esse vídeo da loja ${e}`;return{title:e,text:s,url:i,urlWithTitle:`${s} ${i}`}}addShareUtmParams(e,r){const n=new window.URL(e);return n.searchParams.set("utm_source","widde"),n.searchParams.set("utm_medium","share"),n.searchParams.set("utm_campaign",r),n.toString()}}let el=class extends cp{async loadStoryComments(e){return await new Promise(r=>setTimeout(r,1500)),[]}async sendFeedbackOnVideo(){return await new Promise(e=>setTimeout(e,1500)),!0}async feedbacks(){return await new Promise(e=>setTimeout(e,1500)),[]}async sendAnswer(){return await new Promise(e=>setTimeout(e,500)),!0}async getSettings(){return await new Promise(e=>setTimeout(e,500)),{placeholder:"Deixe aqui sua sugestão do que achou ou de como podemos melhorar.",key:""}}};const up={whatsappMessage:({customText:t,storyKey:e}={})=>{let r=N.urlObject();e&&r.searchParams.set(bo,e);let n=t?`${t} Estou no vídeo: ${r.toString()}`:`Olá! Vi o vídeo na página ${r.toString()} e quero tirar uma dúvida`;try{return encodeURIComponent(n)}catch{return n}},whatsappMessageWithSource:t=>{let e=N.urlObject();e.searchParams.set("source","whatsapp");let r=t?`${t} Estou na página: ${e.toString()}`:`Olá! Vi o vídeo na página ${e.toString()} e quero tirar uma dúvida`;try{return encodeURIComponent(r)}catch{return r}}};let l_=class{async goToWpp(e){window.open(this.whatsappLinkBuilder(e,up.whatsappMessage()),"_blank")}whatsappLinkBuilder(e,r){return`https://api.whatsapp.com/send/?phone=${e}&type=phone_number&app_absent=0&text=${r}`}},u_=class extends lp{async shareVideo(e,r){const{urlWithTitle:n,...o}=await this.getShareData(e,r);try{navigator.share(o)}catch{}}shareNativeEnabled(){return!!navigator.share}};function pn(t,e,r){try{let n=new Intl.NumberFormat(e||"pt-BR",{minimumFractionDigits:2}).format(t);return`${r?r+" ":""}${n}`}catch{return""}}function tl(){const r=Math.random()>.5?.99:0;return Math.floor(Math.random()*901)+99+r}let d_=class extends ap{async get(){await new Promise(i=>setTimeout(i));const e=tl(),r=e*1.5,n=tl(),o=n*1.5;return[{title:"Product de Teste",mainImage:"https://videos.widde.io/widde-bucket-sp/335ad64a-0820-4ad1-bda6-b44474ed45fe/products/zhf-2774-editar-cd571f337986d6232f16951307570360-1024-1024.webp",priceFormatted:pn(e,"pt-BR","R$ "),comparePriceFormatted:pn(r,"pt-BR","R$ "),url:"#",price:e,comparePrice:r,externalId:"94784156"},{title:"Product de Teste 2",mainImage:"https://videos.widde.io/widde-bucket-sp/335ad64a-0820-4ad1-bda6-b44474ed45fe/products/zhf-2775-editar-03b115ccc6f04d3fa016951307705929-1024-1024.webp",priceFormatted:pn(n,"pt-BR","R$ "),comparePriceFormatted:pn(o,"pt-BR","R$ "),url:"#",price:n,comparePrice:o,externalId:"94784156"}]}sendEventBeforeGoTo(){return Promise.resolve()}};const p_={data:{storiesCollections:{collection:{key:"8fb43190-3e3c-4a5f-b89a-3e3d33367e07",title:"VTEX",highlightText:"Ver ",type:"Collection",gif:null,gifWebp:null,analytics:["G-RL43TP4BC8"],companyCollectionProps:{whatsapp:"5511916596308",whatsappText:"Digite aqui e vamos te ajudar :)",features:["ShowPriceOnVideos","Share","Like","GlassMode","Comments","Carousel","ShowProductOnCarrosselWiddePro"]},customTemplate:{title:null,model:"rectangle",positionType:"gallery",subTitle:null,animated:null,wrapperType:"highlight",primaryColor:"#141010ff",secondaryColor:"#ffffff",anchor:{desktop:"#test-inline",mobile:"#test-inline"}},position:{direction:"inferior-left",marginX:16,marginY:16,marginXMobile:16,marginYMobile:16,directionMobile:"inferior-left"},style:{bgBtn:"#ffffff",zIndex:3,storieColor:"#000000",storieCloseColor:"#000000"},stories:[{key:"41168872-5f07-46af-84b3-1fa1a821d187",title:"",status:"ACTIVE",actionStory:void 0,media:{key:"a9d35cdf-b83e-4b94-97eb-6efaa5639147",gifs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/a9d35cdf-b83e-4b94-97eb-6efaa5639147-1738703217399-553036/gif.mp4"],thumbs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/a9d35cdf-b83e-4b94-97eb-6efaa5639147-1738703217399-553036/thumbnail.png","https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/a9d35cdf-b83e-4b94-97eb-6efaa5639147-1738703217399-553036/thumbnail.png"],videos:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/a9d35cdf-b83e-4b94-97eb-6efaa5639147-1738703217399-553036/video.mp4","https://videos.widde.io/widde-bucket-dev/149eaaf9-748b-42ad-bc9d-ba670368c45a/uploads/a9d35cdf-b83e-4b94-97eb-6efaa5639147.mp4"],thumbnailExposed:"https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/a9d35cdf-b83e-4b94-97eb-6efaa5639147-1738703217399-553036/thumbnail.png",hasWearModelMeasurement:!1}},{key:"3ceeb755-60e4-456a-936e-36fe3669f622",title:"",status:"ACTIVE",actionStory:void 0,media:{key:"43960962-6d36-4ad5-ac2d-55333ca2df51",gifs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/43960962-6d36-4ad5-ac2d-55333ca2df51-1738703209681-9937512/gif.mp4"],thumbs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/43960962-6d36-4ad5-ac2d-55333ca2df51-1738703209681-9937512/thumbnail.png","https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/43960962-6d36-4ad5-ac2d-55333ca2df51-1738703209681-9937512/thumbnail.png"],videos:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/43960962-6d36-4ad5-ac2d-55333ca2df51-1738703209681-9937512/video.mp4","https://videos.widde.io/widde-bucket-dev/149eaaf9-748b-42ad-bc9d-ba670368c45a/uploads/43960962-6d36-4ad5-ac2d-55333ca2df51.mp4"],thumbnailExposed:"https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/43960962-6d36-4ad5-ac2d-55333ca2df51-1738703209681-9937512/thumbnail.png",hasWearModelMeasurement:!1}},{key:"5d3b4892-452c-4b73-b508-55b5feb7865b",title:"",status:"ACTIVE",actionStory:void 0,media:{key:"aba7572e-d4a5-4875-b968-ad57996789dc",gifs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/aba7572e-d4a5-4875-b968-ad57996789dc-1738703210295-8329814/gif.mp4"],thumbs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/aba7572e-d4a5-4875-b968-ad57996789dc-1738703210295-8329814/thumbnail.png","https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/aba7572e-d4a5-4875-b968-ad57996789dc-1738703210295-8329814/thumbnail.png"],videos:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/aba7572e-d4a5-4875-b968-ad57996789dc-1738703210295-8329814/video.mp4","https://videos.widde.io/widde-bucket-dev/149eaaf9-748b-42ad-bc9d-ba670368c45a/uploads/aba7572e-d4a5-4875-b968-ad57996789dc.mp4"],thumbnailExposed:"https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/aba7572e-d4a5-4875-b968-ad57996789dc-1738703210295-8329814/thumbnail.png",hasWearModelMeasurement:!1}},{key:"ce2566d8-4d55-46c4-a75d-ea27e431be36",title:"",status:"ACTIVE",actionStory:void 0,media:{key:"4e239449-79d2-4cbb-aae1-37ec0a2bc11b",gifs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/4e239449-79d2-4cbb-aae1-37ec0a2bc11b-1738703208492-8018159/gif.mp4"],thumbs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/4e239449-79d2-4cbb-aae1-37ec0a2bc11b-1738703208492-8018159/thumbnail.png","https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/4e239449-79d2-4cbb-aae1-37ec0a2bc11b-1738703208492-8018159/thumbnail.png"],videos:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/4e239449-79d2-4cbb-aae1-37ec0a2bc11b-1738703208492-8018159/video.mp4","https://videos.widde.io/widde-bucket-dev/149eaaf9-748b-42ad-bc9d-ba670368c45a/uploads/4e239449-79d2-4cbb-aae1-37ec0a2bc11b.mp4"],thumbnailExposed:"https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/4e239449-79d2-4cbb-aae1-37ec0a2bc11b-1738703208492-8018159/thumbnail.png",hasWearModelMeasurement:!1}},{key:"b61214d7-f1e7-4705-863b-ff8da8081b90",title:"",status:"ACTIVE",actionStory:void 0,media:{key:"e9cb2bc4-bd37-4524-a2a5-f279b1241d18",gifs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/e9cb2bc4-bd37-4524-a2a5-f279b1241d18-1738703205022-9919290/gif.mp4"],thumbs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/e9cb2bc4-bd37-4524-a2a5-f279b1241d18-1738703205022-9919290/thumbnail.png","https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/e9cb2bc4-bd37-4524-a2a5-f279b1241d18-1738703205022-9919290/thumbnail.png"],videos:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/e9cb2bc4-bd37-4524-a2a5-f279b1241d18-1738703205022-9919290/video.mp4","https://videos.widde.io/widde-bucket-dev/149eaaf9-748b-42ad-bc9d-ba670368c45a/uploads/e9cb2bc4-bd37-4524-a2a5-f279b1241d18.mp4"],thumbnailExposed:"https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/e9cb2bc4-bd37-4524-a2a5-f279b1241d18-1738703205022-9919290/thumbnail.png",hasWearModelMeasurement:!1}},{key:"3999f932-35b9-40ad-b64c-9dcf11ace05a",title:"",status:"ACTIVE",actionStory:void 0,media:{key:"445d7334-0091-46e3-ae9c-a55d8c4692ae",gifs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/445d7334-0091-46e3-ae9c-a55d8c4692ae-1738703205211-5214771/gif.mp4"],thumbs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/445d7334-0091-46e3-ae9c-a55d8c4692ae-1738703205211-5214771/thumbnail.png","https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/445d7334-0091-46e3-ae9c-a55d8c4692ae-1738703205211-5214771/thumbnail.png"],videos:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/445d7334-0091-46e3-ae9c-a55d8c4692ae-1738703205211-5214771/video.mp4","https://videos.widde.io/widde-bucket-dev/149eaaf9-748b-42ad-bc9d-ba670368c45a/uploads/445d7334-0091-46e3-ae9c-a55d8c4692ae.mp4"],thumbnailExposed:"https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/445d7334-0091-46e3-ae9c-a55d8c4692ae-1738703205211-5214771/thumbnail.png",hasWearModelMeasurement:!1}},{key:"db9e9d1c-38df-4ecd-9084-cb23c33f2ee4",title:"",status:"ACTIVE",actionStory:void 0,media:{key:"b985d6c3-f224-4215-a693-4e7f3c9da7c5",gifs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/b985d6c3-f224-4215-a693-4e7f3c9da7c5-1738703201676-9350517/gif.mp4"],thumbs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/b985d6c3-f224-4215-a693-4e7f3c9da7c5-1738703201676-9350517/thumbnail.png","https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/b985d6c3-f224-4215-a693-4e7f3c9da7c5-1738703201676-9350517/thumbnail.png"],videos:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/b985d6c3-f224-4215-a693-4e7f3c9da7c5-1738703201676-9350517/video.mp4","https://videos.widde.io/widde-bucket-dev/149eaaf9-748b-42ad-bc9d-ba670368c45a/uploads/b985d6c3-f224-4215-a693-4e7f3c9da7c5.mp4"],thumbnailExposed:"https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/b985d6c3-f224-4215-a693-4e7f3c9da7c5-1738703201676-9350517/thumbnail.png",hasWearModelMeasurement:!1}},{key:"af8d105c-0d12-4d08-befa-5c678541ea47",title:"",status:"ACTIVE",actionStory:void 0,media:{key:"6b3276c9-3bf0-47a8-af5c-45862fb2beb7",gifs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/6b3276c9-3bf0-47a8-af5c-45862fb2beb7-1738703201629-6110551/gif.mp4"],thumbs:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/6b3276c9-3bf0-47a8-af5c-45862fb2beb7-1738703201629-6110551/thumbnail.png","https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/6b3276c9-3bf0-47a8-af5c-45862fb2beb7-1738703201629-6110551/thumbnail.png"],videos:["https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/6b3276c9-3bf0-47a8-af5c-45862fb2beb7-1738703201629-6110551/video.mp4","https://videos.widde.io/widde-bucket-dev/149eaaf9-748b-42ad-bc9d-ba670368c45a/uploads/6b3276c9-3bf0-47a8-af5c-45862fb2beb7.mp4"],thumbnailExposed:"https://videos.widde.io/widde-bucket-sp/149eaaf9-748b-42ad-bc9d-ba670368c45a/videos/6b3276c9-3bf0-47a8-af5c-45862fb2beb7-1738703201629-6110551/thumbnail.png",hasWearModelMeasurement:!1}}]}}}};var rl;(t=>{(e=>{e.Collection="Collection",e.Product="Product",e.FeedVideos="FeedVideos"})(t.Type||(t.Type={}))})(rl||(rl={}));var _r=(t=>(t.superiorLeft="superior-left",t.superiorRight="superior-right",t.inferiorLeft="inferior-left",t.inferiorRight="inferior-right",t))(_r||{});class dp{static adapt(e,r){var n,o,i,s,a,c,l,d;return{position:r,positionElement:{followScroll:(n=e==null?void 0:e.customTemplate)==null?void 0:n.followScroll,canCloseVideo:(o=e==null?void 0:e.customTemplate)==null?void 0:o.canCloseVideo,position:{desktop:{zIndex:e.style.zIndex,x:(i=e==null?void 0:e.position)==null?void 0:i.marginX,y:(s=e==null?void 0:e.position)==null?void 0:s.marginY,position:this.directionToPosition((a=e==null?void 0:e.position)==null?void 0:a.direction)},mobile:{zIndex:e.style.zIndex,x:(c=e==null?void 0:e.position)==null?void 0:c.marginXMobile,y:(l=e==null?void 0:e.position)==null?void 0:l.marginYMobile,position:this.directionToPosition((d=e==null?void 0:e.position)==null?void 0:d.directionMobile)}}}}}static directionToPosition(e){return e==_r.inferiorLeft?"left-bottom":e==_r.inferiorRight?"right-bottom":e==_r.superiorLeft?"left-top":e==_r.superiorRight?"right-top":"left-top"}}var qe=(t=>(t.highlight="highlight",t.curvedText="curvedText",t.noText="noText",t["simple-text"]="simple-text",t))(qe||{}),f_=(t=>(t.rectangle="rectangle",t.circle="circle",t.stamp="stamp",t.heart="heart",t))(f_||{});class pp{static adapt(e){var i,s;const r=(i=e==null?void 0:e.customTemplate)==null?void 0:i.positionType,n=(s=e==null?void 0:e.customTemplate)==null?void 0:s.wrapperType;let o=n;return r==="highlight"&&n===qe.highlight?o=qe["simple-text"]:r==="gallery"&&(o=qe.noText),{wrapperType:o||qe.noText}}}class fp{static adapt(e){var n,o,i,s,a;return{size:"sm",supportingTextColor:e.customTemplate.supportingTextColor,buttonType:((n=e==null?void 0:e.customTemplate)==null?void 0:n.model)==="simple"?"circle":e.customTemplate.model,color:{primary:((o=e==null?void 0:e.customTemplate)==null?void 0:o.primaryColor)||((i=e==null?void 0:e.style)==null?void 0:i.storieColor),secondary:((s=e==null?void 0:e.customTemplate)==null?void 0:s.secondaryColor)||((a=e==null?void 0:e.style)==null?void 0:a.bgBtn)}}}}var qi;(t=>{(e=>{e.FREE="free",e.STARTER="starter",e.STANDARD="standard",e.PRO="pro"})(t.PlanType||(t.PlanType={})),(e=>{e.free="free",e.premium="premium"})(t.Type||(t.Type={}))})(qi||(qi={}));let h_=class{async loadStories(e){return this.loadStories(e)}async getSubscriptionInfo(e){return{plan:qi.PlanType.STANDARD,type:"premium"}}async get(e){if(!e.token)return null;const r=p_.data.storiesCollections.collection,n=dp.adapt(r,"fixed"),o=pp.adapt(r),i=fp.adapt(r),s=new window.URL(window.location.href).searchParams.get("widde-local-quantity"),a=r.stories.length,c=s&&!isNaN(+s)?+s:a;return{url:e.token,type:r==null?void 0:r.type,collectionKey:`${Math.random()*1e4}`,viewKey:`${Math.random()*1e4}`,companyConfig:r.companyCollectionProps,hasMoreStories:!1,stories:r.stories.slice(0,c).map(l=>({...l,...l.media,videos:l.media.videos.filter(d=>d.endsWith(".mp4")),text:l.title,mediaKey:l.media.key,collectionKey:r.key,hasWearModelMeasurement:!0,action:l==null?void 0:l.actionStory})),...o,...i,...n,options:{}}}},m_=class extends sp{async sendCollectionView(){}async sendStoryView(){}};class g_{constructor(e,r){this.service=e,this.querySelector=r}readAllLdJson(){const e=this.querySelector('script[type="application/ld+json"]'),r=[];return e.forEach(n=>{var o;try{const i=((o=n.textContent)==null?void 0:o.replace(/[\r\n]+/g," "))??"",s=JSON.parse(i);r.push(s)}catch(i){console.error("Error parsing LD+JSON:",i)}}),r}readAllProducts(){try{const e=this.readAllLdJson();return this.service.readAllProducts(e).filter(Boolean)}catch(e){return console.error("Error reading LD+JSON:",e),[]}}}class ia{constructor(e){w(this,"_minPrice",0);w(this,"_maxPrice",0);var r,n,o,i;if(e["@type"]==="AggregateOffer"&&(this._minPrice=+(((r=e.lowPrice)==null?void 0:r.toString())??"0"),this._maxPrice=+(((n=e.highPrice)==null?void 0:n.toString())??"0")),e["@type"]==="Offer"&&(this._minPrice=+(((o=e.price)==null?void 0:o.toString())??"0"),this._maxPrice=+(((i=e.price)==null?void 0:i.toString())??"0")),Array.isArray(e)){const s=e.map(a=>new ia(a).getValue());this._minPrice=Math.min(...s.map(a=>a.minPrice).filter(Boolean)),this._maxPrice=Math.max(...s.map(a=>a.maxPrice).filter(Boolean))}}getValue(){return{minPrice:this._minPrice,maxPrice:this._maxPrice}}}class y_{constructor(e){w(this,"id");w(this,"title");w(this,"url");w(this,"offer");w(this,"image");var r,n,o,i;this.id=e["@id"]??((r=e.url)==null?void 0:r.toString())??"",this.title=((n=e.name)==null?void 0:n.toString())??"",this.url=((o=e.url)==null?void 0:o.toString())??e["@id"]??"",this.image=((i=e.image)==null?void 0:i.toString())??"",e.offers&&(this.offer=new ia(e.offers))}getValue(){var e;return this.offer?{id:this.id,title:this.title,url:this.url,image:this.image,offer:(e=this.offer)==null?void 0:e.getValue()}:null}}class w_{readAllProducts(e){return this.processJsonLD(e)}processJsonLD(e){return this.searchElement(e,"Product").map(n=>this.extractProductInfo(n)).map(n=>n.getValue())}extractProductInfo(e){return new y_(e)}searchElement(e,r){if(e===null||typeof e!="object")return[];if(e["@type"]===r)return[e];const n=[];for(let o in e){const i=this.searchElement(e[o],r);i&&n.push(...i)}return n}}function sa(){return new g_(new w_,document.querySelectorAll.bind(document))}function b_(){return{likeService:new i_(Je("like")),measurementService:new s_,commentService:new el(Je("feedback"),{}),feedbackService:new el(Je("feedback"),{}),whatsappService:new l_,shareService:new u_,productService:new d_(sa()),subscriptionInfo:{},viewService:new m_(np())}}function v_(){return new h_}const dt=class dt{constructor(e){w(this,"baseUrl","/analytics/events");this.httpClient=e}static getInstance(){if(!dt.instance){const e=bs();dt.instance=new dt(e)}return dt.instance}async cart(e){await this.sendEvent("cart",e)}async media(e){await this.sendEvent("media",e)}async product(e){await this.sendEvent("product",e)}async story(e){await this.sendEvent("story",e)}async collection(e){await this.sendEvent("collection",e)}async sendEvent(e,r){const n=`${this.baseUrl}/${e}`;await this.httpClient.post(n,r)}};w(dt,"instance");let Gi=dt;const __=Gi.getInstance(),S_={DOMAIN_NOT_FOUND:"Domínio não encontrado"};var zi;(t=>{class e extends Error{constructor(){super(S_.DOMAIN_NOT_FOUND)}}t.DomainNotFoundError=e})(zi||(zi={}));var ae=(t=>(t.shopify="shopify",t.none="none",t.vtex="vtex",t["google-xml"]="google-xml",t.nuvemshop="nuvemshop",t.vnda="vnda",t.tray="tray",t["loja-integrada"]="loja-integrada",t.bagy="bagy",t.wake="wake",t.local="local",t.default="default",t.irroba="irroba",t.bravvo="bravvo",t.magazord="magazord",t.jetcommerce="jetcommerce",t.wbuy="wbuy",t.magento="magento",t))(ae||{});function x_(t){return class extends t{static isHomePage(e){return e==="/"}}}function E_(t,e){if(!t||!e)return 0;const r=[0,0,0],n=Math.floor(Math.max(t.length,e.length)/2)-1;let o=new Array(t.length).fill(!1),i=new Array(e.length).fill(!1);for(let c=0;c{var n;try{const o=((n=r.textContent)==null?void 0:n.replace(/[\r\n]+/g," "))??"";return JSON.parse(o)["@type"]==="Product"}catch{return!1}})}static productOnUrl(e){return e.includes("/products/")||e.includes("/produtos")||e.includes("/produto/")||e.includes("/p/")||e.endsWith("/p")}static productByTitleMatch(){var n;const e=document.title.toLowerCase().trim();if(!e)return!1;const r=document.querySelectorAll('h1, h2, h3, [class*="title"], [class*="produto"], [class*="product"], span');for(const o of r){const i=((n=o.textContent)==null?void 0:n.toLowerCase().trim())||"";if(!i)continue;if(C_.jaroWinkler(e,i)>=.8)return!0}return!1}static productOnBodyClass(){const e=document.body.className;return["pagina-produto"].some(n=>e.includes(n))}static productByGenericElement(){return[".pgproduto","app-product-detail"].some(r=>!!document.querySelector(r))}}}const nl=["collection-page","categoria","categorias","departamento","departamentos","categories","department","departments","template-category","grid-products","grid-empty"];function T_(t){return class extends t{static isSectionPage(e){return this.sectionOnURL(e)||this.sectionOnJsonLD()||this.isCategory()||this.isHotsite()||this.sectionByGenericElement()}static sectionOnURL(e){return nl.some(r=>e.includes(`/${r}`))}static sectionOnJsonLD(){const e=document.querySelectorAll('script[type="application/ld+json"]');return Array.from(e).some(r=>{var n;try{const o=((n=r.textContent)==null?void 0:n.replace(/[\r\n]+/g," "))??"",i=JSON.parse(o);return["ItemList","CollectionPage"].includes(i["@type"])}catch{return!1}})}static isCategory(){try{const e=document.querySelector("body");return e?nl.some(r=>Array.from(e.classList).join("").includes(r)):!1}catch{return!1}}static isHotsite(){try{const e=document.querySelector("body");return e?Array.from(e.classList).join("").includes("hotsite"):!1}catch{return!1}}static sectionByGenericElement(){return!!document.querySelector("app-feature-list")}}}var T=(t=>(t.HOME="Home",t.PRODUCT="Product",t.SECTION="Section",t.CUSTOM="Custom",t))(T||{});class I_{}const P_=k_(x_(T_(I_)));class ol extends P_{static execute(){const r=new window.URL(window.location.href).pathname;return this.isHomePage(r)?"Home":this.isSectionPage(r)?"Section":this.isProductPage(r)?"Product":"Custom"}}class U_{isThisIntegration(){return!!(document.querySelector('a[src*="braavo.com.br"]')||document.querySelector('a[href*="braavo.com.br"]'))}getType(){return ae.bravvo}getPageType(){return N.isHome()?T.HOME:this.isProductPage()?T.PRODUCT:T.CUSTOM}getProductDivElement(){const e=document.querySelector('form[action*="/carrinho"]');return e||null}isProductPage(){const[,e]=window.location.pathname.split("/");return e==="prod"}}class hp{isThisIntegration(){return!1}getType(){return null}getHeader(){return["header"]}getFeedAnchor(){return[".main-content",'[role="main"]',"article","#main-content",".post-content",".article-content","main"]}}class O_{isThisIntegration(){return!!document.querySelector('a[href*="irroba.com.br"]')}getType(){return ae.irroba}getPageType(){return N.isHome()?T.HOME:this.isProductPage()?T.PRODUCT:this.isSectionPage()?T.SECTION:T.CUSTOM}getProductDivElement(){return document.getElementById("product")}isProductPage(){return!!document.getElementsByClassName("page-product-product").length}isSectionPage(){return!!document.getElementsByClassName("page-product-category").length}}class R_{isThisIntegration(){return['script[src*="jetcommerce.com.br"]','link[href*="jetcommerce.com.br"]'].some(r=>document.querySelector(r)!==null)}getType(){return ae.jetcommerce}getPageType(){return N.isHome()?T.HOME:this.isProductPage()?T.PRODUCT:T.CUSTOM}isProductPage(){const e=document.querySelector('script[type="application/ld+json"]');if(!(e!=null&&e.textContent))return!1;try{const r=e.textContent.replace(/[\r\n]+/g," ");return JSON.parse(r)["@type"]==="Product"}catch{return!1}}}class A_{isThisIntegration(){return!!document.querySelector('a[href*="lojaintegrada.com.br"]')}getType(){return ae["loja-integrada"]}getFeedAnchor(){return['#corpo > div > div[class^="secao-principal"]','#corpo > div > div[class^="secao-principal"] > div[class^="conteudo"] > div[class^="caixa-destaque" ]','#corpo > div > div[class^="secao-principal"] > div[class^="conteudo"]',"#corpo > div","#corpo"]}getHeader(){return["#cabecalho"]}}class D_{isThisIntegration(){return['script[src*="magazord.com.br"]','a[href*="www.magazord.com.br"]'].some(r=>document.querySelector(r)!==null)}getType(){return ae.magazord}getPageType(){return N.isHome()?T.HOME:this.isProductPage()?T.PRODUCT:T.CUSTOM}isProductPage(){return document.querySelector('script#product-schema[type="application/ld+json"]')!==null}}class L_{isThisIntegration(){var e;return!!Object.keys(window).find(r=>window[r]==="Magento")||((e=window==null?void 0:window._edrone)==null?void 0:e.platform)==="magento"}getType(){return ae.magento}getPageType(){return N.isHome()?T.HOME:this.isProductPage()?T.PRODUCT:this.isSectionPage()?T.SECTION:T.CUSTOM}isSectionPage(){var r,n;const e=(r=window==null?void 0:window.dataLayer)==null?void 0:r.reduce((o,i)=>({...o,...i}),{});return!!((n=e==null?void 0:e.categoryProducts)!=null&&n.length)}isProductPage(){var r;const e=(r=window==null?void 0:window.dataLayer)==null?void 0:r.reduce((n,o)=>({...n,...o}),{});return!!(e!=null&&e.productName)}}class B_{constructor(e,r,n){this.homeChecker=e,this.productChecker=r,this.sectionChecker=n}isHome(){return this.homeChecker.isHome()}isProduct(){return this.productChecker.isProduct()}isSection(){return this.sectionChecker.isSection()}}class N_{isHome(){return N.isHome()}}class F_{isProduct(){return this.isProductByLS()||this.isProductByUrl()||this.isProductByClass()}isProductByLS(){var r;const e=(r=window==null?void 0:window.LS)==null?void 0:r.product;return!!(e!=null&&e.id)}isProductByUrl(){const e=N.urlObject();return e.pathname.includes("/produtos/")&&!e.pathname.endsWith("/produtos/")}isProductByClass(){return!!document.querySelectorAll("body.template-product, #product_form").length}}class M_{isSection(){return this.isSectionByLS()||this.isSectionOnJsonLD()||this.isSectionByClass()}isSectionByLS(){var r;const e=(r=window==null?void 0:window.LS)==null?void 0:r.category;return!!(e!=null&&e.id)}isSectionOnJsonLD(){const e=document.querySelectorAll('script[type="application/ld+json"]');return Array.from(e).some(r=>{var n;try{const o=((n=r.textContent)==null?void 0:n.replace(/[\r\n]+/g," "))??"",i=JSON.parse(o);return["ItemList","CollectionPage","ProductListingPage"].includes(i["@type"])}catch{return!1}})}isSectionByClass(){return!!document.querySelectorAll("body.template-category, .category-body, .js-category-body").length}}class $_{isThisIntegration(){var e;return!!((e=window==null?void 0:window.LS)!=null&&e.store)}getType(){return ae.nuvemshop}getPageType(){const e=new B_(new N_,new F_,new M_);return e.isHome()?T.HOME:e.isProduct()?T.PRODUCT:e.isSection()?T.SECTION:T.CUSTOM}getFeedAnchor(){return['section[class*="user-content"]']}getHeader(){let e=['[data-store="head"]'];try{return window&&typeof window<"u"&&(window.innerWidth<768?e.push('[data-store="head-desktop"]'):e.push('[data-store="head-mobile"]')),e}catch{return e}}getCarouselAnchor(){try{const e=document.querySelector('[data-store="home-slider"]');if(!e)return["#test-div-carousel"];const r=e.parentElement;if(!r)return[];const n=Array.from(r.children),o=n.indexOf(e);if(o===-1||o===n.length-1)return[];const i=n[o+1];if(!i)return[];let s="";return i.id?s=`#${i.id}`:i.classList.length>0?s=`${i.tagName.toLowerCase()}${Array.from(i.classList).map(a=>`.${a}`).join("")}`:s=`${i.tagName.toLowerCase()}:nth-child(${o+2})`,[s]}catch(e){return console.error("Erro ao buscar âncora do carrossel:",e),[]}}getProductDivElement(){var n;const e=(n=window==null?void 0:window.LS)==null?void 0:n.product;if(this.getPageType()===T.PRODUCT&&e){const o=e.id;return document.querySelector(`[data-store="product-info-${o}"]`)}return null}}class H_{constructor(e,r,n){this.homeChecker=e,this.productChecker=r,this.sectionChecker=n}isHome(){return this.homeChecker.isHome()}isProduct(){return this.productChecker.isProduct()}isSection(){return this.sectionChecker.isSection()}}class W_{isHome(){return N.isHome()}}class j_{isProduct(){return this.isProductByShopify()}isProductByShopify(){var e,r,n;return!!Object.keys(((e=window==null?void 0:window.Shopify)==null?void 0:e.current_product)||{}).length||((n=(r=window==null?void 0:window.meta)==null?void 0:r.page)==null?void 0:n.pageType)==="product"}}class V_{isSection(){return this.isSectionByShopify()}isSectionByShopify(){var n,o;const e=(n=window==null?void 0:window.Shopify)==null?void 0:n.current_product,r=(o=window==null?void 0:window.Shopify)==null?void 0:o.current_collection;return!Object.keys(e||{}).length&&!!Object.keys(r||{}).length}}class q_{isThisIntegration(){return!!(window!=null&&window.Shopify)}getType(){return ae.shopify}getPageType(){const e=new H_(new W_,new j_,new V_);return e.isHome()?T.HOME:e.isProduct()?T.PRODUCT:e.isSection()?T.SECTION:T.CUSTOM}getFeedAnchor(){return["#nt_content","#MainContent"]}getHeader(){return[]}getProductDivElement(){const e=document.querySelector("product-info");if(e)return e;const r=document.querySelector(".RegularMain__content");return r||null}}class G_{isThisIntegration(){return!!(window!=null&&window.tray)}getType(){return ae.tray}getHeader(){return["header"]}getProductDivElement(){const e=document.getElementById("form_comprar");return e||null}getPageType(){return N.isHome()?T.HOME:this.isProductPageByDataLayer()?T.PRODUCT:this.isSectionPageByDataLayer()?T.SECTION:T.CUSTOM}isProductPageByDataLayer(){var e;return!!((e=Object.assign({},...window.dataLayer))!=null&&e.idProduct)}isSectionPageByDataLayer(){var e,r;return!((e=Object.assign({},...window.dataLayer))!=null&&e.idProduct)&&!!((r=Object.assign({},...window.dataLayer))!=null&&r.idCategory)}}class z_{getHeader(){return["header"]}getType(){return ae.vnda}getProductDivElement(){return document.querySelector(".product-infos > div > .main-infos")}isThisIntegration(){var e;return!!((e=window==null?void 0:window.vnda)!=null&&e.loader)}}class K_{constructor(e,r,n){this.homeChecker=e,this.productChecker=r,this.sectionChecker=n}isHome(){return this.homeChecker.isHome()}isProduct(){return this.productChecker.isProduct()}isSection(){return this.sectionChecker.isSection()}}class J_{isHome(){return N.isHome()}}class Y_{isProduct(){return this.isProductByUrl()||this.isProductByLdJson()||this.isProductOnAppTemplateId()||this.isProductOnVtxCtx()}isProductByUrl(){const e=N.urlObject();return e.pathname.endsWith("/p")||e.pathname.includes("/p/")}isProductByLdJson(){const e=document.querySelectorAll('script[type="application/ld+json"]');return Array.from(e).some(r=>{var n;try{const o=((n=r.textContent)==null?void 0:n.replace(/[\r\n]+/g," "))??"",i=JSON.parse(o);return["Product","ProductDetailsPage"].includes(i["@type"])}catch{return!1}})}isProductOnAppTemplateId(){const e=window==null?void 0:window.APP;return(e==null?void 0:e.templateId)==="Product"}isProductOnVtxCtx(){const e=window==null?void 0:window.vtxctx;return e&&(e==null?void 0:e.skus)}}class X_{isSection(){return this.isSectionByUrl()||this.isSectionOnJsonLD()||this.isSectionOnAppTemplateId()||this.isSectionOnVtxCtx()}isSectionByUrl(){const e=N.urlObject().pathname.startsWith("/c/"),r=N.urlObject().pathname.startsWith("/search")&&N.urlObject().searchParams.get("type")==="collection";return e||r}isSectionOnJsonLD(){const e=document.querySelectorAll('script[type="application/ld+json"]');return Array.from(e).some(r=>{var n;try{const o=((n=r.textContent)==null?void 0:n.replace(/[\r\n]+/g," "))??"",i=JSON.parse(o);return["ItemList","CollectionPage","ProductListingPage"].includes(i["@type"])}catch{return!1}})}isSectionOnAppTemplateId(){const e=window==null?void 0:window.APP;return(e==null?void 0:e.templateId)==="Category"}isSectionOnVtxCtx(){const e=window==null?void 0:window.vtxctx;return e&&!(e!=null&&e.skus)&&((e==null?void 0:e.categoryId)||(e==null?void 0:e.departmentId))}}class Q_{isThisIntegration(){return window!=null&&window.vtex?!0:this.isThisByRef()}getType(){return ae.vtex}getFeedAnchor(){return['section[class*="searchResultContainer"]']}getPageType(){const e=new K_(new J_,new Y_,new X_);return e.isHome()?T.HOME:e.isProduct()?T.PRODUCT:e.isSection()?T.SECTION:T.CUSTOM}getHeader(){return['div[class*="wrapper--header"]','div[class*="--header-mobile"]','div[class*="vtex-sticky-layout-0-x-wrapper--sticky-header"]']}isThisByRef(){const e=['[href*="vtex.com"]','[src*="vtex.com.br"]','[src*="vtexassets.com"]'];for(const r of e)if(document.querySelector(r))return!0;return!1}}class Z_{constructor(){w(this,"productType",["Product","ProductPage","ProductListingPage"]);w(this,"sectionType",["Section","Category","BreadcrumbList","ItemList"])}isThisIntegration(){return['a[href*="wake.tech"]','a[href*="traycorp.com.br"]'].some(r=>document.querySelector(r)!==null)}getType(){return ae.wake}getCarouselAnchor(){const e=window.location.hostname==="www.oculosmeninaflor.com.br";let r=[".fbits-banner-topo-home",".banner__top"];return e&&(r=[".fbits-produtos-vistos"]),r}getPageType(){if(N.isHome())return T.HOME;const r=this.findByDataLayer();if(r)return r;const n=this.findByJsonLD();return n||(this.isProductPage()?T.PRODUCT:this.isSectionPage()?T.SECTION:T.CUSTOM)}isProductPage(){const r=new window.URL(window.location.href).pathname.toLowerCase(),n=[".page-product",".product-page"];return r.includes("/produto/")||r.endsWith("/produto")||n.some(o=>!!document.querySelector(o))}isSectionPage(){return[".page-hotsite",".page-catalog",".fbits-categoria",".category-page",".category-main",".category"].some(r=>!!document.querySelector(r))}findByDataLayer(){const e=window==null?void 0:window.dataLayer;if(!Array.isArray(e))return;const r=Object.assign({},...e),n=r==null?void 0:r.PageType;if(n){if(this.productType.includes(n))return T.PRODUCT;if(this.sectionType.includes(n))return T.SECTION}}findByJsonLD(){let e=document.head.querySelectorAll('script[type="application/ld+json"]');if(e.length===0&&(e=document.querySelectorAll('script[type="application/ld+json"]')),!!e.length)for(const r of e)try{const n=this.extractJsonLdType((r==null?void 0:r.textContent)??"");if(!n)continue;if(this.productType.includes(n))return T.PRODUCT;if(this.sectionType.includes(n))return T.SECTION}catch{continue}}extractJsonLdType(e){var o;const r=JSON.parse(e.replace(/\s+/g," "));return(o=(Array.isArray(r)?r:[r]).find(i=>i==null?void 0:i["@type"]))==null?void 0:o["@type"]}}class eS{isThisIntegration(){return['script[src*="wbuy.com.br"]'].some(r=>document.querySelector(r)!==null)}getType(){return ae.wbuy}getPageType(){return N.isHome()?T.HOME:this.isProductPage()?T.PRODUCT:this.isSectionPage()?T.SECTION:T.CUSTOM}isSectionPage(){try{return!!(this.getTypeFromGTM(window.dataLayer)==="category"||[".categorias","#departamentos"].some(o=>!!document.querySelector(o)))}catch{return!1}}isProductPage(){try{return!!(this.getTypeFromGTM(window.dataLayer)==="product"||document.querySelector("#produto"))}catch{return!1}}getTypeFromGTM(e){const r=e==null?void 0:e.find(n=>{var o;return(o=n==null?void 0:n.gtmparams)==null?void 0:o.pagetype});if(r)return r.gtmparams.pagetype}}const il=[new A_,new q_,new Q_,new $_,new Z_,new O_,new z_,new G_,new U_,new D_,new R_,new eS,new L_],tS=new hp;function sl(){return new hp}class rS{constructor(e){w(this,"factory");e?this.factory=il.find(r=>r.getType()===e):this.factory=il.find(r=>r.isThisIntegration()),this.factory||(this.factory=tS)}getFeedAnchor(){var n,o;const e=((o=(n=this.factory)==null?void 0:n.getFeedAnchor)==null?void 0:o.call(n))||[],r=sl().getFeedAnchor();return[...e,...r]}getHeader(){var n,o;const e=((o=(n=this.factory)==null?void 0:n.getHeader)==null?void 0:o.call(n))||[],r=sl().getHeader();return[...e,...r]}getCarouselAnchor(){var r;return[...((r=this.factory)==null?void 0:r.getCarouselAnchor())??[]]}getProductDivElement(){var r,n;return(r=this.factory)!=null&&r.getProductDivElement?(n=this.factory)==null?void 0:n.getProductDivElement():null}getPageType(){var r,n,o;const e=window.location.host==="usecand.com.br";return((r=this.factory)==null?void 0:r.getType())==="shopify"&&!e?ol.execute():(n=this.factory)!=null&&n.getPageType?(o=this.factory)==null?void 0:o.getPageType():ol.execute()}isThisIntegration(){return!1}getType(){var e;return((e=this.factory)==null?void 0:e.getType())||null}}function ur(t){return new rS(t)}class nS{constructor(){w(this,"setupRepository");this.setupRepository=se("SetupRepository")}async execute(e,r,n){const o=await this.setupRepository.getData();if(!(o!=null&&o.getCollectionBy))return null;const i=o.getCollectionBy(e,r);if(i)return i;if([zn.Explorer,zn.FeedVideos].includes(r))return o.getCollectionBy("no_url",r);const s=Be.isDemoUrl(),a=Be.isEditing(n);return(s||a)&&!i?o.getCollectionOrDefault(e,r):null}}class oS{constructor(){w(this,"setupRepository");this.setupRepository=se("SetupRepository")}async execute(){const e=await this.setupRepository.getData();return(e==null?void 0:e.subscription)||null}}const kr={checker:"health-checker",token:"health-hash",hashs:"health-hashes"};let al=!1;function iS(t){return Object.values(kr).map(r=>({[r]:t.get(r)||""})).reduce((r,n)=>({...r,...n}),{})}function sS(t){try{const e=iS(t);if(al||!e[kr.checker])return;const r=cS(e);if(al=!0,!r)return;aS(r)}catch{}}function aS(t){const e={method:"POST",headers:{"Content-Type":"application/json","User-Agent":"insomnia/8.6.1","ecommerce-origin":window.location.origin,"ecommerce-token":mp()},body:JSON.stringify(t)};fetch(de.api+"/health-check-ecommerce/checker",e).then(r=>r.json())}function mp(){const t=document.querySelectorAll('script[src^="https://cdn.widde.io/widde.1.1.0.js"]');return Array.from(t).map(r=>new window.URL(r.src)).map(r=>r.searchParams.get("token")||window.location.hostname).filter(r=>r).join("_")}function cS(t){if(!Object.values(kr).map(a=>t[a]).every(Boolean))return;const r=t[kr.token],n=t[kr.hashs].split("-"),o=new lS(r);return n.filter(a=>s(o.decode(a)));function s(a){return!!document.querySelector(`[src*='${a}']`)||!!document.querySelector(`[href*='${a}']`)}}class lS{constructor(e){this.token=e}decode(e){return this.decodeText(this.decipher(this.token)(e))}decodeText(e){const r=new TextDecoder,n=e.match(/../g),o=Uint8Array.from(n,s=>parseInt(s,16));return r.decode(o)}decipher(e){const r=o=>o.split("").map(i=>i.charCodeAt(0)),n=o=>r(e).reduce((i,s)=>i^s,o);return o=>o.match(/.{1,2}/g).map(i=>parseInt(i,16)).map(n).map(i=>String.fromCharCode(i)).join("")}}class gp{constructor(e,r){this.baseURL=e,this.authService=r}async post({path:e,body:r,timeout:n,attempts:o=1}){let i;for(let s=0;sc==null?void 0:c.abort(),n||5e3);let d=await fetch(`${this.baseURL}/${e}`,{headers:{accept:"*/*","accept-language":"pt-BR,pt;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6,ru;q=0.5","cache-control":"no-cache","content-type":"application/json","cookie-uid":a,"ecommerce-token":mp(),pragma:"no-cache"},body:r?JSON.stringify(r):void 0,method:"POST",mode:"cors",credentials:"omit",signal:c.signal});return clearTimeout(l),sS(d.headers),await d.json()}catch(a){if(i=a,s===o-1)throw i;await new Promise(c=>setTimeout(c,1e3))}throw i}}class uS extends gp{constructor(r,n){super(r,n);w(this,"cache",new Map)}async fetch({query:r,variables:n,timeout:o,attempts:i,postfixes:s}){const a=r.includes("query"),c=JSON.stringify({query:r,variables:n});if(this.cache.has(c)&&a)return this.cache.get(c);const l=[...s||[]].filter(Boolean).join("/"),d=await this.post({path:l?`graphql/${l}`:"graphql",body:{variables:n,query:r},timeout:o,attempts:i}).then(u=>u==null?void 0:u.data);return a&&this.cache.set(c,d),d}async fetchDirect(r){const n=await this.fetch(r);return Object.values(n||{}).find(Boolean)}}const pt=class pt{constructor(e){this.localDatabase=e}static getInstance(){return pt.instance||(pt.instance=new pt(Je("auth"))),pt.instance}async getUserCookie(){const e="current-user-id",r=await this.localDatabase.get(e);if(r)return r;const n=this.generateRandomID();return await this.localDatabase.add(e,n),n}generateRandomID(){return`${new Date().getTime()}${Math.floor(Math.random()*1e5)}`}};w(pt,"instance");let Gn=pt;const YE=Gn.getInstance();function yp(t=window.innerWidth){return t<=600}const Jo={COLLECTION_NOT_FOUND:"Coleção não encontrada",URL_OR_COLLECTION_APP_ID_REQUIRED:"Url ou collectionAppId são obrigatórios",NOT_IMPLEMENTED:"Ainda não foi implementado"};var Ki;(t=>{class e extends Error{constructor(){super(Jo.COLLECTION_NOT_FOUND)}}t.CollectionNotFoundError=e;class r extends Error{constructor(){super(Jo.URL_OR_COLLECTION_APP_ID_REQUIRED)}}t.UrlOrCollectionAppIdRequiredError=r;class n extends Error{constructor(){super(Jo.NOT_IMPLEMENTED)}}t.NotImplementedError=n})(Ki||(Ki={}));const dS=`mutation ($answer: String!, $feedbackKey: String!, $storyKey: String!, $origin: FeedbackAnswersOrigin!) { feedbackAnswer(answer: $answer, feedbackKey: $feedbackKey, storyKey: $storyKey, origin: $origin) }`,pS=` query GetFeedbackOnVideo($collectionKey: String!) { feedbackOnVideo(collectionKey: $collectionKey) { key label btnText placeholder } }`,fS=`query GetIntegration ($collectionKey: String!) { integration(collectionKey: $collectionKey) { type } }`,hS=` mutation ToggleLike($storyKey: String!) { toggleLike(storyKey: $storyKey) }`,mS=`query LoadStories($collectionKey: String!, $removeMediaKeys: [String!], $pagination: PaginationLoadStoriesDto) { loadStories(collectionKey: $collectionKey, removeMediaKeys: $removeMediaKeys, pagination: $pagination) { key title status media { key gifs thumbs videos thumbnailExposed hasWearModelMeasurement } } }`,gS=` query Measurements($mediaKey: String!) { measurements(mediaKey: $mediaKey) { key upWear modelFields bottomWear shoeNumber modelWearKey modelWear { key name bust waist hip weight height } } }`,yS=` query GetMediaMeasures($input: GetMediaMeasuresInput!) { getMediaMeasures(input: $input) { mediaKey linkedModels { id name status values { id propertyId value property { id label icon suffix valueType sort } } } propertyValues { property { id label icon suffix valueType sort } value valueId } } } `,wS=` mutation NewWhatsappMessage($commentDTO: CommentDTO!) { newComment(commentDTO: $commentDTO) } `,bS=`query ProductVariantsById($productId: String!, $storeUrl: String!) { productVariantsById(productId: $productId, storeUrl: $storeUrl) { id productId handle price comparePrice available description title images mainImage currency stock sellOnlyStock options { id name values available } availableOptions variants { id price comparePrice available image options productId stock sellOnlyStock } } }`,vS=`query ProductsByStoryKeyCached($storyKey: String!) { productsByStoryKey(storyKey: $storyKey) { title mainImage price comparePrice url priceFormatted comparePriceFormatted externalId } }`,_S=`mutation SetViewCollection($key: String!) { setViewCollection(key: $key) }`,cl=`query StoriesCollections($collectionKey: String, $url: String!, $generateViewKey: Boolean, $collectionViewType: String, $loadStories: Boolean!, $webcomponent: String, $pageType: String, $realUrl: String, $collectionAppId: String) { storiesCollections(collectionKey: $collectionKey, url: $url, generateViewKey: $generateViewKey, collectionViewType: $collectionViewType, webcomponent: $webcomponent, pageType: $pageType, realUrl: $realUrl, collectionAppId: $collectionAppId) { viewKey collection { key title highlightText type gif gifWebp analytics carouselTitle companyCollectionProps { integration whatsapp whatsappText whatsappIsActive features } customTemplate { title model subTitle animated followScroll canCloseVideo wrapperType primaryColor secondaryColor positionType supportingTextColor anchor { desktop mobile } } position { direction marginX marginY marginXMobile marginYMobile directionMobile } style { bgBtn zIndex storieColor storieCloseColor } storiesWithLazyLoad(webcomponent: $webcomponent) @include(if: $loadStories) { hasMore stories { key title status actionStory { label action highlightType } media { key gifs thumbs videos thumbnailExposed hasWearModelMeasurement } } } } } }`,SS=` query StoriesFeedbacks($collectionKey: String!) { storiesFeedbacks(collectionKey: $collectionKey) { key options type label btnText placeholder url } } `,xS=`query CommentsStory($storyKey: String!) { commentsStory(storyKey: $storyKey) { feedbackKey answer responses { feedbackKey answer } } } `,ES=` query WakePublicToken($url: String!) { wakePublicToken(url: $url){ token } } `;let fn;var zn=(t=>(t.Story="Story",t.Highlight="Highlight",t.HighlightTwo="HighlightTwo",t.HighlightThree="HighlightThree",t.Carousel="Carousel",t.CarouselTwo="CarouselTwo",t.FeedVideos="Feed",t.Explorer="Explorer",t))(zn||{});let br;function Kn(){return br||(br=new Gn(Je("auth")),br.getUserCookie(),br)}function We(){if(fn)return fn;const r=Jt()("auth-to-api-prod")==="0d84b636-7ee1-4655-b39b-78984960cb5a"?de.api_prod:de.api;return fn=new CS(new uS(r,Kn())),fn}class CS{constructor(e){w(this,"subscriptionInfoCache",{});this.apiGraphql=e}comments(e){return this.apiGraphql.fetchDirect({query:xS,variables:{storyKey:e},postfixes:["commentsStoryQuery",e]})}async subsInfo(e){let r;if(Ve.isCDNWiddeApp()){const s=Ve.getDomain();if(!s)throw new zi.DomainNotFoundError;r=s}else r=e.origin;const n=`${r}-${e.url}`;if(this.subscriptionInfoCache[n])return this.subscriptionInfoCache[n];const i=await new oS().execute();return i&&(this.subscriptionInfoCache[n]=i),i}async storiesCollection({url:e,realUrl:r,generateViewKey:n,collectionViewType:o,loadStories:i=!0,webcomponent:s,collectionAppId:a}){const c=_=>_.replace(/\/$/,""),l=_=>_.replace(/^(?:https?:\/\/)?(?:www\.)?([^/?#]+(?:\/[^?#]*)?)(?:[?#].*)?\/?$/,"$1");if(!e||!o)throw new Ki.UrlOrCollectionAppIdRequiredError;const d=Ve.getDomain();if(a&&Ve.isCDNWiddeApp()&&d)return await this.loadByCollectionAppId({domain:d,collectionAppId:a,generateViewKey:n,url:e,loadStories:i});const u=async _=>{const j=new nS;for(const Q of _){const Me=await j.execute(Q,o,s);if(Me)return Me}return null},f=new window.URL(e),p=f.pathname.startsWith("/")?f.pathname.slice(1):f.pathname;let h=p.split("/").filter(Boolean);h.length>1&&(h=h.map((_,j)=>h.slice(j).join("/")));const g=h.map(_=>[_.startsWith("/")?_:`/${_}`,_.endsWith("/")?_:`${_}/`,_.endsWith("/")&&_.startsWith("/")?_:`/${_}/`,!_.endsWith("/")&&!_.startsWith("/")?_:`${_}`]).flat(),y=[l(c(e)),...p!=null&&p.length?[...g]:[]].map(_=>_.toLowerCase()),b=await u(y),S=ur().getPageType();if(!b)return s==="widde-floating-block"||window.dispatchEvent(new CustomEvent(Ht.widdeCustomElementDidNotAppearNoVideos,{bubbles:!0,detail:[{blockPosition:{webcomponent:s,device:yp()?we.MOBILE:we.DESKTOP,page:S,version:new URLSearchParams(window.location.search).get(ee.WIDDE_VERSION)||ee.WIDDE_DEFAULT_VERSION},isVisible:!1,invisibleReason:[J.InvisibleReason.NO_VIDEOS]}]})),null;const I=Be.isDemoUrl(),P=Be.isEditing(s),C=await this.apiGraphql.fetch({query:cl,variables:{...b?{collectionKey:b}:{},url:c(e),realUrl:r,generateViewKey:n,collectionViewType:o,loadStories:i,webcomponent:s,pageType:I||P?null:S},attempts:5,postfixes:["storiesCollections"]});return C==null?void 0:C.storiesCollections}loadStories(e){return this.apiGraphql.fetchDirect({query:mS,variables:{collectionKey:e.collectionKey,removeMediaKeys:e.removeMediaKeys,dontLoadStories:!!e.dontLoadStories,pagination:e==null?void 0:e.pagination,seed:e==null?void 0:e.seed},postfixes:["loadStories",e.collectionKey]})}productVariantsById(e,r){return this.apiGraphql.fetchDirect({query:bS,variables:{productId:e,storeUrl:r},timeout:15e3,postfixes:["productVariantsById",e]})}productsByStoryKey(e){return this.apiGraphql.fetchDirect({query:vS,variables:{storyKey:e},postfixes:["productsByStoryKey",e]})}like(e){return this.apiGraphql.fetchDirect({query:hS,variables:{storyKey:e},postfixes:["like",e]})}measurementsQuery(e){return this.apiGraphql.fetchDirect({query:gS,variables:{mediaKey:e},postfixes:["measurementsQuery",e]})}newMeasurementsQuery(e,r){return this.apiGraphql.fetchDirect({query:yS,variables:{input:{domain:r,mediaKey:e}},postfixes:["newMeasurementsQuery",e]})}feedbackOnVideo(e){return this.apiGraphql.fetchDirect({query:pS,variables:{collectionKey:e},postfixes:["feedbackOnVideo",e]})}storiesFeedbacks(e){return this.apiGraphql.fetchDirect({query:SS,variables:{collectionKey:e},postfixes:["storiesFeedbacks",e]})}sendCollectionView(e){return this.apiGraphql.fetchDirect({query:_S,variables:{key:e},postfixes:["sendCollectionView"]})}newWhatsappMessage(e){return this.apiGraphql.fetchDirect({query:wS,variables:{commentDTO:{...e,comment:""}},postfixes:["newWhatsappMessage"]})}feedbackAnswer({answer:e,feedbackKey:r,origin:n,storyKey:o}){return this.apiGraphql.fetchDirect({query:dS,variables:{answer:e,feedbackKey:r,origin:n,storyKey:o},postfixes:["feedbackAnswer"]})}integration({collectionKey:e}){return this.apiGraphql.fetchDirect({query:fS,variables:{collectionKey:e},postfixes:["integration"]})}wakeToken(e){return this.apiGraphql.fetchDirect({query:ES,variables:{url:e},postfixes:["wakeToken"]})}async loadByCollectionAppId(e){const r=await this.apiGraphql.fetch({query:cl,variables:{generateViewKey:e.generateViewKey,collectionAppId:e.collectionAppId,url:e.url,loadStories:e.loadStories},attempts:5,postfixes:["storiesCollections","collectionAppId",e.collectionAppId]});return r==null?void 0:r.storiesCollections}}class kS{static toStoryMedia(e,r){return{title:e.title,gifs:e.media.gifs,thumbs:e.media.thumbs,actionStory:e.actionStory,videos:e.media.videos.filter(n=>n.endsWith(".mp4")),text:r||"",key:e.key,mediaKey:e.media.key,hasWearModelMeasurement:!!e.media.hasWearModelMeasurement}}}class TS{constructor(e){this.service=e}async loadStories(e){return this.service.loadStories(e)}get(e){return this.service.get(e)}getSubscriptionInfo(e){return this.service.getSubscriptionInfo(e)}}class IS extends TS{async get(e){const r=await super.get(e);return r?e.token.endsWith("/marquee")?{...r,stories:r.stories.map(n=>({...n,text:n.title})),companyConfig:{...r.companyConfig,features:[...r.companyConfig.features,"Carousel","GlassMode"]}}:r:null}}const PS=[IS];function US(t,e){return e.reduce((r,n)=>new n(r),t)}function OS(t){return US(t,PS)}class RS{constructor(e){w(this,"viewKey",{});this.apiService=e}async loadStories(e){return this.apiService.loadStories(e)}async get({token:e,generateView:r,collectionViewType:n,loadStories:o,webcomponent:i,collectionAppId:s}){var y,b,v,S,I,P,C;if(!s&&!e)return null;let a=r;r&&this.viewKey[e||""]&&(a=!1);const c=na().get("widde-real-url");let l={url:e,realUrl:c,generateViewKey:a,collectionViewType:n,loadStories:o,webcomponent:i,collectionAppId:s};c&&(l.realUrl=c);const[d]=await Promise.all([this.apiService.storiesCollection(l)]);if(!d)return null;a&&(this.viewKey[e]=d.viewKey);const{collection:u}=d;let f={};((y=u==null?void 0:u.customTemplate)==null?void 0:y.wrapperType)===(qe==null?void 0:qe.curvedText)&&(f.animateWrapper=((b=u==null?void 0:u.customTemplate)==null?void 0:b.animated)||void 0);const p=dp.adapt(u,((v=u==null?void 0:u.customTemplate)==null?void 0:v.positionType)||"fixed"),h=pp.adapt(u),g=fp.adapt(u);return{carouselTitle:(S=d.collection)==null?void 0:S.carouselTitle,url:e,type:u.type,collectionKey:u.key,viewKey:this.viewKey[e],companyConfig:u.companyCollectionProps,analytics:(I=d.collection)==null?void 0:I.analytics,highlightText:u.highlightText,hasMoreStories:((P=u.storiesWithLazyLoad)==null?void 0:P.hasMore)||!1,stories:((C=u.storiesWithLazyLoad)==null?void 0:C.stories.map(_=>kS.toStoryMedia(_,_.title)))||[],...h,...g,...p,options:f}}async getSubscriptionInfo(e){return this.apiService.subsInfo(e)}}function AS(t){return OS(new RS(t))}var DS=(t=>(t.textarea="textarea",t.options="options",t.contact="contact",t.redirect="redirect",t))(DS||{}),Ji=(t=>(t.InVideo="InVideo",t.InCollection="InCollection",t))(Ji||{});class ll extends cp{constructor(e,r,n,o){super(n,o??{}),this.api=e,this.collectionKey=r}loadStoryComments(e){return this.api.comments(e.storyKey)}async sendFeedbackOnVideo(e){return await Promise.all([this.api.feedbackAnswer({...e,origin:Ji.InVideo}),new Promise(r=>setTimeout(r,750))]),!0}async sendAnswer(e){return await Promise.all([...e.answers.map(r=>this.api.feedbackAnswer({...r,storyKey:e.storyKey,origin:Ji.InCollection})),new Promise(r=>setTimeout(r,500))]),!0}feedbacks(){return this.api.storiesFeedbacks(this.collectionKey)}async getSettings(){return this.api.feedbackOnVideo(this.collectionKey).then(e=>e?{placeholder:e.label,key:e.key}:{key:""})}}class LS{constructor(e,r){this._db=e,this.api=r}async get(e){return await this._db.get(e)||!1}async like(e){await Promise.all([this.api.like(e),this.likeLocal(e)])}async likeLocal(e){await this._db.get(e)?await this._db.remove(e):await this._db.add(e,!0)}}class BS{constructor(e){this.apiService=e}async hasMeasurement(){}async get(e){const r=new window.URL(window.location.href),n=r.searchParams.get("widde-demo-url");let o=r.host;if(n)try{o=new window.URL(n).host}catch{o=n}return this.apiService.newMeasurementsQuery(e,o).then(i=>{if(i)return i})}}const ul="widde-corrected-prices";class wp{static getCache(){try{const e=sessionStorage.getItem(ul);if(e)return JSON.parse(e)}catch{}return{}}static setCache(e){try{sessionStorage.setItem(ul,JSON.stringify(e))}catch{}}static saveCorrectPrice(e,r){const n=this.getCache();n[e]=r,this.setCache(n);const o={externalId:e,price:r,priceInCents:Math.round(r*100),priceFormatted:r.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})};this.notifyListeners(o)}static getCorrectPrice(e){return this.getCache()[e]??null}static hasCorrectPrice(e){const r=this.getCache();return e in r}static subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}static notifyListeners(e){this.listeners.forEach(r=>{try{r(e)}catch{}})}}w(wp,"listeners",new Set);class NS{static apply(e){const r=wp.getCorrectPrice(e.externalId);if(r===null)return e;const n=Math.round(r*100);return n!==e.price?{...e,price:n,priceFormatted:r.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})}:e}static applyToArray(e){return e.map(r=>this.apply(r))}}class FS extends ap{constructor(e,r){super(e),this.apiService=r}async get(e){const n=(await this.apiService.productsByStoryKey(e)).map(o=>({title:o.title,url:o.url,externalId:o.externalId,price:o!=null&&o.price?o.price:0,comparePrice:o==null?void 0:o.comparePrice,mainImage:o.mainImage,priceFormatted:(o==null?void 0:o.priceFormatted)||"",comparePriceFormatted:o==null?void 0:o.comparePriceFormatted}));return NS.applyToArray(n)}}class MS extends lp{async shareVideo(e,r){const{urlWithTitle:n,...o}=await this.getShareData(e,r);try{navigator.share(o)}catch{}}shareNativeEnabled(){return!!(navigator!=null&&navigator.share)}}function Lr(){try{const t=window.location.href;return!!(t.includes("gtm_debug")||t.includes("preview_mode_enabled")||t.includes("widde_debug")||t.includes("localhost")||t.includes("127.0.0.1")||typeof window<"u"&&window.widdeDevelopmentMode)}catch(t){return console.warn("Erro ao detectar modo debug:",t),!1}}class $S{static getSessionData(e){const r=e.replace("G-",""),o=HS(document.cookie).find(i=>i.measurementId===r);return{_gaId:(o==null?void 0:o.clientId)||"",id:e,_sessionId:(o==null?void 0:o.sessionId)||"",_sessionIdNumber:(o==null?void 0:o.sessionNumber)||"",isDebug:Lr()}}}function HS(t){const e=Object.fromEntries(t.split(";").map(n=>{const[o,...i]=n.trim().split("=");return[o,i.join("=")]})),r=e._ga?e._ga.split(".").slice(-2).join("."):"";return Object.entries(e).filter(([n])=>n.startsWith("_ga_")).map(([n,o])=>{const i=n.replace("_ga_",""),s=o.startsWith("GS1")?"GS1":o.startsWith("GS2")?"GS2":"Unknown";let a="",c="";const l=o;if(s==="GS2"){const d=l.match(/s(\d+)/),u=l.match(/\$o(\d+)/);d&&(a=d[1]),u&&(c=u[1])}if(s==="GS1"){const d=l.split(".");d.length>=4&&(a=d[2]||"",c=d[3]||"")}return{measurementId:i,clientId:r,sessionType:s,sessionId:a,sessionNumber:c,raw:l}})}class WS{constructor(){w(this,"consentState");w(this,"storageKey","widde_consent_state");this.consentState=this.loadConsentFromStorage()||this.getDefaultConsent(),this.initializeGoogleConsent()}getConsentState(){return{...this.consentState}}hasAnalyticsConsent(){return this.consentState.analytics_storage==="granted"}initializeGoogleConsent(){try{if(typeof window<"u"&&window.gtag){const e=window.gtag;e("consent","default",{analytics_storage:this.consentState.analytics_storage,ad_storage:this.consentState.ad_storage,functionality_storage:this.consentState.functionality_storage,personalization_storage:this.consentState.personalization_storage,security_storage:this.consentState.security_storage,wait_for_update:500}),console.log("Google Consent Mode inicializado:",this.consentState)}}catch(e){console.warn("Erro ao inicializar Google Consent Mode:",e)}}updateConsent(e){const r={...this.consentState,...e};this.consentState=r,this.saveConsentToStorage();try{if(typeof window<"u"&&window.gtag){const n=window.gtag;n("consent","update",r),console.log("Google Consent Mode atualizado:",r)}}catch(n){console.warn("Erro ao atualizar Google Consent Mode:",n)}}getDefaultConsent(){return typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1")?{analytics_storage:"granted",ad_storage:"granted",functionality_storage:"granted",personalization_storage:"granted",security_storage:"granted"}:{analytics_storage:"granted",ad_storage:"denied",functionality_storage:"granted",personalization_storage:"denied",security_storage:"granted"}}loadConsentFromStorage(){try{if(typeof window<"u"&&window.localStorage){const e=localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}}catch(e){console.warn("Erro ao carregar consentimento do storage:",e)}return null}saveConsentToStorage(){try{typeof window<"u"&&window.localStorage&&localStorage.setItem(this.storageKey,JSON.stringify(this.consentState))}catch(e){console.warn("Erro ao salvar consentimento no storage:",e)}}}let Yo=null;function jS(){return Yo||(Yo=new WS),Yo}function aa(){return jS().hasAnalyticsConsent()}function VS(t){const e=new TextEncoder().encode(t);let r="";return e.forEach(n=>r+=String.fromCharCode(n)),btoa(r)}function qS(t,e,r,n,o,i,s,a,c){const l=o.some(p=>VS(p.id)==="Ry1YUUdROVpZV0gw"),d=window.widdeSendDatalayer||l;return["bocarosa.com.br"].some(p=>window.location.host.includes(p))?new KS(t,r,n,s,window.Shopify,a):d?new GS(t,r,n,i.getDataLayer,a,s):c!=null&&c.gaOnWeb?new zS(t,r,n,i.getGtag,s,a,o,e):new vo(t,r,n,o,a,s)}class vo extends sp{constructor(e,r,n,o,i,s){super(e),this.apiService=r,this.collectionKey=n,this.analytics=o,this.trackerGateway=i,this.authService=s}async sendCollectionView(e){await this.apiService.sendCollectionView(e)}async sendStoryView(e){this.trackerGateway.story({type:"story_view",storyKey:e,collectionKey:this.collectionKey,analyticsSessions:this.analytics,userCookie:await this.authService.getUserCookie()})}}class GS extends vo{constructor(e,r,n,o,i,s){super(e,r,n,[],i,s),this.apiService=r,this.collectionKey=n,this.getDataLayer=o,this.trackerGateway=i,this.authService=s}async sendStoryView(e){if(super.sendStoryView(e),!aa()){console.log("ViewServiceWithDataLayer: Evento não enviado - sem consentimento para analytics");return}const r=await this.authService.getUserCookie(),n=this.getDataLayer(),o={event:"widde",category:"widde",action:"story_view",video_provider:"widde",video_url:`https://app.widde.io/media/collection_${e}`,page_url:window.location.href,page_path:window.location.pathname,page_title:document.title,user_properties:{widdeUid:r}};o.debug_mode=Lr(),n.push(o)}}class zS extends vo{constructor(e,r,n,o,i,s,a,c){super(e,r,n,[],s,i),this.apiService=r,this.collectionKey=n,this.getGtag=o,this.authService=i,this.trackerGateway=s,this._analytics=a,this.gaSessionsDB=c}sendUserProperties(e){const r=$S.getSessionData(e);if(!r._gaId)return!1;const o=(s=>s?`${s}`:"")(r._gaId);return this.gaSessionsDB.get(e)===o?!1:(this.gaSessionsDB.add(e,o),!0)}async sendStoryView(e){if(super.sendStoryView(e),!aa()){console.log("ViewServiceWithGTag: Evento não enviado - sem consentimento para analytics");return}const r=await this.authService.getUserCookie();this._analytics.forEach(n=>{const o=this.getGtag(n.id);if(!o)return;const i=this.sendUserProperties(n.id),s={video_provider:"widde",video_url:`https://app.widde.io/media/${e}`,send_to:n.id};(n.isDebug||Lr())&&(s.debug_mode=Lr()),i&&(s.user_properties={widdeUid:r}),o("event","widde",s)})}}class KS extends vo{constructor(e,r,n,o,i,s){super(e,r,n,[],s,o),this.apiService=r,this.collectionKey=n,this.authService=o,this.shopify=i,this.trackerGateway=s}async sendStoryView(e){if(super.sendStoryView(e),!aa()){console.log("ViewServiceWithShopifyWebPixel: Evento não enviado - sem consentimento para analytics");return}const r=await this.authService.getUserCookie(),n={video_provider:"widde",video_url:`https://app.widde.io/media/${e}`,user_properties:{widdeUid:r}};n.debug_mode=Lr(),this.shopify.analytics.publish("widde",n)}}class JS{constructor(e,r){this.apiService=e,this.url=r}async goToWpp(e,r,n){this.sendEventBeforeGoTo(r),window.open(this.whatsappLinkBuilder(e,up.whatsappMessage({storyKey:r==null?void 0:r.storyKey,customText:n})),"_blank")}whatsappLinkBuilder(e,r){return`https://api.whatsapp.com/send/?phone=${e}&type=phone_number&app_absent=0&text=${r}`}async sendEventBeforeGoTo(e){await new Promise(r=>setTimeout(r,1500)),this.apiService.newWhatsappMessage({...e,companyUrl:this.url})}}function YS(t){const e=XS(t);return function(){const r=window[e];Array.isArray(r)?r.push(arguments):typeof dl=="function"?dl()(arguments):console.warn("[gtagImplementation] Could not push to any gtag or dataLayer")}}function XS(t){try{const e=QS(t);return e?new window.URL(e).searchParams.get("l")||"dataLayer":(console.warn('[findDataLayerName] Script not found, falling back to "dataLayer"'),"dataLayer")}catch(e){return console.error("[findDataLayerName] Error parsing script URL:",e),"dataLayer"}}function QS(t){if(typeof document>"u")return null;const e=Array.from(document.getElementsByTagName("script")),r=e.find(o=>o.src.includes(t)&&new window.URL(o.src).searchParams.has("l"));if(r)return r.src;const n=e.find(o=>o.src.includes(t));return(n==null?void 0:n.src)??null}function dl(){try{return window.gtag}catch(t){console.error("[getWindowGtag] Error accessing window.gtag:",t);return}}function bp(t){return{likeService:new LS(Je("like"),We()),measurementService:new BS(We()),commentService:new ll(We(),t.collectionKey,Je("feedback")),feedbackService:new ll(We(),t.collectionKey,Je("feedback"),t.featuresOptions),subscriptionInfo:t.subscriptionInfo??{},whatsappService:new JS(We(),t.url),shareService:new MS,productService:new FS(sa(),We()),viewService:qS(np(),na("widde-ga-session"),We(),t.collectionKey,t.analyticsData,{getDataLayer:()=>window.dataLayer||dataLayer||[],getGtag:YS},Kn(),__,t==null?void 0:t.featuresOptions)}}function vp(){return AS(We())}const XE=Object.freeze(Object.defineProperty({__proto__:null,default:bp,getCollectionService:vp},Symbol.toStringTag,{value:"Module"}));function _p(){return window.location.href.includes(ee.WIDDE_LOCAL_DEBUG)}function QE(t){return _p()?b_():bp(t)}function ZS(){return _p()?v_():vp()}var ex=(t=>(t.openFullScreen="openFullScreen",t.closeFullScreen="closeFullScreen",t.setStories="stories",t))(ex||{}),tx=(t=>(t.Carousel="Carousel",t.Like="Like",t.Comments="Comments",t.Share="Share",t.PMF="PMF",t.Cart="Cart",t.BuyTogether="BuyTogether",t.Medidas="Medidas",t.GAOnWeb="GAOnWeb",t.ShowPriceOnVideos="ShowPriceOnVideos",t.GlassMode="GlassMode",t.CommentWhenVideoEnds="CommentWhenVideoEnds",t.ReplyComment="ReplyComment",t.ProductsCarousel="ProductsCarousel",t.ButtonCarousel="ButtonCarousel",t.WPro="WPro",t.Minimalistic="Minimalistic",t.HideExplorerTagAll="HideExplorerTagAll",t.VideoStartsMuted="VideoStartsMuted",t.ShowComparePrice="ShowComparePrice",t))(tx||{});class rx extends EventTarget{constructor(){super(...arguments);w(this,"state",{});w(this,"isOpen",!1)}open(r){this.state=r,this.isOpen=!0,this.execute("openFullScreen")}close(){this.state.storyIndexStartKey=void 0,this.isOpen=!1,this.execute("closeFullScreen")}getIsOpen(){return this.isOpen}getState(){return this.isOpen?this.state:null}execute(r){this.dispatchEvent(new CustomEvent(r,{detail:this.state}))}on(r,n){const o=i=>n(i.detail);return this.addEventListener(r,o),()=>{this.removeEventListener(r,o)}}}const pl=(t,e)=>`${e}-${t.origin}-${t.url}`;class nx{constructor(e){w(this,"controlStateCache",{});this.collectionService=e}fromCache(e,r){const n=pl(e,r);return this.controlStateCache[n]||null}async load({token:e,collectionViewType:r,loadStories:n=!0,webcomponent:o}){const i=pl(e,o);if(this.controlStateCache[i])return this.controlStateCache[i];const[s,a]=await Promise.all([this.collectionService.get({token:e.url,generateView:!0,collectionViewType:r,loadStories:n,webcomponent:o}),this.loadSubscriptionInfo(e)]);return s&&(this.controlStateCache[i]={...s,subscriptionInfo:a||void 0},this.controlStateCache[i])}async loadSubscriptionInfo(e){return await this.collectionService.getSubscriptionInfo(e)}}function ox(t){try{const e=t.split(".");if(e.length!==3)throw new Error("Invalid JWT format");const r=e[1],n=decodeURIComponent(atob(r.replace(/-/g,"+").replace(/_/g,"/")).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(n)}catch(e){return console.error("Error decoding JWT:",e),null}}class ix{constructor(e,r){w(this,"runned",!1);w(this,"registerKey","");w(this,"isFinishing",!1);this.api=e,this.authService=r;const n=Math.random();this.runned=n>=.07,window.location.href.includes("navigation")&&(this.runned=!1)}startNativation(){if(this.runned){this.registerKey="";return}this.runned=!0;const e=()=>{const r=N.getSearchParams().get("token"),n=ox(r||"");return n!=null&&n.url?n==null?void 0:n.url:N.getUrl()};this.api.post({path:"navigation/start",body:{url:e(),isMobile:window.innerWidth<=500}}).then(r=>{this.registerKey=r.key})}async finishNativation(){const e=this.registerKey;if(e){if(this.isFinishing){console.warn("[RegisterNavigation] Already finishing, skipping");return}this.isFinishing=!0;try{const r=new Promise((s,a)=>{setTimeout(()=>a(new Error("getUserCookie timeout")),1e3)}),n=this.authService.getUserCookie(),o=await Promise.race([n,r]),i=new FormData;i.append("key",e),i.append("cookie-uid",o),i.append("url",N.getUrl()),navigator.sendBeacon(`${de.api}/navigation/finish`,i)}catch(r){console.warn("[RegisterNavigation] Failed to get cookie, sending without it:",r);const n=new FormData;n.append("key",e),n.append("cookie-uid",""),n.append("url",N.getUrl()),navigator.sendBeacon(`${de.api}/navigation/finish`,n)}finally{setTimeout(()=>{this.isFinishing=!1},2e3)}}}registerNavigation(){this.startNativation();const e=()=>{document.visibilityState!=="hidden"&&this.startNativation(),document.visibilityState==="hidden"&&this.finishNativation()},r=()=>{this.registerKey&&this.startNativation()};return window.addEventListener("pagehide",r,{once:!0}),document.addEventListener("visibilitychange",e),()=>{window.removeEventListener("pagehide",r),document.removeEventListener("visibilitychange",e)}}}function sx(){return window._______w_register_navigation||(window._______w_register_navigation=new ix(new gp(de.api,Kn()),Kn())),window._______w_register_navigation}function ax(){return window._______w_bridge||(window._______w_bridge=new rx),window._______w_bridge}function cx(){if(window._______w_controll)return window._______w_controll;const t=ZS();return window._______w_controll=new nx(t),window._______w_controll}function ZE(){return Le(()=>ax(),[])}function lx(){try{console.log(`%c Video Commerce Widde.io %c version_${"6c9aea83a97375029950f65842afe7f4570fd4bc".substring(0,7)} %c`,"border: 1px solid #2567f8; background: #2567f8; color: #fff; font-weight: bold; padding: 4px 8px; border-radius: 3px 0 0 3px;","border: 1px solid #2567f8; background: #FFF; color: #2567f8; font-weight: bold; padding: 4px 8px; border-radius: 0 3px 3px 0;","background: transparent")}catch{}}const ft=class ft{constructor(){w(this,"subject",new Lf(this.getValue(!1)));w(this,"lastResult",null);this.init()}static getInstance(){return ft.instance||(ft.instance=new ft),ft.instance}getCurrentValue(){return this.subject.getValue()}getValue(e){const r=N.getUrl(),n=N.getHost(),o=N.getSearchParams();return{isFromPushHistory:e,url:r,origin:n,params:o}}next(e){JSON.stringify(this.lastResult)!==JSON.stringify(e)&&(this.lastResult=e,this.subject.next(e))}init(){this.next(this.getValue(!1)),wh(...["locationchange","popstate","hashchange"].map(r=>si(window,r)),ux()).pipe(Pr(r=>this.next(this.getValue(!!(r!=null&&r.isFromPushHistory))))).subscribe()}getCurrentUrl(){return this.subject.asObservable()}};w(ft,"instance",null);let ne=ft;function ux(){const t=new to;try{let e=window==null?void 0:window.history.pushState;window.history.pushState=function(){let n=e.apply(this,arguments);return t.next({isFromPushHistory:!0}),n}}catch{}try{let e=window==null?void 0:window.history.replaceState;window.history.replaceState=function(){let n=e.apply(this,arguments);return t.next({isFromPushHistory:!0}),n}}catch{}return t.asObservable()}var dx=0;function U(t,e,r,n,o,i){e||(e={});var s,a,c=e;if("ref"in c)for(a in c={},e)a=="ref"?s=e[a]:c[a]=e[a];var l={type:t,props:c,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--dx,__i:-1,__u:0,__source:o,__self:i};if(typeof t=="function"&&(s=t.defaultProps))for(a in s)c[a]===void 0&&(c[a]=s[a]);return R.vnode&&R.vnode(l),l}function Jn(t,e,r){var o;const n=document.createElement(t);return e&&Object.keys(e).map(i=>n.setAttribute(i,e[i])),r&&r.where==="before"?(px({refElement:r.element,div:n}),n):r&&r.where==="after"?(fx(r.element,n),n):r&&r.where==="inside"?(r.element.appendChild(n),n):((o=document==null?void 0:document.body)==null||o.appendChild(n),n)}function kn(t,e,r){const n=document.querySelector(t);return n||Jn(t,e,r)}function px({refElement:t,div:e}){try{const r=t.parentElement;if(r){const n=Array.prototype.indexOf.call(r.childNodes,t),o=r.childNodes[n];r.insertBefore(e,o)}}catch{}}function fx(t,e){try{const r=t.parentElement;if(!r){console.warn("Parent element was not found, we will not insert the element");return}const n=Array.prototype.indexOf.call(r.childNodes,t),o=r.childNodes[n+1];r.insertBefore(e,o||null)}catch(r){console.error("Error inserting element:",r)}}var oe=function(){return oe=Object.assign||function(e){for(var r,n=1,o=arguments.length;n0?G(dr,--ge):0,Xt--,V===10&&(Xt=1,So--),V}function _e(){return V=ge2||Xi(V)>3?"":" "}function Cx(t,e){for(;--e&&_e()&&!(V<48||V>102||V>57&&V<65||V>70&&V<97););return Eo(t,In()+(e<6&&_t()==32&&_e()==32))}function Qi(t){for(;_e();)switch(V){case t:return ge;case 34:case 39:t!==34&&t!==39&&Qi(V);break;case 40:t===41&&Qi(t);break;case 92:_e();break}return ge}function kx(t,e){for(;_e()&&t+V!==57;)if(t+V===84&&_t()===47)break;return"/*"+Eo(e,ge-1)+"*"+la(t===47?t:_e())}function Tx(t){for(;!Xi(_t());)_e();return Eo(t,ge)}function Ix(t){return xx(Pn("",null,null,null,[""],t=Sx(t),0,[0],t))}function Pn(t,e,r,n,o,i,s,a,c){for(var l=0,d=0,u=s,f=0,p=0,h=0,g=1,y=1,b=1,v=0,S="",I=o,P=i,C=n,_=S;y;)switch(h=v,v=_e()){case 40:if(h!=108&&G(_,u-1)==58){Tn(_+=A(Xo(v),"&","&\f"),"&\f",Ep(l?a[l-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:_+=Xo(v);break;case 9:case 10:case 13:case 32:_+=Ex(h);break;case 92:_+=Cx(In()-1,7);continue;case 47:switch(_t()){case 42:case 47:Sr(Px(kx(_e(),In()),e,r,c),c);break;default:_+="/"}break;case 123*g:a[l++]=Te(_)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+d:b==-1&&(_=A(_,/\f/g,"")),p>0&&Te(_)-u&&Sr(p>32?ml(_+";",n,r,u-1,c):ml(A(_," ","")+";",n,r,u-2,c),c);break;case 59:_+=";";default:if(Sr(C=hl(_,e,r,l,d,o,a,S,I=[],P=[],u,i),i),v===123)if(d===0)Pn(_,e,C,C,I,i,u,a,P);else switch(f===99&&G(_,3)===110?100:f){case 100:case 108:case 109:case 115:Pn(t,C,C,n&&Sr(hl(t,C,C,0,0,o,a,S,o,I=[],u,P),P),o,P,u,a,n?I:P);break;default:Pn(_,C,C,C,[""],P,0,a,P)}}l=d=p=0,g=b=1,S=_="",u=s;break;case 58:u=1+Te(_),p=h;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&_x()==125)continue}switch(_+=la(v),v*g){case 38:b=d>0?1:(_+="\f",-1);break;case 44:a[l++]=(Te(_)-1)*b,b=1;break;case 64:_t()===45&&(_+=Xo(_e())),f=_t(),d=u=Te(S=_+=Tx(In())),v++;break;case 45:h===45&&Te(_)==2&&(g=0)}}return i}function hl(t,e,r,n,o,i,s,a,c,l,d,u){for(var f=o-1,p=o===0?i:[""],h=kp(p),g=0,y=0,b=0;g0?p[v]+" "+S:A(S,/&\f/g,p[v])))&&(c[b++]=I);return xo(t,e,r,o===0?_o:a,c,l,d,u)}function Px(t,e,r,n){return xo(t,e,r,Sp,la(vx()),Yt(t,2,-2),0,n)}function ml(t,e,r,n,o){return xo(t,e,r,ca,Yt(t,0,n),Yt(t,n+1,-1),n,o)}function Ip(t,e,r){switch(wx(t,e)){case 5103:return D+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return D+t+t;case 4789:return Tr+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return D+t+Tr+t+M+t+t;case 5936:switch(G(t,e+11)){case 114:return D+t+M+A(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return D+t+M+A(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return D+t+M+A(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return D+t+M+t+t;case 6165:return D+t+M+"flex-"+t+t;case 5187:return D+t+A(t,/(\w+).+(:[^]+)/,D+"box-$1$2"+M+"flex-$1$2")+t;case 5443:return D+t+M+"flex-item-"+A(t,/flex-|-self/g,"")+(Re(t,/flex-|baseline/)?"":M+"grid-row-"+A(t,/flex-|-self/g,""))+t;case 4675:return D+t+M+"flex-line-pack"+A(t,/align-content|flex-|-self/g,"")+t;case 5548:return D+t+M+A(t,"shrink","negative")+t;case 5292:return D+t+M+A(t,"basis","preferred-size")+t;case 6060:return D+"box-"+A(t,"-grow","")+D+t+M+A(t,"grow","positive")+t;case 4554:return D+A(t,/([^-])(transform)/g,"$1"+D+"$2")+t;case 6187:return A(A(A(t,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),t,"")+t;case 5495:case 3959:return A(t,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return A(A(t,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+M+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+t+t;case 4200:if(!Re(t,/flex-|baseline/))return M+"grid-column-align"+Yt(t,e)+t;break;case 2592:case 3360:return M+A(t,"template-","")+t;case 4384:case 3616:return r&&r.some(function(n,o){return e=o,Re(n.props,/grid-\w+-end/)})?~Tn(t+(r=r[e].value),"span",0)?t:M+A(t,"-start","")+t+M+"grid-row-span:"+(~Tn(r,"span",0)?Re(r,/\d+/):+Re(r,/\d+/)-+Re(t,/\d+/))+";":M+A(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(n){return Re(n.props,/grid-\w+-start/)})?t:M+A(A(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return A(t,/(.+)-inline(.+)/,D+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Te(t)-1-e>6)switch(G(t,e+1)){case 109:if(G(t,e+4)!==45)break;case 102:return A(t,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+Tr+(G(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Tn(t,"stretch",0)?Ip(A(t,"stretch","fill-available"),e,r)+t:t}break;case 5152:case 5920:return A(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,s,a,c,l){return M+o+":"+i+l+(s?M+o+"-span:"+(a?c:+c-+i)+l:"")+t});case 4949:if(G(t,e+6)===121)return A(t,":",":"+D)+t;break;case 6444:switch(G(t,G(t,14)===45?18:11)){case 120:return A(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+D+(G(t,14)===45?"inline-":"")+"box$3$1"+D+"$2$3$1"+M+"$2box$3")+t;case 100:return A(t,":",":"+M)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return A(t,"scroll-","scroll-snap-")+t}return t}function Yn(t,e){for(var r="",n=0;n-1&&!t.return)switch(t.type){case ca:t.return=Ip(t.value,t.length,r);return;case xp:return Yn([je(t,{value:A(t.value,"@","@"+D)})],n);case _o:if(t.length)return bx(r=t.props,function(o){switch(Re(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Rt(je(t,{props:[A(o,/:(read-\w+)/,":"+Tr+"$1")]})),Rt(je(t,{props:[o]})),Yi(t,{props:fl(r,n)});break;case"::placeholder":Rt(je(t,{props:[A(o,/:(plac\w+)/,":"+D+"input-$1")]})),Rt(je(t,{props:[A(o,/:(plac\w+)/,":"+Tr+"$1")]})),Rt(je(t,{props:[A(o,/:(plac\w+)/,M+"input-$1")]})),Rt(je(t,{props:[o]})),Yi(t,{props:fl(r,n)});break}return""})}}var Dx={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ce={},Qt=typeof process<"u"&&ce!==void 0&&(ce.REACT_APP_SC_ATTR||ce.SC_ATTR)||"data-styled",Pp="active",Up="data-styled-version",Co="6.1.15",ua=`/*!sc*/ `,Xn=typeof window<"u"&&"HTMLElement"in window,Lx=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ce!==void 0&&ce.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ce.REACT_APP_SC_DISABLE_SPEEDY!==""?ce.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ce.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ce!==void 0&&ce.SC_DISABLE_SPEEDY!==void 0&&ce.SC_DISABLE_SPEEDY!==""&&ce.SC_DISABLE_SPEEDY!=="false"&&ce.SC_DISABLE_SPEEDY),ko=Object.freeze([]),Zt=Object.freeze({});function Bx(t,e,r){return r===void 0&&(r=Zt),t.theme!==r.theme&&t.theme||e||r.theme}var Op=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Nx=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Fx=/(^-|-$)/g;function gl(t){return t.replace(Nx,"-").replace(Fx,"")}var Mx=/(a)(d)/gi,hn=52,yl=function(t){return String.fromCharCode(t+(t>25?39:97))};function Zi(t){var e,r="";for(e=Math.abs(t);e>hn;e=e/hn|0)r=yl(e%hn)+r;return(yl(e%hn)+r).replace(Mx,"$1-$2")}var Qo,Rp=5381,Bt=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},Ap=function(t){return Bt(Rp,t)};function Dp(t){return Zi(Ap(t)>>>0)}function $x(t){return t.displayName||t.name||"Component"}function Zo(t){return typeof t=="string"&&!0}var Lp=typeof Symbol=="function"&&Symbol.for,Bp=Lp?Symbol.for("react.memo"):60115,Hx=Lp?Symbol.for("react.forward_ref"):60112,Wx={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},jx={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Np={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vx=((Qo={})[Hx]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qo[Bp]=Np,Qo);function wl(t){return("type"in(e=t)&&e.type.$$typeof)===Bp?Np:"$$typeof"in t?Vx[t.$$typeof]:Wx;var e}var qx=Object.defineProperty,Gx=Object.getOwnPropertyNames,bl=Object.getOwnPropertySymbols,zx=Object.getOwnPropertyDescriptor,Kx=Object.getPrototypeOf,vl=Object.prototype;function Fp(t,e,r){if(typeof e!="string"){if(vl){var n=Kx(e);n&&n!==vl&&Fp(t,n,r)}var o=Gx(e);bl&&(o=o.concat(bl(e)));for(var i=wl(t),s=wl(e),a=0;a0?" Args: ".concat(e.join(", ")):""))}var Jx=function(){function t(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return t.prototype.indexOfGroup=function(e){for(var r=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;e>=i;)if((i<<=1)<0)throw Yr(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var s=o;s=this.length||this.groupSizes[e]===0)return r;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),i=o+n,s=o;s=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.prototype.getRule=function(e){return e0&&(y+="".concat(b,","))}),c+="".concat(h).concat(g,'{content:"').concat(y,'"}').concat(ua)},d=0;d0?".".concat(e):f},d=c.slice();d.push(function(f){f.type===_o&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(s1,r).replace(n,l))}),s.prefix&&d.push(Ax),d.push(Ux);var u=function(f,p,h,g){p===void 0&&(p=""),h===void 0&&(h=""),g===void 0&&(g="&"),e=g,r=p,n=new RegExp("\\".concat(r,"\\b"),"g");var y=f.replace(a1,""),b=Ix(h||p?"".concat(h," ").concat(p," { ").concat(y," }"):y);s.namespace&&(b=Hp(b,s.namespace));var v=[];return Yn(b,Ox(d.concat(Rx(function(S){return v.push(S)})))),v};return u.hash=c.length?c.reduce(function(f,p){return p.name||Yr(15),Bt(f,p.name)},Rp).toString():"",u}var c1=new $p,rs=Wp(),fa=Ze.createContext({shouldForwardProp:void 0,styleSheet:c1,stylis:rs});fa.Consumer;var l1=Ze.createContext(void 0);function ns(){return wo(fa)}function u1(t){var e=ar(t.stylisPlugins),r=e[0],n=e[1],o=ns().styleSheet,i=Le(function(){var c=o;return t.sheet?c=t.sheet:t.target&&(c=c.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(c=c.reconstructWithOptions({useCSSOMInjection:!1})),c},[t.disableCSSOMInjection,t.sheet,t.target,o]),s=Le(function(){return Wp({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:r})},[t.enableVendorPrefixes,t.namespace,r]);cr(function(){mx(r,t.stylisPlugins)||n(t.stylisPlugins)},[t.stylisPlugins]);var a=Le(function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:i,stylis:s}},[t.shouldForwardProp,i,s]);return Ze.createElement(fa.Provider,{value:a},Ze.createElement(l1.Provider,{value:s},t.children))}var jp=function(){function t(e,r){var n=this;this.inject=function(o,i){i===void 0&&(i=rs);var s=n.name+i.hash;o.hasNameForId(n.id,s)||o.insertRules(n.id,s,i(n.rules,s,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=r,pa(this,function(){throw Yr(12,String(n.name))})}return t.prototype.getName=function(e){return e===void 0&&(e=rs),this.name+e.hash},t}(),d1=function(t){return t>="A"&&t<="Z"};function xl(t){for(var e="",r=0;r>>0);if(!r.hasNameForId(this.componentId,s)){var a=n(i,".".concat(s),void 0,this.componentId);r.insertRules(this.componentId,s,a)}o=yt(o,s),this.staticRulesId=s}else{for(var c=Bt(this.baseHash,n.hash),l="",d=0;d>>0);r.hasNameForId(this.componentId,p)||r.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),o=yt(o,p)}}return o},t}(),Gp=Ze.createContext(void 0);Gp.Consumer;var ei={};function m1(t,e,r){var n=da(t),o=t,i=!Zo(t),s=e.attrs,a=s===void 0?ko:s,c=e.componentId,l=c===void 0?function(I,P){var C=typeof I!="string"?"sc":gl(I);ei[C]=(ei[C]||0)+1;var _="".concat(C,"-").concat(Dp(Co+C+ei[C]));return P?"".concat(P,"-").concat(_):_}(e.displayName,e.parentComponentId):c,d=e.displayName,u=d===void 0?function(I){return Zo(I)?"styled.".concat(I):"Styled(".concat($x(I),")")}(t):d,f=e.displayName&&e.componentId?"".concat(gl(e.displayName),"-").concat(e.componentId):e.componentId||l,p=n&&o.attrs?o.attrs.concat(a).filter(Boolean):a,h=e.shouldForwardProp;if(n&&o.shouldForwardProp){var g=o.shouldForwardProp;if(e.shouldForwardProp){var y=e.shouldForwardProp;h=function(I,P){return g(I,P)&&y(I,P)}}else h=g}var b=new h1(r,f,n?o.componentStyle:void 0);function v(I,P){return function(C,_,j){var Q=C.attrs,Me=C.componentStyle,pe=C.defaultProps,tt=C.foldedComponentIds,mf=C.styledComponentId,gf=C.target,yf=Ze.useContext(Gp),wf=ns(),Io=C.shouldForwardProp||wf.shouldForwardProp,ma=Bx(_,yf,pe)||Zt,Ue=function(Zr,hr,en){for(var mr,rt=oe(oe({},hr),{className:void 0,theme:en}),Uo=0;Uo`${t/e*100}vw`;function y1(t,e){const r=`widde-style-${t}`;if(document.getElementById(r))return;const n=document.createElement("style");n.id=r,n.innerHTML=e,document.head.appendChild(n)}const w1=` .background-glass-darker { background: radial-gradient(231% 135.8% at 0.9% 2.98%, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0.64) 100%); backdrop-filter: blur(21px); -webkit-backdrop-filter: blur(21px); } *{ box-sizing: border-box !important; } .background-classic{ background: white; } .background-glass{ background: radial-gradient( 231% 135.8% at 0.9% 2.98%, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100% ); backdrop-filter: blur(21px); -webkit-backdrop-filter: blur(21px); } .button-glass { background: radial-gradient(97.57% 210.75% at 0.9% 2.98%, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.16) 100%); backdrop-filter: blur(21px); -webkit-backdrop-filter: blur(21px); } a { text-decoration: none; } div { --glass-products: radial-gradient(231% 135.8% at 0.9% 2.98%, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.42) 100%); --glass-elements: radial-gradient(231% 135.8% at 0.9% 2.98%, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.16) 100%); --no-glass-elements: rgba(0, 0, 0, 0.5); --widde-logo-color: rgba(255, 255, 255, 0.8); } * { font-family: 'LatoWidde', sans-serif !important; } .noselect { -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } textarea, input { font-size: 14px; @media (min-width: 768px) { font-size: 16px; } } :root { --font-line-height-l: 140%; --font-line-height-s: 110%; font-size: ${ti(24)}; @media (min-width: 768px) { font-size: ${ti(18)}; } @media (min-width: 1024px) { font-size: ${ti(16)}; } }`,b1=()=>(cr(()=>{y1("lato-font",`/* latin-ext */ @font-face { font-family: 'LatoWidde'; font-style: italic; font-weight: 100; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u-w4BMUTPHjxsIPx-mPCLC79U11vU.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'LatoWidde'; font-style: italic; font-weight: 100; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u-w4BMUTPHjxsIPx-oPCLC79U1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin-ext */ @font-face { font-family: 'LatoWidde'; font-style: italic; font-weight: 300; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u_w4BMUTPHjxsI9w2_FQftx9897sxZ.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'LatoWidde'; font-style: italic; font-weight: 300; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u_w4BMUTPHjxsI9w2_Gwftx9897g.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin-ext */ @font-face { font-family: 'LatoWidde'; font-style: italic; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'LatoWidde'; font-style: italic; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin-ext */ @font-face { font-family: 'LatoWidde'; font-style: italic; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'LatoWidde'; font-style: italic; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin-ext */ @font-face { font-family: 'LatoWidde'; font-style: italic; font-weight: 900; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u_w4BMUTPHjxsI3wi_FQftx9897sxZ.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'LatoWidde'; font-style: italic; font-weight: 900; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u_w4BMUTPHjxsI3wi_Gwftx9897g.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin-ext */ @font-face { font-family: 'LatoWidde'; font-style: normal; font-weight: 100; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u8w4BMUTPHh30AUi-qNiXg7eU0.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'LatoWidde'; font-style: normal; font-weight: 100; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u8w4BMUTPHh30AXC-qNiXg7Q.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin-ext */ @font-face { font-family: 'LatoWidde'; font-style: normal; font-weight: 300; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u9w4BMUTPHh7USSwaPGQ3q5d0N7w.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'LatoWidde'; font-style: normal; font-weight: 300; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u9w4BMUTPHh7USSwiPGQ3q5d0.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin-ext */ @font-face { font-family: 'LatoWidde'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'LatoWidde'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin-ext */ @font-face { font-family: 'LatoWidde'; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'LatoWidde'; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin-ext */ @font-face { font-family: 'LatoWidde'; font-style: normal; font-weight: 900; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u9w4BMUTPHh50XSwaPGQ3q5d0N7w.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'LatoWidde'; font-style: normal; font-weight: 900; font-display: swap; src: url(https://fonts.gstatic.com/s/lato/v24/S6u9w4BMUTPHh50XSwiPGQ3q5d0.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }`)},[]),U(Ee,{children:U("style",{dangerouslySetInnerHTML:{__html:w1}})})),v1=`/*! tailwindcss v4.0.9 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(.971 .013 17.38);--color-red-500:oklch(.637 .237 25.331);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-700:oklch(.554 .135 66.442);--color-green-600:oklch(.627 .194 149.214);--color-blue-300:oklch(.809 .105 251.813);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-800:oklch(.424 .199 265.638);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-zinc-700:oklch(.37 .013 285.805);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:384px;--container-lg:512px;--container-4xl:56rem;--text-xs:14px;--text-xs--line-height:calc(1/.75);--text-sm:16px;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:20px;--text-lg--line-height:calc(1.75/1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--drop-shadow-sm:0px 3.25px 6.5px #00000029;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings);--radius:4px;--font-family:"Lato",sans-serif;--color-brand-200:#79a2ff;--color-brand-300:#2667f8;--color-brand-400:#003ab9;--color-primary-50:#b4b4b5;--color-primary-100:#828283;--color-primary-200:#373739;--color-primary-300:#000;--color-surface-50:#fff;--color-surface-100:#f5f5f5;--color-surface-200:#e9e9e9;--color-surface-300:#dcdcdc;--color-danger-50:snow;--color-danger-300:#ff1900;--color-success-50:#f1ffed;--color-success-300:#2b9e05;--text-md:18px}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1;color:color-mix(in oklab,currentColor 50%,transparent)}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.\\!visible{visibility:visible!important}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.-top-12{top:calc(var(--spacing)*-12)}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.top-3{top:calc(var(--spacing)*3)}.top-4{top:calc(var(--spacing)*4)}.top-6{top:calc(var(--spacing)*6)}.top-\\[5px\\]{top:5px}.top-\\[32px\\]{top:32px}.top-\\[50\\%\\]{top:50%}.top-\\[calc\\(var\\(--block-size\\)\\/2\\)\\]{top:calc(var(--block-size)/2)}.top-\\[min\\(10px\\,10\\%\\)\\]{top:min(10px,10%)}.-right-12{right:calc(var(--spacing)*-12)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-5{right:calc(var(--spacing)*5)}.right-\\[5px\\]{right:5px}.right-\\[24px\\]{right:24px}.-bottom-12{bottom:calc(var(--spacing)*-12)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-1{bottom:calc(var(--spacing)*1)}.bottom-4{bottom:calc(var(--spacing)*4)}.-left-12{left:calc(var(--spacing)*-12)}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.left-20{left:calc(var(--spacing)*20)}.left-\\[28px\\]{left:28px}.left-\\[50\\%\\]{left:50%}.left-\\[calc\\(100\\%-320px-28px\\)\\]{left:calc(100% - 348px)}.\\!z-\\[99999\\]{z-index:99999!important}.z-1{z-index:1}.z-3{z-index:3}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-100{z-index:100}.z-\\[1\\]{z-index:1}.z-\\[1000\\]{z-index:1000}.z-\\[99999\\]{z-index:99999}.row-span-2{grid-row:span 2/span 2}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.m-auto{margin:auto}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.-mx-4{margin-inline:calc(var(--spacing)*-4)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.my-2{margin-block:calc(var(--spacing)*2)}.my-\\[8px\\]{margin-block:8px}.my-\\[16px\\]{margin-block:16px}.my-\\[var\\(--block-margin-top\\)\\]{margin-block:var(--block-margin-top)}.ms-3{margin-inline-start:calc(var(--spacing)*3)}.-mt-4{margin-top:calc(var(--spacing)*-4)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-\\[-16px\\]{margin-top:-16px}.mt-\\[8px\\]{margin-top:8px}.mt-\\[16px\\]{margin-top:16px}.mt-\\[32px\\]{margin-top:32px}.mt-\\[var\\(--block-margin-top\\)\\]{margin-top:var(--block-margin-top)}.mr-4{margin-right:calc(var(--spacing)*4)}.mb-0{margin-bottom:calc(var(--spacing)*0)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-\\[8px\\]{margin-bottom:8px}.mb-\\[10px\\]{margin-bottom:10px}.mb-\\[24px\\]{margin-bottom:24px}.mb-\\[var\\(--block-margin-bottom\\)\\]{margin-bottom:var(--block-margin-bottom)}.-ml-4{margin-left:calc(var(--spacing)*-4)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-\\[12px\\]{margin-left:12px}.ml-\\[16px\\]{margin-left:16px}.box-border{box-sizing:border-box}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.\\!block{display:block!important}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-\\[8\\/12\\]{aspect-ratio:8/12}.aspect-\\[9\\/16\\]{aspect-ratio:9/16}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1}.size-3\\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\!h-\\[32px\\]{height:32px!important}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2\\.5{height:calc(var(--spacing)*2.5)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-12{height:calc(var(--spacing)*12)}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[8px\\]{height:8px}.h-\\[12px\\]{height:12px}.h-\\[14px\\]{height:14px}.h-\\[16px\\]{height:16px}.h-\\[18px\\]{height:18px}.h-\\[20px\\]{height:20px}.h-\\[20px\\]\\!{height:20px!important}.h-\\[28px\\]{height:28px}.h-\\[30px\\]{height:30px}.h-\\[32px\\]{height:32px}.h-\\[34px\\]{height:34px}.h-\\[36px\\]{height:36px}.h-\\[40px\\]{height:40px}.h-\\[42px\\]{height:42px}.h-\\[48px\\]{height:48px}.h-\\[56px\\]{height:56px}.h-\\[56px\\]\\!{height:56px!important}.h-\\[60px\\]{height:60px}.h-\\[70px\\]{height:70px}.h-\\[90dvh\\]{height:90dvh}.h-\\[96px\\]{height:96px}.h-\\[140px\\]{height:140px}.h-\\[148px\\]{height:148px}.h-\\[500px\\]{height:500px}.h-\\[calc\\(100\\%-var\\(--shapper-border-width\\)\\)\\]{height:calc(100% - var(--shapper-border-width))}.h-\\[var\\(--block-size\\)\\]{height:var(--block-size)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:calc(var(--spacing)*96)}.max-h-\\[32px\\]{max-height:32px}.max-h-\\[60px\\]{max-height:60px}.max-h-\\[140px\\]{max-height:140px}.max-h-full{max-height:100%}.min-h-\\[1px\\]{min-height:1px}.min-h-\\[35px\\]{min-height:35px}.min-h-\\[42px\\]{min-height:42px}.min-h-\\[60px\\]{min-height:60px}.min-h-\\[140px\\]{min-height:140px}.min-h-\\[148px\\]{min-height:148px}.\\!w-full{width:100%!important}.w-1\\/4{width:25%}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-3\\/4{width:75%}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-11{width:calc(var(--spacing)*11)}.w-12{width:calc(var(--spacing)*12)}.w-64{width:calc(var(--spacing)*64)}.w-72{width:calc(var(--spacing)*72)}.w-80{width:calc(var(--spacing)*80)}.w-\\[8px\\]{width:8px}.w-\\[20px\\]{width:20px}.w-\\[20px\\]\\!{width:20px!important}.w-\\[24px\\]{width:24px}.w-\\[32px\\]{width:32px}.w-\\[34px\\]{width:34px}.w-\\[36px\\]{width:36px}.w-\\[40px\\]{width:40px}.w-\\[42px\\]{width:42px}.w-\\[50\\%\\]{width:50%}.w-\\[50px\\]{width:50px}.w-\\[56px\\]{width:56px}.w-\\[60\\%\\]{width:60%}.w-\\[60px\\]{width:60px}.w-\\[75\\%\\]{width:75%}.w-\\[76px\\]{width:76px}.w-\\[80px\\]{width:80px}.w-\\[85\\%\\]{width:85%}.w-\\[90\\%\\]{width:90%}.w-\\[95\\%\\]{width:95%}.w-\\[95px\\]{width:95px}.w-\\[102px\\]{width:102px}.w-\\[125px\\]{width:125px}.w-\\[140px\\]{width:140px}.w-\\[240px\\]{width:240px}.w-\\[260px\\]{width:260px}.w-\\[300px\\]{width:300px}.w-\\[320px\\]{width:320px}.w-\\[426px\\]{width:426px}.w-\\[calc\\(100\\%-var\\(--shapper-border-width\\)\\)\\]{width:calc(100% - var(--shapper-border-width))}.w-fit{width:fit-content}.w-fit\\!{width:fit-content!important}.w-full{width:100%}.w-full\\!{width:100%!important}.w-screen{width:100vw}.\\!max-w-\\[350px\\]{max-width:350px!important}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[36px\\]{max-width:36px}.max-w-\\[42px\\]{max-width:42px}.max-w-\\[60\\%\\]{max-width:60%}.max-w-\\[60px\\]{max-width:60px}.max-w-\\[140px\\]{max-width:140px}.max-w-\\[150px\\]{max-width:150px}.max-w-\\[230px\\]{max-width:230px}.max-w-\\[358px\\]\\!{max-width:358px!important}.max-w-\\[384px\\]{max-width:384px}.max-w-\\[400px\\]{max-width:400px}.max-w-\\[1200px\\]{max-width:1200px}.max-w-\\[1232px\\]{max-width:1232px}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\\[36px\\]{min-width:36px}.min-w-\\[40px\\]{min-width:40px}.min-w-\\[42px\\]{min-width:42px}.min-w-\\[48px\\]{min-width:48px}.min-w-\\[56px\\]{min-width:56px}.min-w-\\[60px\\]{min-width:60px}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[102px\\]{min-width:102px}.min-w-\\[128px\\]{min-width:128px}.min-w-\\[140px\\]{min-width:140px}.min-w-\\[150px\\]{min-width:150px}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-\\[140px\\]{flex-basis:140px}.origin-\\(--radix-popover-content-transform-origin\\){transform-origin:var(--radix-popover-content-transform-origin)}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[calc\\(100\\%\\+50px\\)\\]{--tw-translate-x: calc(100% + 50px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-90{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-nowrap{flex-wrap:nowrap}.flex-wrap{flex-wrap:wrap}.\\!items-center{align-items:center!important}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.\\!justify-between{justify-content:space-between!important}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-\\[0px\\]{gap:0}.gap-\\[4px\\]{gap:4px}.gap-\\[6px\\]{gap:6px}.gap-\\[8px\\]{gap:8px}.gap-\\[10px\\]{gap:10px}.gap-\\[14px\\]{gap:14px}.gap-\\[16px\\]{gap:16px}.gap-\\[24px\\]{gap:24px}.gap-\\[var\\(--block-gap\\)\\]{gap:var(--block-gap)}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-\\[4px\\]{column-gap:4px}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-0{row-gap:calc(var(--spacing)*0)}.self-end{align-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overflow-y-visible{overflow-y:visible}.scroll-smooth{scroll-behavior:smooth}.shapper-rounded{border-radius:var(--shapper-rounded,15px)}.shapper-rounded .inner{border-radius:calc(var(--shapper-rounded,15px) - calc(var(--shapper-border-width,3px) - 2px))}.\\!rounded-\\[4px\\]{border-radius:4px!important}.rounded{border-radius:var(--radius)}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[7px\\]{border-radius:7px}.rounded-\\[8px\\]{border-radius:8px}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-1{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-3{border-style:var(--tw-border-style);border-width:3px}.border-\\[1px\\]{border-style:var(--tw-border-style);border-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.\\!border-danger-300{border-color:var(--color-danger-300)!important}.\\!border-primary-100{border-color:var(--color-primary-100)!important}.border-\\[\\#2667F8\\]{border-color:#2667f8}.border-\\[\\#E9E9E9\\]{border-color:#e9e9e9}.border-\\[\\#a69c90\\]{border-color:#a69c90}.border-black{border-color:var(--color-black)}.border-black\\!{border-color:var(--color-black)!important}.border-brand-300{border-color:var(--color-brand-300)}.border-danger-300{border-color:var(--color-danger-300)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-primary-300{border-color:var(--color-primary-300)}.border-red-500{border-color:var(--color-red-500)}.border-success-300{border-color:var(--color-success-300)}.border-surface-100{border-color:var(--color-surface-100)}.border-surface-200{border-color:var(--color-surface-200)}.border-transparent{border-color:#0000}.border-y-surface-300{border-block-color:var(--color-surface-300)}.border-t-black{border-top-color:var(--color-black)}.border-t-danger-300{border-top-color:var(--color-danger-300)}.border-t-success-300{border-top-color:var(--color-success-300)}.border-t-surface-300{border-top-color:var(--color-surface-300)}.border-t-transparent{border-top-color:#0000}.border-b-surface-300{border-bottom-color:var(--color-surface-300)}.border-l-transparent{border-left-color:#0000}.shapper-border{border:var(--shapper-border-width,3px)solid var(--primary);background-color:var(--secondary);padding:calc(var(--shapper-border-width,3px) - 2px)}.\\!bg-brand-300{background-color:var(--color-brand-300)!important}.\\!bg-success-50{background-color:var(--color-success-50)!important}.bg-\\[\\#FF1900\\]{background-color:#ff1900}.bg-\\[var\\(--primary\\)\\]{background-color:var(--primary)}.bg-\\[var\\(--secondary\\)\\]{background-color:var(--secondary)}.bg-black{background-color:var(--color-black)}.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}.bg-black\\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}.bg-brand-300{background-color:var(--color-brand-300)}.bg-brand-300\\!{background-color:var(--color-brand-300)!important}.bg-danger-50{background-color:var(--color-danger-50)}.bg-danger-300{background-color:var(--color-danger-300)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-green-600{background-color:var(--color-green-600)}.bg-primary-300{background-color:var(--color-primary-300)}.bg-red-50{background-color:var(--color-red-50)}.bg-surface-50{background-color:var(--color-surface-50)}.bg-surface-100{background-color:var(--color-surface-100)}.bg-surface-300{background-color:var(--color-surface-300)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/50{background-color:color-mix(in oklab,var(--color-white)50%,transparent)}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-black\\/70{--tw-gradient-from:color-mix(in oklab,var(--color-black)70%,transparent);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-cover{background-size:cover}.bg-center{background-position:50%}.fill-current{fill:currentColor}.object-cover{object-fit:cover}.\\!p-0,.p-0\\!{padding:calc(var(--spacing)*0)!important}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-\\[1px\\]{padding:1px}.p-\\[4px\\]{padding:4px}.p-\\[6px_8px\\]{padding:6px 8px}.p-\\[8px\\]{padding:8px}.p-\\[12px\\]{padding:12px}.p-\\[12px_16px\\]{padding:12px 16px}.p-\\[16px\\]{padding:16px}.p-\\[16px_24px\\]{padding:16px 24px}.p-\\[var\\(--shapper-border-width\\)\\]{padding:var(--shapper-border-width)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-4\\!{padding-inline:calc(var(--spacing)*4)!important}.px-6{padding-inline:calc(var(--spacing)*6)}.px-\\[0px\\]{padding-inline:0}.px-\\[12px\\]{padding-inline:12px}.px-\\[16px\\]{padding-inline:16px}.px-\\[24px\\]{padding-inline:24px}.px-\\[28px\\]{padding-inline:28px}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\!{padding-block:calc(var(--spacing)*2)!important}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-\\[0px\\]{padding-block:0}.py-\\[3px\\]{padding-block:3px}.py-\\[5px\\]{padding-block:5px}.py-\\[6px\\]{padding-block:6px}.py-\\[8px\\]{padding-block:8px}.py-\\[12px\\]{padding-block:12px}.py-\\[16px\\]{padding-block:16px}.py-\\[20px\\]{padding-block:20px}.\\!pt-0{padding-top:calc(var(--spacing)*0)!important}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-12{padding-top:calc(var(--spacing)*12)}.pt-\\[68px\\]{padding-top:68px}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-\\[32px\\]{padding-bottom:32px}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-\\[8px\\]{padding-left:8px}.pl-\\[12px\\]{padding-left:12px}.pl-\\[20px\\]{padding-left:20px}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.indent-\\[16px\\]{text-indent:16px}.align-middle{vertical-align:middle}.font-\\[\\'Lato\\'\\]{font-family:Lato}.font-family{font-family:var(--font-family)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-md{font-size:var(--text-md)}.\\!text-\\[14px\\]{font-size:14px!important}.text-\\[10px\\]{font-size:10px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\]{font-size:16px}.text-\\[16px\\]\\!{font-size:16px!important}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.text-\\[32px\\]{font-size:32px}.text-\\[50px\\]{font-size:50px}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-\\[1\\]{--tw-leading:1;line-height:1}.leading-\\[14px\\]{--tw-leading:14px;line-height:14px}.leading-\\[18px\\]{--tw-leading:18px;line-height:18px}.leading-\\[140\\%\\]{--tw-leading:140%;line-height:140%}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-bold\\!{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)!important}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\\[0px\\]{--tw-tracking:0px;letter-spacing:0}.text-balance{text-wrap:balance}.text-nowrap{text-wrap:nowrap}.text-wrap{text-wrap:wrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.\\!text-primary-200{color:var(--color-primary-200)!important}.\\!text-success-300{color:var(--color-success-300)!important}.text-\\[\\#000000\\]{color:#000}.text-\\[\\#373739\\]{color:#373739}.text-\\[\\#737373\\]{color:#737373}.text-\\[\\#ff5b49\\]{color:#ff5b49}.text-\\[var\\(--color-surface-50\\)\\]{color:var(--color-surface-50)}.text-\\[var\\(--primary-200\\)\\]{color:var(--primary-200)}.text-\\[var\\(--primary-1100\\)\\]{color:var(--primary-1100)}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-current{color:currentColor}.text-danger-300{color:var(--color-danger-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-primary-50{color:var(--color-primary-50)}.text-primary-100{color:var(--color-primary-100)}.text-primary-200{color:var(--color-primary-200)}.text-red-500{color:var(--color-red-500)}.text-success-300{color:var(--color-success-300)}.text-surface-50{color:var(--color-surface-50)}.text-surface-300{color:var(--color-surface-300)}.text-white{color:var(--color-white)}.text-white\\!{color:var(--color-white)!important}.text-yellow-700{color:var(--color-yellow-700)}.text-zinc-700{color:var(--color-zinc-700)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-100{opacity:1}.opacity-100\\!{opacity:1!important}.\\!shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0px 0px 4px var(--tw-shadow-color,#00000029);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0px 3.25px 6.5px var(--tw-shadow-color,#00000029);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{box-shadow:0 0 4px #00000029}.shadow-sm{box-shadow:0 3.25px 6.5px #00000029}.outline-hidden{outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.outline-black{outline-color:var(--color-black)}.outline-transparent{outline-color:#0000}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow-none{--tw-drop-shadow: ;filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow-sm{--tw-drop-shadow:drop-shadow(var(--drop-shadow-sm));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.delay-100{transition-delay:.1s}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-250{--tw-duration:.25s;transition-duration:.25s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-750{--tw-duration:.75s;transition-duration:.75s}.duration-1000{--tw-duration:1s;transition-duration:1s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.\\!outline-none{--tw-outline-style:none;outline-style:none!important}.delay-100{animation-delay:.1s}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.fade-in{--tw-enter-opacity:0}.paused{animation-play-state:paused}.group-data-\\[disabled\\=true\\]\\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\\[disabled\\=true\\]\\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.peer-checked\\:bg-blue-600:is(:where(.peer):checked~*){background-color:var(--color-blue-600)}.peer-focus\\:ring-4:is(:where(.peer):focus~*){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.peer-focus\\:ring-blue-300:is(:where(.peer):focus~*){--tw-ring-color:var(--color-blue-300)}.peer-focus\\:outline-none:is(:where(.peer):focus~*){--tw-outline-style:none;outline-style:none}.peer-disabled\\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.placeholder\\:text-\\[14px\\]::placeholder{font-size:14px}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:start-\\[2px\\]:after{content:var(--tw-content);inset-inline-start:2px}.after\\:top-\\[2px\\]:after{content:var(--tw-content);top:2px}.after\\:h-5:after{content:var(--tw-content);height:calc(var(--spacing)*5)}.after\\:w-5:after{content:var(--tw-content);width:calc(var(--spacing)*5)}.after\\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\\:border:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:1px}.after\\:border-gray-300:after{content:var(--tw-content);border-color:var(--color-gray-300)}.after\\:bg-white:after{content:var(--tw-content);background-color:var(--color-white)}.after\\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.after\\:content-\\[\\'\\'\\]:after{--tw-content:"";content:var(--tw-content)}.peer-checked\\:after\\:translate-x-full:is(:where(.peer):checked~*):after{content:var(--tw-content);--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.peer-checked\\:after\\:border-white:is(:where(.peer):checked~*):after{content:var(--tw-content);border-color:var(--color-white)}@media (hover:hover){.hover\\:scale-90:hover{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:\\!bg-brand-200:hover{background-color:var(--color-brand-200)!important}.hover\\:bg-black:hover{background-color:var(--color-black)}.hover\\:bg-brand-200:hover{background-color:var(--color-brand-200)}.hover\\:bg-brand-200\\!:hover{background-color:var(--color-brand-200)!important}.hover\\:bg-brand-400\\!:hover{background-color:var(--color-brand-400)!important}.hover\\:bg-surface-200:hover{background-color:var(--color-surface-200)}.hover\\:text-danger-300:hover{color:var(--color-danger-300)}.hover\\:text-primary-100:hover{color:var(--color-primary-100)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:\\!underline:hover{text-decoration-line:underline!important}.hover\\:no-underline:hover{text-decoration-line:none}.hover\\:no-underline\\!:hover{text-decoration-line:none!important}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-70:hover{opacity:.7}.hover\\:opacity-100:hover{opacity:1}.hover\\:outline-black:hover{outline-color:var(--color-black)}}.focus\\:border-\\[\\#737373\\]:focus{border-color:#737373}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:\\!bg-brand-300:active{background-color:var(--color-brand-300)!important}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal]{height:1px}.data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical]{width:1px}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value]{display:flex}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\\[state\\=active\\]\\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed]{animation:accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))ease-out}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)}.data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=closed\\]\\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\\[state\\=closed\\]\\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\\[state\\=closed\\]\\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\\[state\\=closed\\]\\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open]{animation:accordion-down var(--tw-animation-duration,var(--tw-duration,.2s))ease-out}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)}.data-\\[state\\=open\\]\\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[state\\=open\\]\\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\\[state\\=open\\]\\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\\[state\\=open\\]\\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\\[state\\=open\\]\\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}@media (width>=40rem){.sm\\:max-w-sm{max-width:var(--container-sm)}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}:where(.sm\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius-lg)}.sm\\:pl-\\[6px\\]{padding-left:6px}.sm\\:text-left{text-align:left}}@media (width>=48rem){.md\\:block{display:block}.md\\:flex{display:flex}.md\\:aspect-square{aspect-ratio:1}.md\\:min-h-\\[36px\\]{min-height:36px}.md\\:w-1\\/2{width:50%}.md\\:max-w-\\[200px\\]{max-width:200px}.md\\:min-w-\\[350px\\]{min-width:350px}.md\\:min-w-\\[600px\\]{min-width:600px}.md\\:gap-6{gap:calc(var(--spacing)*6)}.md\\:px-4{padding-inline:calc(var(--spacing)*4)}.md\\:px-\\[28px_32px_32px\\]{padding-inline:28px 32px 32px}.md\\:py-8{padding-block:calc(var(--spacing)*8)}.md\\:pl-\\[12px\\]{padding-left:12px}.md\\:text-\\[14px\\]{font-size:14px}}.rtl\\:peer-checked\\:after\\:-translate-x-full:where(:dir(rtl),[dir=rtl],[dir=rtl] *):is(:where(.peer):checked~*):after{content:var(--tw-content);--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}@media (prefers-color-scheme:dark){.dark\\:border-gray-600{border-color:var(--color-gray-600)}.dark\\:bg-gray-700{background-color:var(--color-gray-700)}.dark\\:text-gray-300{color:var(--color-gray-300)}.dark\\:peer-checked\\:bg-blue-600:is(:where(.peer):checked~*){background-color:var(--color-blue-600)}.dark\\:peer-focus\\:ring-blue-800:is(:where(.peer):focus~*){--tw-ring-color:var(--color-blue-800)}}.\\[\\&_\\[role\\=slider\\]\\]\\:h-4 [role=slider]{height:calc(var(--spacing)*4)}.\\[\\&_\\[role\\=slider\\]\\]\\:w-4 [role=slider]{width:calc(var(--spacing)*4)}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&\\:\\:-webkit-inner-spin-button\\]\\:m-0::-webkit-inner-spin-button{margin:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-inner-spin-button\\]\\:appearance-none::-webkit-inner-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}.\\[\\&\\:\\:-webkit-outer-spin-button\\]\\:m-0::-webkit-outer-spin-button{margin:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-outer-spin-button\\]\\:appearance-none::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}:is(.\\*\\:\\[span\\]\\:last\\:flex>*):is(span):last-child{display:flex}:is(.\\*\\:\\[span\\]\\:last\\:items-center>*):is(span):last-child{align-items:center}:is(.\\*\\:\\[span\\]\\:last\\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg{rotate:180deg}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:host{--spacing:4px!important;--text-xs:12px!important;--text-sm:14px!important;--text-base:16px!important;--text-lg:18px!important;--text-xl:20px!important;--text-2xl:24px!important;--text-3xl:30px!important;--text-4xl:36px!important;--text-5xl:48px!important;--text-6xl:60px!important;--text-7xl:72px!important;--text-8xl:96px!important;--text-9xl:128px!important;--radius-none:0px!important;--radius-xs:2px!important;--radius-sm:2px!important;--radius-md:6px!important;--radius-lg:8px!important;--radius-xl:12px!important;--radius-2xl:16px!important;--radius-3xl:24px!important;--radius-full:9999px!important;--breakpoint-sm:640px!important;--breakpoint-md:768px!important;--breakpoint-lg:1024px!important;--breakpoint-xl:1280px!important;--breakpoint-2xl:1536px!important;--container-xs:320px!important;--container-sm:384px!important;--container-md:448px!important;--container-lg:512px!important;--container-xl:576px!important;--container-2xl:672px!important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.shapper-flower{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 49.64C100 56.04 94.359 61.336 92.023 66.92C89.605 72.72 89.75 80.376 85.358 84.744C80.967 89.112 73.231 88.96 67.405 91.36C61.765 93.68 56.47 99.28 50 99.28C43.53 99.28 38.219 93.68 32.595 91.36C26.753 88.96 19.041 89.104 14.649 84.744C10.258 80.384 10.395 72.704 7.977 66.92C5.641 61.336 0 56.056 0 49.64C0 43.224 5.641 37.944 7.977 32.36C10.395 26.56 10.258 18.904 14.649 14.536C19.041 10.168 26.736 10.32 32.595 7.92C38.235 5.6 43.537 0 50 0C56.462 0 61.789 5.6 67.405 7.92C73.247 10.32 80.967 10.176 85.358 14.536C89.75 18.896 89.605 26.576 92.023 32.36C92.915 37.944 100 43.216 100 49.64Z' fill='%23FFF'%3E%3C/path%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 49.64C100 56.04 94.359 61.336 92.023 66.92C89.605 72.72 89.75 80.376 85.358 84.744C80.967 89.112 73.231 88.96 67.405 91.36C61.765 93.68 56.47 99.28 50 99.28C43.53 99.28 38.219 93.68 32.595 91.36C26.753 88.96 19.041 89.104 14.649 84.744C10.258 80.384 10.395 72.704 7.977 66.92C5.641 61.336 0 56.056 0 49.64C0 43.224 5.641 37.944 7.977 32.36C10.395 26.56 10.258 18.904 14.649 14.536C19.041 10.168 26.736 10.32 32.595 7.92C38.235 5.6 43.537 0 50 0C56.462 0 61.789 5.6 67.405 7.92C73.247 10.32 80.967 10.176 85.358 14.536C89.75 18.896 89.605 26.576 92.023 32.36C92.915 37.944 100 43.216 100 49.64Z' fill='%23FFF'%3E%3C/path%3E%3C/svg%3E");-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.glass-gradient{-webkit-backdrop-filter:blur(21px);background:radial-gradient(231% 135.8% at .9% 2.98%,#00000029,#00000029)}.shadow-xs{box-shadow:0 0 5.25px #00000014}.w-fade-in{animation:.3s ease-in-out fadeIn}.w-fade-in-with-delay{opacity:0;animation:.3s ease-in-out forwards fadeIn}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slide-in-from-bottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slide-out-to-bottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes slide-in-from-top{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes slide-out-to-top{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes slide-in-from-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slide-out-to-left{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes slide-in-from-left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes slide-out-to-right{0%{transform:translate(0)}to{transform:translate(100%)}}[data-state=open][data-slot=sheet-content][data-side=bottom]{animation:.5s ease-out slide-in-from-bottom}[data-state=closed][data-slot=sheet-content][data-side=bottom]{animation:.3s ease-in slide-out-to-bottom}[data-state=open][data-slot=sheet-content][data-side=top]{animation:.5s ease-out slide-in-from-top}[data-state=closed][data-slot=sheet-content][data-side=top]{animation:.3s ease-in slide-out-to-top}[data-state=open][data-slot=sheet-content][data-side=right]{animation:.5s ease-out slide-in-from-right}[data-state=closed][data-slot=sheet-content][data-side=right]{animation:.3s ease-in slide-out-to-left}[data-state=open][data-slot=sheet-content][data-side=left]{animation:.5s ease-out slide-in-from-left}[data-state=closed][data-slot=sheet-content][data-side=left]{animation:.3s ease-in slide-out-to-right}.toast-info{background-color:#e9effc;border:1px solid #3471f7;border-radius:4px;padding:4px 12px;font-size:12px}.toast-error{background-color:snow;border:1px solid #ff1900;border-radius:4px;padding:4px 12px;font-size:12px}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,auto)))}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,auto)))}to{height:0}}`;function _1(){return U("style",{dangerouslySetInnerHTML:{__html:v1}})}class pr extends HTMLElement{constructor(){super(...arguments);w(this,"_suppressDisconnectEvent",!1)}onInit(r){}disconnectedCallback(){this._suppressDisconnectEvent||this.dispatchEvent(new CustomEvent(Ht.widdeCustomElementAnchorDisconnected,{bubbles:!0,detail:{element:this}}))}connectedCallback(){if(md.finishLoadTimeTracking(this),this.style.display!=="none")return this.render();const r=new MutationObserver(()=>{this.style.display!=="none"&&(this.render(),r.disconnect())});r.observe(this,{attributes:!0})}removeSafely(){this._suppressDisconnectEvent=!0,this.remove()}render(){const r=this.attachShadow({mode:"open"}),n=document.createElement("span");r.appendChild(n);const o=document.createElement("style");n.appendChild(o);const i=document.createElement("span");n.appendChild(i);const a=this.getAttributeNames().map(c=>({[c]:this.getAttribute(c)||""})).reduce((c,l)=>({...c,...l}),{});this.onInit(a),zt(U(u1,{target:o,children:[U(b1,{}),U(_1,{}),this.app(a)]}),n)}}class ye extends pr{onInit(){kn(E.WebComponentTags.FULLSCREEN,{})}}const ht=class ht{constructor(){}static getInstance(){return ht.instance||(ht.instance=new ht),ht.instance}setUserAttribute(e){Ww({id:e==null?void 0:e.uid,email:e==null?void 0:e.email,username:e==null?void 0:e.name})}captureException(e,r){mo(n=>{var s,a;const o=this.determineLevel(e);n.setLevel(o),n.setContext("Error Info",{name:e.name,message:e.message,type:e.constructor.name}),n.setContext("Environment",{url:window.location.href,userAgent:navigator.userAgent,timestamp:new Date().toISOString()});const i=e;i!=null&&i.config&&n.setContext("HTTP Request",{url:i.config.url,method:i.config.method,status:(s=i.response)==null?void 0:s.status,statusText:(a=i.response)==null?void 0:a.statusText}),e.stack&&n.setExtra("stack",e.stack),r&&n.setContext("Additional Context",r),Ju(e)})}determineLevel(e){var n;const r=e;if((n=r==null?void 0:r.response)!=null&&n.status){const o=r.response.status;return o>=500?"fatal":o>=400?"error":o>=300?"warning":"info"}return(r==null?void 0:r.code)==="NETWORK_ERROR"||(r==null?void 0:r.code)==="ECONNABORTED"?"fatal":(r==null?void 0:r.code)==="TIMEOUT"?"warning":e.name==="TypeError"||e.name==="ReferenceError"?"fatal":(e.name==="SyntaxError","error")}};w(ht,"instance");let is=ht;class Jp extends he{constructor(){super(...arguments);w(this,"state",{hasError:!1})}static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r,n){console.error("Uncaught error:",r,n),is.getInstance().captureException(r,{errorInfo:n})}render(){return this.state.hasError?null:this.props.children}}const S1=z(()=>Y(()=>import("./CDNCollectionView.HxF9gCVv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),x1=({children:t,fallback:e=null})=>U(Jp,{children:U(vt,{fallback:e,children:t})});class E1 extends ye{onInit(){}app(e){const{"collection-app-id":r,domain:n}=e;return!r||!n?null:U(x1,{children:U(S1,{collectionAppId:r,domain:n})})}}const Yp=z(()=>Y(()=>import("./FloatingView.DCAfxmrm.js"),__vite__mapDeps([24,25,10,5,26,27,28,13,7,29,15,4,30,31,11]))),Xp=z(()=>Y(()=>import("./ProHighlightsView.CIxyMJI6.js"),__vite__mapDeps([32,10,5,26,27,28,13,7,29,15,4,30,31,11,33,25]))),C1=z(()=>Y(()=>import("./ProHighlightsViewTwo.ogLNaWb6.js"),__vite__mapDeps([34,10,5,26,27,28,13,7,29,15,4,30,31,11,33,25]))),k1=z(()=>Y(()=>import("./ProHighlightsViewThree.DPvTNX6v.js"),__vite__mapDeps([35,10,5,26,27,28,13,7,29,15,4,30,31,11,33,25]))),T1=z(()=>Y(()=>import("./CarouselView.DaWCKi7Q.js"),__vite__mapDeps([36,37,27,28,13,14,5,15,4,38,39,40,3,41,18,42,29,7,31,43,16,6,8,9,44,45,25,46,47,10]))),I1=z(()=>Y(()=>import("./CarouselTwoView.B6fN-Xfi.js"),__vite__mapDeps([48,37,27,28,13,14,5,15,4,38,39,40,3,41,18,42,29,7,31,43,16,6,8,9,44,45,25,46,47,10]))),P1=z(()=>Y(()=>import("./PreviewView.ChG-6rmU.js"),[])),U1=z(()=>Y(()=>import("./index.DSBUMBTu.js"),__vite__mapDeps([49,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,1]))),O1=z(()=>Y(()=>import("./index.DZpytfJQ.js"),__vite__mapDeps([50,30,31,28,11,4]))),R1=z(()=>Y(()=>import("./index.CKEtkY-O.js"),__vite__mapDeps([51,29,15,4,16,45,18,9,52,19,17,53,41,54]))),A1=z(()=>Y(()=>import("./FeedView.DbN0VU-y.js"),__vite__mapDeps([55,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,28,56,25,1]))),D1=z(()=>Y(()=>import("./ExplorerView.D4plPUY5.js"),__vite__mapDeps([57,56,46,43,16,6,7,8,9,3,38,13,40,44,45,18,25,47,42,1]))),L1=z(()=>Y(()=>import("./ExplorerPreviewView.C0vqpLPt.js"),__vite__mapDeps([58,46,31,28,8]))),B1=z(()=>Y(()=>import("./WiddePositionPickerMenu.BbX2Pg-O.js"),__vite__mapDeps([59,47,9,45,18,60,53,19,41,38,13,54,42]))),X=({children:t,fallback:e=null})=>U(Jp,{children:U(vt,{fallback:e,children:t})});class Qp extends pr{app(){return U(X,{children:U(P1,{})})}}class Zp extends ye{app(){const e=ne.getInstance().getCurrentValue();return e?U(X,{children:U(T1,{token:e})}):null}}class ef extends ye{app(){const e=ne.getInstance().getCurrentValue();return e?U(X,{children:U(I1,{token:e})}):null}}class tf extends ye{app(){const e=ne.getInstance().getCurrentValue();return e?U(X,{children:U(Yp,{token:e})}):null}}class rf extends ye{app(){const e=ne.getInstance().getCurrentValue();return e?U(X,{children:U(Xp,{webcomponent:E.WebComponentTags.PRO_PRODUCTS_HIGHLIGHTS,token:e})}):null}}class nf extends ye{app(){const e=ne.getInstance().getCurrentValue();return e?U(X,{children:U(Xp,{webcomponent:E.WebComponentTags.PRO_HOME_HIGHLIGHTS,token:e})}):null}}class of extends ye{app(){const e=ne.getInstance().getCurrentValue();return e?U(X,{children:U(C1,{webcomponent:E.WebComponentTags.PRO_HIGHLIGHTS_TWO,token:e})}):null}}class sf extends ye{app(){const e=ne.getInstance().getCurrentValue();return e?U(X,{children:U(k1,{webcomponent:E.WebComponentTags.PRO_HIGHLIGHTS_THREE,token:e})}):null}}class af extends pr{app(){return U(X,{children:U(R1,{})})}}class cf extends pr{app(){return ne.getInstance().getCurrentValue()?U(X,{children:U(U1,{})}):null}}class N1 extends ye{app(){const e=ne.getInstance().getCurrentValue();return e?U(X,{children:U(A1,{token:e})}):null}}class F1 extends ye{app(){const e=ne.getInstance().getCurrentValue();return e?U(X,{children:U(D1,{token:e})}):null}}class M1 extends ye{app(){const e=ne.getInstance().getCurrentValue();return e?U(X,{children:U(L1,{token:e})}):null}}class $1 extends pr{app(){return U(X,{children:U(O1,{})})}}class H1 extends ye{app(){const e=ne.getInstance().getCurrentValue();return e?U(X,{children:U(Yp,{token:e})}):null}}class lf extends pr{app(){return U(X,{children:U(B1,{})})}}const To={[E.WebComponentTags.WIDDE_FLOATING_BLOCK]:H1,[E.WebComponentTags.WIDDE_FEED_BLOCK]:N1,[E.WebComponentTags.PRO_PRODUCTS_HIGHLIGHTS]:rf,[E.WebComponentTags.PRO_HOME_HIGHLIGHTS]:nf,[E.WebComponentTags.PRO_HIGHLIGHTS_TWO]:of,[E.WebComponentTags.PRO_HIGHLIGHTS_THREE]:sf,[E.WebComponentTags.STORY_FLOATING]:tf,[E.WebComponentTags.FULLSCREEN]:cf,[E.WebComponentTags.CONFIGURATION_PREVIEW]:$1,[E.WebComponentTags.BLOCK_CONFIGURATION]:af,[E.WebComponentTags.PRO_CAROUSEL]:Zp,[E.WebComponentTags.PRO_CAROUSEL_TWO]:ef,[E.WebComponentTags.WIDDE_PREVIEW]:Qp,[E.WebComponentTags.WIDDE_EXPLORER]:F1,[E.WebComponentTags.WIDDE_EXPLORER_PREVIEW]:M1,[E.WebComponentTags.WIDDE_POSITION_PICKER_MENU]:lf,[E.WebComponentTags.CDN_COLLECTION]:E1};function W1(){Object.entries(To).forEach(([t,e])=>{try{customElements.get(t)||customElements.define(t,e)}catch(r){console.log(`Erro ao registrar web component ${t}:`,r)}})}function gn(t){const e=To[t];if(e&&!customElements.get(t))try{customElements.define(t,e)}catch(r){console.log(`Erro ao registrar web component ${t}:`,r)}}function uf(){const t=Object.keys(To),e=new Set,r=E.WebComponentTags.FULLSCREEN;gn(r),e.add(r);const n=s=>{if(s.nodeType===Node.ELEMENT_NODE){const a=s,c=a.tagName.toLowerCase();t.includes(c)&&!e.has(c)&&(gn(c),e.add(c)),a.querySelectorAll("*").forEach(l=>{const d=l.tagName.toLowerCase();t.includes(d)&&!e.has(d)&&(gn(d),e.add(d))})}};t.forEach(s=>{document.querySelectorAll(s).length>0&&!e.has(s)&&(gn(s),e.add(s))});const o=new MutationObserver(s=>{document.visibilityState!=="hidden"&&(s.forEach(a=>{a.addedNodes.forEach(c=>{n(c)})}),e.size===t.length&&o.disconnect())});o.observe(document.documentElement,{childList:!0,subtree:!0});const i=()=>{document.visibilityState==="hidden"&&o.disconnect()};return document.addEventListener("visibilitychange",i,{passive:!0}),()=>{o.disconnect(),document.removeEventListener("visibilitychange",i)}}const j1=Object.freeze(Object.defineProperty({__proto__:null,BlockConfigurationComponent:af,TAGS:To,WiddeFullScreenStory:cf,WiddePositionPickerMenu:lf,WiddePreview:Qp,WiddeProCarousel:Zp,WiddeProCarouselTwo:ef,WiddeProHighlights:nf,WiddeProHighlightsThree:sf,WiddeProHighlightsTwo:of,WiddeProProductHighligths:rf,WiddeStoryFloating:tf,registerWebComponents:W1,registerWebComponentsOnDemand:uf},Symbol.toStringTag,{value:"Module"})),mt=class mt{constructor(e){this.positionsGateway=e}static getInstance(e){return mt.instance||(mt.instance=new mt(e)),mt.instance}get gateway(){return this.positionsGateway}};w(mt,"instance");let ss=mt,ri=null;function V1(){if(!ri){const t=vs(),e=new Su(t);ri=ss.getInstance(e)}return ri}class Xr{isValidElement(e){if(["header","footer","body","html"].includes(e.tagName.toLowerCase()))return!1;const n=e.getBoundingClientRect();return!(n.height<32||n.width<32||n.height>window.innerHeight||e.tagName.toLowerCase().startsWith("widde"))}}class q1 extends Xr{constructor(e){super(),this.pageType=e}getType(){return"e-commerce-basics"}getElementByAddress(e){return e.type!=="e-commerce-basics"?null:e.element==="button"?this.findBuyButton():null}getElement(e){if(this.pageType!==Bn.PRODUCT)return null;const r=this.findButtonElement(e);if(!r||!r.textContent)return null;const n=r.textContent.trim().toLowerCase(),o=r.innerText.trim().toLowerCase();return["comprar","comprar agora","comprar com desconto","adicionar ao carrinho","adicionar a sacola","adicionar à sacola","adicionar carrinho","comprar item","eu quero","escolha a variação","incluir no carrinho","clique para comprar","add to cart"].some(a=>n.startsWith(a)||o.startsWith(a))?{element:r,address:{type:"e-commerce-basics",element:"button"}}:null}findBuyButton(){const e=["button","a",'input[type="submit"]'],r=[...document.body.querySelectorAll(e.join(","))];for(const n of r){const o=this.getElement(n);if(o)return o.element}return null}findButtonElement(e){const r=["button","a",'input[type="submit"]'];let n=e;for(;n;){if(r.some(i=>n.matches(i)))return n;if(!n.parentElement)return null;n=n.parentElement}return null}}class G1 extends Xr{constructor(e){super(),this.PARENT_DIV=e}getType(){return"address-n"}getElement(e){const n=this.validChildrens().find(i=>i.contains(e));if(!n)return null;const o=this.getChildrenAddress(n);return o?{element:n,address:o}:null}getElementByAddress(e){if(e.type!=="address-n")return null;const r=this.validChildrens().map(o=>({element:o,points:this.getPointsByAddress(o,e)}));r.sort((o,i)=>i.points-o.points);const n=r[0].element;return n||null}getChildrenAddress(e){if(!this.PARENT_DIV)return null;const r=this.validChildrens(),n=r.find(c=>c.contains(e));if(!n)return null;const o=r.indexOf(n),i=n.getBoundingClientRect(),s=this.PARENT_DIV.getBoundingClientRect(),a=i.top-s.top;return{type:"address-n","nth-child":o+1,roundTopPercent:Math.round(a/s.height*100),heightPercent:Math.round(i.height/s.height*100)}}getPointsByAddress(e,r){let n=0;const o=this.getChildrenAddress(e);return o&&(o["nth-child"]===r["nth-child"]&&(n+=5),Math.abs(o.roundTopPercent-r.roundTopPercent)<10&&(n+=3),Math.abs(o.heightPercent-r.heightPercent)<10&&(n+=2)),n}validChildrens(){if(!this.PARENT_DIV)return[];const e=this.PARENT_DIV.getBoundingClientRect().width;return Array.from(this.PARENT_DIV.children).filter(r=>{if(!this.isValidElement(r))return!1;const n=r.getBoundingClientRect();return n.width>=e*.3&&n.height>=32})}}class z1 extends Xr{constructor(r){super();w(this,"mainProductTitle",null);w(this,"mainProductImage",null);w(this,"titleValidTags",["h1","h2","h3","h4","h5","h6","p","span","div"]);this.service=r;const n=this.service.readAllProducts(),o=window.location.origin+window.location.pathname,i=n.find(s=>s.url==o);this.mainProductTitle=(i==null?void 0:i.title)||null,this.mainProductImage=(i==null?void 0:i.image)||null}getType(){return"product"}getElementByAddress(r){if(r.type!=="product")return null;if(r.prop==="title"){const n=[...document.body.querySelectorAll(this.titleValidTags.join(", "))].find(o=>this.compareTitle(o));return n||null}return r.prop==="image"?document.querySelector(`img[src="${this.mainProductImage}"]`):null}getElement(r){const n=this.byTitle(r);if(n)return n;const o=this.byImage(r);return o||null}byImage(r){if(!(r.tagName.toLowerCase()==="img"))return null;const o=r.src;return document.querySelectorAll(`img[src="${o}"]`).length>1?null:o===this.mainProductImage?{element:r,address:{type:"product",prop:"image"}}:null}compareTitle(r){var o;return r.innerHTML.trim().toLowerCase().trim()===((o=this.mainProductTitle)==null?void 0:o.trim().toLowerCase())}byTitle(r){return!this.mainProductTitle||!this.titleValidTags.includes(r.tagName.toLowerCase())?null:this.compareTitle(r)?{element:r,address:{type:"product",prop:"title"}}:null}}class K1 extends Xr{constructor(){super()}getType(){return"query-selector"}getElementByAddress(e){return e.type!=="query-selector"?null:document.querySelector(e.querySelector)}getElement(e){let r=e;for(;r;){const o=new J1(r).hasUniqueAnchor();if(o)return{element:r,address:{type:"query-selector",querySelector:o}};r=r.parentElement}return null}}class J1{constructor(e){this.element=e}hasUniqueAnchor(){if(!this.isValidElement())return null;const e=this.uniqueId(),r=this.uniqueClassName();return e?`#${e}`:r?`.${r}`:null}uniqueId(){return!this.element.id||!this.validClassOrId(this.element.id)||Y1(this.element.id)?null:this.element.id}validClassOrId(e){return!/\d/.test(e)}uniqueClassName(){const e=this.element.classList,r=Array.from(e).filter(n=>this.validClassOrId(n)&&!X1(n));return r.length>=1&&r[0]||null}isValidElement(){if(["header","footer","body","html"].includes(this.element.tagName.toLowerCase()))return!1;const n=this.element.getBoundingClientRect();return!(n.height<32||n.width<32||n.height>window.innerHeight)}}function Y1(t){return document.querySelectorAll(`#${t}`).length>1}function X1(t){try{return document.getElementsByClassName(t).length>1}catch{return!0}}class Q1 extends Xr{constructor(e){super(),this.pickers=e}getType(){return null}getElement(e){for(const r of this.pickers){const n=r.getElement(e);if(n)return n}return null}getElementByAddress(e){const r=this.pickers.find(o=>o.getType()===e.type);if(r)return r.getElementByAddress(e);const n=this.pickers.find(o=>o.getType()==="address-n");return n?n.getElementByAddress({...e,type:"address-n"}):null}}function df(t,e,r=!1){const n=[];return r||(n.push(new q1(e)),n.push(new z1(sa()))),n.push(new K1),t&&!r&&n.push(new G1(t)),new Q1(n)}function pf(){const t=ur(),e=t.getPageType();return e===Bn.HOME?Z1():e===Bn.PRODUCT?t.getProductDivElement():document.body}function Z1(){const t=document.body;if(Array.from(t.children).filter(o=>o.tagName.toLowerCase()==="div").length===0)return t;const r=ff(document.body);return r.getBoundingClientRect().height?r:t}function ff(t){const e=Array.from(t.children).filter(r=>eE(r)).map(r=>ff(r));return e.length===0?t:e[0]||t}function eE(t){var i;const e=t.tagName.toLowerCase()==="script"||t.tagName.toLowerCase()==="style"||t.tagName.toLowerCase()==="link"||t.tagName.toLowerCase()==="meta"||t.tagName.toLowerCase()==="title"||t.tagName.toLowerCase()==="head"||t.tagName.toLowerCase()==="header"||t.tagName.toLowerCase()==="footer"||t.tagName.toLowerCase()==="nav",r=t.getBoundingClientRect().height>2*window.innerHeight,o=t.getBoundingClientRect().top-(((i=t.offsetParent)==null?void 0:i.getBoundingClientRect().top)??0)<200;return!e&&r&&o}class hf{constructor(e,r){w(this,"blocks",[]);w(this,"retryConfig",{maxAttempts:{"query-selector":3,default:1},retryInterval:500,maxTimeout:1e4});this.anchorPicker=e,this.addElement=r}async onUrlReallyChange(e,r){this.clearBlocks();let o=(r||await this.fetchPositions()).filter(a=>{try{const c=Be.getPreviewUrl();let l=a==null?void 0:a.url;if(c&&!(e!=null&&e.url.includes("widde-position-picker"))&&(l=c.toString()),!l)return!0;const d=N.clearUrl(l),u=N.clearUrl((e==null?void 0:e.url)??"");return d===u}catch{return!1}});if(!(o!=null&&o.length))return{added:!1,blocks:[]};const i=this.processInitialPositions(o),s=await this.handleRetryQueue(i);return this.updateBlockVisibilityStatus(o,(s==null?void 0:s.map(a=>a.position))||[]),{added:this.blocks.length>0,blocks:this.blocks.map(a=>{var c;return(c=a==null?void 0:a.tagName)==null?void 0:c.toLowerCase()})}}async updateBlockVisibilityStatus(e,r){const o=e.filter(c=>!r.some(l=>(l==null?void 0:l.id)===(c==null?void 0:c.id))).map(c=>({webComponent:c.webcomponent,blockPositionId:(c==null?void 0:c.id)||"",isVisible:!0,invisibleReason:[]})),i=this.mapBlocksHiddenByCSS(o,e),s=r.map(c=>({webComponent:c.webcomponent,blockPositionId:(c==null?void 0:c.id)||"",isVisible:!1,invisibleReason:[J.InvisibleReason.NO_ADDRESS]})),a=[...i,...s];window.dispatchEvent(new CustomEvent(Ht.widdeCustomElementDidNotAppearNoAddress,{bubbles:!0,detail:a}))}mapBlocksHiddenByCSS(e,r){return e.map(o=>{const i=r.find(s=>s.id===o.blockPositionId);return i?{webComponent:o.webComponent,blockPositionId:(o==null?void 0:o.blockPositionId)||"",isVisible:this.isVisibleByCSS(i),invisibleReason:this.isVisibleByCSS(i)?[]:[J.InvisibleReason.CSS]}:null}).filter(o=>o!==null)}isVisibleByCSS(e){const r=document.querySelector(e.webcomponent);if(!r)return!1;const n=window.getComputedStyle(r);return!(n.display==="none"||n.visibility==="hidden"||n.opacity==="0")}clearBlocks(){this.blocks.forEach(e=>e.remove()),this.blocks=[]}async fetchPositions(){const e=ur().getPageType(),r=yp()?we.MOBILE:we.DESKTOP,n=new URLSearchParams(window.location.search).get(ee.WIDDE_VERSION)||ee.WIDDE_DEFAULT_VERSION;return new _s().execute(n,e,r,J.CreatedBy.API)}processInitialPositions(e){const r=[];return e.forEach(n=>{this.processPosition(n,r);const o=document.querySelector(n.webcomponent);o==null||o.addEventListener(Ht.widdeCustomElementAnchorDisconnected,()=>{const i=setTimeout(()=>{this.processPositionWhenBlockIsDisconnected(n),clearTimeout(i)},0)})}),r}async processPositionWhenBlockIsDisconnected(e){try{const r=document.querySelectorAll(e==null?void 0:e.webcomponent);if(r!=null&&r.length)return;const n=i=>{const s=this.anchorPicker.getElementByAddress(i);if(!s)throw new Error("Anchor not found");return s};if(!(e!=null&&e.address))return;const o=await ha.run(()=>n(e.address),5,100);if(!o){console.warn("[WIDDE] Could not find anchor after retries:",{webcomponent:e.webcomponent,address:e.address});return}this.createBlock(o,e)}catch(r){console.error("[WIDDE] Error in processPositionWhenBlockIsDisconnected:",{webcomponent:e.webcomponent,error:r})}}processPosition(e,r){try{if(!e.address)return;const n=this.anchorPicker.getElementByAddress(e.address);if(!n){this.handleFailedPosition(e,r);return}return this.createBlock(n,e),e}catch(n){console.warn("[WIDDE] Failed to process position:",{webcomponent:e.webcomponent,address:e.address,error:n}),this.handleFailedPosition(e,r);return}}handleFailedPosition(e,r){var i;const n=((i=r.find(s=>s.position.id===e.id))==null?void 0:i.attempts)??0;if(!e.address)return;const o=e.address.type==="query-selector"?this.retryConfig.maxAttempts["query-selector"]:this.retryConfig.maxAttempts.default;n{let n=null,o=null;const i=()=>{n&&clearInterval(n),o&&clearTimeout(o)};n=setInterval(()=>{if(e.length===0){i(),r();return}const a=e.shift();if(a)try{this.processPosition(a.position,e)}catch(c){console.error("[WIDDE] Error in retry queue:",c)}},this.retryConfig.retryInterval);const s=1e3*60*3;o=setTimeout(()=>{i(),console.warn("[WIDDE] Retry queue timeout reached. Remaining positions:",e.length),r(e)},s)})}}class ha{constructor(){}static run(e,r,n){return new Promise(o=>{try{const i=e();o(i)}catch{r>0?setTimeout(()=>{ha.run(e,r-1,n).then(o)},n):o(null)}})}}function tE(){const t=new window.URL(window.location.href),e=t.host,r=t.searchParams.get(ee.WIDDE_VERSION)||ee.WIDDE_DEFAULT_VERSION,n=t.searchParams.get(ee.WIDDE_TOKEN)||"",o=ur().getPageType(),i=!(r!=null&&r.length)||r==ee.WIDDE_DEFAULT_VERSION;return{host:e,version:r,token:n,pageType:o,isDefault:i}}function tC(t,e){const r=new hf(df(pf(),t),Jn),n=Be.getPreviewHref();return n?(n.searchParams.set("widde-position-picker","false"),r.onUrlReallyChange({isFromPushHistory:!1,url:n.href,origin:window.location.origin,params:new URLSearchParams(window.location.href)},e)):r.onUrlReallyChange({isFromPushHistory:!1,url:window.location.href,origin:window.location.origin,params:new URLSearchParams(window.location.href)},e)}const Ge={verifyAddedByUser:[E.WebComponentTags.PRO_PRODUCTS_HIGHLIGHTS,E.WebComponentTags.PRO_HOME_HIGHLIGHTS,E.WebComponentTags.PRO_HIGHLIGHTS_TWO,E.WebComponentTags.PRO_HIGHLIGHTS_THREE,E.WebComponentTags.PRO_CAROUSEL],floatingBlockingTags:[E.WebComponentTags.WIDDE_FEED_BLOCK],showBlockConfiguration:t=>[E.WebComponentTags.PRO_PRODUCTS_HIGHLIGHTS,E.WebComponentTags.PRO_HOME_HIGHLIGHTS,E.WebComponentTags.PRO_HIGHLIGHTS_TWO,E.WebComponentTags.PRO_HIGHLIGHTS_THREE,E.WebComponentTags.PRO_CAROUSEL].some(e=>t.includes(e)),existsPreview:[E.WebComponentTags.PRO_PRODUCTS_HIGHLIGHTS,E.WebComponentTags.PRO_HOME_HIGHLIGHTS,E.WebComponentTags.PRO_HIGHLIGHTS_TWO,E.WebComponentTags.PRO_HIGHLIGHTS_THREE,E.WebComponentTags.PRO_CAROUSEL,E.WebComponentTags.WIDDE_FLOATING_BLOCK],previewBlockFromURL:t=>{if(!t)return!1;const e=t.params.get("widde-preview-block");return e||null},fixedBlockWidthFromURL:t=>{try{if(!t)return null;const e=t.params.get("widde-fixed-block-width");return e?Number(e):null}catch{return null}}};class rE{static setupPreviewMode(e){var i;const r={isOn:!1,webcomponent:null};if(!e)return r;const n=Ge.previewBlockFromURL(e);if(!n)return r;const o=(i=Ge.existsPreview.map(s=>document.querySelector(s)))==null?void 0:i.filter(s=>{var a;return!!s&&((a=s==null?void 0:s.tagName)==null?void 0:a.toLowerCase())!==n});return o&&o.forEach(s=>s==null?void 0:s.remove()),{isOn:!0,webcomponent:n}}static blockStylePreviewApply(e,r){let n=e;const o=Ge.fixedBlockWidthFromURL(r),i=Ge.previewBlockFromURL(r);if(o){const s=e.shapper.rounded,a=e.block.mobile.size,c=o*s/a;n.shapper.rounded=c,n.block.mobile.size=o,n.block.desktop.size=o}return i&&(n.block.desktop.marginTop=0,n.block.desktop.marginBottom=0,n.block.mobile.marginTop=0,n.block.mobile.marginBottom=0),n}}class nE{static execute(){var r;return(r=Ge.verifyAddedByUser.map(n=>{var o,i;return(i=(o=document.querySelector(n))==null?void 0:o.tagName)==null?void 0:i.toLowerCase()}))==null?void 0:r.filter(Boolean)}}class oE{static execute(){return Ge.floatingBlockingTags.map(n=>{var o,i;return(i=(o=document.querySelector(n))==null?void 0:o.tagName)==null?void 0:i.toLowerCase()}).some(Boolean)}}class iE{constructor(e,r,n,o,i,s,a){w(this,"subscription",null);w(this,"lastValue",null);this.url=e,this.isMobile=r,this.floatingController=n,this.blocksController=o,this.blockConfigurationController=i,this.feedController=s,this.saveAddedByUserUseCase=a}execute(){this.subscription=ch([this.url,this.isMobile]).subscribe(([e,r])=>{const n=this.toValue(e,r);n!==this.lastValue&&(this.lastValue=n,this.onUrlReallyChange(e,r))})}onDestroy(){this.subscription&&this.subscription.unsubscribe()}toValue(e,r){return JSON.stringify({url:e==null?void 0:e.url,isMobile:r})}async onUrlReallyChange(e,r){if(!e)return;e!=null&&e.isFromPushHistory&&(this.floatingController.onUrlReallyChange(null),await sE(500));const n=this.removeParamsUrl((e==null?void 0:e.url)??"");if(e.url=n,(await this.feedController.onUrlReallyChange(e)).added){this.floatingController.onUrlReallyChange(null),this.blocksController.onUrlReallyChange(null),await this.blockConfigurationController.onUrlReallyChange(null);return}const s=rE.setupPreviewMode(e),{version:a,pageType:c}=tE(),d=(await new _s().execute(a,c,r?J.DeviceType.MOBILE:J.DeviceType.DESKTOP,J.CreatedBy.API)).map(y=>y.webcomponent),u=this.hasFloatingBlocking(d)||s.isOn&&s.webcomponent!==E.WebComponentTags.WIDDE_FLOATING_BLOCK,f=oE.execute();u||f?this.floatingController.onUrlReallyChange(null):this.floatingController.onUrlReallyChange(e);const p=nE.execute(),h=[...d,...p],g=await this.blockConfigurationController.onUrlReallyChange(e,h);this.blocksController.onUrlReallyChange(e),!s.isOn&&!(g!=null&&g.added)&&await this.saveAddedByUserUseCase.execute(e.origin,r,p)}hasFloatingBlocking(e){return Ge.floatingBlockingTags.some(o=>e.includes(o))}removeParamsUrl(e){const r=new window.URL(e);if(/\/video-commerce\/?$/.test(r.pathname)){const o=r.pathname.indexOf("/video-commerce");return r.origin+r.pathname.substring(0,o+15)}return r.origin+r.pathname}}function sE(t){return new Promise(e=>setTimeout(e,t))}function kl(t,e){const r=new Set;for(const n of t)e.has(n)||r.add(n);return r}class aE{constructor(e,r){this.blockManager=e,this.scraperManager=r}async execute(e,r,n){const o=this.scraperManager.getPageType();return o&&this.notifyApiFromAddedBlocks(o,e,n,r),n}async notifyApiFromAddedBlocks(e,r,n,o){const i=new Set((await this.blockManager.gateway.getBlockPositionsAddedByUser(e,o?we.MOBILE:we.DESKTOP)).map(a=>a.webcomponent)),s=new Set(n);!kl(i,s).size&&!kl(s,i).size||this.blockManager.gateway.createBlockPositionAddedByUser(r,{page:e,device:o?J.DeviceType.MOBILE:J.DeviceType.DESKTOP,webcomponents:n})}}var as;(t=>{(e=>{e.PRODUCTS_HIGHLIGHTS="widde-pro-products-highlights",e.HIGHLIGHTS="widde-pro-highlights",e.HIGHLIGHTS_TWO="widde-pro-highlights-two",e.HIGHLIGHTS_THREE="widde-pro-highlights-three",e.CAROUSEL="widde-pro-carousel",e.CAROUSEL_TWO="widde-pro-carousel-two",e.EXPLORER_PREVIEW="widde-pro-explorer-preview"})(t.WebComponentType||(t.WebComponentType={}))})(as||(as={}));class cE{constructor(e){w(this,"blocks",[]);this.addElement=e}async onUrlReallyChange(e,r){this.clearBlocks();const n={added:!1,blocks:[]};try{const o=e==null?void 0:e.params.get("wEditSession");if(!o||!Ge.showBlockConfiguration(r||[])||!(e!=null&&e.url))return n;const s=e==null?void 0:e.params.get("widde-webcomponent-editor");if(o&&!s)throw new Error("Bloco não encontrado");if(o&&!Object.values(as.WebComponentType).includes(s))throw new Error("Bloco inválido");return await this.createBlock(E.WebComponentTags.BLOCK_CONFIGURATION),{added:this.blocks.length>0,blocks:this.blocks.map(a=>{var c;return(c=a==null?void 0:a.tagName)==null?void 0:c.toLowerCase()})}}catch(o){return console.error(o),n}}clearBlocks(){this.blocks.forEach(e=>e.remove()),this.blocks=[]}createBlock(e){const r=this.addElement(e,{style:"display: flex;"});this.blocks.push(r)}}class lE{static bySelectors(e){let r=null;for(const n of e){const o=document.querySelector(n);if(o){r=o;break}}return r}}class uE{static getByRank(){const r=this.getByDensity().map(n=>({element:n,score:this.getScore(n)})).sort((n,o)=>o.score-n.score);return r.length>0?r[0].element:null}static getScore(e){const r=e.textContent||"",n=e.getElementsByTagName("a").length/Math.max(r.length,1);return r.length*(1-n)}static getByDensity(){return Array.from(document.getElementsByTagName("div")).filter(e=>{const r=e.closest("header")!==null,n=e.closest("footer")!==null;return!r&&!n}).filter(e=>{const{height:r}=e.getBoundingClientRect();return r>50})}}class dE{static execute(e){const r=ur(e),n=document.querySelector("#widde-video-commerce");if(n)return n;const o=r.getFeedAnchor(),i=lE.bySelectors(o);return i||uE.getByRank()}}class pE{constructor(e){w(this,"feedElement",null);this.elementsCreator=e}async onUrlReallyChange(e){if(this.feedElement&&(this.feedElement.remove(),this.feedElement=null),!e)return{added:!1,blocks:[]};if(this.VerifyIsFeedPage(e.url)){const n=dE.execute();return n&&(n.innerHTML="",n.style.padding="0px",n.style.margin="0 auto",this.feedElement=this.elementsCreator(E.WebComponentTags.WIDDE_FEED_BLOCK,{},{element:n,where:"inside"})),{added:!0,blocks:[E.WebComponentTags.WIDDE_FEED_BLOCK]}}return{added:!1,blocks:[]}}VerifyIsFeedPage(e){const r=new window.URL(e);return/\/video-commerce\/?$/.test(r.pathname)}}class fE{constructor(e,r){w(this,"floatingElement",null);this.elementsCreator=e,this.collectionService=r}async onUrlReallyChange(e){this.floatingElement&&(this.floatingElement.remove(),this.floatingElement=null);const r=new URLSearchParams(window.location.search);return e?(await this.collectionService.load({token:e,collectionViewType:zn.Story,loadStories:!0,webcomponent:E.WebComponentTags.WIDDE_FLOATING_BLOCK})&&!r.has(ee.WIDDE_HIDE_STORY)&&(this.floatingElement=this.elementsCreator(E.WebComponentTags.WIDDE_FLOATING_BLOCK,{})),{added:!0,blocks:[E.WebComponentTags.WIDDE_FLOATING_BLOCK]}):{added:!1,blocks:[]}}}async function hE(t,e){const r=pf(),n=new window.URL(window.location.href).searchParams;n.get(ee.WIDDE_POSITION_PICKER)&&n.get(ee.WIDDE_TOKEN)&&kn(E.WebComponentTags.WIDDE_POSITION_PICKER_MENU,{style:"display: flex;"});const o=ur(),i=V1(),s=o.getPageType(),a=[t,e,new fE(kn,cx()),new hf(df(r,s),Jn),new cE(Jn),new pE(kn),new aE(i,o)];new iE(...a).execute()}const Tl=new Bg;let Il=!1;async function mE(){if(window.______w_start_load_time=Date.now(),Il)return;Il=!0,jg(),Kv(),o(),nt("SetupRepository",new Fg(Tl)),nt("BlockPositionsGateway",new Su(vs())),nt("UpdateVisibilityStatusUseCase",new Dg),nt("GetBlockByIdUseCase",new Vg),nt("GetBlockByWebComponentUseCase",new Lg),nt("UpdateVisibilityStatusByWebComponentUseCase",new Ag),nt("UpdateVisibilityStatusService",gi.getInstance());const t=new $g,e=new Mg;if(t.listen(),e.listen(),!await Tl.getSetup().catch(()=>null))return;if(md.startLoadTimeTracking(),Ve.isCDNWiddeApp()){await Eh();return}if(oa.isIframeWithCartParam()){wi.getInstance().initialize();return}if(vh(),i()){r_();return}n();async function n(){Th(),Ih();const a=ne.getInstance().getCurrentUrl();sx().registerNavigation();const l=new re(d=>{d.next(window.innerWidth<768),window.addEventListener("resize",()=>{d.next(window.innerWidth<768)})});hE(a,l),a.subscribe(()=>{})}function o(){uf(),lx()}function i(){return Jt()("widde-verify-install")==="k1nca63719"}}mE();export{$d as $,qs as A,Lf as B,zn as C,_r as D,rE as E,eC as F,na as G,tx as H,Hg as I,we as J,Ud as K,tE as L,J as M,E as N,Bd as O,Be as P,df as Q,Ze as R,f_ as S,Le as T,N as U,pf as V,qe as W,ur as X,ee as Y,Jt as Z,lr as _,as as a,de as a0,tC as a1,Jr as a2,T as a3,ME as a4,Ks as a5,SE as a6,W as a7,oS as a8,DS as a9,FE as aA,zv as aB,cx as aC,WE as aD,jE as aE,__ as aF,YE as aG,p_ as aH,pn as aI,tl as aJ,Xs as aK,Wg as aL,vh as aM,XE as aN,Ve as aa,ZS as ab,kS as ac,wE as ad,to as ae,zp as af,wp as ag,he as ah,De as ai,Pv as aj,xe as ak,zi as al,Gs as am,mp as an,Zd as ao,Dd as ap,qg as aq,yi as ar,At as as,ae as at,ya as au,yE as av,Rn as aw,is as ax,We as ay,Og as az,Y as b,y1 as c,ar as d,ZE as e,ex as f,Js as g,QE as h,yp as i,$S as j,Ee as k,g1 as l,vt as m,Ld as n,NE as o,Jd as p,zs as q,yo as r,se as s,_n as t,U as u,vs as v,ne as w,wo as x,cr as y,z};