@lockerverse/react 0.2.228 → 0.2.230
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATIONS.md +30 -0
- package/README.md +7 -0
- package/dist/auction-item.js +1 -1
- package/dist/auction-item.js.map +1 -1
- package/dist/embed/chunks/auction-payment-view-OKQBWLYB.js +9 -0
- package/dist/embed/chunks/chunk-45NQLOLF.js +2 -0
- package/dist/embed/chunks/chunk-45NQLOLF.js.LEGAL.txt +51 -0
- package/dist/embed/chunks/chunk-6ZVB3IR2.js +2 -0
- package/dist/embed/chunks/chunk-6ZVB3IR2.js.LEGAL.txt +12 -0
- package/dist/embed/chunks/chunk-DCANE7XH.js +1 -0
- package/dist/embed/chunks/chunk-ZHBH4ZF6.js +1 -0
- package/dist/embed/chunks/lockerverse-auction-item-ZKKDIU3S.js +2 -0
- package/dist/embed/chunks/lockerverse-auction-item-ZKKDIU3S.js.LEGAL.txt +23 -0
- package/dist/embed/chunks/telemetry-6KTBIZ2M.js +6 -0
- package/dist/embed/chunks/telemetry-6KTBIZ2M.js.LEGAL.txt +1 -0
- package/dist/embed/lockerverse.js +2 -0
- package/dist/embed/runtime.js +11 -0
- package/dist/embed/runtime.js.LEGAL.txt +23 -0
- package/guides/auctions.md +1 -1
- package/guides/bookings.md +1 -1
- package/guides/browser-embed.md +125 -0
- package/guides/events.md +1 -1
- package/guides/integration.md +1 -1
- package/guides/payment-widgets.md +1 -1
- package/guides/signup.md +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as So,b as Mt,c as _r,d as Lr,e as at,f as Mr,g as Ht}from"./chunk-6ZVB3IR2.js";import{a as on,b as Br,l as Hr,m as Vr,n as Ur}from"./chunk-ZHBH4ZF6.js";import{L as Fr,a as N,b as ht,c as wr,d as Pr,e as _t,f as _n,g as Ar,h as Co,i as Ln,j as Or,l as Ir,m as Nr,n as yt,p as Lt,q as Dr,r as he,s as et,t as Ft,u as _e,v as bt,x as Bt}from"./chunk-45NQLOLF.js";import{a as Dn,b as gt,c as C}from"./chunk-DCANE7XH.js";var os=Dn(ns=>{"use strict";var Xt=N();function xu(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Su=typeof Object.is=="function"?Object.is:xu,Cu=Xt.useState,Tu=Xt.useEffect,ku=Xt.useLayoutEffect,wu=Xt.useDebugValue;function Pu(e,t){var n=t(),o=Cu({inst:{value:n,getSnapshot:t}}),r=o[0].inst,i=o[1];return ku(function(){r.value=n,r.getSnapshot=t,cr(r)&&i({inst:r})},[e,n,t]),Tu(function(){return cr(r)&&i({inst:r}),e(function(){cr(r)&&i({inst:r})})},[e]),wu(n),n}function cr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Su(e,n)}catch{return!0}}function Au(e,t){return t()}var Ou=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Au:Pu;ns.useSyncExternalStore=Xt.useSyncExternalStore!==void 0?Xt.useSyncExternalStore:Ou});var ar=Dn((Jm,rs)=>{"use strict";rs.exports=os()});var ss=Dn(is=>{"use strict";var oo=N(),Iu=ar();function Nu(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Du=typeof Object.is=="function"?Object.is:Nu,_u=Iu.useSyncExternalStore,Lu=oo.useRef,Mu=oo.useEffect,Fu=oo.useMemo,Bu=oo.useDebugValue;is.useSyncExternalStoreWithSelector=function(e,t,n,o,r){var i=Lu(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Fu(function(){function u(p){if(!c){if(c=!0,l=p,p=o(p),r!==void 0&&s.hasValue){var d=s.value;if(r(d,p))return f=d}return f=p}if(d=f,Du(l,p))return d;var h=o(p);return r!==void 0&&r(d,h)?(l=p,d):(l=p,f=h)}var c=!1,l,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,o,r]);var a=_u(e,i[0],i[1]);return Mu(function(){s.hasValue=!0,s.value=a},[a]),Bu(a),a}});var as=Dn((Zm,cs)=>{"use strict";cs.exports=ss()});var Ae=C(N(),1);var ho=C(N(),1);var st={};gt(st,{Backdrop:()=>ii,Close:()=>di,Description:()=>hi,Handle:()=>Cn,Popup:()=>Hs,Portal:()=>js,Root:()=>tc,Title:()=>ic,Trigger:()=>ac,Viewport:()=>oc,createHandle:()=>uc});var ri=C(N(),1);function Fc(e,t){return function(o,...r){let i=new URL(e);return i.searchParams.set("code",o.toString()),r.forEach(s=>i.searchParams.append("args[]",s)),`${t} error #${o}; visit ${i} for the full message.`}}var Bc=Fc("https://base-ui.com/production-error","Base UI"),ze=Bc;var rn=C(N(),1),Mn=rn.createContext(!1),To=rn.createContext(void 0);function Ie(e){let t=rn.useContext(To);if(e===!1&&t===void 0)throw new Error(ze(27));return t}var vt=C(N(),1);var $r=C(N(),1),Wr={};function Xe(e,t){let n=$r.useRef(Wr);return n.current===Wr&&(n.current=e(t)),n}function Vt(e,t,n,o){let r=Xe(jr).current;return Hc(r,e,t,n,o)&&Gr(r,[e,t,n,o]),r.callback}function zr(e){let t=Xe(jr).current;return Vc(t,e)&&Gr(t,e),t.callback}function jr(){return{callback:null,cleanup:null,refs:[]}}function Hc(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}function Vc(e,t){return e.refs.length!==t.length||e.refs.some((n,o)=>n!==t[o])}function Gr(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){let o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=i(n);typeof s=="function"&&(o[r]=s);break}case"object":{i.current=n;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=o[r];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var Kr=C(N(),1);var Yr=C(N(),1),Uc=parseInt(Yr.version,10);function Ut(e){return Uc>=e}function ko(e){if(!Kr.isValidElement(e))return null;let t=e,n=t.props;return(Ut(19)?n?.ref:t.ref)??null}function sn(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Wt(){}var wf=Object.freeze([]),ye=Object.freeze({});function qr(e,t){let n={};for(let o in e){let r=e[o];if(t?.hasOwnProperty(o)){let i=t[o](r);i!=null&&Object.assign(n,i);continue}r===!0?n[`data-${o.toLowerCase()}`]="":r&&(n[`data-${o.toLowerCase()}`]=r.toString())}return n}function Xr(e,t){return typeof e=="function"?e(t):e}function Jr(e,t){return typeof e=="function"?e(t):e}var wo={};function an(e,t,n,o,r){if(!n&&!o&&!r&&!e)return Fn(t);let i=Fn(e);return t&&(i=cn(i,t)),n&&(i=cn(i,n)),o&&(i=cn(i,o)),r&&(i=cn(i,r)),i}function Qr(e){if(e.length===0)return wo;if(e.length===1)return Fn(e[0]);let t=Fn(e[0]);for(let n=1;n<e.length;n+=1)t=cn(t,e[n]);return t}function Fn(e){return Po(e)?{...ei(e,wo)}:Wc(e)}function cn(e,t){return Po(t)?ei(t,e):$c(e,t)}function Wc(e){let t={...e};for(let n in t){let o=t[n];Zr(n,o)&&(t[n]=ti(o))}return t}function $c(e,t){if(!t)return e;for(let n in t){let o=t[n];switch(n){case"style":{e[n]=sn(e.style,o);break}case"className":{e[n]=Ao(e.className,o);break}default:Zr(n,o)?e[n]=zc(e[n],o):e[n]=o}}return e}function Zr(e,t){let n=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return n===111&&o===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function Po(e){return typeof e=="function"}function ei(e,t){return Po(e)?e(t):e??wo}function zc(e,t){return t?e?(...n)=>{let o=n[0];if(ni(o)){let i=o;un(i);let s=t(...n);return i.baseUIHandlerPrevented||e?.(...n),s}let r=t(...n);return e?.(...n),r}:ti(t):e}function ti(e){return e&&((...t)=>{let n=t[0];return ni(n)&&un(n),e(...t)})}function un(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Ao(e,t){return t?e?t+" "+e:t:e}function ni(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var Oo=C(N(),1);function Le(e,t,n={}){let o=t.render,r=jc(t,n);if(n.enabled===!1)return null;let i=n.state??ye;return Kc(e,o,r,i)}function jc(e,t={}){let{className:n,style:o,render:r}=e,{state:i=ye,ref:s,props:a,stateAttributesMapping:u,enabled:c=!0}=t,l=c?Xr(n,i):void 0,f=c?Jr(o,i):void 0,m=c?qr(i,u):ye,p=c&&a?Gc(a):void 0,d=c?sn(m,p)??{}:ye;return typeof document<"u"&&(c?Array.isArray(s)?d.ref=zr([d.ref,ko(r),...s]):d.ref=Vt(d.ref,ko(r),s):Vt(null,null)),c?(l!==void 0&&(d.className=Ao(d.className,l)),f!==void 0&&(d.style=sn(d.style,f)),d):ye}function Gc(e){return Array.isArray(e)?Qr(e):an(void 0,e)}var Yc=Symbol.for("react.lazy");function Kc(e,t,n,o){if(t){if(typeof t=="function")return t(n,o);let r=an(n,t.props);r.ref=n.ref;let i=t;return i?.$$typeof===Yc&&(i=vt.Children.toArray(t)[0]),vt.cloneElement(i,r)}if(e&&typeof e=="string")return qc(e,n);throw new Error(ze(8))}function qc(e,t){return e==="button"?(0,Oo.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,Oo.createElement)("img",{alt:"",...t,key:t.key}):vt.createElement(e,t)}var Et=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),Xc={[Et.startingStyle]:""},Jc={[Et.endingStyle]:""},$t={transitionStatus(e){return e==="starting"?Xc:e==="ending"?Jc:null}};var We=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Et.startingStyle]="startingStyle",e[e.endingStyle=Et.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),Io=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({}),Qc={[Io.popupOpen]:""},Gf={[Io.popupOpen]:"",[Io.pressed]:""},Zc={[We.open]:""},ea={[We.closed]:""},ta={[We.anchorHidden]:""},oi={open(e){return e?Qc:null}};var zt={open(e){return e?Zc:ea},anchorHidden(e){return e?ta:null}};var na={...zt,...$t},ii=ri.forwardRef(function(t,n){let{render:o,className:r,style:i,forceRender:s=!1,...a}=t,{store:u}=Ie(),c=u.useState("open"),l=u.useState("nested"),f=u.useState("mounted"),m=u.useState("transitionStatus");return Le("div",t,{state:{open:c,transitionStatus:m},ref:[u.context.backdropRef,n],stateAttributesMapping:na,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},a],enabled:s||!l})});var fi=C(N(),1);var jt=C(N(),1);function Bn(){return typeof window<"u"}function Me(e){return Hn(e)?(e.nodeName||"").toLowerCase():"#document"}function je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oa(e){var t;return(t=(Hn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hn(e){return Bn()?e instanceof Node||e instanceof je(e).Node:!1}function ut(e){return Bn()?e instanceof Element||e instanceof je(e).Element:!1}function Ne(e){return Bn()?e instanceof HTMLElement||e instanceof je(e).HTMLElement:!1}function tt(e){return!Bn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof je(e).ShadowRoot}function Vn(e){let{overflow:t,overflowX:n,overflowY:o,display:r}=Rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Un(e){return/^(html|body|#document)$/.test(Me(e))}function Rt(e){return je(e).getComputedStyle(e)}function si(e){if(Me(e)==="html")return e;let t=e.assignedSlot||e.parentNode||tt(e)&&e.host||oa(e);return tt(t)?t.host:t}var ra=C(N(),1),ln={...ra};var No=ln.useInsertionEffect,ia=No&&No!==ln.useLayoutEffect?No:e=>e();function oe(e){let t=Xe(sa).current;return t.next=e,ia(t.effect),t.trampoline}function sa(){let e={next:void 0,callback:ca,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function ca(){}var ci=C(N(),1),aa=()=>{},J=typeof document<"u"?ci.useLayoutEffect:aa;var Wn=C(N(),1),ua=Wn.createContext(void 0);function ai(e=!1){let t=Wn.useContext(ua);if(t===void 0&&!e)throw new Error(ze(16));return t}var ui=C(N(),1);function li(e){let{focusableWhenDisabled:t,disabled:n,composite:o=!1,tabIndex:r=0,isNativeButton:i}=e,s=o&&t!==!1,a=o&&t===!1;return{props:ui.useMemo(()=>{let c={onKeyDown(l){n&&t&&l.key!=="Tab"&&l.preventDefault()}};return o||(c.tabIndex=r,!i&&n&&(c.tabIndex=t?r:-1)),(i&&(t||s)||!i&&n)&&(c["aria-disabled"]=n),i&&(!t||a)&&(c.disabled=n),c},[o,n,t,s,a,i,r])}}function fn(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:o=0,native:r=!0,composite:i}=e,s=jt.useRef(null),a=ai(!0),u=i??a!==void 0,{props:c}=li({focusableWhenDisabled:n,disabled:t,composite:u,tabIndex:o,isNativeButton:r}),l=jt.useCallback(()=>{let p=s.current;Do(p)&&u&&t&&c.disabled===void 0&&p.disabled&&(p.disabled=!1)},[t,c.disabled,u]);J(l,[l]);let f=jt.useCallback((p={})=>{let{onClick:d,onMouseDown:h,onKeyUp:y,onKeyDown:g,onPointerDown:b,...E}=p;return an({onClick(v){if(t){v.preventDefault();return}d?.(v)},onMouseDown(v){t||h?.(v)},onKeyDown(v){if(t||(un(v),g?.(v),v.baseUIHandlerPrevented))return;let R=v.target===v.currentTarget,w=v.currentTarget,S=Do(w),k=!r&&la(w),P=R&&(r?S:!k),_=v.key==="Enter",I=v.key===" ",W=w.getAttribute("role"),L=W?.startsWith("menuitem")||W==="option"||W==="gridcell";if(R&&u&&I){if(v.defaultPrevented&&L)return;v.preventDefault(),k||r&&S?(w.click(),v.preventBaseUIHandler()):P&&(d?.(v),v.preventBaseUIHandler());return}P&&(!r&&(I||_)&&v.preventDefault(),!r&&_&&d?.(v))},onKeyUp(v){if(!t){if(un(v),y?.(v),v.target===v.currentTarget&&r&&u&&Do(v.currentTarget)&&v.key===" "){v.preventDefault();return}v.baseUIHandlerPrevented||v.target===v.currentTarget&&!r&&!u&&v.key===" "&&d?.(v)}},onPointerDown(v){if(t){v.preventDefault();return}b?.(v)}},r?{type:"button"}:{role:"button"},c,E)},[t,c,u,r]),m=oe(p=>{s.current=p,l()});return{getButtonProps:f,buttonRef:m}}function Do(e){return Ne(e)&&e.tagName==="BUTTON"}function la(e){return!!(e?.tagName==="A"&&e?.href)}var be={};gt(be,{cancelOpen:()=>Ba,chipRemovePress:()=>Ea,clearPress:()=>va,closePress:()=>ya,closeWatcher:()=>Ia,decrementPress:()=>Sa,disabled:()=>Va,drag:()=>La,escapeKey:()=>Oa,focusOut:()=>Aa,imperativeAction:()=>$a,incrementPress:()=>xa,initial:()=>Wa,inputBlur:()=>ka,inputChange:()=>Ca,inputClear:()=>Ta,inputPaste:()=>wa,inputPress:()=>Pa,itemPress:()=>ha,keyboard:()=>Da,linkPress:()=>ba,listNavigation:()=>Na,missing:()=>Ua,none:()=>fa,outsidePress:()=>ga,pointer:()=>_a,scrub:()=>Fa,siblingOpen:()=>Ha,swipe:()=>za,trackPress:()=>Ra,triggerFocus:()=>ma,triggerHover:()=>pa,triggerPress:()=>da,wheel:()=>Ma,windowResize:()=>ja});var fa="none",da="trigger-press",pa="trigger-hover",ma="trigger-focus",ga="outside-press",ha="item-press",ya="close-press",ba="link-press",va="clear-press",Ea="chip-remove-press",Ra="track-press",xa="increment-press",Sa="decrement-press",Ca="input-change",Ta="input-clear",ka="input-blur",wa="input-paste",Pa="input-press",Aa="focus-out",Oa="escape-key",Ia="close-watcher",Na="list-navigation",Da="keyboard",_a="pointer",La="drag",Ma="wheel",Fa="scrub",Ba="cancel-open",Ha="sibling-open",Va="disabled",Ua="missing",Wa="initial",$a="imperative-action",za="swipe",ja="window-resize";function Pe(e,t,n,o){let r=!1,i=!1,s=o??ye;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){i=!0},get isCanceled(){return r},get isPropagationAllowed(){return i},trigger:n,...s}}var di=fi.forwardRef(function(t,n){let{render:o,className:r,style:i,disabled:s=!1,nativeButton:a=!0,...u}=t,{store:c}=Ie(),l=c.useState("open"),{getButtonProps:f,buttonRef:m}=fn({disabled:s,native:a}),p={disabled:s};function d(h){l&&c.setOpen(!1,Pe(be.closePress,h.nativeEvent))}return Le("button",t,{state:p,ref:[n,m],props:[{onClick:d},u,f]})});var gi=C(N(),1);var $n=C(N(),1);var pi=0;function Ga(e,t="mui"){let[n,o]=$n.useState(e),r=e||n;return $n.useEffect(()=>{n==null&&(pi+=1,o(`${t}-${pi}`))},[n,t]),r}var mi=ln.useId;function Gt(e,t){if(mi!==void 0){let n=mi();return e??(t?`${t}-${n}`:n)}return Ga(e,t)}function Yt(e){return Gt(e,"base-ui")}var hi=gi.forwardRef(function(t,n){let{render:o,className:r,style:i,id:s,...a}=t,{store:u}=Ie(),c=Yt(s);return u.useSyncedValueWithCleanup("descriptionElementId",c),Le("p",t,{ref:n,props:[{id:c},a]})});var Fs=C(N(),1);var yi=C(N(),1),Ya=[];function zn(e){yi.useEffect(e,Ya)}var dn=0,ot=class e{static create(){return new e}currentId=dn;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=dn,n()},t)}isStarted(){return this.currentId!==dn}clear=()=>{this.currentId!==dn&&(clearTimeout(this.currentId),this.currentId=dn)};disposeEffect=()=>this.clear};function lt(){let e=Xe(ot.create).current;return zn(e.disposeEffect),e}var Oe={};gt(Oe,{engine:()=>Bo,env:()=>Vo,os:()=>Mo,screenReader:()=>Ho});var Mo={};gt(Mo,{android:()=>Ei,apple:()=>Lo,ios:()=>_o,linux:()=>Qa,mac:()=>Ri,windows:()=>Ja});function Ka(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:qa,platform:Xa,maxTouchPoints:bi}=Ka(),xt=qa.toLowerCase(),St=Xa.toLowerCase();var _o=/^i(os$|p)/.test(St)||St==="macintel"&&bi>1,vi="android",Ei=St===vi||xt.includes(vi),Ri=!_o&&St.startsWith("mac"),Ja=St.startsWith("win"),Qa=!Ei&&/^(linux|chrome os)/.test(St),Lo=Ri||_o;var Bo={};gt(Bo,{blink:()=>eu,gecko:()=>Za,webkit:()=>Fo});var Fo=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),Za=!Fo&&xt.includes("firefox"),eu=!Fo&&xt.includes("chrom");var Ho={};gt(Ho,{voiceOver:()=>tu});var tu=Lo;var Vo={};gt(Vo,{jsdom:()=>nu});var nu=/jsdom|happydom/.test(xt);function xi(e){e.preventDefault(),e.stopPropagation()}function Si(e){return"nativeEvent"in e}function Ci(e){return e.pointerType===""&&e.isTrusted?!0:Oe.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ti(e){return Oe.env.jsdom?!1:!Oe.os.android&&e.width===0&&e.height===0||Oe.os.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Uo(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function ki(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var pn="data-base-ui-focusable";var wi="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ge(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Q(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&tt(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function He(e){return"composedPath"in e?e.composedPath()[0]:e.target}function jn(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Pi(e){return e.matches("html,body")}function mn(e){return Ne(e)&&e.matches(wi)}function Wo(e){return e?e.getAttribute("role")==="combobox"&&mn(e):!1}function $o(e){return e?e.hasAttribute(pn)?e:e.querySelector(`[${pn}]`)||e:null}var Fe=C(N(),1);function re(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function rt(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function gn(e){let t=Xe(ou,e).current;return t.next=e,J(t.effect),t}function ou(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Gn=null,sp=globalThis.requestAnimationFrame,zo=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let n=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let r=0;r<n.length;r+=1)n[r]?.(t)};request(t){let n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){let n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}},Yn=new zo,Ye=class e{static create(){return new e}static request(t){return Yn.request(t)}static cancel(t){return Yn.cancel(t)}currentId=Gn;request(t){this.cancel(),this.currentId=Yn.request(()=>{this.currentId=Gn,t()})}cancel=()=>{this.currentId!==Gn&&(Yn.cancel(this.currentId),this.currentId=Gn)};disposeEffect=()=>this.cancel};function Kt(){let e=Xe(Ye.create).current;return zn(e.disposeEffect),e}function ve(e){return e?.ownerDocument||document}var Kn=C(N(),1);var Ai={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Oi={...Ai,position:"fixed",top:0,left:0},lp={...Ai,position:"absolute"};var Ii=C(he(),1),qt=Kn.forwardRef(function(t,n){let[o,r]=Kn.useState();return J(()=>{Oe.screenReader.voiceOver&&Oe.engine.webkit&&r("button")},[]),(0,Ii.jsx)("span",{...t,ref:n,style:Oi,"aria-hidden":o?void 0:!0,...{tabIndex:0,role:o},"data-base-ui-focus-guard":""})});function ru(e){return e.visibility==="hidden"||e.visibility==="collapse"}function qn(e,t=e?Rt(e):null){return!e||!e.isConnected||!t||ru(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var iu='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function su(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return tt(n)?n.host:null}function Go(e){for(let t of Array.from(e.children))if(Me(t)==="summary")return t;return null}function cu(e,t){let n=Go(t);return!!n&&(e===n||Q(n,e))}function Ni(e){let t=e?Me(e):"";return e!=null&&e.matches(iu)&&(t!=="summary"||e.parentElement!=null&&Me(e.parentElement)==="details"&&Go(e.parentElement)===e)&&(t!=="details"||Go(e)==null)&&(t!=="input"||e.type!=="hidden")}function Di(e){if(!Ni(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=su(t)){let n=t!==e,o=Me(t)==="slot";if(t.hasAttribute("inert")||n&&Me(t)==="details"&&!t.open&&!cu(e,t)||t.hasAttribute("hidden")||!o&&!au(t,n))return!1}return!0}function au(e,t){let n=Rt(e);return t?n.display!=="none":qn(e,n)}function _i(e){let t=e.tabIndex;if(t<0){let n=Me(e);if(n==="details"||n==="audio"||n==="video"||Ne(e)&&e.isContentEditable)return 0}return t}function jo(e){if(Me(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function uu(e,t){let n=jo(e);if(!n)return!0;let o=t.find(r=>{let i=jo(r);return i?.name===n.name&&i.form===n.form&&i.checked});return o?o===n:t.find(r=>{let i=jo(r);return i?.name===n.name&&i.form===n.form})===n}function Li(e){if(Ne(e)&&Me(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Ne(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Mi(e,t){Li(e).forEach(n=>{Ni(n)&&t.push(n),Mi(n,t)})}function Fi(e,t,n){Li(e).forEach(o=>{Ne(o)&&o.matches(t)&&n.push(o),Fi(o,t,n)})}function Xn(e){return Di(e)&&_i(e)>=0}function Yo(e){let t=[];return Mi(e,t),t.filter(Di)}function hn(e){let t=Yo(e);return t.filter(n=>_i(n)>=0&&uu(n,t))}function Bi(e,t){let n=hn(e),o=n.length;if(o===0)return;let r=Ge(ve(e)),i=n.indexOf(r),s=i===-1?t===1?0:o-1:i+t;return n[s]}function Jn(e){return Bi(ve(e).body,1)||e}function Qn(e){return Bi(ve(e).body,-1)||e}function Ct(e,t){let n=t||e.currentTarget,o=e.relatedTarget;return!o||!Q(n,o)}function Hi(e){hn(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Ko(e){let t=[];Fi(e,"[data-tabindex]",t),t.forEach(n=>{let o=n.dataset.tabindex;delete n.dataset.tabindex,o?n.setAttribute("tabindex",o):n.removeAttribute("tabindex")})}function Tt(e,t,n=!0){return e.filter(r=>r.parentId===t).flatMap(r=>[...!n||r.context?.open?[r]:[],...Tt(e,r.id,n)])}function qo(e,t){let n=[],o=e.find(r=>r.id===t)?.parentId;for(;o;){let r=e.find(i=>i.id===o);o=r?.parentId,r&&(n=n.concat(r))}return n}function kt(e){return`data-base-ui-${e}`}var Zn=0;function eo(e,t={}){let{preventScroll:n=!1,sync:o=!1,shouldFocus:r}=t;cancelAnimationFrame(Zn);function i(){r&&!r()||e?.focus({preventScroll:n})}if(o)return i(),Wt;let s=requestAnimationFrame(i);return Zn=s,()=>{Zn===s&&(cancelAnimationFrame(s),Zn=0)}}var Xo={inert:new WeakMap,"aria-hidden":new WeakMap},Vi="data-base-ui-inert",Qo={inert:new WeakSet,"aria-hidden":new WeakSet},yn=new WeakMap,Jo=0;function lu(e){return Qo[e]}function zi(e){return e?tt(e)?e.host:zi(e.parentNode):null}var Ui=(e,t)=>t.map(n=>{if(e.contains(n))return n;let o=zi(n);return e.contains(o)?o:null}).filter(n=>n!=null),Wi=e=>{let t=new Set;return e.forEach(n=>{let o=n;for(;o&&!t.has(o);)t.add(o),o=o.parentNode}),t},$i=(e,t,n)=>{let o=[],r=i=>{!i||n.has(i)||Array.from(i.children).forEach(s=>{Me(s)!=="script"&&(t.has(s)?r(s):o.push(s))})};return r(e),o};function fu(e,t,n,o,{mark:r=!0}){let i=null;o?i="inert":n&&(i="aria-hidden");let s=null,a=null,u=Ui(t,e),c=r?$i(t,Wi(u),new Set(u)):[],l=[],f=[];if(i){let m=Xo[i],p=lu(i);a=p,s=m;let d=Ui(t,Array.from(t.querySelectorAll("[aria-live]"))),h=u.concat(d);$i(t,Wi(h),new Set(h)).forEach(g=>{let b=g.getAttribute(i),E=b!==null&&b!=="false",v=(m.get(g)||0)+1;m.set(g,v),l.push(g),v===1&&E&&p.add(g),E||g.setAttribute(i,i==="inert"?"":"true")})}return r&&c.forEach(m=>{let p=(yn.get(m)||0)+1;yn.set(m,p),f.push(m),p===1&&m.setAttribute(Vi,"")}),Jo+=1,()=>{s&&l.forEach(m=>{let d=(s.get(m)||0)-1;s.set(m,d),d||(!a?.has(m)&&i&&m.removeAttribute(i),a?.delete(m))}),r&&f.forEach(m=>{let p=(yn.get(m)||0)-1;yn.set(m,p),p||m.removeAttribute(Vi)}),Jo-=1,Jo||(Xo.inert=new WeakMap,Xo["aria-hidden"]=new WeakMap,Qo.inert=new WeakSet,Qo["aria-hidden"]=new WeakSet,yn=new WeakMap)}}function Zo(e,t={}){let{ariaHidden:n=!1,inert:o=!1,mark:r=!0}=t,i=ve(e[0]).body;return fu(e,i,n,o,{mark:r})}var Ee=C(N(),1),er=C(So(),1);var to="data-base-ui-click-trigger",du="data-base-ui-swipe-ignore",pu="data-swipe-ignore",Op=`[${du}]`,Ip=`[${pu}]`;var ji={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var wt=C(he(),1),Gi=Ee.createContext(null),tr=()=>Ee.useContext(Gi),mu=kt("portal");function Yi(e={}){let{ref:t,container:n,componentProps:o=ye,elementProps:r}=e,i=Gt(),a=tr()?.portalNode,[u,c]=Ee.useState(null),[l,f]=Ee.useState(null),m=oe(y=>{y!==null&&f(y)}),p=Ee.useRef(null);J(()=>{if(n===null){p.current&&(p.current=null,f(null),c(null));return}if(i==null)return;let y=(n&&(Hn(n)?n:n.current))??a??document.body;if(y==null){p.current&&(p.current=null,f(null),c(null));return}p.current!==y&&(p.current=y,f(null),c(y))},[n,a,i]);let d=Le("div",o,{ref:[t,m],props:[{id:i,[mu]:""},r]});return{portalNode:l,portalSubtree:u&&d?er.createPortal(d,u):null}}var nr=Ee.forwardRef(function(t,n){let{render:o,className:r,style:i,children:s,container:a,renderGuards:u,...c}=t,{portalNode:l,portalSubtree:f}=Yi({container:a,ref:n,componentProps:t,elementProps:c}),m=Ee.useRef(null),p=Ee.useRef(null),d=Ee.useRef(null),h=Ee.useRef(null),[y,g]=Ee.useState(null),b=Ee.useRef(!1),E=y?.modal,v=y?.open,R=typeof u=="boolean"?u:!!y&&!y.modal&&y.open&&!!l;Ee.useEffect(()=>{if(!l||E)return;function S(k){l&&k.relatedTarget&&Ct(k)&&(k.type==="focusin"?b.current&&(Ko(l),b.current=!1):(Hi(l),b.current=!0))}return rt(re(l,"focusin",S,!0),re(l,"focusout",S,!0))},[l,E]),J(()=>{!l||v!==!0||!b.current||(Ko(l),b.current=!1)},[v,l]);let w=Ee.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:p,beforeInsideRef:d,afterInsideRef:h,portalNode:l,setFocusManagerState:g}),[l]);return(0,wt.jsxs)(Ee.Fragment,{children:[f,(0,wt.jsxs)(Gi.Provider,{value:w,children:[R&&l&&(0,wt.jsx)(qt,{"data-type":"outside",ref:m,onFocus:S=>{if(Ct(S,l))d.current?.focus();else{let k=y?y.domReference:null;Qn(k)?.focus()}}}),R&&l&&(0,wt.jsx)("span",{"aria-owns":l.id,style:ji}),l&&er.createPortal(s,l),R&&l&&(0,wt.jsx)(qt,{"data-type":"outside",ref:p,onFocus:S=>{if(Ct(S,l))h.current?.focus();else{let k=y?y.domReference:null;Jn(k)?.focus(),y?.closeOnFocusOut&&y?.onOpenChange(!1,Pe(be.focusOut,S.nativeEvent))}}})]})]})});var Pt=C(N(),1);function Ki(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var gu=C(he(),1),hu=Pt.createContext(null),yu=Pt.createContext(null),qi=()=>Pt.useContext(hu)?.id||null,no=e=>{let t=Pt.useContext(yu);return e??t};function Je(e){return e==null?e:"current"in e?e.current:e}var bn=C(he(),1);function bu(e,t){let n=je(He(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var Xi=20,ft=[];function or(){ft=ft.filter(e=>e.deref()?.isConnected)}function Ji(e){or(),e&&Me(e)!=="body"&&(ft.push(new WeakRef(e)),ft.length>Xi&&(ft=ft.slice(-Xi)))}function Qi(){return or(),ft[ft.length-1]?.deref()}function vu(e){return e?Xn(e)?e:hn(e)[0]||e:null}function Zi(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let n=Yo(e).filter(r=>{let i=r.getAttribute("data-tabindex")||"";return Xn(r)||r.hasAttribute("data-tabindex")&&!i.startsWith("-")}),o=e.getAttribute("tabindex");n.length===0?o!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function rr(e){let{context:t,children:n,disabled:o=!1,initialFocus:r=!0,returnFocus:i=!0,restoreFocus:s=!1,modal:a=!0,closeOnFocusOut:u=!0,openInteractionType:c="",nextFocusableElement:l,previousFocusableElement:f,beforeContentFocusGuardRef:m,externalTree:p,getInsideElements:d}=e,h="rootStore"in t?t.rootStore:t,y=h.useState("open"),g=h.useState("domReferenceElement"),b=h.useState("floatingElement"),{events:E,dataRef:v}=h.context,R=oe(()=>v.current.floatingContext?.nodeId),w=r===!1,S=Wo(g)&&w,k=gn(r),P=gn(i),_=gn(c),I=gn(y),W=no(p),L=tr(),D=Fe.useRef(!1),te=Fe.useRef(!1),Y=Fe.useRef(!1),V=Fe.useRef(null),q=Fe.useRef(""),Ce=Fe.useRef(""),ie=Fe.useRef(null),Te=Fe.useRef(null),$=Vt(ie,m,L?.beforeInsideRef),fe=Vt(Te,L?.afterInsideRef),pe=lt(),T=lt(),U=Kt(),de=L!=null,A=$o(b),we=oe((x=A)=>x?hn(x):[]),me=oe(()=>d?.().filter(x=>x!=null)??[]);Fe.useEffect(()=>{if(o||!a)return;function x(G){G.key==="Tab"&&Q(A,Ge(ve(A)))&&we().length===0&&!S&&xi(G)}let B=ve(A);return re(B,"keydown",x)},[o,A,a,S,we]),Fe.useEffect(()=>{if(o||!y)return;let x=ve(A);function B(){Y.current=!1}function G(ge){let M=He(ge),X=me(),H=Q(b,M)||Q(g,M)||Q(L?.portalNode,M)||X.some(se=>se===M||Q(se,M));Y.current=!H,Ce.current=ge.pointerType||"keyboard",M?.closest(`[${to}]`)&&(te.current=!0,T.start(0,()=>{te.current=!1}))}function Z(){Ce.current="keyboard"}return rt(re(x,"pointerdown",G,!0),re(x,"pointerup",B,!0),re(x,"pointercancel",B,!0),re(x,"keydown",Z,!0),B)},[o,b,g,A,y,L,T,me]),Fe.useEffect(()=>{if(o||!u)return;let x=ve(A);function B(){te.current=!0,T.start(0,()=>{te.current=!1})}function G(X){let H=He(X);Xn(H)&&(V.current=H)}function Z(X){let H=X.relatedTarget,se=X.currentTarget,xe=He(X);a&&H==null&&xe!=null&&Q(b,xe)&&Ji(xe),queueMicrotask(()=>{let ce=R(),Ze=h.context.triggerElements,O=me(),F=H?.hasAttribute(kt("focus-guard"))&&[ie.current,Te.current,L?.beforeInsideRef.current,L?.afterInsideRef.current,L?.beforeOutsideRef.current,L?.afterOutsideRef.current,Je(f),Je(l)].includes(H),De=!(Q(g,H)||Q(b,H)||Q(H,b)||Q(L?.portalNode,H)||O.some(ee=>ee===H||Q(ee,H))||H!=null&&Ze.hasElement(H)||Ze.hasMatchingElement(ee=>Q(ee,H))||F||W&&(Tt(W.nodesRef.current,ce).find(ee=>Q(ee.context?.elements.floating,H)||Q(ee.context?.elements.domReference,H))||qo(W.nodesRef.current,ce).find(ee=>[ee.context?.elements.floating,$o(ee.context?.elements.floating)].includes(H)||ee.context?.elements.domReference===H)));if(se===g&&A&&Zi(A),s&&se!==g&&!qn(xe)&&Ge(x)===x.body){if(Ne(A)&&(A.focus(),s==="popup")){U.request(()=>{A.focus()});return}let ee=we(),qe=V.current,nt=(qe&&ee.includes(qe)?qe:null)||ee[ee.length-1]||A;Ne(nt)&&nt.focus()}if(v.current.insideReactTree){v.current.insideReactTree=!1;return}(S||!a)&&H&&De&&!te.current&&(S||H!==Qi())&&(D.current=!0,h.setOpen(!1,Pe(be.focusOut,X)))})}function ge(){Y.current||(v.current.insideReactTree=!0,pe.start(0,()=>{v.current.insideReactTree=!1}))}let M=Ne(g)?g:null;if(!(!b&&!M))return rt(M&&re(M,"focusout",Z),M&&re(M,"pointerdown",B),b&&re(b,"focusin",G),b&&re(b,"focusout",Z),b&&L&&re(b,"focusout",ge,!0))},[o,g,b,A,a,W,L,h,u,s,we,S,R,v,pe,T,U,l,f,me]),Fe.useEffect(()=>{if(o||!b||!y)return;let x=Array.from(L?.portalNode?.querySelectorAll(`[${kt("portal")}]`)||[]),G=(W?qo(W.nodesRef.current,R()):[]).find(se=>Wo(se.context?.elements.domReference||null))?.context?.elements.domReference,ge=[...[b,...x,ie.current,Te.current,L?.beforeOutsideRef.current,L?.afterOutsideRef.current,...me()],G,Je(f),Je(l),S?g:null].filter(se=>se!=null),M=Zo(ge,{ariaHidden:a||S,mark:!1}),X=[b,...x].filter(se=>se!=null),H=Zo(X);return()=>{H(),M()}},[y,o,g,b,a,L,S,W,R,l,f,me]),J(()=>{if(!y||o||!Ne(A))return;let x=ve(A),B=Ge(x);queueMicrotask(()=>{let G=k.current,Z=typeof G=="function"?G(_.current||""):G;if(Z===void 0||Z===!1||Q(A,B))return;let M=null,X=()=>(M==null&&(M=we(A)),M[0]||A),H;Z===!0||Z===null?H=X():H=Je(Z),H=H||X();let se=Q(A,Ge(x));eo(H,{preventScroll:H===A,shouldFocus(){if(!I.current)return!1;if(se)return!0;let xe=Ge(x);return!(xe!==H&&Q(A,xe))}})})},[o,y,A,we,k,_,I]),J(()=>{if(o||!A)return;let x=ve(A),B=Ge(x),G=_.current==null;Ji(B);function Z(M){if(M.open||(q.current=bu(M.nativeEvent,Ce.current)),M.reason===be.triggerHover&&M.nativeEvent.type==="mouseleave"&&(D.current=!0),M.reason===be.outsidePress)if(M.nested)D.current=!1;else if(Ci(M.nativeEvent)||Ti(M.nativeEvent))D.current=!1;else{let X=!1;ve(A).createElement("div").focus({get preventScroll(){return X=!0,!1}}),X?D.current=!1:D.current=!0}}E.on("openchange",Z);function ge(){let M=P.current,X=typeof M=="function"?M(q.current):M;if(X===void 0||X===!1)return null;X===null&&(X=!0);let H=g?.isConnected?g:null,se=B?.isConnected&&Me(B)!=="body"?B:null,xe=G?se||H:H||se;return xe||(xe=Qi()||null),typeof X=="boolean"?xe:Je(X)||xe||null}return()=>{E.off("openchange",Z);let M=Ge(x),X=me(),H=Q(b,M)||X.some(ce=>ce===M||Q(ce,M))||W&&Tt(W.nodesRef.current,R(),!1).some(ce=>Q(ce.context?.elements.floating,M)),se=P.current,xe=ge();queueMicrotask(()=>{let ce=vu(xe),Ze=typeof se!="boolean";se&&!D.current&&Ne(ce)&&(!(!Ze&&ce!==M&&M!==x.body)||H)&&ce.focus({preventScroll:!0}),D.current=!1})}},[o,b,A,P,_,E,W,g,R,me]),J(()=>{if(!Oe.engine.webkit||y||!b)return;let x=Ge(ve(b));!Ne(x)||!mn(x)||Q(b,x)&&x.blur()},[y,b]),J(()=>{if(!(o||!L))return L.setFocusManagerState({modal:a,closeOnFocusOut:u,open:y,onOpenChange:h.setOpen,domReference:g}),()=>{L.setFocusManagerState(null)}},[o,L,a,y,h,u,g]),J(()=>{if(!(o||!A))return Zi(A),()=>{queueMicrotask(or)}},[o,A]);let ne=!o&&(a?!S:!0)&&(de||a);return(0,bn.jsxs)(Fe.Fragment,{children:[ne&&(0,bn.jsx)(qt,{"data-type":"inside",ref:$,onFocus:x=>{if(a){let B=we();eo(B[B.length-1])}else L?.portalNode&&(D.current=!1,Ct(x,L.portalNode)?Jn(g)?.focus():Je(f??L.beforeOutsideRef)?.focus())}}),n,ne&&(0,bn.jsx)(qt,{"data-type":"inside",ref:fe,onFocus:x=>{a?eo(we()[0]):L?.portalNode&&(u&&(D.current=!0),Ct(x,L.portalNode)?Qn(g)?.focus():Je(l??L.afterOutsideRef)?.focus())}})]})}var vn=C(N(),1);function ir(e,t={}){let{enabled:n=!0,event:o="click",toggle:r=!0,ignoreMouse:i=!1,stickIfOpen:s=!0,touchOpenDelay:a=0,reason:u=be.triggerPress}=t,c="rootStore"in e?e.rootStore:e,l=c.context.dataRef,f=vn.useRef(void 0),m=Kt(),p=lt(),d=vn.useMemo(()=>{function h(g,b,E,v){let R=Pe(u,b,E);g&&v==="touch"&&a>0?p.start(a,()=>{c.setOpen(!0,R)}):c.setOpen(g,R)}function y(g,b,E){let v=l.current.openEvent,R=c.select("domReferenceElement")!==b;return g&&R||!g||!r?!0:v&&s?!E(v.type):!1}return{onPointerDown(g){f.current=g.pointerType},onMouseDown(g){let b=f.current,E=g.nativeEvent,v=c.select("open");if(g.button!==0||o==="click"||Uo(b,!0)&&i)return;let R=y(v,g.currentTarget,k=>k==="click"||k==="mousedown"),w=He(E);if(mn(w)){h(R,E,w,b);return}let S=g.currentTarget;m.request(()=>{h(R,E,S,b)})},onClick(g){if(o==="mousedown-only")return;let b=f.current;if(o==="mousedown"&&b){f.current=void 0;return}if(Uo(b,!0)&&i)return;let E=c.select("open"),v=y(E,g.currentTarget,R=>R==="click"||R==="mousedown"||R==="keydown"||R==="keyup");h(v,g.nativeEvent,g.currentTarget,b)},onKeyDown(){f.current=void 0}}},[l,o,i,u,c,s,r,m,p,a]);return vn.useMemo(()=>n?{reference:d}:ye,[n,d])}var Ve=C(N(),1);function Eu(){return!1}function Ru(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function sr(e,t={}){let{enabled:n=!0,escapeKey:o=!0,outsidePress:r=!0,outsidePressEvent:i="sloppy",referencePress:s=Eu,bubbles:a,externalTree:u}=t,c="rootStore"in e?e.rootStore:e,l=c.useState("open"),f=c.useState("floatingElement"),{dataRef:m}=c.context,p=no(u),d=oe(typeof r=="function"?r:()=>!1),h=typeof r=="function"?d:r,y=h!==!1,g=oe(()=>i),{escapeKey:b,outsidePress:E}=Ru(a),v=Ve.useRef(!1),R=Ve.useRef(!1),w=Ve.useRef(!1),S=Ve.useRef(!1),k=Ve.useRef(""),P=Ve.useRef(null),_=lt(),I=lt(),W=oe(()=>{I.clear(),m.current.insideReactTree=!1}),L=oe($=>{let fe=m.current.floatingContext?.nodeId;return(p?Tt(p.nodesRef.current,fe):[]).some(T=>T.context?.open&&!T.context.dataRef.current[$])}),D=oe($=>jn($,c.select("floatingElement"))||jn($,c.select("domReferenceElement"))),te=oe($=>{s()&&c.setOpen(!1,Pe(be.triggerPress,$.nativeEvent))}),Y=oe($=>{if(!l||!n||!o||$.key!=="Escape"||S.current||!b&&L("__escapeKeyBubbles"))return;let fe=Si($)?$.nativeEvent:$,pe=Pe(be.escapeKey,fe);c.setOpen(!1,pe),pe.isCanceled||$.preventDefault(),!b&&!pe.isPropagationAllowed&&$.stopPropagation()}),V=oe(()=>{m.current.insideReactTree=!0,I.start(0,W)}),q=oe($=>{if(!l||!n||$.button!==0)return;let fe=He($.nativeEvent);Q(c.select("floatingElement"),fe)&&(v.current||(v.current=!0,R.current=!1))}),Ce=oe($=>{!l||!n||($.defaultPrevented||$.nativeEvent.defaultPrevented)&&v.current&&(R.current=!0)});Ve.useEffect(()=>{if(!l||!n)return;m.current.__escapeKeyBubbles=b,m.current.__outsidePressBubbles=E;let $=new ot,fe=new ot;function pe(){$.clear(),S.current=!0}function T(){$.start(Oe.engine.webkit?5:0,()=>{S.current=!1})}function U(){w.current=!0,fe.start(0,()=>{w.current=!1})}function de(){v.current=!1,R.current=!1}function A(){let O=k.current,F=O==="pen"||!O?"mouse":O,De=g(),ee=typeof De=="function"?De():De;return typeof ee=="string"?ee:ee[F]}function we(O){let F=A();return F==="intentional"&&O.type!=="click"||F==="sloppy"&&O.type==="click"}function me(O){let F=m.current.floatingContext?.nodeId,De=p&&Tt(p.nodesRef.current,F).some(ee=>jn(O,ee.context?.elements.floating));return D(O)||De}function ne(O){if(we(O)){O.type!=="click"&&!D(O)&&(fe.clear(),w.current=!1),W();return}if(m.current.insideReactTree){W();return}let F=He(O),De=`[${kt("inert")}]`,ee=ut(F)?F.getRootNode():null,qe=Array.from((tt(ee)?ee:ve(c.select("floatingElement"))).querySelectorAll(De)),nt=c.context.triggerElements;if(F&&(nt.hasElement(F)||nt.hasMatchingElement(Be=>Q(Be,F))))return;let $e=ut(F)?F:null;for(;$e&&!Un($e);){let Be=si($e);if(Un(Be)||!ut(Be))break;$e=Be}if(!(qe.length&&ut(F)&&!Pi(F)&&!Q(F,c.select("floatingElement"))&&qe.every(Be=>!Q($e,Be)))){if(Ne(F)&&!("touches"in O)){let Be=Un(F),pt=Rt(F),mt=/auto|scroll/,yo=Be||mt.test(pt.overflowX),bo=Be||mt.test(pt.overflowY),vo=yo&&F.clientWidth>0&&F.scrollWidth>F.clientWidth,Eo=bo&&F.clientHeight>0&&F.scrollHeight>F.clientHeight,Ro=pt.direction==="rtl",Nn=Eo&&(Ro?O.offsetX<=F.offsetWidth-F.clientWidth:O.offsetX>F.clientWidth),xo=vo&&O.offsetY>F.clientHeight;if(Nn||xo)return}if(!me(O)){if(A()==="intentional"&&w.current){fe.clear(),w.current=!1;return}typeof h=="function"&&!h(O)||L("__outsidePressBubbles")||(c.setOpen(!1,Pe(be.outsidePress,O)),W())}}}function x(O){A()!=="sloppy"||O.pointerType==="touch"||!c.select("open")||!n||D(O)||ne(O)}function B(O){if(A()!=="sloppy"||!c.select("open")||!n||D(O))return;let F=O.touches[0];F&&(P.current={startTime:Date.now(),startX:F.clientX,startY:F.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},_.start(1e3,()=>{P.current&&(P.current.dismissOnTouchEnd=!1,P.current.dismissOnMouseDown=!1)}))}function G(O,F){let De=He(O);if(!De)return;let ee=re(De,O.type,()=>{F(O),ee()})}function Z(O){k.current="touch",G(O,B)}function ge(O){_.clear(),O.type==="pointerdown"&&(k.current=O.pointerType),!(O.type==="mousedown"&&P.current&&!P.current.dismissOnMouseDown)&&G(O,F=>{F.type==="pointerdown"?x(F):ne(F)})}function M(O){if(!v.current)return;let F=R.current;if(de(),A()==="intentional"){if(O.type==="pointercancel"){F&&U();return}if(!me(O)){if(F){U();return}typeof h=="function"&&!h(O)||(fe.clear(),w.current=!0,W())}}}function X(O){if(A()!=="sloppy"||!P.current||D(O))return;let F=O.touches[0];if(!F)return;let De=Math.abs(F.clientX-P.current.startX),ee=Math.abs(F.clientY-P.current.startY),qe=Math.sqrt(De*De+ee*ee);qe>5&&(P.current.dismissOnTouchEnd=!0),qe>10&&(ne(O),_.clear(),P.current=null)}function H(O){G(O,X)}function se(O){A()!=="sloppy"||!P.current||D(O)||(P.current.dismissOnTouchEnd&&ne(O),_.clear(),P.current=null)}function xe(O){G(O,se)}let ce=ve(f),Ze=rt(o&&rt(re(ce,"keydown",Y),re(ce,"compositionstart",pe),re(ce,"compositionend",T)),y&&rt(re(ce,"click",ge,!0),re(ce,"pointerdown",ge,!0),re(ce,"pointerup",M,!0),re(ce,"pointercancel",M,!0),re(ce,"mousedown",ge,!0),re(ce,"mouseup",M,!0),re(ce,"touchstart",Z,!0),re(ce,"touchmove",H,!0),re(ce,"touchend",xe,!0)));return()=>{Ze(),$.clear(),fe.clear(),de(),w.current=!1}},[m,f,o,y,h,l,n,b,E,Y,W,g,L,D,p,c,_]),Ve.useEffect(W,[h,W]);let ie=Ve.useMemo(()=>({onKeyDown:Y,onPointerDown:te,onClick:te}),[Y,te]),Te=Ve.useMemo(()=>({onKeyDown:Y,onPointerDown:Ce,onMouseDown:Ce,onClickCapture:V,onMouseDownCapture($){V(),q($)},onPointerDownCapture($){V(),q($)},onMouseUpCapture:V,onTouchEndCapture:V,onTouchMoveCapture:V}),[Y,V,q,Ce]);return Ve.useMemo(()=>n?{reference:ie,floating:Te,trigger:ie}:{},[n,ie,Te])}var Qt=C(N(),1),Ku=C(So(),1);var es=C(N(),1);function ts(e){let t=es.useRef(!0);t.current&&(t.current=!1,e())}var ps=C(N(),1);var K=(e,t,n,o,r,i,...s)=>{if(s.length>0)throw new Error(ze(1));let a;if(e&&t&&n&&o&&r&&i)a=(u,c,l,f)=>{let m=e(u,c,l,f),p=t(u,c,l,f),d=n(u,c,l,f),h=o(u,c,l,f),y=r(u,c,l,f);return i(m,p,d,h,y,c,l,f)};else if(e&&t&&n&&o&&r)a=(u,c,l,f)=>{let m=e(u,c,l,f),p=t(u,c,l,f),d=n(u,c,l,f),h=o(u,c,l,f);return r(m,p,d,h,c,l,f)};else if(e&&t&&n&&o)a=(u,c,l,f)=>{let m=e(u,c,l,f),p=t(u,c,l,f),d=n(u,c,l,f);return o(m,p,d,c,l,f)};else if(e&&t&&n)a=(u,c,l,f)=>{let m=e(u,c,l,f),p=t(u,c,l,f);return n(m,p,c,l,f)};else if(e&&t)a=(u,c,l,f)=>{let m=e(u,c,l,f);return t(m,c,l,f)};else if(e)a=e;else throw new Error("Missing arguments");return a};var fs=C(N(),1),ur=C(ar(),1),ds=C(as(),1);var Hu=C(N(),1);var Vu=[],Uu;function us(){return Uu}function ls(e){Vu.push(e)}var Wu=Ut(19),$u=Wu?ju:Gu;function ro(e,t,n,o,r){return $u(e,t,n,o,r)}function zu(e,t,n,o,r){let i=fs.useCallback(()=>t(e.getSnapshot(),n,o,r),[e,t,n,o,r]);return(0,ur.useSyncExternalStore)(e.subscribe,i,i)}ls({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let o=e.syncHooks[n],r=o.selector(o.store.state,o.a1,o.a2,o.a3);Object.is(o.value,r)||(t=!0,o.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let r of e.syncHooks)n.add(r.store);let o=[];for(let r of n)o.push(r.subscribe(t));return()=>{for(let r of o)r()}}),(0,ur.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function ju(e,t,n,o,r){let i=us();if(!i)return zu(e,t,n,o,r);let s=i.syncIndex;i.syncIndex+=1;let a;return i.didInitialize?(a=i.syncHooks[s],(a.store!==e||a.selector!==t||!Object.is(a.a1,n)||!Object.is(a.a2,o)||!Object.is(a.a3,r))&&(a.store!==e&&(i.didChangeStore=!0),a.store=e,a.selector=t,a.a1=n,a.a2=o,a.a3=r,a.value=t(e.getSnapshot(),n,o,r))):(a={store:e,selector:t,a1:n,a2:o,a3:r,value:t(e.getSnapshot(),n,o,r)},i.syncHooks.push(a)),a.value}function Gu(e,t,n,o,r){return(0,ds.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,o,r))}var io=class{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let n=this.updateTick;for(let o of this.listeners){if(n!==this.updateTick)return;o(t)}}update(t){for(let n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){let t={...this.state};this.setState(t)}use(t,n,o,r){return ro(this,t,n,o,r)}};var At=C(N(),1);var Jt=class extends io{constructor(t,n={},o){super(t),this.context=n,this.selectors=o}useSyncedValue(t,n){At.useDebugValue(t);let o=this;J(()=>{o.state[t]!==n&&o.set(t,n)},[o,t,n])}useSyncedValueWithCleanup(t,n){let o=this;J(()=>(o.state[t]!==n&&o.set(t,n),()=>{o.set(t,void 0)}),[o,t,n])}useSyncedValues(t){let n=this,o=Object.values(t);J(()=>{n.update(t)},[n,...o])}useControlledProp(t,n){At.useDebugValue(t);let o=this,r=n!==void 0;J(()=>{r&&!Object.is(o.state[t],n)&&o.setState({...o.state,[t]:n})},[o,t,n,r])}select(t,n,o,r){let i=this.selectors[t];return i(this.state,n,o,r)}useState(t,n,o,r){return At.useDebugValue(t),ro(this,this.selectors[t],n,o,r)}useContextCallback(t,n){At.useDebugValue(t);let o=oe(n??Wt);this.context[t]=o}useStateSetter(t){let n=At.useRef(void 0);return n.current===void 0&&(n.current=o=>{this.set(t,o)}),n.current}observe(t,n){let o;typeof t=="function"?o=t:o=this.selectors[t];let r=o(this.state);return n(r,r,this),this.subscribe(i=>{let s=o(i);if(!Object.is(r,s)){let a=r;r=s,n(s,a,this)}})}};var Yu={open:K(e=>e.open),transitionStatus:K(e=>e.transitionStatus),domReferenceElement:K(e=>e.domReferenceElement),referenceElement:K(e=>e.positionReference??e.referenceElement),floatingElement:K(e=>e.floatingElement),floatingId:K(e=>e.floatingId)},dt=class extends Jt{constructor(t){let{syncOnly:n,nested:o,onOpenChange:r,triggerElements:i,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Ki(),nested:o,triggerElements:i},Yu),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&ki(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);let o={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",o)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}};function ms(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:o,floatingId:r,nested:i,onOpenChange:s}=e,a=t.useState("open"),u=t.useState("activeTriggerElement"),c=t.useState(n?"popupElement":"positionerElement"),l=t.context.triggerElements,f=s,m=ps.useRef(null);o===void 0&&m.current===null&&(m.current=new dt({open:a,transitionStatus:void 0,referenceElement:u,floatingElement:c,triggerElements:l,onOpenChange:f,floatingId:r,syncOnly:!0,nested:i}));let p=o??m.current;return t.useSyncedValue("floatingId",r),J(()=>{let d={open:a,floatingId:r,referenceElement:u,floatingElement:c};ut(u)&&(d.domReferenceElement=u),p.state.positionReference===p.state.referenceElement&&(d.positionReference=u),p.update(d)},[a,r,u,c,p]),p.context.onOpenChange=f,p.context.nested=i,p}var lr=C(N(),1);function gs(e,t=!1,n=!1){let[o,r]=lr.useState(e&&t?"idle":void 0),[i,s]=lr.useState(e);return e&&!i&&(s(!0),r("starting")),!e&&i&&o!=="ending"&&!n&&r("ending"),!e&&!i&&o==="ending"&&r(void 0),J(()=>{if(!e&&i&&o!=="ending"&&n){let a=Ye.request(()=>{r("ending")});return()=>{Ye.cancel(a)}}},[e,i,o,n]),J(()=>{if(!e||t)return;let a=Ye.request(()=>{r(void 0)});return()=>{Ye.cancel(a)}},[t,e]),J(()=>{if(!e||!t)return;e&&i&&o!=="idle"&&r("starting");let a=Ye.request(()=>{r("idle")});return()=>{Ye.cancel(a)}},[t,e,i,o]),{mounted:i,setMounted:s,transitionStatus:o}}var bs=C(N(),1);var hs=C(So(),1);function ys(e,t=!1,n=!0){let o=Kt();return oe((r,i=null)=>{o.cancel();let s=Je(e);if(s==null)return;let a=s,u=()=>{hs.flushSync(r)};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function c(){Promise.all(a.getAnimations().map(l=>l.finished)).then(()=>{i?.aborted||u()}).catch(()=>{if(n){i?.aborted||u();return}let l=a.getAnimations();!i?.aborted&&l.length>0&&l.some(f=>f.pending||f.playState!=="finished")&&c()})}if(t){let l=Et.startingStyle;if(!a.hasAttribute(l)){o.request(c);return}let f=new MutationObserver(()=>{a.hasAttribute(l)||(f.disconnect(),c())});f.observe(a,{attributes:!0,attributeFilter:[l]}),i?.addEventListener("abort",()=>f.disconnect(),{once:!0});return}o.request(c)})}function so(e){let{enabled:t=!0,open:n,ref:o,onComplete:r}=e,i=oe(r),s=ys(o,n,!1);bs.useEffect(()=>{if(!t)return;let a=new AbortController;return s(i,a.signal),()=>{a.abort()}},[t,n,i,s])}var vs={tabIndex:-1,[pn]:""};function Es(e){return t=>t==="touch"?e.current:!0}function Rs(e,t,n=!1){let o=Gt(),r=qi()!=null,i=Qt.useRef(null);e===void 0&&i.current===null&&(i.current=t(o,r));let s=e??i.current;return ms({popupStore:s,treatPopupAsFloatingElement:n,floatingRootContext:s.state.floatingRootContext,floatingId:o,nested:r,onOpenChange:s.setOpen}),{store:s,internalStore:i.current}}function qu(e,t){let n=Qt.useRef(null),o=Qt.useRef(null);return Qt.useCallback(r=>{if(e===void 0)return;let i=!1;if(n.current!==null){let s=n.current,a=o.current,u=t.context.triggerElements.getById(s);a&&u===a&&(t.context.triggerElements.delete(s),i=!0),n.current=null,o.current=null}if(r!==null&&(n.current=e,o.current=r,t.context.triggerElements.add(e,r),i=!0),i){let s=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==s&&t.set("triggerCount",s)}},[t,e])}function xs(e,t,n,o=!1){t?e.preventUnmountingOnClose=!1:o&&(e.preventUnmountingOnClose=!0);let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function Ss(e,t,n,o){let r=n.useState("isMountedByTrigger",e),i=qu(e,n),s=oe(a=>{if(i(a),!a)return;let u=n.select("open"),c=n.select("activeTriggerId");if(c===e){n.update({activeTriggerElement:a,...u?o:null});return}c==null&&u&&n.update({activeTriggerId:e,activeTriggerElement:a,...o})});return J(()=>{r&&n.update({activeTriggerElement:t.current,...o})},[r,n,t,...Object.values(o)]),{registerTrigger:s,isMountedByThisTrigger:r}}function Cs(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,o=e.useState("open"),r=e.useState("triggerCount");J(()=>{if(!o){e.state.triggerCount!==0&&e.set("triggerCount",0);return}let i=e.context.triggerElements.size,s={};e.state.triggerCount!==i&&(s.triggerCount=i);let a=e.select("activeTriggerId"),u=null;if(a){let c=e.context.triggerElements.getById(a);c?c!==e.state.activeTriggerElement&&(s.activeTriggerElement=c):u=a}if(!u&&!a&&i===1){let c=e.context.triggerElements.entries().next();if(!c.done){let[l,f]=c.value;s.activeTriggerId=l,s.activeTriggerElement=f}}(s.triggerCount!==void 0||s.activeTriggerId!==void 0||s.activeTriggerElement!==void 0)&&e.update(s),u&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===u&&!e.context.triggerElements.getById(u)){let c=Pe(be.none);e.setOpen(!1,c),c.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[o,e,r,n])}function Ts(e,t,n){let{mounted:o,setMounted:r,transitionStatus:i}=gs(e),s=t.useState("preventUnmountingOnClose"),a=e?!1:s;t.useSyncedValues({mounted:o,transitionStatus:i,preventUnmountingOnClose:a});let u=oe(()=>{r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return so({enabled:o&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:i}}function ks(e,t){e.useSyncedValues(t),J(()=>()=>{e.update({activeTriggerProps:ye,inactiveTriggerProps:ye,popupProps:ye})},[e])}function ws(e,t){J(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),J(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}var Zt=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){let o=this.idMap.get(t);o!==n&&(o!==void 0&&this.elementsSet.delete(o),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){let n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(let n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Ps(){return new dt({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Zt,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Os(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Ps(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:ye,inactiveTriggerProps:ye,popupProps:ye}}function Is(e,t,n=!1){return new dt({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var En=K(e=>e.triggerIdProp??e.activeTriggerId),fr=K(e=>e.openProp??e.open),As=K(e=>(e.popupElement?.id??e.floatingId)||void 0);function Ns(e,t){return t!==void 0&&fr(e)&&En(e)===t}function Xu(e,t){return Ns(e,t)?!0:t!==void 0&&fr(e)&&En(e)==null&&e.triggerCount===1}var Ds={open:fr,mounted:K(e=>e.mounted),transitionStatus:K(e=>e.transitionStatus),floatingRootContext:K(e=>e.floatingRootContext),triggerCount:K(e=>e.triggerCount),preventUnmountingOnClose:K(e=>e.preventUnmountingOnClose),payload:K(e=>e.payload),activeTriggerId:En,activeTriggerElement:K(e=>e.mounted?e.activeTriggerElement:null),popupId:As,isTriggerActive:K((e,t)=>t!==void 0&&En(e)===t),isOpenedByTrigger:K((e,t)=>Ns(e,t)),isMountedByTrigger:K((e,t)=>t!==void 0&&En(e)===t&&e.mounted),triggerProps:K((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:K((e,t)=>Xu(e,t)?As(e):void 0),popupProps:K(e=>e.popupProps),popupElement:K(e=>e.popupElement),positionerElement:K(e=>e.positionerElement)};var _s=(function(e){return e.nestedDialogs="--nested-dialogs",e})({});var Ls=(function(e){return e[e.open=We.open]="open",e[e.closed=We.closed]="closed",e[e.startingStyle=We.startingStyle]="startingStyle",e[e.endingStyle=We.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});var co=C(N(),1),dr=co.createContext(void 0);function ao(){let e=co.useContext(dr);if(e===void 0)throw new Error(ze(26));return e}var Ju="ArrowUp",Qu="ArrowDown",Zu="ArrowLeft",el="ArrowRight",tl="Home",nl="End";var ol=new Set([Zu,el]);var rl=new Set([Ju,Qu]);var il=new Set([...ol,...rl]),Ms=new Set([...il,tl,nl]);var Bs=C(he(),1),sl={...zt,...$t,nestedDialogOpen(e){return e?{[Ls.nestedDialogOpen]:""}:null}},Hs=Fs.forwardRef(function(t,n){let{render:o,className:r,style:i,finalFocus:s,initialFocus:a,...u}=t,{store:c}=Ie(),l=c.useState("descriptionElementId"),f=c.useState("disablePointerDismissal"),m=c.useState("floatingRootContext"),p=c.useState("popupProps"),d=c.useState("modal"),h=c.useState("mounted"),y=c.useState("nested"),g=c.useState("nestedOpenDialogCount"),b=c.useState("open"),E=c.useState("openMethod"),v=c.useState("titleElementId"),R=c.useState("transitionStatus"),w=c.useState("role"),S=m.useState("floatingId"),k=u.id??S;ao(),so({open:b,ref:c.context.popupRef,onComplete(){b&&c.context.onOpenChangeComplete?.(!0)}});let P=a===void 0?Es(c.context.popupRef):a,_=g>0,I=c.useStateSetter("popupElement"),L=Le("div",t,{state:{open:b,nested:y,transitionStatus:R,nestedDialogOpen:_},props:[p,{id:k,"aria-labelledby":v??void 0,"aria-describedby":l??void 0,role:w,...vs,hidden:!h,onKeyDown(D){Ms.has(D.key)&&D.stopPropagation()},style:{[_s.nestedDialogs]:g}},u],ref:[n,c.context.popupRef,I],stateAttributesMapping:sl});return(0,Bs.jsx)(rr,{context:m,openInteractionType:E,disabled:!h,closeOnFocusOut:!f,initialFocus:P,returnFocus:s,modal:d!==!1,restoreFocus:"popup",children:L})});var zs=C(N(),1);function Vs(e){return Ut(19)?e:e?"true":void 0}var Us=C(N(),1),Ws=C(he(),1),$s=Us.forwardRef(function(t,n){let{cutout:o,...r}=t,i;if(o){let s=o.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${s.left}px ${s.top}px,${s.left}px ${s.bottom}px,${s.right}px ${s.bottom}px,${s.right}px ${s.top}px,${s.left}px ${s.top}px)`}return(0,Ws.jsx)("div",{ref:n,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})});var Rn=C(he(),1),js=zs.forwardRef(function(t,n){let{keepMounted:o=!1,...r}=t,{store:i}=Ie(),s=i.useState("mounted"),a=i.useState("modal"),u=i.useState("open");return s||o?(0,Rn.jsx)(dr.Provider,{value:o,children:(0,Rn.jsxs)(nr,{ref:n,...r,children:[s&&a===!0&&(0,Rn.jsx)($s,{ref:i.context.internalBackdropRef,inert:Vs(!u)}),t.children]})}):null});var ec=C(N(),1);var Qs=C(N(),1);var it=C(N(),1);var Gs={},Ys={},Ks="";function cl(e){if(typeof document>"u")return!1;let t=ve(e);return je(t).innerWidth-t.documentElement.clientWidth>0}function al(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let n=ve(e),o=n.documentElement,r=n.body,i=Vn(o)?o:r,s=i.style.overflowY,a=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",i.style.overflowY="scroll";let u=i.offsetWidth;i.style.overflowY="hidden";let c=i.offsetWidth;return i.style.overflowY=s,o.style.scrollbarGutter=a,u===c}function ul(e){let t=ve(e),n=t.documentElement,o=t.body,r=Vn(n)?n:o,i={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,i)}}function ll(e){let t=ve(e),n=t.documentElement,o=t.body,r=je(n),i=0,s=0,a=!1,u=Ye.create();if(Oe.engine.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};function c(){let p=r.getComputedStyle(n),d=r.getComputedStyle(o),g=(p.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=n.scrollTop,s=n.scrollLeft,Gs={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Ks=n.style.scrollBehavior,Ys={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};let b=n.scrollHeight>n.clientHeight,E=n.scrollWidth>n.clientWidth,v=p.overflowY==="scroll"||d.overflowY==="scroll",R=p.overflowX==="scroll"||d.overflowX==="scroll",w=Math.max(0,r.innerWidth-o.clientWidth),S=Math.max(0,r.innerHeight-o.clientHeight),k=parseFloat(d.marginTop)+parseFloat(d.marginBottom),P=parseFloat(d.marginLeft)+parseFloat(d.marginRight),_=Vn(n)?n:o;if(a=al(e),a){n.style.scrollbarGutter=g,_.style.overflowY="hidden",_.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:g,overflowY:"hidden",overflowX:"hidden"}),(b||v)&&(n.style.overflowY="scroll"),(E||R)&&(n.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:k||S?`calc(100dvh - ${k+S}px)`:"100dvh",width:P||w?`calc(100vw - ${P+w}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),o.scrollTop=i,o.scrollLeft=s,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function l(){Object.assign(n.style,Gs),Object.assign(o.style,Ys),a||(n.scrollTop=i,n.scrollLeft=s,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=Ks)}function f(){l(),u.request(c)}c();let m=re(r,"resize",f);return()=>{u.cancel(),l(),typeof r.removeEventListener=="function"&&m()}}var pr=class{lockCount=0;restore=null;timeoutLock=ot.create();timeoutUnlock=ot.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;let o=ve(t).documentElement,r=je(o).getComputedStyle(o).overflowY;if(r==="hidden"||r==="clip"){this.restore=Wt;return}let i=Oe.os.ios||!cl(t);this.restore=i?ul(t):ll(t)}},fl=new pr;function qs(e=!0,t=null){J(()=>{if(e)return fl.acquire(t)},[e,t])}function Xs(e){let{store:t,actionsRef:n}=e,o=t.useState("open");ws(t,o),Cs(t);let{forceUnmount:r}=Ts(o,t),i=it.useCallback(()=>{t.setOpen(!1,Pe(be.imperativeAction))},[t]);it.useImperativeHandle(n,()=>({unmount:r,close:i}),[r,i])}function Js({store:e,parentContext:t,isDrawer:n}){let o=e.useState("open"),r=e.useState("disablePointerDismissal"),i=e.useState("modal"),s=e.useState("popupElement"),a=e.useState("floatingRootContext"),[u,c]=it.useState(0),[l,f]=it.useState(0),m=u===0,p=sr(a,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:i==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(g){if(!e.context.outsidePressEnabledRef.current||"button"in g&&g.button!==0||"touches"in g&&g.touches.length!==1)return!1;let b=He(g);return m&&!r?i&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===b||e.context.backdropRef.current===b||Q(b,s)&&!b?.hasAttribute("data-base-ui-portal"):!0:!1},escapeKey:m});qs(o&&i===!0,s),e.useContextCallback("onNestedDialogOpen",(g,b)=>{c(g),f(b)}),e.useContextCallback("onNestedDialogClose",()=>{c(0),f(0)}),it.useEffect(()=>(t?.onNestedDialogOpen&&o&&t.onNestedDialogOpen(u+1,l+(n?1:0)),t?.onNestedDialogClose&&!o&&t.onNestedDialogClose(),()=>{t?.onNestedDialogClose&&o&&t.onNestedDialogClose()}),[n,o,u,l,t]);let d=p.reference??ye,h=p.trigger??ye,y=p.floating??ye;return ks(e,{activeTriggerProps:d,inactiveTriggerProps:h,popupProps:y,nestedOpenDialogCount:u,nestedOpenDrawerCount:l}),null}var uo=C(N(),1);var dl={...Ds,modal:K(e=>e.modal),nested:K(e=>e.nested),nestedOpenDialogCount:K(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:K(e=>e.nestedOpenDrawerCount),disablePointerDismissal:K(e=>e.disablePointerDismissal),openMethod:K(e=>e.openMethod),descriptionElementId:K(e=>e.descriptionElementId),titleElementId:K(e=>e.titleElementId),viewportElement:K(e=>e.viewportElement),role:K(e=>e.role)},en=class e extends Jt{constructor(t,n,o=!1){let r=new Zt,i=pl(t);i.floatingRootContext=Is(r,n,o),super(i,{popupRef:uo.createRef(),backdropRef:uo.createRef(),internalBackdropRef:uo.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},dl)}setOpen=(t,n)=>{if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&n.trigger==null&&this.state.activeTriggerId!=null&&(n.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,n),n.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(t,n);let o={open:t};xs(o,t,n.trigger),this.update(o)};static useStore(t,n){return Rs(t,(r,i)=>new e(n,r,i),!0).store}};function pl(e={}){return{...Os(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}var xn=C(he(),1);function Zs(e,t="dialog"){let{children:n,open:o,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:s,disablePointerDismissal:a=!1,modal:u=!0,actionsRef:c,handle:l,triggerId:f,defaultTriggerId:m=null}=e,p=t==="drawer",d=t==="alert-dialog",h=d?!0:u,y=d||a,g=d?"alertdialog":"dialog",b=Ie(!0),v={modal:h,disablePointerDismissal:y,nested:!!b,role:g},R=en.useStore(l?.store,{open:r,openProp:o,activeTriggerId:m,triggerIdProp:f,...v});ts(()=>{let I=o===void 0&&R.state.open===!1&&r===!0?{open:!0,activeTriggerId:m}:null;d?R.update(I?{...v,...I}:v):I&&R.update(I)}),R.useControlledProp("openProp",o),R.useControlledProp("triggerIdProp",f),R.useSyncedValues(v),R.useContextCallback("onOpenChange",i),R.useContextCallback("onOpenChangeComplete",s);let w=R.useState("open"),S=R.useState("mounted"),k=R.useState("payload");Xs({store:R,actionsRef:c});let P=w||S,_=Qs.useMemo(()=>({store:R}),[R]);return(0,xn.jsx)(Mn.Provider,{value:!1,children:(0,xn.jsxs)(To.Provider,{value:_,children:[P&&(0,xn.jsx)(Js,{store:R,parentContext:b?.store.context,isDrawer:p}),typeof n=="function"?n({payload:k}):n]})})}function tc(e){let t=ec.useContext(Mn)?"drawer":"dialog";return Zs(e,t)}var nc=C(N(),1);var mr=(function(e){return e[e.open=We.open]="open",e[e.closed=We.closed]="closed",e[e.startingStyle=We.startingStyle]="startingStyle",e[e.endingStyle=We.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});var ml={...zt,...$t,nested(e){return e?{[mr.nested]:""}:null},nestedDialogOpen(e){return e?{[mr.nestedDialogOpen]:""}:null}},oc=nc.forwardRef(function(t,n){let{render:o,className:r,style:i,children:s,...a}=t,u=ao(),{store:c}=Ie(),l=c.useState("open"),f=c.useState("nested"),m=c.useState("transitionStatus"),p=c.useState("nestedOpenDialogCount"),d=c.useState("mounted"),h=c.useStateSetter("viewportElement"),y=p>0;return Le("div",t,{enabled:u||d,state:{open:l,nested:f,transitionStatus:m,nestedDialogOpen:y},ref:[n,h],stateAttributesMapping:ml,props:[{role:"presentation",hidden:!d,style:{pointerEvents:l?void 0:"none"},children:s},a]})});var rc=C(N(),1);var ic=rc.forwardRef(function(t,n){let{render:o,className:r,style:i,id:s,...a}=t,{store:u}=Ie(),c=Yt(s);return u.useSyncedValueWithCleanup("titleElementId",c),Le("h2",t,{ref:n,props:[{id:c},a]})});var lo=C(N(),1);var gr=C(N(),1);var Sn=C(N(),1);function sc(e){let t=Sn.useRef(""),n=Sn.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:Sn.useCallback(r=>{if(r.detail===0){e(r,"keyboard");return}"pointerType"in r?e(r,r.pointerType):e(r,t.current),t.current=""},[e]),onPointerDown:n}}function cc(e,t){let n=oe((i,s)=>{(typeof e=="function"?e():e)||t(s||(Oe.os.ios?"touch":""))}),{onClick:o,onPointerDown:r}=sc(n);return gr.useMemo(()=>({onClick:o,onPointerDown:r}),[o,r])}var ac=lo.forwardRef(function(t,n){let{render:o,className:r,style:i,disabled:s=!1,nativeButton:a=!0,id:u,payload:c,handle:l,...f}=t,m=Ie(!0),p=l?.store??m?.store;if(!p)throw new Error(ze(79));let d=Yt(u),h=p.useState("floatingRootContext"),y=p.useState("isOpenedByTrigger",d),g=p.useState("triggerPopupId",d),b=lo.useRef(null),{registerTrigger:E,isMountedByThisTrigger:v}=Ss(d,b,p,{payload:c}),{getButtonProps:R,buttonRef:w}=fn({disabled:s,native:a}),S=ir(h,{enabled:h!=null}),k=cc(()=>p.select("open"),I=>{p.set("openMethod",I)}),P={disabled:s,open:y},_=p.useState("triggerProps",v);return Le("button",t,{state:P,ref:[w,n,E,b],props:[S.reference,_,k,{[to]:"",id:d,"aria-haspopup":"dialog","aria-expanded":y,"aria-controls":g},f,R],stateAttributesMapping:oi})});var Cn=class{constructor(t){this.store=t??new en}open(t){let n=t?this.store.context.triggerElements.getById(t):void 0;this.store.setOpen(!0,Pe(be.imperativeAction,void 0,n))}openWithPayload(t){this.store.set("payload",t),this.store.setOpen(!0,Pe(be.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,Pe(be.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function uc(){return new Cn}var tn=C(N(),1);var ke=C(N(),1);var gl={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function hl(e,t){let n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function yl(e,t){let n=e.rootNode();return t&&t(n)||n}function fo(e={}){let t,n,o,r,i=null,s=0,a=!1,u=!1,c=!1,l=!1;function f(D,te){n=D;let{mergeOptions:Y,optionsAtMedia:V}=te,q=Y(gl,fo.globalOptions),Ce=Y(q,e);if(t=V(Ce),n.scrollSnapList().length<=1)return;l=t.jump,o=!1,r=hl(n,t.delay);let{eventStore:ie,ownerDocument:Te}=n.internalEngine(),$=!!n.internalEngine().options.watchDrag,fe=yl(n,t.rootNode);ie.add(Te,"visibilitychange",g),$&&n.on("pointerDown",E),$&&!t.stopOnInteraction&&n.on("pointerUp",v),t.stopOnMouseEnter&&ie.add(fe,"mouseenter",R),t.stopOnMouseEnter&&!t.stopOnInteraction&&ie.add(fe,"mouseleave",w),t.stopOnFocusIn&&n.on("slideFocusStart",y),t.stopOnFocusIn&&!t.stopOnInteraction&&ie.add(n.containerNode(),"focusout",h),t.playOnInit&&h()}function m(){n.off("pointerDown",E).off("pointerUp",v).off("slideFocusStart",y),y(),o=!0,a=!1}function p(){let{ownerWindow:D}=n.internalEngine();D.clearTimeout(s),s=D.setTimeout(I,r[n.selectedScrollSnap()]),i=new Date().getTime(),n.emit("autoplay:timerset")}function d(){let{ownerWindow:D}=n.internalEngine();D.clearTimeout(s),s=0,i=null,n.emit("autoplay:timerstopped")}function h(){if(!o){if(b()){c=!0;return}a||n.emit("autoplay:play"),p(),a=!0}}function y(){o||(a&&n.emit("autoplay:stop"),d(),a=!1)}function g(){if(b())return c=a,y();c&&h()}function b(){let{ownerDocument:D}=n.internalEngine();return D.visibilityState==="hidden"}function E(){u||y()}function v(){u||h()}function R(){u=!0,y()}function w(){u=!1,h()}function S(D){typeof D<"u"&&(l=D),h()}function k(){a&&y()}function P(){a&&h()}function _(){return a}function I(){let{index:D}=n.internalEngine(),te=D.clone().add(1).get(),Y=n.scrollSnapList().length-1,V=t.stopOnLastSnap&&te===Y;if(n.canScrollNext()?n.scrollNext(l):n.scrollTo(0,l),n.emit("autoplay:select"),V)return y();h()}function W(){if(!i)return null;let D=r[n.selectedScrollSnap()],te=new Date().getTime()-i;return D-te}return{name:"autoplay",options:e,init:f,destroy:m,play:S,stop:k,reset:P,isPlaying:_,timeUntilNext:W}}fo.globalOptions=void 0;var Ke=C(N(),1);function bl(e){return Object.prototype.toString.call(e)==="[object Object]"}function lc(e){return bl(e)||Array.isArray(e)}function dc(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function po(e,t){let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;let r=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return r!==i?!1:n.every(s=>{let a=e[s],u=t[s];return typeof a=="function"?`${a}`==`${u}`:!lc(a)||!lc(u)?a===u:po(a,u)})}function fc(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function pc(e,t){if(e.length!==t.length)return!1;let n=fc(e),o=fc(t);return n.every((r,i)=>{let s=o[i];return po(r,s)})}function br(e){return typeof e=="number"}function hr(e){return typeof e=="string"}function mo(e){return typeof e=="boolean"}function mc(e){return Object.prototype.toString.call(e)==="[object Object]"}function Re(e){return Math.abs(e)}function vr(e){return Math.sign(e)}function kn(e,t){return Re(e-t)}function vl(e,t){if(e===0||t===0||Re(e)<=Re(t))return 0;let n=kn(Re(e),Re(t));return Re(n/e)}function El(e){return Math.round(e*100)/100}function wn(e){return Pn(e).map(Number)}function Qe(e){return e[On(e)]}function On(e){return Math.max(0,e.length-1)}function Er(e,t){return t===On(e)}function gc(e,t=0){return Array.from(Array(e),(n,o)=>t+o)}function Pn(e){return Object.keys(e)}function hc(e,t){return[e,t].reduce((n,o)=>(Pn(o).forEach(r=>{let i=n[r],s=o[r],a=mc(i)&&mc(s);n[r]=a?hc(i,s):s}),n),{})}function yr(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Rl(e,t){let n={start:o,center:r,end:i};function o(){return 0}function r(u){return i(u)/2}function i(u){return t-u}function s(u,c){return hr(e)?n[e](u):e(t,u,c)}return{measure:s}}function An(){let e=[];function t(r,i,s,a={passive:!0}){let u;if("addEventListener"in r)r.addEventListener(i,s,a),u=()=>r.removeEventListener(i,s,a);else{let c=r;c.addListener(s),u=()=>c.removeListener(s)}return e.push(u),o}function n(){e=e.filter(r=>r())}let o={add:t,clear:n};return o}function xl(e,t,n,o){let r=An(),i=1e3/60,s=null,a=0,u=0;function c(){r.add(e,"visibilitychange",()=>{e.hidden&&d()})}function l(){p(),r.clear()}function f(y){if(!u)return;s||(s=y,n(),n());let g=y-s;for(s=y,a+=g;a>=i;)n(),a-=i;let b=a/i;o(b),u&&(u=t.requestAnimationFrame(f))}function m(){u||(u=t.requestAnimationFrame(f))}function p(){t.cancelAnimationFrame(u),s=null,a=0,u=0}function d(){s=null,a=0}return{init:c,destroy:l,start:m,stop:p,update:n,render:o}}function Sl(e,t){let n=t==="rtl",o=e==="y",r=o?"y":"x",i=o?"x":"y",s=!o&&n?-1:1,a=l(),u=f();function c(d){let{height:h,width:y}=d;return o?h:y}function l(){return o?"top":n?"right":"left"}function f(){return o?"bottom":n?"left":"right"}function m(d){return d*s}return{scroll:r,cross:i,startEdge:a,endEdge:u,measureSize:c,direction:m}}function Ot(e=0,t=0){let n=Re(e-t);function o(c){return c<e}function r(c){return c>t}function i(c){return o(c)||r(c)}function s(c){return i(c)?o(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:s,reachedAny:i,reachedMax:r,reachedMin:o,removeOffset:a}}function yc(e,t,n){let{constrain:o}=Ot(0,e),r=e+1,i=s(t);function s(m){return n?Re((r+m)%r):o(m)}function a(){return i}function u(m){return i=s(m),f}function c(m){return l().set(a()+m)}function l(){return yc(e,a(),n)}let f={get:a,set:u,add:c,clone:l};return f}function Cl(e,t,n,o,r,i,s,a,u,c,l,f,m,p,d,h,y,g,b){let{cross:E,direction:v}=e,R=["INPUT","SELECT","TEXTAREA"],w={passive:!1},S=An(),k=An(),P=Ot(50,225).constrain(p.measure(20)),_={mouse:300,touch:400},I={mouse:500,touch:600},W=d?43:25,L=!1,D=0,te=0,Y=!1,V=!1,q=!1,Ce=!1;function ie(x){if(!b)return;function B(Z){(mo(b)||b(x,Z))&&U(Z)}let G=t;S.add(G,"dragstart",Z=>Z.preventDefault(),w).add(G,"touchmove",()=>{},w).add(G,"touchend",()=>{}).add(G,"touchstart",B).add(G,"mousedown",B).add(G,"touchcancel",A).add(G,"contextmenu",A).add(G,"click",we,!0)}function Te(){S.clear(),k.clear()}function $(){let x=Ce?n:t;k.add(x,"touchmove",de,w).add(x,"touchend",A).add(x,"mousemove",de,w).add(x,"mouseup",A)}function fe(x){let B=x.nodeName||"";return R.includes(B)}function pe(){return(d?I:_)[Ce?"mouse":"touch"]}function T(x,B){let G=f.add(vr(x)*-1),Z=l.byDistance(x,!d).distance;return d||Re(x)<P?Z:y&&B?Z*.5:l.byIndex(G.get(),0).distance}function U(x){let B=yr(x,o);Ce=B,q=d&&B&&!x.buttons&&L,L=kn(r.get(),s.get())>=2,!(B&&x.button!==0)&&(fe(x.target)||(Y=!0,i.pointerDown(x),c.useFriction(0).useDuration(0),r.set(s),$(),D=i.readPoint(x),te=i.readPoint(x,E),m.emit("pointerDown")))}function de(x){if(!yr(x,o)&&x.touches.length>=2)return A(x);let G=i.readPoint(x),Z=i.readPoint(x,E),ge=kn(G,D),M=kn(Z,te);if(!V&&!Ce&&(!x.cancelable||(V=ge>M,!V)))return A(x);let X=i.pointerMove(x);ge>h&&(q=!0),c.useFriction(.3).useDuration(.75),a.start(),r.add(v(X)),x.preventDefault()}function A(x){let G=l.byDistance(0,!1).index!==f.get(),Z=i.pointerUp(x)*pe(),ge=T(v(Z),G),M=vl(Z,ge),X=W-10*M,H=g+M/50;V=!1,Y=!1,k.clear(),c.useDuration(X).useFriction(H),u.distance(ge,!d),Ce=!1,m.emit("pointerUp")}function we(x){q&&(x.stopPropagation(),x.preventDefault(),q=!1)}function me(){return Y}return{init:ie,destroy:Te,pointerDown:me}}function Tl(e,t){let o,r;function i(f){return f.timeStamp}function s(f,m){let d=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(yr(f,t)?f:f.touches[0])[d]}function a(f){return o=f,r=f,s(f)}function u(f){let m=s(f)-s(r),p=i(f)-i(o)>170;return r=f,p&&(o=f),m}function c(f){if(!o||!r)return 0;let m=s(r)-s(o),p=i(f)-i(o),d=i(f)-i(r)>170,h=m/p;return p&&!d&&Re(h)>.1?h:0}return{pointerDown:a,pointerMove:u,pointerUp:c,readPoint:s}}function kl(){function e(n){let{offsetTop:o,offsetLeft:r,offsetWidth:i,offsetHeight:s}=n;return{top:o,right:r+i,bottom:o+s,left:r,width:i,height:s}}return{measure:e}}function wl(e){function t(o){return e*(o/100)}return{measure:t}}function Pl(e,t,n,o,r,i,s){let a=[e].concat(o),u,c,l=[],f=!1;function m(y){return r.measureSize(s.measure(y))}function p(y){if(!i)return;c=m(e),l=o.map(m);function g(b){for(let E of b){if(f)return;let v=E.target===e,R=o.indexOf(E.target),w=v?c:l[R],S=m(v?e:o[R]);if(Re(S-w)>=.5){y.reInit(),t.emit("resize");break}}}u=new ResizeObserver(b=>{(mo(i)||i(y,b))&&g(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>u.observe(b))})}function d(){f=!0,u&&u.disconnect()}return{init:p,destroy:d}}function Al(e,t,n,o,r,i){let s=0,a=0,u=r,c=i,l=e.get(),f=0;function m(){let w=o.get()-e.get(),S=!u,k=0;return S?(s=0,n.set(o),e.set(o),k=w):(n.set(e),s+=w/u,s*=c,l+=s,e.add(s),k=l-f),a=vr(k),f=l,R}function p(){let w=o.get()-t.get();return Re(w)<.001}function d(){return u}function h(){return a}function y(){return s}function g(){return E(r)}function b(){return v(i)}function E(w){return u=w,R}function v(w){return c=w,R}let R={direction:h,duration:d,velocity:y,seek:m,settled:p,useBaseFriction:b,useBaseDuration:g,useFriction:v,useDuration:E};return R}function Ol(e,t,n,o,r){let i=r.measure(10),s=r.measure(50),a=Ot(.1,.99),u=!1;function c(){return!(u||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function l(p){if(!c())return;let d=e.reachedMin(t.get())?"min":"max",h=Re(e[d]-t.get()),y=n.get()-t.get(),g=a.constrain(h/s);n.subtract(y*g),!p&&Re(y)<i&&(n.set(e.constrain(n.get())),o.useDuration(25).useBaseFriction())}function f(p){u=!p}return{shouldConstrain:c,constrain:l,toggleActive:f}}function Il(e,t,n,o,r){let i=Ot(-t+e,0),s=f(),a=l(),u=m();function c(d,h){return kn(d,h)<=1}function l(){let d=s[0],h=Qe(s),y=s.lastIndexOf(d),g=s.indexOf(h)+1;return Ot(y,g)}function f(){return n.map((d,h)=>{let{min:y,max:g}=i,b=i.constrain(d),E=!h,v=Er(n,h);return E?g:v||c(y,b)?y:c(g,b)?g:b}).map(d=>parseFloat(d.toFixed(3)))}function m(){if(t<=e+r)return[i.max];if(o==="keepSnaps")return s;let{min:d,max:h}=a;return s.slice(d,h)}return{snapsContained:u,scrollContainLimit:a}}function Nl(e,t,n){let o=t[0],r=n?o-e:Qe(t);return{limit:Ot(r,o)}}function Dl(e,t,n,o){let i=t.min+.1,s=t.max+.1,{reachedMin:a,reachedMax:u}=Ot(i,s);function c(m){return m===1?u(n.get()):m===-1?a(n.get()):!1}function l(m){if(!c(m))return;let p=e*(m*-1);o.forEach(d=>d.add(p))}return{loop:l}}function _l(e){let{max:t,length:n}=e;function o(i){let s=i-t;return n?s/-n:0}return{get:o}}function Ll(e,t,n,o,r){let{startEdge:i,endEdge:s}=e,{groupSlides:a}=r,u=f().map(t.measure),c=m(),l=p();function f(){return a(o).map(h=>Qe(h)[s]-h[0][i]).map(Re)}function m(){return o.map(h=>n[i]-h[i]).map(h=>-Re(h))}function p(){return a(c).map(h=>h[0]).map((h,y)=>h+u[y])}return{snaps:c,snapsAligned:l}}function Ml(e,t,n,o,r,i){let{groupSlides:s}=r,{min:a,max:u}=o,c=l();function l(){let m=s(i),p=!e||t==="keepSnaps";return n.length===1?[i]:p?m:m.slice(a,u).map((d,h,y)=>{let g=!h,b=Er(y,h);if(g){let E=Qe(y[0])+1;return gc(E)}if(b){let E=On(i)-Qe(y)[0]+1;return gc(E,Qe(y)[0])}return d})}return{slideRegistry:c}}function Fl(e,t,n,o,r){let{reachedAny:i,removeOffset:s,constrain:a}=o;function u(d){return d.concat().sort((h,y)=>Re(h)-Re(y))[0]}function c(d){let h=e?s(d):a(d),y=t.map((b,E)=>({diff:l(b-h,0),index:E})).sort((b,E)=>Re(b.diff)-Re(E.diff)),{index:g}=y[0];return{index:g,distance:h}}function l(d,h){let y=[d,d+n,d-n];if(!e)return d;if(!h)return u(y);let g=y.filter(b=>vr(b)===h);return g.length?u(g):Qe(y)-n}function f(d,h){let y=t[d]-r.get(),g=l(y,h);return{index:d,distance:g}}function m(d,h){let y=r.get()+d,{index:g,distance:b}=c(y),E=!e&&i(y);if(!h||E)return{index:g,distance:d};let v=t[g]-b,R=d+l(v,0);return{index:g,distance:R}}return{byDistance:m,byIndex:f,shortcut:l}}function Bl(e,t,n,o,r,i,s){function a(f){let m=f.distance,p=f.index!==t.get();i.add(m),m&&(o.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(f.index),s.emit("select"))}function u(f,m){let p=r.byDistance(f,m);a(p)}function c(f,m){let p=t.clone().set(f),d=r.byIndex(p.get(),m);a(d)}return{distance:u,index:c}}function Hl(e,t,n,o,r,i,s,a){let u={passive:!0,capture:!0},c=0;function l(p){if(!a)return;function d(h){if(new Date().getTime()-c>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let b=n.findIndex(E=>E.includes(h));br(b)&&(r.useDuration(0),o.index(b,0),s.emit("slideFocus"))}i.add(document,"keydown",f,!1),t.forEach((h,y)=>{i.add(h,"focus",g=>{(mo(a)||a(p,g))&&d(y)},u)})}function f(p){p.code==="Tab"&&(c=new Date().getTime())}return{init:l}}function Tn(e){let t=e;function n(){return t}function o(u){t=s(u)}function r(u){t+=s(u)}function i(u){t-=s(u)}function s(u){return br(u)?u:u.get()}return{get:n,set:o,add:r,subtract:i}}function bc(e,t){let n=e.scroll==="x"?s:a,o=t.style,r=null,i=!1;function s(m){return`translate3d(${m}px,0px,0px)`}function a(m){return`translate3d(0px,${m}px,0px)`}function u(m){if(i)return;let p=El(e.direction(m));p!==r&&(o.transform=n(p),r=p)}function c(m){i=!m}function l(){i||(o.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:l,to:u,toggleActive:c}}function Vl(e,t,n,o,r,i,s,a,u){let l=wn(r),f=wn(r).reverse(),m=g().concat(b());function p(S,k){return S.reduce((P,_)=>P-r[_],k)}function d(S,k){return S.reduce((P,_)=>p(P,k)>0?P.concat([_]):P,[])}function h(S){return i.map((k,P)=>({start:k-o[P]+.5+S,end:k+t-.5+S}))}function y(S,k,P){let _=h(k);return S.map(I=>{let W=P?0:-n,L=P?n:0,D=P?"end":"start",te=_[I][D];return{index:I,loopPoint:te,slideLocation:Tn(-1),translate:bc(e,u[I]),target:()=>a.get()>te?W:L}})}function g(){let S=s[0],k=d(f,S);return y(k,n,!1)}function b(){let S=t-s[0]-1,k=d(l,S);return y(k,-n,!0)}function E(){return m.every(({index:S})=>{let k=l.filter(P=>P!==S);return p(k,t)<=.1})}function v(){m.forEach(S=>{let{target:k,translate:P,slideLocation:_}=S,I=k();I!==_.get()&&(P.to(I),_.set(I))})}function R(){m.forEach(S=>S.translate.clear())}return{canLoop:E,clear:R,loop:v,loopPoints:m}}function Ul(e,t,n){let o,r=!1;function i(u){if(!n)return;function c(l){for(let f of l)if(f.type==="childList"){u.reInit(),t.emit("slidesChanged");break}}o=new MutationObserver(l=>{r||(mo(n)||n(u,l))&&c(l)}),o.observe(e,{childList:!0})}function s(){o&&o.disconnect(),r=!0}return{init:i,destroy:s}}function Wl(e,t,n,o){let r={},i=null,s=null,a,u=!1;function c(){a=new IntersectionObserver(d=>{u||(d.forEach(h=>{let y=t.indexOf(h.target);r[y]=h}),i=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:o}),t.forEach(d=>a.observe(d))}function l(){a&&a.disconnect(),u=!0}function f(d){return Pn(r).reduce((h,y)=>{let g=parseInt(y),{isIntersecting:b}=r[g];return(d&&b||!d&&!b)&&h.push(g),h},[])}function m(d=!0){if(d&&i)return i;if(!d&&s)return s;let h=f(d);return d&&(i=h),d||(s=h),h}return{init:c,destroy:l,get:m}}function $l(e,t,n,o,r,i){let{measureSize:s,startEdge:a,endEdge:u}=e,c=n[0]&&r,l=d(),f=h(),m=n.map(s),p=y();function d(){if(!c)return 0;let b=n[0];return Re(t[a]-b[a])}function h(){if(!c)return 0;let b=i.getComputedStyle(Qe(o));return parseFloat(b.getPropertyValue(`margin-${u}`))}function y(){return n.map((b,E,v)=>{let R=!E,w=Er(v,E);return R?m[E]+l:w?m[E]+f:v[E+1][a]-b[a]}).map(Re)}return{slideSizes:m,slideSizesWithGaps:p,startGap:l,endGap:f}}function zl(e,t,n,o,r,i,s,a,u){let{startEdge:c,endEdge:l,direction:f}=e,m=br(n);function p(g,b){return wn(g).filter(E=>E%b===0).map(E=>g.slice(E,E+b))}function d(g){return g.length?wn(g).reduce((b,E,v)=>{let R=Qe(b)||0,w=R===0,S=E===On(g),k=r[c]-i[R][c],P=r[c]-i[E][l],_=!o&&w?f(s):0,I=!o&&S?f(a):0,W=Re(P-I-(k+_));return v&&W>t+u&&b.push(E),S&&b.push(g.length),b},[]).map((b,E,v)=>{let R=Math.max(v[E-1]||0);return g.slice(R,b)}):[]}function h(g){return m?p(g,n):d(g)}return{groupSlides:h}}function jl(e,t,n,o,r,i,s){let{align:a,axis:u,direction:c,startIndex:l,loop:f,duration:m,dragFree:p,dragThreshold:d,inViewThreshold:h,slidesToScroll:y,skipSnaps:g,containScroll:b,watchResize:E,watchSlides:v,watchDrag:R,watchFocus:w}=i,S=2,k=kl(),P=k.measure(t),_=n.map(k.measure),I=Sl(u,c),W=I.measureSize(P),L=wl(W),D=Rl(a,W),te=!f&&!!b,Y=f||!!b,{slideSizes:V,slideSizesWithGaps:q,startGap:Ce,endGap:ie}=$l(I,P,_,n,Y,r),Te=zl(I,W,y,f,P,_,Ce,ie,S),{snaps:$,snapsAligned:fe}=Ll(I,D,P,_,Te),pe=-Qe($)+Qe(q),{snapsContained:T,scrollContainLimit:U}=Il(W,pe,fe,b,S),de=te?T:fe,{limit:A}=Nl(pe,de,f),we=yc(On(de),l,f),me=we.clone(),ne=wn(n),x=({dragHandler:$e,scrollBody:Be,scrollBounds:pt,options:{loop:mt}})=>{mt||pt.constrain($e.pointerDown()),Be.seek()},B=({scrollBody:$e,translate:Be,location:pt,offsetLocation:mt,previousLocation:yo,scrollLooper:bo,slideLooper:vo,dragHandler:Eo,animation:Ro,eventHandler:Nn,scrollBounds:xo,options:{loop:xr}},Sr)=>{let Cr=$e.settled(),Lc=!xo.shouldConstrain(),Tr=xr?Cr:Cr&&Lc,kr=Tr&&!Eo.pointerDown();kr&&Ro.stop();let Mc=pt.get()*Sr+yo.get()*(1-Sr);mt.set(Mc),xr&&(bo.loop($e.direction()),vo.loop()),Be.to(mt.get()),kr&&Nn.emit("settle"),Tr||Nn.emit("scroll")},G=xl(o,r,()=>x(nt),$e=>B(nt,$e)),Z=.68,ge=de[we.get()],M=Tn(ge),X=Tn(ge),H=Tn(ge),se=Tn(ge),xe=Al(M,H,X,se,m,Z),ce=Fl(f,de,pe,A,se),Ze=Bl(G,we,me,xe,ce,se,s),O=_l(A),F=An(),De=Wl(t,n,s,h),{slideRegistry:ee}=Ml(te,b,de,U,Te,ne),qe=Hl(e,n,ee,Ze,xe,F,s,w),nt={ownerDocument:o,ownerWindow:r,eventHandler:s,containerRect:P,slideRects:_,animation:G,axis:I,dragHandler:Cl(I,e,o,r,se,Tl(I,r),M,G,Ze,xe,ce,we,s,L,p,d,g,Z,R),eventStore:F,percentOfView:L,index:we,indexPrevious:me,limit:A,location:M,offsetLocation:H,previousLocation:X,options:i,resizeHandler:Pl(t,s,r,n,I,E,k),scrollBody:xe,scrollBounds:Ol(A,H,se,xe,L),scrollLooper:Dl(pe,A,H,[M,H,X,se]),scrollProgress:O,scrollSnapList:de.map(O.get),scrollSnaps:de,scrollTarget:ce,scrollTo:Ze,slideLooper:Vl(I,W,pe,V,q,$,de,H,n),slideFocus:qe,slidesHandler:Ul(t,s,v),slidesInView:De,slideIndexes:ne,slideRegistry:ee,slidesToScroll:Te,target:se,translate:bc(I,t)};return nt}function Gl(){let e={},t;function n(c){t=c}function o(c){return e[c]||[]}function r(c){return o(c).forEach(l=>l(t,c)),u}function i(c,l){return e[c]=o(c).concat([l]),u}function s(c,l){return e[c]=o(c).filter(f=>f!==l),u}function a(){e={}}let u={init:n,emit:r,off:s,on:i,clear:a};return u}var Yl={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Kl(e){function t(i,s){return hc(i,s||{})}function n(i){let s=i.breakpoints||{},a=Pn(s).filter(u=>e.matchMedia(u).matches).map(u=>s[u]).reduce((u,c)=>t(u,c),{});return t(i,a)}function o(i){return i.map(s=>Pn(s.breakpoints||{})).reduce((s,a)=>s.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:o}}function ql(e){let t=[];function n(i,s){return t=s.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),s.reduce((a,u)=>Object.assign(a,{[u.name]:u}),{})}function o(){t=t.filter(i=>i.destroy())}return{init:n,destroy:o}}function In(e,t,n){let o=e.ownerDocument,r=o.defaultView,i=Kl(r),s=ql(i),a=An(),u=Gl(),{mergeOptions:c,optionsAtMedia:l,optionsMediaQueries:f}=i,{on:m,off:p,emit:d}=u,h=I,y=!1,g,b=c(Yl,In.globalOptions),E=c(b),v=[],R,w,S;function k(){let{container:ne,slides:x}=E;w=(hr(ne)?e.querySelector(ne):ne)||e.children[0];let G=hr(x)?w.querySelectorAll(x):x;S=[].slice.call(G||w.children)}function P(ne){let x=jl(e,w,S,o,r,ne,u);if(ne.loop&&!x.slideLooper.canLoop()){let B=Object.assign({},ne,{loop:!1});return P(B)}return x}function _(ne,x){y||(b=c(b,ne),E=l(b),v=x||v,k(),g=P(E),f([b,...v.map(({options:B})=>B)]).forEach(B=>a.add(B,"change",I)),E.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(me),g.eventHandler.init(me),g.resizeHandler.init(me),g.slidesHandler.init(me),g.options.loop&&g.slideLooper.loop(),w.offsetParent&&S.length&&g.dragHandler.init(me),R=s.init(me,v)))}function I(ne,x){let B=Te();W(),_(c({startIndex:B},ne),x),u.emit("reInit")}function W(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),s.destroy(),a.clear()}function L(){y||(y=!0,a.clear(),W(),u.emit("destroy"),u.clear())}function D(ne,x,B){!E.active||y||(g.scrollBody.useBaseFriction().useDuration(x===!0?0:E.duration),g.scrollTo.index(ne,B||0))}function te(ne){let x=g.index.add(1).get();D(x,ne,-1)}function Y(ne){let x=g.index.add(-1).get();D(x,ne,1)}function V(){return g.index.add(1).get()!==Te()}function q(){return g.index.add(-1).get()!==Te()}function Ce(){return g.scrollSnapList}function ie(){return g.scrollProgress.get(g.offsetLocation.get())}function Te(){return g.index.get()}function $(){return g.indexPrevious.get()}function fe(){return g.slidesInView.get()}function pe(){return g.slidesInView.get(!1)}function T(){return R}function U(){return g}function de(){return e}function A(){return w}function we(){return S}let me={canScrollNext:V,canScrollPrev:q,containerNode:A,internalEngine:U,destroy:L,off:p,on:m,emit:d,plugins:T,previousScrollSnap:$,reInit:h,rootNode:de,scrollNext:te,scrollPrev:Y,scrollProgress:ie,scrollSnapList:Ce,scrollTo:D,selectedScrollSnap:Te,slideNodes:we,slidesInView:fe,slidesNotInView:pe};return _(t,n),setTimeout(()=>u.emit("init"),0),me}In.globalOptions=void 0;function go(e={},t=[]){let n=(0,Ke.useRef)(e),o=(0,Ke.useRef)(t),[r,i]=(0,Ke.useState)(),[s,a]=(0,Ke.useState)(),u=(0,Ke.useCallback)(()=>{r&&r.reInit(n.current,o.current)},[r]);return(0,Ke.useEffect)(()=>{po(n.current,e)||(n.current=e,u())},[e,u]),(0,Ke.useEffect)(()=>{pc(o.current,t)||(o.current=t,u())},[t,u]),(0,Ke.useEffect)(()=>{if(dc()&&s){In.globalOptions=go.globalOptions;let c=In(s,n.current,o.current);return i(c),()=>c.destroy()}else i(void 0)},[s,i]),[a,r]}go.globalOptions=void 0;var Ue=C(N(),1),It=6e3;function vc(e,t){let n=(0,Ue.useRef)(It),o=(0,Ue.useRef)(null),[r,i]=(0,Ue.useState)(It),s=(0,Ue.useMemo)(()=>fo({delay:r,playOnInit:!1,stopOnFocusIn:!1,stopOnInteraction:!0,stopOnMouseEnter:!1}),[r]),[a,u]=go({duration:t?0:25,loop:!0},[s]),c=(0,Ue.useCallback)(()=>{o.current&&(o.current.style.transform=`scaleX(${1-n.current/It})`)},[]),l=(0,Ue.useCallback)(()=>{let m=s.timeUntilNext();m!==null&&(n.current=Math.max(1,Math.min(It,m))),s.stop(),c()},[s,c]),f=(0,Ue.useCallback)(()=>{n.current=It,i(It),s.reset(),c()},[s,c]);return(0,Ue.useEffect)(()=>{u&&(e?r===n.current?s.play():i(n.current):l())},[u,e,s,r,i,n,l]),(0,Ue.useEffect)(()=>{if(!u)return;let m=0,p=()=>{let g=s.timeUntilNext();!e||g===null||(n.current=Math.max(0,Math.min(It,g)),c(),m=requestAnimationFrame(p))},d=()=>{cancelAnimationFrame(m),e&&(m=requestAnimationFrame(p))},h=()=>cancelAnimationFrame(m),y=()=>{e&&s.play()};return u.on("select",f).on("reInit",y).on("autoplay:timerset",d).on("autoplay:timerstopped",h),c(),d(),()=>{h(),u.off("select",f).off("reInit",y).off("autoplay:timerset",d).off("autoplay:timerstopped",h)}},[u,s,e,n,f,c]),{embla:u,freeze:l,progressRef:o,reset:f,viewportRef:a}}var le=C(he(),1);function Ec({photos:e,name:t,imageSizes:n="(max-width: 1279px) 100vw, 45vw",selected:o,paused:r=!1,photoButtonRef:i,onSelect:s,onExpand:a}){let u=(0,ke.useRef)(null),c=(0,ke.useRef)(null),l=(0,ke.useRef)([]),[f,m]=(0,ke.useState)(!0),[p,d]=(0,ke.useState)(!1),[h,y]=(0,ke.useState)(!1),[g,b]=(0,ke.useState)(!1),[E,v]=(0,ke.useState)(!1),{ref:R,visible:w}=Mr(),[S,k]=(0,ke.useState)(!1),[P,_]=(0,ke.useState)(!0),I=(0,ke.useRef)(null),L=`lockerverse-auction-gallery__control ${P||S||h?"is-visible":""}`,D=()=>{I.current&&clearTimeout(I.current),I.current=setTimeout(()=>k(!1),2e3)},te=T=>{if(T.pointerType!=="mouse"){_(!0);return}k(!0),I.current&&clearTimeout(I.current),T.target instanceof Element&&T.target.closest("[data-gallery-control]")||D()};(0,ke.useEffect)(()=>{let T=window.matchMedia("(hover: none), (pointer: coarse)"),U=()=>_(T.matches);return U(),T.addEventListener("change",U),()=>{T.removeEventListener("change",U),clearTimeout(I.current??void 0)}},[]);let Y=!(r||f||p||h||g||E)&&w,V=e.length,q=V?(o%V+V)%V:0,{viewportRef:Ce,embla:ie,progressRef:Te,freeze:$,reset:fe}=vc(Y&&V>1,f);(0,ke.useEffect)(()=>{let T=window.matchMedia("(prefers-reduced-motion: reduce)"),U=()=>m(T.matches);return U(),T.addEventListener("change",U),()=>T.removeEventListener("change",U)},[]),(0,ke.useEffect)(()=>{if(!ie)return;let T=()=>s(ie.selectedScrollSnap());return ie.on("select",T).on("reInit",T),()=>{ie.off("select",T).off("reInit",T)}},[ie,s]),(0,ke.useEffect)(()=>{ie&&ie.selectedScrollSnap()!==q&&ie.scrollTo(q,!0)},[ie,q]),(0,ke.useEffect)(()=>{let T=()=>{document.hidden&&$()},U=()=>v(!1);return T(),document.addEventListener("visibilitychange",T,!0),window.addEventListener("pointerup",U),window.addEventListener("pointercancel",U),()=>{document.removeEventListener("visibilitychange",T,!0),window.removeEventListener("pointerup",U),window.removeEventListener("pointercancel",U)}},[$]);let pe=T=>{ie?.scrollTo((T+V)%V,f),fe()};return(0,ke.useEffect)(()=>{let T=c.current;c.current=null,T&&document.activeElement===T&&R.current?.querySelector('.lockerverse-auction-gallery__photo[tabindex="0"]')?.focus({preventScroll:!0})},[q,R]),(0,ke.useEffect)(()=>{let T=u.current,U=l.current[q];if(!(T&&U))return;let de=T.getBoundingClientRect(),A=U.getBoundingClientRect();A.left<de.left?T.scrollLeft-=de.left-A.left:A.right>de.right&&(T.scrollLeft+=A.right-de.right)},[q,V]),(0,le.jsxs)("section",{"aria-label":`${t} photos`,className:"lockerverse-auction-gallery",onBlurCapture:T=>{T.currentTarget.contains(T.relatedTarget)||y(!1)},onFocusCapture:T=>y(T.target.matches(":focus-visible")),onKeyDown:T=>{V<2||T.altKey||T.ctrlKey||T.metaKey||T.shiftKey||(T.key==="ArrowLeft"||T.key==="ArrowRight")&&(T.preventDefault(),T.target instanceof HTMLButtonElement&&T.target.classList.contains("lockerverse-auction-gallery__photo")&&(c.current=T.target),pe(q+(T.key==="ArrowRight"?1:-1)))},onPointerEnter:T=>{T.pointerType==="mouse"&&d(!0)},onPointerLeave:T=>{T.pointerType==="mouse"&&d(!1)},ref:R,children:[V?(0,le.jsxs)("div",{className:"lockerverse-auction-gallery__stage",onPointerEnter:te,onPointerLeave:D,onPointerMove:te,children:[(0,le.jsx)("div",{className:"lockerverse-auction-gallery__viewport",onPointerDownCapture:()=>{$(),v(!0)},ref:Ce,children:(0,le.jsx)("div",{className:"lockerverse-auction-gallery__track",children:e.map((T,U)=>(0,le.jsx)("div",{"aria-hidden":U!==q,className:"lockerverse-auction-gallery__slide",children:(0,le.jsx)("button",{"aria-label":`View photo ${U+1} of ${t} at full size`,className:"lockerverse-auction-gallery__photo",onClick:()=>{a(U)},ref:U===q?i:void 0,tabIndex:U===q?0:-1,type:"button",children:(0,le.jsx)(at,{alt:`${t}, ${U+1} of ${V}`,className:"lockerverse-auction-gallery__image",draggable:!1,fetchPriority:U===0?"high":"auto",height:900,loading:U===q?"eager":"lazy",maxWidth:1920,sizes:U===q?n:`auto, ${n}`,src:T,width:1200})})},`${T}-${U}`))})}),V>1&&!f&&(0,le.jsxs)("div",{className:"lockerverse-auction-gallery__rotation",children:[(0,le.jsx)("div",{"aria-hidden":"true",className:"lockerverse-auction-gallery__progress-track",children:(0,le.jsx)("div",{className:"lockerverse-auction-gallery__progress",ref:Te,style:{transform:"scaleX(0)"}})}),(0,le.jsx)("button",{"aria-label":g?"Play photo rotation":"Pause photo rotation",className:`lockerverse-auction-gallery__play ${L}`,"data-gallery-control":!0,onClick:()=>b(T=>!T),title:g?"Play photo rotation":"Pause photo rotation",type:"button",children:g?(0,le.jsx)(Nr,{"aria-hidden":"true",size:13}):(0,le.jsx)(Ir,{"aria-hidden":"true",size:13})})]}),V>1&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)("button",{"aria-label":"Previous photo",className:`lockerverse-auction-gallery__previous ${L}`,"data-gallery-control":!0,onClick:()=>pe(q-1),type:"button",children:(0,le.jsx)(_t,{"aria-hidden":"true",className:"lockerverse-auction-gallery__chevron"})}),(0,le.jsx)("button",{"aria-label":"Next photo",className:`lockerverse-auction-gallery__next ${L}`,"data-gallery-control":!0,onClick:()=>pe(q+1),type:"button",children:(0,le.jsx)(_n,{"aria-hidden":"true",className:"lockerverse-auction-gallery__chevron"})})]})]}):(0,le.jsx)("div",{className:"lockerverse-auction-gallery__empty",children:"No photo available"}),V>1&&(0,le.jsx)("section",{"aria-label":"Choose a photo",className:"lockerverse-auction-gallery__strip",ref:u,children:(0,le.jsx)("div",{className:"lockerverse-auction-gallery__thumbnails",children:e.map((T,U)=>(0,le.jsx)("button",{"aria-label":`Show photo ${U+1} of ${V}`,"aria-pressed":q===U,className:`lockerverse-auction-gallery__thumbnail ${q===U?"is-selected":""}`,onClick:()=>pe(U),ref:de=>{l.current[U]=de},type:"button",children:(0,le.jsx)(at,{alt:"",className:"lockerverse-auction-gallery__thumbnail-image",height:66,loading:"lazy",maxWidth:192,sizes:"88px",src:T,width:88})},`${T}-${U}`))})})]})}var Se=C(he(),1);function Rc({images:e,fallbackImage:t,name:n,imageSizes:o}){let r=[...new Set(e.filter(Boolean))];!r.length&&t&&r.push(t);let[i,s]=(0,tn.useState)(0),[a,u]=(0,tn.useState)(!1),c=(0,tn.useRef)(null),l=(0,tn.useRef)(null),f=c.current?.getRootNode(),m=f&&f instanceof ShadowRoot?f:void 0,p=r.length,d=p?(i%p+p)%p:0;return(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(Ec,{imageSizes:o,name:n,onExpand:h=>{s(h),u(!0)},onSelect:s,paused:a,photoButtonRef:c,photos:r,selected:d}),p>0&&(0,Se.jsx)(st.Root,{onOpenChange:u,open:a,children:(0,Se.jsxs)(st.Portal,{container:m,children:[(0,Se.jsx)(st.Backdrop,{className:"lockerverse-auction-gallery__backdrop"}),(0,Se.jsxs)(st.Popup,{"aria-describedby":void 0,className:"lockerverse-auction-gallery__viewer",finalFocus:c,onKeyDown:h=>{p<2||h.altKey||h.ctrlKey||h.metaKey||h.shiftKey||(h.key==="ArrowLeft"||h.key==="ArrowRight")&&(h.preventDefault(),s((d+(h.key==="ArrowRight"?1:-1)+p)%p))},children:[(0,Se.jsxs)(st.Title,{className:"lockerverse-auction-gallery__sr-only",children:[n," \xB7 Photo ",d+1," of ",p]}),(0,Se.jsxs)("div",{className:"lockerverse-auction-gallery__full-image",onTouchCancel:()=>{l.current=null},onTouchEnd:h=>{let y=l.current;l.current=null;let g=h.changedTouches.item(0);if(!(y&&g)||p<2)return;let b=g.clientX-y.x,E=g.clientY-y.y;Math.abs(b)>=45&&Math.abs(b)>Math.abs(E)*1.3&&s((d+(b<0?1:-1)+p)%p)},onTouchMove:h=>{h.touches.length!==1&&(l.current=null)},onTouchStart:h=>{let y=h.touches.item(0);l.current=h.touches.length===1&&y?{x:y.clientX,y:y.clientY}:null},children:[(0,Se.jsx)(at,{alt:`${n}, ${d+1} of ${p}`,height:900,maxWidth:1920,sizes:"100vw",src:r[d],width:1200}),a&&p>1&&(0,Se.jsx)(at,{alt:"","aria-hidden":"true",className:"lockerverse-auction-gallery__preload",height:900,loading:"eager",maxWidth:1920,sizes:"100vw",src:r[(d+1)%p],width:1200})]}),(0,Se.jsx)(st.Close,{"aria-label":"Close photo viewer",className:"lockerverse-auction-gallery__viewer-close",children:(0,Se.jsx)(Dr,{"aria-hidden":"true",size:22})}),p>1&&(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("button",{"aria-label":"Previous photo",className:"lockerverse-auction-gallery__viewer-previous",onClick:()=>s((d-1+p)%p),type:"button",children:(0,Se.jsx)(_t,{"aria-hidden":"true",size:28})}),(0,Se.jsx)("button",{"aria-label":"Next photo",className:"lockerverse-auction-gallery__viewer-next",onClick:()=>s((d+1)%p),type:"button",children:(0,Se.jsx)(_n,{"aria-hidden":"true",size:28})})]})]})]})})]})}var ue=C(he(),1),Xl={1:"h1",2:"h2"};function Jl(e){return e==="Buy Now"?(0,ue.jsx)(yt,{"aria-hidden":"true",size:16}):e==="Available"||e==="Increment"?(0,ue.jsx)(Lt,{"aria-hidden":"true",size:16}):(0,ue.jsx)(Ln,{"aria-hidden":"true",size:16})}function Ql(e,t){return e.saleMode==="buy_now"?[["Buy Now",_e(e.buyNowPriceAmount??0)],["Available",e.availableQuantity===null?"Available":String(e.availableQuantity)]]:t==="finished"?[["Final bid",e.maxBidAmount?_e(e.maxBidAmount):"No bids"]]:[["Current bid",_e(e.maxBidAmount??0)],["Floor",_e(e.minBidAmount??0)],["Increment",_e(e.bidIncrementAmount??100)]]}function xc({auction:e,item:t,itemHeadingLevel:n=2,galleryImageSizes:o}){Ht(t.startAt??e.startAt,t.endAt??e.endAt);let[r,i]=(0,ho.useState)(!1),s=(0,ho.useId)(),a=bt(e,t),u={active:"Closes",draft:"Opens",finished:"Closed"}[a],c=Ft(e,a,t),l=t.saleMode==="buy_now",f=(t.description??"").trim().length>240,m=Ql(t,a),p=Xl[n];return(0,ue.jsxs)("section",{className:"lockerverse-auctions__item-summary",children:[(0,ue.jsx)(Rc,{fallbackImage:t.image??e.configuration.image??e.community?.banner??e.community?.thumbnail??null,imageSizes:o,images:t.images,name:t.name}),(0,ue.jsxs)("div",{className:"lockerverse-auctions__item-copy",children:[(0,ue.jsx)(p,{children:t.name}),t.description?(0,ue.jsxs)("div",{className:"lockerverse-auctions__item-description",children:[(0,ue.jsx)(_r,{className:!r&&f?"lockerverse-auctions__description-clamped":void 0,description:t.description,id:s}),f?(0,ue.jsxs)("button",{"aria-controls":s,"aria-expanded":r,className:"lockerverse-auctions__description-toggle",onClick:()=>i(!r),type:"button",children:[r?"Hide description":"Read full description"," ",(0,ue.jsx)(Pr,{"aria-hidden":"true",size:16,style:{transform:r?"rotate(180deg)":void 0}})]}):null]}):null,(0,ue.jsxs)("dl",{className:"lockerverse-auctions__stat-panel",children:[m.map(([d,h])=>(0,ue.jsxs)("div",{className:"lockerverse-auctions__stat-row",children:[(0,ue.jsxs)("dt",{children:[Jl(d),d]}),(0,ue.jsx)("dd",{children:h})]},d)),(0,ue.jsxs)("div",{className:"lockerverse-auctions__stat-row",children:[(0,ue.jsxs)("dt",{children:[(0,ue.jsx)(Ar,{"aria-hidden":"true",size:16}),u]}),(0,ue.jsx)("dd",{className:"lockerverse-auctions__stat-date",children:c})]}),!l&&a==="finished"?(0,ue.jsxs)("div",{className:"lockerverse-auctions__stat-footer",children:[(0,ue.jsxs)("div",{children:[(0,ue.jsx)("dt",{children:"Floor"}),(0,ue.jsx)("dd",{children:_e(t.minBidAmount??0)})]}),(0,ue.jsxs)("div",{children:[(0,ue.jsx)("dt",{children:"Bid increment"}),(0,ue.jsx)("dd",{children:_e(t.bidIncrementAmount??100)})]})]}):null]})]})]})}var Nt=C(N(),1);var z=C(he(),1),Zl={1:"h2",2:"h3"},Sc=/^\d+$/;function ef(e,t){let n=Number(e),o=n*(t.buyNowPriceAmount??0);if(!(Sc.test(e)&&Number.isSafeInteger(o))||n<1)return"Enter a whole-number quantity.";if(!t.additionalCharge)return`Total: ${_e(o)}`;let r=t.additionalCharge.firstUnitAmountCents+t.additionalCharge.additionalUnitAmountCents*(n-1),i=o+r;return Number.isSafeInteger(i)?`Subtotal: ${_e(o)} \xB7 ${t.additionalCharge.name}: ${_e(r)} \xB7 Total: ${_e(i)}`:"Enter a valid quantity."}function tf(e,t,n){return String(e?t?t.quantity:1:t?t.amount/100:n)}function nf(e,t){return Bt(e)?"This item is sold out.":t==="draft"?"This item is not open yet.":t==="finished"?e.saleMode==="buy_now"?"Purchases are closed for this item.":"Bidding is closed for this item.":"This item is not available."}function of(e,t,n){return Bt(t)?"All available quantities have been purchased.":n==="draft"?`This item opens ${Ft(e,"draft",t)}.`:t.saleMode==="buy_now"?"This item is no longer available to purchase.":"Bidding has closed for this item."}function rf(e,t,n,o,r){let i={amount:t?0:Number(o)*100,includeServiceFee:n?n.includeServiceFee:e.serviceFeeEnabled&&e.serviceFeeDefaultChecked,quantity:t?Number(o):1};return t||(i.bidType=r),i}function Cc({auction:e,item:t,initialSelection:n,onContinue:o,onError:r,onBack:i,backHref:s,itemHeadingLevel:a=2}){let u=Zl[a],c=t.saleMode==="buy_now",l=Math.ceil(Fr(t)/100),[f,m]=(0,Nt.useState)(tf(c,n,l)),[p,d]=(0,Nt.useState)(n?.bidType??"fixed"),[h,y]=(0,Nt.useState)(null),g=(0,Nt.useId)();Ht(t.startAt??e.startAt,t.endAt??e.endAt);let b=bt(e,t),E=b==="active"&&!Bt(t)&&t.saleMode!=="hybrid";function v(R){if(R.preventDefault(),!Sc.test(f)){y(c?"Enter a whole-number quantity.":"Enter a whole-dollar bid amount.");return}let w=rf(e,c,n,f,p),S=Br(e,t,w);if(S){y(S),r(S);return}try{on(e,t,w)}catch{y("Enter a valid amount or quantity.");return}o(w)}return E?(0,z.jsxs)("form",{className:"lockerverse-auctions__selection",onSubmit:v,children:[(0,z.jsx)(sf,{buyNow:c,headingTag:u,item:t,minimum:l}),(0,z.jsxs)("div",{className:"lockerverse-auctions__selection-body",children:[(0,z.jsx)(uf,{bidType:p,enabled:!c&&!!t.supportsMaximumBids,id:g,onChange:R=>{d(R),y(null)}}),(0,z.jsxs)("label",{className:"lockerverse-auctions__field",htmlFor:g,children:[af(c,p),(0,z.jsxs)("span",{className:"lockerverse-auctions__amount-control",children:[c?null:(0,z.jsx)("span",{"aria-hidden":"true",children:"$"}),(0,z.jsx)("input",{"aria-describedby":`${g}-help`,"aria-invalid":!!h,autoComplete:"off",id:g,inputMode:"numeric",onChange:R=>{m(R.target.value),y(null)},placeholder:c?"1":String(l),required:!0,value:f})]})]}),h?(0,z.jsx)("p",{role:"alert",children:h}):null,(0,z.jsx)("p",{id:`${g}-help`,children:c?ef(f,t):`Enter a whole-dollar bid of at least ${_e(l*100)}. Bid increment: ${_e(t.bidIncrementAmount??100)}.`}),(0,z.jsx)(cf,{item:t}),(0,z.jsxs)("div",{className:"lockerverse-auctions__selection-footer",children:[(0,z.jsx)("p",{children:c?"Continuing moves you into secure checkout where your payment is processed immediately.":"Continuing moves you into the secure payment step where your card is stored for settlement only if your bid wins."}),(0,z.jsxs)("button",{className:"lockerverse-auctions__button",disabled:!e.payment,type:"submit",children:[c?"Continue to Checkout":"Continue to Payment"," ",(0,z.jsx)(ht,{"aria-hidden":"true",size:16})]})]}),e.payment?null:(0,z.jsx)("p",{role:"alert",children:"Payments are not configured for this auction."})]})]}):(0,z.jsxs)("div",{className:"lockerverse-auctions__selection lockerverse-auctions__read-only",children:[(0,z.jsx)("p",{className:"lockerverse-auctions__eyebrow",children:"Item status"}),(0,z.jsx)(u,{children:nf(t,b)}),(0,z.jsx)("p",{children:of(e,t,b)}),(0,z.jsxs)(Mt,{className:"lockerverse-auctions__button",href:s,onBack:i,children:["Browse auction items ",(0,z.jsx)(ht,{"aria-hidden":"true",size:16})]})]})}function sf({headingTag:e,item:t,buyNow:n,minimum:o}){return(0,z.jsxs)("div",{className:"lockerverse-auctions__selection-header",children:[(0,z.jsx)("p",{className:"lockerverse-auctions__eyebrow",children:"Step 1 of 2"}),(0,z.jsx)(e,{children:n?"Buy this item now.":"Place your bid."}),(0,z.jsx)("p",{children:n?"Choose how many you want, then complete the secure checkout.":"Choose your bid amount. You are only charged if this bid wins after bidding closes."}),(0,z.jsxs)("p",{children:[n?"Price: ":"Minimum qualifying bid: ",(0,z.jsx)("strong",{children:_e(n?t.buyNowPriceAmount??0:o*100)})]}),n&&t.availableQuantity!==null?(0,z.jsxs)("p",{children:[t.availableQuantity," available"]}):null,t.collectShippingAddress?(0,z.jsx)("p",{children:"The next step will also collect a delivery address for seller fulfillment."}):null]})}function cf({item:e}){return e.saleMode==="buy_now"||!e.additionalCharge?null:(0,z.jsxs)("p",{children:[e.additionalCharge.name,":"," ",_e(e.additionalCharge.firstUnitAmountCents)," will be added to your winning bid."]})}function af(e,t){return e?"Quantity":t==="maximum"?"Your maximum bid":"Your bid amount"}function uf({bidType:e,enabled:t,id:n,onChange:o}){return t?(0,z.jsxs)("fieldset",{className:"lockerverse-auctions__bid-types",children:[(0,z.jsx)("legend",{children:"Bid type"}),["fixed","maximum"].map(r=>(0,z.jsxs)("div",{className:"lockerverse-auctions__bid-type",children:[(0,z.jsxs)("label",{children:[(0,z.jsx)("input",{checked:e===r,name:`${n}-bid-type`,onChange:()=>o(r),type:"radio",value:r}),(0,z.jsx)("span",{children:r==="fixed"?"Fixed bid":"Maximum bid"})]}),(0,z.jsx)(lf,{id:`${n}-${r}-help`,type:r})]},r))]}):null}function lf({id:e,type:t}){let[n,o]=(0,Nt.useState)(!1);return(0,z.jsxs)("button",{"aria-describedby":n?e:void 0,"aria-label":`About ${t==="fixed"?"fixed":"maximum"} bids`,className:"lockerverse-auctions__bid-help-button",onBlur:()=>o(!1),onClick:()=>o(!0),onFocus:()=>o(!0),onKeyDown:r=>{r.key==="Escape"&&o(!1)},onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),type:"button",children:[(0,z.jsx)(Or,{"aria-hidden":"true",size:16}),n&&(0,z.jsx)("span",{className:"lockerverse-auctions__bid-tip",id:e,role:"tooltip",children:t==="fixed"?"Bid this exact amount. It will not increase automatically.":"We bid only what is needed to lead, up to your private limit. Accepted bids cannot be changed or canceled. A new bid is separate."})]})}var Dt=C(N(),1);var Tc=C(N(),1);var wc=C(he(),1),Rr=()=>{};function kc(e){let t=(0,Tc.useId)(),{auction:n,item:o,selection:r,resumePurchase:i}=e,s=i?i.pricing:on(n,o,r),a=!!i||o.saleMode==="buy_now";return(0,wc.jsx)(Vr,{billingFields:null,buttonText:a?"Buy Now":"Authorize Bid",communityName:e.communityName??n.name,contactErrors:{},email:e.contact.email,id:t,includeServiceFee:r.includeServiceFee,isMaximumBid:!a&&r.bidType==="maximum",isPurchase:a,isTerminal:!1,item:o,locked:!0,message:null,onBack:i||e.interactionLocked?void 0:e.onBack,onEmailChange:Rr,onIncludeServiceFeeChange:e.onIncludeServiceFeeChange,onPhoneChange:Rr,onSameAsBillingChange:Rr,onSubmit:u=>u.preventDefault(),paymentFields:null,phone:e.contact.phone,phoneCountry:Hr(e.contact.phone),pricing:s,quantity:r.quantity,sameAsBilling:!0,serviceFeeCents:i?s.serviceFeeCents:on(n,o,{...r,includeServiceFee:n.serviceFeeEnabled}).serviceFeeCents,serviceFeeEnabled:n.serviceFeeEnabled,shippingFields:null,showFields:!i,submitDisabled:!0})}var ct=C(he(),1),Pc,Ac=null;function Oc(){return Pc??=import("./auction-payment-view-OKQBWLYB.js").then(e=>(Ac=e.AuctionPayment,e)),Pc}function Ic(e,t,n){let o=e?.publishableKey,r=e?.connectedAccountId,[i,s]=(0,Dt.useState)(null);return(0,Dt.useEffect)(()=>{if(!(n&&o))return;let a=Oc().then(u=>u.loadAuctionStripe(o,r,t)).catch(()=>null);s({connectedAccountId:r,publishableKey:o,stripe:a,stripeLoader:t})},[n,o,r,t]),i?.publishableKey===o&&i?.connectedAccountId===r&&i?.stripeLoader===t?i?.stripe:void 0}function Nc(e){let[t,n]=(0,Dt.useState)(()=>Ac),[o,r]=(0,Dt.useState)(!1),i=!!(e.resumePurchase||e.interactionLocked);return(0,Dt.useEffect)(()=>{let s=!0;return Oc().then(({AuctionPayment:a})=>{s&&n(()=>a)},()=>{s&&r(!0)}),()=>{s=!1}},[]),t?(0,ct.jsx)(t,{...e}):o?(0,ct.jsxs)("div",{children:[(0,ct.jsx)("p",{role:"alert",children:"Payment details could not load."}),i&&(0,ct.jsx)("p",{children:"Your purchase status is not confirmed. Keep this page open and contact the auction organizer before you try another purchase."}),i?null:(0,ct.jsx)("button",{onClick:e.onBack,type:"button",children:"Back to item"}),!i&&(0,ct.jsx)("button",{onClick:()=>window.location.reload(),type:"button",children:"Reload page to try again"})]}):(0,ct.jsx)(kc,{...e})}var nn=C(N(),1);var j=C(he(),1);function Dc({action:e,secondary:t=!1}){let n=`lockerverse-auction-result__action${t?" lockerverse-auction-result__action--secondary":""}`,o=(0,j.jsxs)(j.Fragment,{children:[e.label,t?null:(0,j.jsx)(ht,{"aria-hidden":"true",size:18})]});return e.href?(0,j.jsx)("a",{className:n,href:e.href,onClick:e.onClick,children:o}):(0,j.jsx)("button",{className:n,onClick:e.onClick,type:"button",children:o})}var ff={bid:{assurance:"A bid is not a purchase. Payment is collected only if you win at settlement.",assuranceTitle:"Bid authorization saved",badge:"Bid submitted",description:"Your bid and payment method are recorded. You have not been charged for this bid.",next:"Other bidders can still place bids until the item closes.",nextTitle:"Follow the auction",receiptLabel:"Bid summary",steps:["Your bid is recorded. This does not confirm that you have won.","Your saved payment method can be charged if you win at settlement.","Watch your email for bid updates and return to the item to check its status."],title:"Bid received"},purchase:{assurance:"This receipt shows the amount paid for your purchase.",assuranceTitle:"Payment processed",badge:"Purchase confirmed",description:"Your payment is confirmed and your purchase is recorded.",next:"The community handles delivery or collection for this item.",nextTitle:"Next steps",receiptLabel:"Purchase receipt",steps:["Your payment is complete and your purchase is recorded.","The community can review your buyer and delivery details.","Keep your receipt number. Contact the community if you need help with your order."],title:"Purchase complete"},receipt:{assurance:"The amounts below are the recorded purchase amounts, not proof of payment.",assuranceTitle:"Recorded purchase",badge:"Purchase details",description:"Payment status is not confirmed on this page.",next:"Contact the community if you need to confirm your payment or order status.",nextTitle:"Next steps",receiptLabel:"Purchase receipt",steps:["These are the recorded purchase details. They do not confirm payment.","Check your purchase confirmation for the payment result.","Contact the community with your receipt number if you need help."],title:"Purchase details"}};function df(e){let t=[];return e.amountCents!==void 0&&t.push([e.bidType==="maximum"?"Maximum bid":"Bid amount",et(e.amountCents)]),e.additionalCharge&&t.push([e.additionalCharge.name,et(e.additionalChargeCents??0)]),(e.additionalCharge||e.bidType==="maximum")&&((e.serviceFeeCents??0)>0&&t.push([e.bidType==="maximum"?"Maximum service fee":"Service fee",et(e.serviceFeeCents??0)]),e.totalCents!==void 0&&t.push([e.bidType==="maximum"?"Maximum total if I win":"Total if I win",et(e.totalCents)])),t}function pf({outcome:e,auctionName:t,communityName:n,closesAtLabel:o}){let r=[];return e.kind==="bid"?r.push(...df(e)):(r.push(["Unit price",et(e.unitAmountCents)],["Quantity",String(e.quantity)],["Subtotal",et(e.subtotalCents)]),e.additionalCharge&&r.push([e.additionalCharge.name,et(e.additionalChargeCents??0)]),e.serviceFeeCents>0&&r.push(["Service fee",et(e.serviceFeeCents)]),r.push([e.kind==="purchase"?"Total paid":"Total",et(e.totalCents)],["Receipt",e.purchaseId])),t&&r.push(["Auction",t]),n&&r.push(["Community",n]),o&&r.push(["Closes",o]),r}function _c(e){let{outcome:t,itemName:n,imageUrl:o,communityName:r,primaryAction:i,secondaryAction:s,className:a,theme:u="dark",style:c}=e,l=(0,nn.useId)(),f=(0,nn.useRef)(null);(0,nn.useEffect)(()=>{e.focusHeading&&f.current?.focus()},[e.focusHeading]);let m=ff[t.kind],p=t.kind==="receipt"?Co:wr,d=t.kind==="receipt"?Co:yt,h=pf(e);return(0,j.jsx)("section",{"aria-labelledby":l,className:["lockerverse-auctions lockerverse-auction-result",a].filter(Boolean).join(" "),"data-lockerverse-theme":u,style:c,children:(0,j.jsxs)("div",{className:"lockerverse-auction-result__layout",children:[(0,j.jsxs)("div",{className:"lockerverse-auction-result__summary",children:[(0,j.jsxs)("span",{className:"lockerverse-auction-result__badge",children:[(0,j.jsx)(p,{"aria-hidden":"true",size:18}),m.badge]}),r?(0,j.jsx)("p",{className:"lockerverse-auction-result__community",children:r}):null,(0,j.jsxs)("h2",{className:"lockerverse-auction-result__title",id:l,ref:f,tabIndex:e.focusHeading?-1:void 0,children:[m.title," for ",n,"."]}),(0,j.jsxs)("p",{className:"lockerverse-auction-result__description",children:[m.description,t.kind==="bid"&&t.bidType==="maximum"?" We bid for you up to your private maximum. If you win, you pay the final winning price plus applicable fees. This submission does not confirm that you are leading.":""]}),(0,j.jsxs)("div",{className:"lockerverse-auction-result__assurance",children:[(0,j.jsx)(d,{"aria-hidden":"true",size:22}),(0,j.jsxs)("div",{children:[(0,j.jsx)("strong",{children:m.assuranceTitle}),(0,j.jsx)("p",{children:m.assurance})]})]}),(0,j.jsxs)("div",{className:"lockerverse-auction-result__assurance",children:[(0,j.jsx)(Lt,{"aria-hidden":"true",size:22}),(0,j.jsxs)("div",{children:[(0,j.jsx)("strong",{children:m.nextTitle}),(0,j.jsx)("p",{children:m.next})]})]}),i||s?(0,j.jsxs)("div",{className:"lockerverse-auction-result__actions",children:[i?(0,j.jsx)(Dc,{action:i}):null,s?(0,j.jsx)(Dc,{action:s,secondary:!0}):null]}):null]}),(0,j.jsxs)("aside",{"aria-label":m.receiptLabel,className:"lockerverse-auction-result__receipt",children:[o?(0,j.jsx)(at,{alt:n,className:"lockerverse-auction-result__image",height:300,maxWidth:960,sizes:"100vw",src:o,width:420}):null,(0,j.jsxs)("div",{className:"lockerverse-auction-result__receipt-body",children:[(0,j.jsx)("p",{className:"lockerverse-auction-result__eyebrow",children:m.receiptLabel}),(0,j.jsx)("h3",{className:"lockerverse-auction-result__receipt-title",children:n}),(0,j.jsx)("dl",{className:"lockerverse-auction-result__details",children:h.map(([y,g])=>(0,j.jsxs)("div",{children:[(0,j.jsx)("dt",{children:y}),(0,j.jsx)("dd",{children:g})]},y))}),(0,j.jsx)("h4",{children:"What happens next"}),(0,j.jsx)("ol",{className:"lockerverse-auction-result__steps",role:"list",children:m.steps.map((y,g)=>(0,j.jsxs)("li",{children:[(0,j.jsx)("span",{"aria-hidden":"true",className:"lockerverse-auction-result__step-number",children:String(g+1).padStart(2,"0")}),(0,j.jsx)("span",{children:y})]},y))})]})]})]})})}var ae=C(he(),1);function mf({buyNow:e}){return(0,ae.jsxs)("div",{className:"lockerverse-auctions__progress",children:[(0,ae.jsxs)("span",{children:[e?(0,ae.jsx)(yt,{"aria-hidden":"true",size:16}):(0,ae.jsx)(Ln,{"aria-hidden":"true",size:16}),e?"Choose quantity":"Place bid"]}),(0,ae.jsxs)("span",{children:[(0,ae.jsx)(yt,{"aria-hidden":"true",size:16}),e?"Pay securely":"Secure card"]}),(0,ae.jsxs)("span",{children:[(0,ae.jsx)(Lt,{"aria-hidden":"true",size:16}),e?"Get confirmation":"Wait for close"]})]})}function gf(e){let{auction:t,item:n,outcome:o}=e,r;return e.backHref?r={href:e.backHref,label:"View auction items"}:e.onBack&&(r={label:"View auction items",onClick:e.onBack}),(0,ae.jsx)(_c,{auctionName:t.name,className:e.className,closesAtLabel:Ft(t,"active",n),communityName:e.communityName??t.community?.name,focusHeading:!0,imageUrl:n.image??n.images[0]??t.configuration.image??void 0,itemName:n.name,outcome:o,primaryAction:e.returnToItemHref?{href:e.returnToItemHref,label:"Return to item"}:r,secondaryAction:e.returnToItemHref?r:void 0,style:{"--lockerverse-accent":t.community?.color??"#6f8f6d",...e.style},theme:e.theme})}function hf(e){let{auction:t,itemId:n,resumePurchase:o,className:r,theme:i="dark",style:s}=e,a=(0,Ae.useRef)(null),[u,c]=(0,Ae.useState)(t),l=(0,Ae.useRef)(t),f=u.items.find(Y=>Y.id===n)??o?.item;Ht(f?.startAt??u.startAt,f?.endAt??u.endAt);let[m,p]=(0,Ae.useState)(()=>o?{amount:0,includeServiceFee:o.submission.includeServiceFee??!1,quantity:o.submission.quantity}:null),[d,h]=(0,Ae.useState)(!!o),y=(0,Ae.useRef)(!0),g=(0,Ae.useRef)(e);g.current=e;let b=(0,Ae.useRef)(null),E=(0,Ae.useCallback)(Y=>{y.current&&h(Y),b.current!==Y&&(b.current=Y,Ur(g.current.onInteractionLockChange,Y))},[]),v=!!o;(0,Ae.useEffect)(()=>(y.current=!0,E(v),()=>{y.current=!1}),[v,E]);let[R,w]=(0,Ae.useState)({email:"",phone:""}),[S,k]=(0,Ae.useState)(!!o),[P,_]=(0,Ae.useState)(null),[I,W]=(0,Ae.useState)(null);(0,Ae.useEffect)(()=>{!(S||d||o)&&l.current!==t&&(l.current=t,c(t))},[t,S,d,o]);let L=Ic(o?.payment??u.payment,e.stripeLoader,!!o||!!(f&&bt(u,f)==="active"&&!Bt(f)&&f.saleMode!=="hybrid"));function D(Y,V){E(!1),l.current=g.current.auction,c(Y),p(null),k(!1),_(V)}function te(Y){_(null),p(Y),k(!0)}return f?I?(0,ae.jsx)(gf,{...e,auction:u,item:f,outcome:I}):(0,ae.jsxs)("section",{className:["lockerverse-auctions",r].filter(Boolean).join(" "),"data-lockerverse-theme":i,ref:a,style:{"--lockerverse-accent":u.community?.color??"#6f8f6d",...s},children:[d?null:(0,ae.jsxs)(Mt,{className:"lockerverse-auctions__back",href:e.backHref,onBack:e.onBack,children:[(0,ae.jsx)(_t,{"aria-hidden":"true",size:16})," All items"]}),(0,ae.jsxs)("div",{className:"lockerverse-auctions__detail",children:[(0,ae.jsx)(xc,{auction:u,galleryImageSizes:e.galleryImageSizes,item:f,itemHeadingLevel:e.itemHeadingLevel}),(0,ae.jsxs)("div",{className:"lockerverse-auctions__transaction",children:[bt(u,f)==="active"?(0,ae.jsx)(mf,{buyNow:f.saleMode==="buy_now"}):null,P?(0,ae.jsx)("p",{className:"lockerverse-auctions__notice",role:"alert",children:P}):null,S&&m?(0,ae.jsx)(Nc,{...e,appearanceRoot:a,auction:u,communityName:e.communityName??u.community?.name,contact:R,interactionLocked:d,item:f,onBack:()=>k(!1),onContactChange:w,onIncludeServiceFeeChange:Y=>p(V=>V&&{...V,includeServiceFee:u.serviceFeeEnabled&&Y}),onInteractionLockChange:E,onResult:W,onReview:D,selection:m,stripePromise:L}):(0,ae.jsx)(Cc,{auction:u,backHref:e.backHref,initialSelection:m,item:f,itemHeadingLevel:e.itemHeadingLevel,onBack:e.onBack,onContinue:te,onError:_}),d?null:(0,ae.jsxs)(Mt,{className:"lockerverse-auctions__footer-back",href:e.backHref,onBack:e.onBack,children:["Back to auction items ",(0,ae.jsx)(ht,{"aria-hidden":"true",size:16})]})]})]})]}):(0,ae.jsxs)("div",{children:[(0,ae.jsx)("p",{role:"alert",children:"This auction item is no longer available."}),(0,ae.jsx)(Mt,{href:e.backHref,onBack:e.onBack,children:"Back to auction items"})]})}function Gb(e){let t=(0,Ae.useRef)({auctionId:e.auction.id,client:e.client,itemId:e.itemId});if(t.current.client!==e.client||t.current.auctionId!==e.auction.id||t.current.itemId!==e.itemId)throw new TypeError("Auction item identity cannot change. Remount with a new React key.");if(e.resumePurchase&&(e.resumePurchase.auctionId!==e.auction.id||e.resumePurchase.itemId!==e.itemId||e.resumePurchase.item.id!==e.itemId||e.resumePurchase.item.auctionId!==e.auction.id))throw new TypeError("The purchase recovery record belongs to a different auction item.");return(0,ae.jsx)(Lr.Provider,{value:e.auction.mediaBaseUrl,children:(0,ae.jsx)(hf,{...e})})}export{Gb as LockerverseAuctionItem};
|
|
2
|
+
/*! For license information please see lockerverse-auction-item-ZKKDIU3S.js.LEGAL.txt */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Bundled license information:
|
|
2
|
+
|
|
3
|
+
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* use-sync-external-store-shim.production.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js:
|
|
15
|
+
/**
|
|
16
|
+
* @license React
|
|
17
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the MIT license found in the
|
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import"./chunk-DCANE7XH.js";var _=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,m=globalThis,q="10.69.0";function _t(){return K(m),m}function K(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||"10.69.0",e[q]=e["10.69.0"]||{}}function O(t,e,n=m){let r=n.__SENTRY__=n.__SENTRY__||{},s=r[q]=r["10.69.0"]||{};return s[t]||(s[t]=e())}var $t={};function gt(t){if(!("console"in m))return t();let e=m.console,n={},r=Object.keys($t);r.forEach(s=>{let i=$t[s];n[s]=e[s],e[s]=i});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function ze(){yt().enabled=!0}function Ye(){yt().enabled=!1}function de(){return yt().enabled}function Ke(...t){mt("log",...t)}function He(...t){mt("warn",...t)}function Je(...t){mt("error",...t)}function mt(t,...e){_&&de()&>(()=>{m.console[t](`Sentry Logger [${t}]:`,...e)})}function yt(){return _?O("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var f={enable:ze,disable:Ye,isEnabled:de,log:Ke,warn:He,error:Je},Ct=/\(error: (.*)\)/,Dt=/captureMessage|captureException/;function Ge(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{let i=[],o=n.split(`
|
|
2
|
+
`);for(let c=r;c<o.length;c++){let a=o[c];a.length>1024&&(a=a.slice(0,1024));let p=Ct.test(a)?a.replace(Ct,"$1"):a;if(!p.includes("Error: ")){for(let u of e){let l=u(p);if(l){i.push(l);break}}if(i.length>=50+s)break}}return Ve(i.slice(s))}}function Ve(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(T(e).function||"")&&e.pop(),e.reverse(),Dt.test(T(e).function||"")&&(e.pop(),Dt.test(T(e).function||"")&&e.pop()),e.slice(0,50).map(n=>({...n,filename:n.filename||T(e).filename,function:n.function||"?"}))}function T(t){return t[t.length-1]||{}}var X="<anonymous>";function Xe(t){try{return!t||typeof t!="function"?X:t.name||X}catch{return X}}var fe=Object.prototype.toString;function vt(t){switch(fe.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ge(t,Error)}}function P(t,e){return fe.call(t)===`[object ${e}]`}function he(t){return P(t,"ErrorEvent")}function Nt(t){return P(t,"DOMError")}function Ze(t){return P(t,"DOMException")}function et(t){return P(t,"String")}function bt(t){return typeof t=="object"&&!!t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function _e(t){return t===null||bt(t)||typeof t!="object"&&typeof t!="function"}function z(t){return P(t,"Object")}function St(t){return typeof t=="object"&&!!t}function H(t){return typeof Event<"u"&&ge(t,Event)}function tn(t){return P(t,"RegExp")}function A(t){return!!(t?.then&&typeof t.then=="function")}function ge(t,e){try{return t instanceof e}catch{return!1}}function me(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{_&&f.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}function ye(t){if(vt(t))return{message:t.message,name:t.name,stack:t.stack,...jt(t)};if(H(t)){let{type:e,target:n,currentTarget:r,detail:s}=t;return{type:e,target:n,currentTarget:r,...s?{detail:s}:{},...jt(t)}}return t}function jt(t){return St(t)?Object.fromEntries(Object.entries(t)):{}}function en(t){let e=Object.keys(ye(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}var E;function J(t){if(E!==void 0)return E?E(t):t();let e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=m;return e in n&&typeof n[e]=="function"?(E=n[e],E(t)):(E=null,t())}function Y(){return J(()=>Math.random())}function $(){return J(()=>Date.now())}var nn=Symbol.for("sentry.skipNormalization"),rn=Symbol.for("sentry.overrideNormalizationDepth");function sn(t){return!!t[nn]}function on(t){let e=t[rn];return typeof e=="number"?e:void 0}function b(t,e=100,n=1/0){try{return nt("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ve(t,e=3,n=102400){let r=b(t,e);return ln(r)>n?ve(t,e-1,n):r}function nt(t,e,n=1/0,r=1/0,s=pn()){let[i,o]=s;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;let c=an(t,e);if(!c.startsWith("[object "))return c;if(sn(e))return e;let a=on(e),p=a===void 0?n:a;if(p===0)return c.replace("object ","");if(i(e))return"[Circular ~]";let u=e;if(u&&typeof u.toJSON=="function")try{return nt("",u.toJSON(),p-1,r,s)}catch{}let l=Array.isArray(e)?[]:{},h=0,d=ye(e);for(let g in d){if(!Object.prototype.hasOwnProperty.call(d,g))continue;if(h>=r){l[g]="[MaxProperties ~]";break}let y=d[g];l[g]=nt(g,y,p-1,r,s),h++}return o(e),l}function an(t,e){try{return typeof global<"u"&&e===global?"[Global]":typeof e=="number"&&!Number.isFinite(e)?`[${e}]`:typeof e=="function"?`[Function: ${Xe(e)}]`:typeof e=="symbol"?`[${String(e)}]`:typeof e=="bigint"?`[BigInt: ${String(e)}]`:`[object ${cn(e)}]`}catch(n){return`**non-serializable** (${n})`}}function cn(t){let e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function un(t){return~-encodeURI(t).split(/%..|./).length}function ln(t){return un(JSON.stringify(t))}function pn(){let t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function rt(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function U(t,e,n=!1){return et(t)?tn(e)?e.test(t):et(e)?n?t===e:t.includes(e):typeof e=="function"&&e(t):!1}function dn(){let t=m;return t.crypto||t.msCrypto}var At;function fn(){return Y()*16}function v(t=dn()){try{if(t?.randomUUID)return J(()=>t.randomUUID()).replace(/-/g,"")}catch{}return At||="10000000100040008000100000000000",At.replace(/[018]/g,e=>(e^(fn()&15)>>e/4).toString(16))}function hn(t){return t.exception?.values?.[0]}function Rt(t,e,n){let r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||=e||"",i.type||=n||"Error"}function w(t,e){let n=hn(t);if(!n)return;let r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...e},e&&"data"in e){let i={...s?.data,...e.data};n.mechanism.data=i}}function Lt(t){if(_n(t))return!0;try{me(t,"__sentry_captured__",!0)}catch{}return!1}function _n(t){try{return t.__sentry_captured__}catch{}}var be=1e3;function G(){return $()/be}function gn(){let{performance:t}=m;if(!t?.now||!t.timeOrigin)return G;let e=t.timeOrigin;return()=>(e+J(()=>t.now()))/be}var mn;function Se(){return(mn??=gn())()}function st(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||Se(),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:v()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function R(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;let r={...t};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=R(r[s],e[s],n-1));return r}function Mt(){return v()}function xe(){return v().substring(16)}function yn(t){try{let e=m.WeakRef;if(typeof e=="function")return new e(t)}catch{}return t}function Ee(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}var it="_sentrySpan";function Tt(t,e){e?me(t,it,yn(e)):delete t[it]}function Bt(t){return Ee(t[it])}var x=class ot{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Mt(),sampleRand:Y()}}clone(){let e=new ot;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},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,e._conversationId=this._conversationId,Tt(e,Bt(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&&st(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let n=typeof e=="function"?e(this):e,{tags:r,attributes:s,extra:i,user:o,contexts:c,level:a,fingerprint:p=[],propagationContext:u,conversationId:l}=(n instanceof ot?n.getScopeData():z(n)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},o&&Object.keys(o).length&&(this._user=o),a&&(this._level=a),p.length&&(this._fingerprint=p),u&&(this._propagationContext=u),l&&(this._conversationId=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Tt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Mt(),sampleRand:Y()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){let r=typeof n=="number"?n:100;if(r<=0)return this;let s={timestamp:G(),...e,message:e.message?rt(e.message,2048):e.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,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:Bt(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=R(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){let r=n?.event_id||v();if(!this._client)return _&&f.warn("No client configured on scope - will not capture exception!"),r;let s=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){let s=r?.event_id||v();if(!this._client)return _&&f.warn("No client configured on scope - will not capture message!"),s;let i=r?.syntheticException??Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:i,...r,event_id:s},this),s}captureEvent(e,n){let r=e.event_id||n?.event_id||v();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(_&&f.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function vn(){return O("defaultCurrentScope",()=>new x)}function bn(){return O("defaultIsolationScope",()=>new x)}var Ft=t=>t instanceof Promise&&!t[ke],ke=Symbol("chained PromiseLike"),Sn=(t,e,n)=>{let r=t.then(s=>(e(s),s),s=>{throw n(s),s});return Ft(r)&&Ft(t)?r:xn(t,r)},xn=(t,e)=>{if(!e)return t;let n=!1;for(let r in t){if(r in e)continue;n=!0;let s=t[r];typeof s=="function"?Object.defineProperty(e,r,{value:(...i)=>s.apply(t,i),enumerable:!0,configurable:!0,writable:!0}):e[r]=s}return n&&Object.assign(e,{[ke]:!0}),e},En=class{constructor(t,e){let n;n=t||new x;let r;r=e||new x,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){let e=this._pushScope(),n;try{n=t(e)}catch(r){throw this._popScope(),r}return A(n)?Sn(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function I(){let t=K(_t());return t.stack=t.stack||new En(vn(),bn())}function kn(t){return I().withScope(t)}function wn(t,e){let n=I();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Ut(t){return I().withScope(()=>t(I().getIsolationScope()))}function In(){return{withIsolationScope:Ut,withScope:kn,withSetScope:wn,withSetIsolationScope:(t,e)=>Ut(e),getCurrentScope:()=>I().getScope(),getIsolationScope:()=>I().getIsolationScope()}}function we(t){let e=K(t);return e.acs?e.acs:In()}function On(t){return typeof t=="object"&&!!t&&!Array.isArray(t)&&Object.keys(t).includes("value")}function Pn(t,e){let{value:n,unit:r}=On(t)?t:{value:t,unit:void 0},s=$n(n),i=r&&typeof r=="string"?{unit:r}:{};if(s)return{...s,...i};if(!e||e==="skip-undefined"&&n===void 0)return;let o="";try{o=JSON.stringify(n)??""}catch{}return{value:o,type:"string",...i}}function Qt(t,e=!1){let n={};for(let[r,s]of Object.entries(t??{})){let i=Pn(s,e);i&&(n[r]=i)}return n}function $n(t){if(Array.isArray(t))return{value:t,type:"array"};let e=typeof t=="string"?"string":typeof t=="boolean"?"boolean":typeof t=="number"&&!Number.isNaN(t)?Number.isInteger(t)?"integer":"double":null;if(e)return{value:t,type:e}}function Ie(){return we(_t()).getCurrentScope()}function Cn(){return we(_t()).getIsolationScope()}function Dn(){return O("globalScope",()=>new x)}function xt(){return Ie().getClient()}function Nn(t){let{traceId:e,parentSpanId:n,propagationSpanId:r}=t.getPropagationContext(),s={trace_id:e,span_id:r||xe()};return n&&(s.parent_span_id=n),s}function at(t){let e=t;return{scope:e._sentryScope,isolationScope:Ee(e._sentryIsolationScope)}}function jn(t){let e=An(t);if(!e)return;let n=Object.entries(e).reduce((r,[s,i])=>{if(s.startsWith("sentry-")){let o=s.slice(7);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function An(t){if(!(!t||!et(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{let r=Wt(n);return Object.entries(r).forEach(([s,i])=>{e[s]=i}),e},{}):Wt(t)}function Wt(t){return t.split(",").map(e=>{let n=e.indexOf("=");return n===-1?[]:[e.slice(0,n),e.slice(n+1)].map(r=>{try{return decodeURIComponent(r.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}var Rn=/^o(\d+)\./,Ln=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Mn(t){return t==="http"||t==="https"}function L(t,e=!1){let{host:n,path:r,pass:s,port:i,projectId:o,protocol:c,publicKey:a}=t;return`${c}://${a}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function Tn(t){let e=Ln.exec(t);if(!e){gt(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,s="",i="",o="",c=""]=e.slice(1),a="",p=c,u=p.split("/");if(u.length>1&&(a=u.slice(0,-1).join("/"),p=u.pop()),p){let l=p.match(/^\d+/);l&&(p=l[0])}return Oe({host:i,pass:s,path:a,projectId:p,port:o,protocol:n,publicKey:r})}function Oe(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Bn(t){if(!_)return!0;let{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>!t[s]&&(f.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Mn(r)?e&&isNaN(parseInt(e,10))?(f.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(f.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(f.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Fn(t){return t.match(Rn)?.[1]}function Un(t){let e=t.getOptions(),{host:n}=t.getDsn()||{},r;return e.orgId?r=String(e.orgId):n&&(r=Fn(n)),r}function Qn(t){let e=typeof t=="string"?Tn(t):Oe(t);if(!(!e||!Bn(e)))return e}function Wn(t){if(typeof t=="boolean")return Number(t);let e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}var qn=!1;function zn(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:Et(t).parent_span_id,i=at(t).scope;return{parent_span_id:s,span_id:r?i?.getPropagationContext().propagationSpanId||xe():e,trace_id:n}}function Yn(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...s},attributes:i})=>({span_id:e,trace_id:n,sampled:r===1,attributes:i,...s}))}function qt(t){return typeof t=="number"?zt(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?zt(t.getTime()):Se()}function zt(t){return t>9999999999?t/1e3:t}function Et(t){if(Gn(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(Jn(t)){let{attributes:r,startTime:s,name:i,endTime:o,status:c,links:a}=t;return{span_id:e,trace_id:n,data:r,description:i,parent_span_id:Kn(t),start_timestamp:qt(s),timestamp:qt(o)||void 0,status:Xn(c),op:r["sentry.op"],origin:r["sentry.origin"],links:Yn(a)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function Kn(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function Hn(t){return{...t,attributes:Qt(t.attributes),links:t.links?.map(e=>({...e,attributes:Qt(e.attributes)}))}}function Jn(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Gn(t){return typeof t.getSpanJSON=="function"}function Vn(t){let{traceFlags:e}=t.spanContext();return e===1}function Xn(t){if(!(!t||t.code===0))return t.code===1?"ok":t.message||"internal_error"}var Pe=Zn;function Zn(t){return t._sentryRootSpan||t}function Yt(){qn||=(gt(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function Kt(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=t||xt()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function Ht(t){f.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function Jt(t,e){if(!e?.length)return!1;for(let n of e){if(nr(n)){if(t.description&&U(t.description,n))return _&&Ht(t),!0;continue}let r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;let s=!n.name||t.description&&U(t.description,n.name),i=!n.op||t.op&&U(t.op,n.op),o=!n.attributes||Object.entries(n.attributes).every(([c,a])=>tr(t.attributes?.[c],a));if(s&&i&&o)return _&&Ht(t),!0}return!1}function tr(t,e){return typeof t=="string"&&(typeof e=="string"||e instanceof RegExp)?U(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t===e}function er(t,e){let n=e.parent_span_id,r=e.span_id;if(n)for(let s of t)s.parent_span_id===r&&(s.parent_span_id=n)}function nr(t){return typeof t=="string"||t instanceof RegExp}var rr=Symbol.for("sentry.nonRecordingSpan");function sr(t){return!!t&&t[rr]===!0}function $e(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||"production",release:n.release,public_key:r,trace_id:t,org_id:Un(e)};return e.emit("createDsc",s),s}function Ce(t,e){let n=e.getPropagationContext();return n.dsc||$e(n.traceId,t)}function ir(t){let e=xt();if(!e)return{};let n=Pe(t),r=Et(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s["sentry.sample_rate"]??s["sentry.previous_trace_sample_rate"];function c(D){return(typeof o=="number"||typeof o=="string")&&(D.sample_rate=`${o}`),D}let a=n._frozenDsc;if(a)return c(a);let p=sr(n),u=p&&n.dropReason==="ignored";if(p&&(!Kt(e.getOptions())||u)){let D=at(n).scope;if(D){let Pt={...Ce(e,D)};return u&&(Pt.sampled="false"),c(Pt)}}let l=i?.get("sentry.dsc"),h=l&&jn(l);if(h)return c(h);let d=$e(t.spanContext().traceId,e),g=s["sentry.source"]??s["sentry.segment.name.source"],y=r.description;return g!=="url"&&y&&(d.transaction=y),Kt()&&(d.sampled=String(Vn(n)),d.sample_rand=i?.get("sentry.sample_rand")??at(n).scope?.getPropagationContext().sampleRand.toString()),c(d),e.emit("createDsc",d,n),d}function or(t){return!!t&&typeof t=="function"&&"_streamed"in t&&!!t._streamed}function C(t,e=[]){return[t,e]}function Gt(t,e){let[n,r]=t;return[n,[...r,e]]}function ct(t,e){let n=t[1];for(let r of n){let s=r[0].type;if(e(r,s))return!0}return!1}function ar(t,e){return ct(t,(n,r)=>e.includes(r))}function ut(t){let e=K(m);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function cr(t){let[e,n]=t,r=JSON.stringify(e);function s(i){typeof r=="string"?r=typeof i=="string"?r+i:[ut(r),i]:r.push(typeof i=="string"?ut(i):i)}for(let i of n){let[o,c]=i;if(s(`
|
|
3
|
+
${JSON.stringify(o)}
|
|
4
|
+
`),typeof c=="string"||c instanceof Uint8Array)s(c);else{let a;try{a=JSON.stringify(c)}catch{a=JSON.stringify(b(c))}s(a)}}return typeof r=="string"?r:ur(r)}function ur(t){let e=t.reduce((s,i)=>s+i.length,0),n=new Uint8Array(e),r=0;for(let s of t)n.set(s,r),r+=s.length;return n}function lr(t){let e=typeof t.data=="string"?ut(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}var De={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function pr(t){return t in De}function Vt(t){return pr(t)?De[t]:t}function Ne(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function dr(t,e,n,r){let s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date($()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:L(r)},...s&&{trace:s}}}function fr(t,e){if(!e)return t;let n=t.sdk||{};return t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0},t}function hr(t,e,n,r){let s=Ne(n);return C({sent_at:new Date($()).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:L(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}function _r(t,e,n,r){let s=Ne(n),i=t.type&&t.type!=="replay_event"?t.type:"event";fr(t,n?.sdk);let o=dr(t,s,r,e);return delete t.sdkProcessingMetadata,C(o,[[{type:i},t]])}function gr(t){return t.getOptions().traceLifecycle==="stream"}function mr(t,e){let{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;vr(t,e),r&&xr(t,r),Er(t,n),br(t,s),Sr(t,i)}function Xt(t,e){let{extra:n,tags:r,attributes:s,user:i,contexts:o,level:c,sdkProcessingMetadata:a,breadcrumbs:p,fingerprint:u,eventProcessors:l,attachments:h,propagationContext:d,transactionName:g,span:y}=e;N(t,"extra",n),N(t,"tags",r),N(t,"attributes",s),N(t,"user",i),N(t,"contexts",o),t.sdkProcessingMetadata=R(t.sdkProcessingMetadata,a,2),c&&(t.level=c),g&&(t.transactionName=g),y&&(t.span=y),p.length&&(t.breadcrumbs=[...t.breadcrumbs,...p]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),h.length&&(t.attachments=[...t.attachments,...h]),t.propagationContext={...t.propagationContext,...d}}function N(t,e,n){t[e]=R(t[e],n,1)}function yr(t,e){let n=Dn().getScopeData();return t&&Xt(n,t.getScopeData()),e&&Xt(n,e.getScopeData()),n}function vr(t,e){let{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:c}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(s).length&&(t.user={...s,...t.user}),Object.keys(i).length&&(t.contexts={...i,...t.contexts}),o&&(t.level=o),c&&t.type!=="transaction"&&(t.transaction=c)}function br(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function Sr(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function xr(t,e){t.contexts={trace:zn(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:ir(e),...t.sdkProcessingMetadata};let n=Et(Pe(e)).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function Er(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}function M(t){return new je(e=>{e(t)})}function kt(t){return new je((e,n)=>{n(t)})}var je=class lt{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,n){return new lt((r,s)=>{this._handlers.push([!1,i=>{if(!e)r(i);else try{r(e(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new lt((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,e&&e()},o=>{i=!0,s=o,e&&e()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===0)return;let e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||=(this._state===1&&n[1](this._value),this._state===2&&n[2](this._value),!0)})}_runExecutor(e){let n=(i,o)=>{if(this._state===0){if(A(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(1,i)},s=i=>{n(2,i)};try{e(r,s)}catch(i){s(i)}}};function kr(t,e,n,r=0){try{let s=pt(e,n,t,r);return A(s)?s:M(s)}catch(s){return kt(s)}}function pt(t,e,n,r){let s=n[r];if(!t||!s)return t;let i=s({...t},e);return _&&i===null&&f.log(`Event processor "${s.id||"?"}" dropped event`),A(i)?i.then(o=>pt(o,e,n,r+1)):pt(i,e,n,r+1)}var k,Zt,te,S;function wr(t){let e=m._sentryDebugIds,n=m._debugIds;if(!e&&!n)return{};let r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(S&&r.length===Zt&&s.length===te)return S;Zt=r.length,te=s.length,S={},k||={};let i=(o,c)=>{for(let a of o){let p=c[a],u=k?.[a];if(u&&S&&p)S[u[0]]=p,k&&(k[a]=[u[0],p]);else if(p){let l=t(a);for(let h=l.length-1;h>=0;h--){let d=l[h]?.filename;if(d&&S&&k){S[d]=p,k[a]=[d,p];break}}}}};return e&&i(r,e),n&&i(s,n),S}function Ir(t,e,n,r,s,i){let{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=t,a={...e,event_id:e.event_id||n.event_id||v(),timestamp:e.timestamp||G()},p=n.integrations||t.integrations.map(y=>y.name);Or(a,t),Cr(a,p),s&&s.emit("applyFrameMetadata",e),e.type===void 0&&Pr(a,t.stackParser);let u=Nr(r,n.captureContext);n.mechanism&&w(a,n.mechanism);let l=s?s.getEventProcessors():[],h=yr(i,u),d=[...n.attachments||[],...h.attachments];d.length&&(n.attachments=d),mr(a,h);let g=[...l,...h.eventProcessors];return(n.data&&n.data.__sentry__===!0?M(a):kr(g,a,n)).then(y=>(y&&$r(y),typeof o=="number"&&o>0?Dr(y,o,c):y))}function Or(t,e){let{environment:n,release:r,dist:s,maxValueLength:i}=e;t.environment=t.environment||n||"production",!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);let o=t.request;o?.url&&i&&(o.url=rt(o.url,i)),i&&t.exception?.values?.forEach(c=>{c.value&&=rt(c.value,i)})}function Pr(t,e){let n=wr(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function $r(t){let e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?e[s.abs_path]=s.debug_id:s.filename&&(e[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.entries(e).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Cr(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Dr(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(s=>({...s,...s.data&&{data:b(s.data,e,n)}}))},...t.user&&{user:b(t.user,e,n)},...t.contexts&&{contexts:b(t.contexts,e,n)},...t.extra&&{extra:b(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=b(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(s=>({...s,...s.data&&{data:b(s.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=b(t.contexts.flags,3,n)),r}function Nr(t,e){if(!e)return t;let n=t?t.clone():new x;return n.update(e),n}function Ae(t){return typeof t=="object"&&typeof t.unref=="function"&&t.unref(),t}function jr(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Ar(t){return`${jr(t)}${t.projectId}/envelope/`}function Rr(t,e){let n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function Lr(t,e,n){return e||`${Ar(t)}?${Rr(t,n)}`}var ee=[];function Mr(t,e){let n={};return e.forEach(r=>{r?.beforeSetup&&r.beforeSetup(t)}),e.forEach(r=>{r&&Re(t,r,n)}),n}function ne(t,e){for(let n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function Re(t,e,n){if(n[e.name]){_&&f.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,!ee.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),ee.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){let r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(s,i)=>r(s,i,t))}if(typeof e.processEvent=="function"){let r=e.processEvent.bind(e),s=Object.assign((i,o)=>r(i,o,t),{id:e.name});t.addEventProcessor(s)}["processSpan","processSegmentSpan"].forEach(r=>{let s=e[r];typeof s=="function"&&t.on(r,i=>s.call(e,i,t))}),_&&f.log(`Integration installed: ${e.name}`)}function Tr(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Br(){return"npm"}function Fr(){return!Tr()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function wt(){return typeof window<"u"&&(!Fr()||Ur())}function Ur(){return m.process?.type==="renderer"}function Qr(t,e){let n=e?"auto":"never";return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...wt()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function Wr(t,e,n,r,s){let i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=L(r)),C(i,[Qr(t,s)])}function qr(t,e){let n=e??zr(t)??[];if(n.length===0)return;let r=t.getOptions(),s=Wr(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);Le().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function zr(t){return Le().get(t)}function Le(){return O("clientToLogBufferMap",()=>new WeakMap)}function Yr(t,e){let n=e?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...wt()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function Kr(t,e,n,r,s){let i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=L(r)),C(i,[Yr(t,s)])}function Hr(t,e){let n=e??Jr(t)??[];if(n.length===0)return;let r=t.getOptions(),s=Kr(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);Me().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function Jr(t){return Me().get(t)}function Me(){return O("clientToMetricBufferMap",()=>new WeakMap)}function Gr(t){return Hn({trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,name:t.description||"",start_timestamp:t.start_timestamp,end_timestamp:t.timestamp||t.start_timestamp,status:!t.status||t.status==="ok"||t.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...t.data},links:t.links})}function Vr(t,e){if(t.type!=="transaction"||!t.spans?.length||!t.sdkProcessingMetadata?.hasGenAiSpans||e.getOptions().streamGenAiSpans===!1||gr(e))return;let n=[],r=[];for(let i of t.spans)i.op?.startsWith("gen_ai.")?n.push(Gr(i)):r.push(i);if(n.length===0)return;t.spans=r;let s=e.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...wt()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}var It=Symbol.for("SentryBufferFullError");function Ot(t=100){let e=new Set;function n(){return e.size<t}function r(o){e.delete(o)}function s(o){if(!n())return kt(It);let c=o();return e.add(c),c.then(()=>r(c),()=>r(c)),c}function i(o){if(!e.size)return M(!0);let c=Promise.allSettled(Array.from(e)).then(()=>!0);if(!o)return c;let a=[c,new Promise(p=>Ae(setTimeout(()=>p(!1),o)))];return Promise.race(a)}return{get $(){return Array.from(e)},add:s,drain:i}}function Xr(t,e=$()){let n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}function Zr(t,e){return t[e]||t.all||0}function ts(t,e,n=$()){return Zr(t,e)>n}function es(t,{statusCode:e,headers:n},r=$()){let s={...t},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(let c of i.trim().split(",")){let[a,p,,,u]=c.split(":",5),l=parseInt(a,10),h=(isNaN(l)?60:l)*1e3;if(!p)s.all=r+h;else for(let d of p.split(";"))d==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(s[d]=r+h):s[d]=r+h}else o?s.all=r+Xr(o,r):e===429&&(s.all=r+6e4);return s}function ns(t,e,n=Ot(t.bufferSize||64)){let r={},s=o=>n.drain(o);function i(o){let c=[];if(ct(o,(u,l)=>{let h=Vt(l);ts(r,h)?t.recordDroppedEvent("ratelimit_backoff",h):c.push(u)}),c.length===0)return Promise.resolve({});let a=C(o[0],c),p=u=>{if(ar(a,["client_report"])){_&&f.warn(`Dropping client report. Will not send outcomes (reason: ${u}).`);return}ct(a,(l,h)=>{t.recordDroppedEvent(u,Vt(h))})};return n.add(()=>e({body:cr(a)}).then(u=>u.statusCode===413?(_&&f.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),p("send_error"),u):(_&&u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&f.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=es(r,u),u),u=>{throw p("network_error"),_&&f.error("Encountered error running transport request:",u),u})).then(u=>u,u=>{if(u===It)return _&&f.error("Skipped sending event because buffer is full."),p("queue_overflow"),Promise.resolve({});throw u})}return{send:i,flush:s}}function rs(t,e,n){let r=[{type:"client_report"},{timestamp:n||G(),discarded_events:t}];return C(e?{dsn:e}:{},[r])}function ss(t){let e=[];t.message&&e.push(t.message);try{let n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function is(t){let{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:c}=t.contexts?.trace??{};return{data:o??{},description:t.transaction,op:c,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:i,profile_id:o?.["sentry.profile_id"],exclusive_time:o?.["sentry.exclusive_time"],measurements:t.measurements,is_segment:!0}}function os(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&&{"sentry.profile_id":t.profile_id},...t.exclusive_time&&{"sentry.exclusive_time":t.exclusive_time}}}},measurements:t.measurements}}var B=["forwarded","-ip","remote-","via","-user"];function as(t){return t===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:B},httpHeaders:{request:{deny:B},response:{deny:B}},httpBodies:[],urlQueryParams:{deny:B},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}var cs={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5};function us(t){let e=t.dataCollection==null?as(t.sendDefaultPii):cs,n=t.dataCollection??{};return{userInfo:n.userInfo??e.userInfo,cookies:n.cookies??e.cookies,httpHeaders:{request:n.httpHeaders?.request??e.httpHeaders.request,response:n.httpHeaders?.response??e.httpHeaders.response},httpBodies:n.httpBodies??e.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??e.urlQueryParams,graphQL:{document:n.graphQL?.document??e.graphQL.document,variables:n.graphQL?.variables??e.graphQL.variables},genAI:{inputs:n.genAI?.inputs??e.genAI.inputs,outputs:n.genAI?.outputs??e.genAI.outputs},databaseQueryData:n.databaseQueryData??e.databaseQueryData,stackFrameVariables:n.stackFrameVariables??e.stackFrameVariables,frameContextLines:n.frameContextLines??e.frameContextLines}}var re="Not capturing exception because it's already been captured.",se="Discarded session because of missing or non-string release",Te=Symbol.for("SentryInternalError"),Be=Symbol.for("SentryDoNotSendEventError");function Q(t){return{message:t,[Te]:!0}}function Z(t){return{message:t,[Be]:!0}}function ie(t){return St(t)&&Te in t}function oe(t){return St(t)&&Be in t}function ae(t,e,n,r,s){let i=0,o,c=!1;t.on(n,()=>{i=0,clearTimeout(o),c=!1}),t.on(e,a=>{if(i+=r(a),i>=8e5)s(t);else if(!c){let p=t.getOptions()._flushInterval??5e3;p>0&&(c=!0,o=Ae(setTimeout(()=>{s(t)},p)))}}),t.on("flush",()=>{s(t)})}var ls=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ot(t.transportOptions?.bufferSize??64),this._dataCollection=us(t),t.dsn?this._dsn=Qn(t.dsn):_&&f.warn("No DSN provided, client will not send events."),this._dsn){let e=Lr(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&ae(this,"afterCaptureLog","flushLogs",hs,qr),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&ae(this,"afterCaptureMetric","flushMetrics",fs,Hr)}captureException(t,e,n){let r=v();if(Lt(t))return _&&f.log(re),r;let s={event_id:r,...e};return this._process(()=>this.eventFromException(t,s).then(i=>this._captureEvent(i,s,n)).then(i=>i),"error"),s.event_id}captureMessage(t,e,n,r){let s={event_id:v(),...n},i=bt(t)?t:String(t),o=_e(t),c=o?this.eventFromMessage(i,e,s):this.eventFromException(t,s);return this._process(()=>c.then(a=>this._captureEvent(a,s,r)),o?"unknown":"error"),s.event_id}captureEvent(t,e,n){let r=v();if(e?.originalException&&Lt(e.originalException))return _&&f.log(re),r;let s={event_id:r,...e},i=t.sdkProcessingMetadata||{},o=i.capturedSpanScope,c=i.capturedSpanIsolationScope,a=ce(t.type);return this._process(()=>this._captureEvent(t,s,o||n,c),a),s.event_id}captureSession(t){this.sendSession(t),st(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){let e=this._transport;if(this.emit("flush"),!e)return!0;let n=await this._isClientDoneProcessing(t),r=await e.flush(t);return n&&r}async close(t){let e=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),e}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){let e=this._integrations[t.name];!e&&t.beforeSetup&&t.beforeSetup(this),Re(this,t,this._integrations),e||ne(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=Vr(t,this),r=_r(t,this._dsn,this._options._metadata,this._options.tunnel);for(let s of e.attachments||[])r=Gt(r,lr(s));n&&(r=Gt(r,n)),this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){let{release:e,environment:n="production"}=this._options;if("aggregates"in t){let s=t.attrs||{};if(!s.release&&!e){_&&f.warn(se);return}s.release=s.release||e,s.environment=s.environment||n,t.attrs=s}else{if(!t.release&&!e){_&&f.warn(se);return}t.release=t.release||e,t.environment=t.environment||n}this.emit("beforeSendSession",t);let r=hr(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,e,n=1){if(this._options.sendClientReports){let r=`${t}:${e}`;_&&f.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){let n=this._hooks[t]=this._hooks[t]||new Set,r=(...s)=>e(...s);return n.add(r),()=>{n.delete(r)}}emit(t,...e){let n=this._hooks[t];n&&n.forEach(r=>r(...e))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(e){return _&&f.error("Error while sending envelope:",e),{}}return _&&f.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=Mr(this,t),ne(this,t)}_updateSessionFromEvent(t,e){let n=e.level==="fatal",r=!1,s=e.exception?.values;if(s){r=!0,n=!1;for(let o of s)if(o.mechanism?.handled===!1){n=!0;break}}let i=t.status==="ok";(i&&t.errors===0||i&&n)&&(st(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let e=0;for(;!t||e<t;){if(await new Promise(n=>setTimeout(n,1)),!this._numProcessing)return!0;e++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,e,n,r){let s=this.getOptions(),i=this.getIntegrationNames();return!e.integrations&&i.length&&(e.integrations=i),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),Ir(s,t,e,n,this,r).then(o=>(o===null||(this.emit("postprocessEvent",o,e),o.contexts={trace:{...o.contexts?.trace,...Nn(n)},...o.contexts},o.sdkProcessingMetadata={dynamicSamplingContext:Ce(this,n),...o.sdkProcessingMetadata}),o))}_captureEvent(t,e={},n=Ie(),r=Cn()){return _&&dt(t)&&f.log(`Captured error event \`${ss(t)[0]||"<unknown>"}\``),this._processEvent(t,e,n,r).then(s=>s.event_id,s=>{_&&(oe(s)?f.log(s.message):ie(s)?f.warn(s.message):f.warn(s))})}_processEvent(t,e,n,r){let s=this.getOptions(),{sampleRate:i}=s,o=Fe(t),c=dt(t),a=`before send for type \`${t.type||"error"}\``,p=i===void 0?void 0:Wn(i);if(c&&typeof p=="number"&&Y()>p)return this.recordDroppedEvent("sample_rate","error"),kt(Z(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));let u=ce(t.type);return this._prepareEvent(t,e,n,r).then(l=>{if(l===null)throw this.recordDroppedEvent("event_processor",u),Z("An event processor returned `null`, will not send event.");return e.data?.__sentry__===!0?l:ps(ds(this,s,l,e),a)}).then(l=>{if(l===null){if(this.recordDroppedEvent("before_send",u),o){let g=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",g)}throw Z(`${a} returned \`null\`, will not send event.`)}let h=n.getSession()||r.getSession();if(c&&h&&this._updateSessionFromEvent(h,l),o){let g=(l.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(l.spans?l.spans.length:0);g>0&&this.recordDroppedEvent("before_send","span",g)}let d=l.transaction_info;return o&&d&&l.transaction!==t.transaction&&(l.transaction_info={...d,source:"custom"}),this.sendEvent(l,e),l}).then(null,l=>{throw oe(l)||ie(l)?l:(this.captureException(l,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:l}),Q(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
5
|
+
Reason: ${l}`))})}_process(t,e){this._numProcessing++,this._promiseBuffer.add(t).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===It&&this.recordDroppedEvent("queue_overflow",e),n))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([e,n])=>{let[r,s]=e.split(":");return{reason:r,category:s,quantity:n}})}_flushOutcomes(){_&&f.log("Flushing outcomes...");let t=this._clearOutcomes();if(t.length===0){_&&f.log("No outcomes to send");return}if(!this._dsn){_&&f.log("No dsn provided, will not send outcomes");return}_&&f.log("Sending outcomes:",t);let e=rs(t,this._options.tunnel&&L(this._dsn));this.sendEnvelope(e)}};function ce(t){return t==="replay_event"?"replay":t||"error"}function ps(t,e){let n=`${e} must return \`null\` or a valid event.`;if(A(t))return t.then(r=>{if(!z(r)&&r!==null)throw Q(n);return r},r=>{throw Q(`${e} rejected with ${r}`)});if(!z(t)&&t!==null)throw Q(n);return t}function ds(t,e,n,r){let{beforeSend:s,beforeSendTransaction:i,ignoreSpans:o}=e,c=!or(e.beforeSendSpan)&&e.beforeSendSpan,a=n;if(dt(a)&&s)return s(a,r);if(Fe(a)){if(c||o){let p=is(a);if(o?.length&&Jt({description:p.description,op:p.op,attributes:p.data},o))return null;if(c){let u=c(p);u?a=R(n,os(u)):Yt()}if(a.spans){let u=[],l=a.spans;for(let d of l){if(o?.length&&Jt({description:d.description,op:d.op,attributes:d.data},o)){er(l,d);continue}if(c){let g=c(d);g?u.push(g):(Yt(),u.push(d))}else u.push(d)}let h=a.spans.length-u.length;h&&t.recordDroppedEvent("before_send","span",h),a.spans=u}}if(i){if(a.spans){let p=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:p}}return i(a,r)}}return a}function dt(t){return t.type===void 0}function Fe(t){return t.type==="transaction"}function fs(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+Ue(t.attributes)}function hs(t){let e=0;return t.message&&(e+=t.message.length*2),e+Ue(t.attributes)}function Ue(t){if(!t)return 0;let e=0;return Object.values(t).forEach(n=>{Array.isArray(n)?e+=n.length*ue(n[0]):_e(n)?e+=ue(n):e+=100}),e}function ue(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function _s(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function gs(t,e,n=[e],r="npm"){let s=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${e}`,s.packages=n.map(i=>({name:`${r}:@sentry/${i}`,version:q})),s.version=q)}function ms(t){return vt(t)&&"__sentry_fetch_url_host__"in t&&typeof t.__sentry_fetch_url_host__=="string"}function le(t){return ms(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function ys(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}var j=m;function Qe(t,e){let n=V(t,e),r={type:Es(e),value:ks(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function vs(t,e,n,r){let s=xt()?.getOptions().normalizeDepth,i=Cs(e),o={__serialized__:ve(e,s)};if(i)return{exception:{values:[Qe(t,i)]},extra:o};let c={exception:{values:[{type:H(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Ps(e,{isUnhandledRejection:r})}]},extra:o};if(n){let a=V(t,n);a.length&&(c.exception.values[0].stacktrace={frames:a})}return c}function tt(t,e){return{exception:{values:[Qe(t,e)]}}}function V(t,e){let n=e.stacktrace||e.stack||"",r=Ss(e),s=xs(e);try{return t(n,r,s)}catch{}return[]}var bs=/Minified React error #\d+;/i;function Ss(t){return t&&bs.test(t.message)?1:0}function xs(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function We(t){return typeof WebAssembly<"u"&&WebAssembly.Exception!==void 0&&t instanceof WebAssembly.Exception}function Es(t){let e=t?.name;return!e&&We(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function ks(t){let e=t?.message;return We(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?le(e.error):le(t):"No error message"}function ws(t,e,n,r){let s=Os(t,e,n?.syntheticException||void 0,r);return w(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),M(s)}function Is(t,e,n="info",r,s){let i=ft(t,e,r?.syntheticException||void 0,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),M(i)}function Os(t,e,n,r,s){let i;if(he(e)&&e.error)return tt(t,e.error);if(Nt(e)||Ze(e)){let o=e;if("stack"in e){i=tt(t,e);let c=i.exception?.values?.[0];if(r&&n&&c&&!c.stacktrace){let a=V(t,n);a.length&&(c.stacktrace={frames:a},w(i,{synthetic:!0}))}}else{let c=o.name||(Nt(o)?"DOMError":"DOMException"),a=o.message?`${c}: ${o.message}`:c;i=ft(t,a,n,r),Rt(i,a)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return vt(e)?tt(t,e):z(e)||H(e)?(i=vs(t,e,n,s),w(i,{synthetic:!0}),i):(i=ft(t,e,n,r),Rt(i,`${e}`,void 0),w(i,{synthetic:!0}),i)}function ft(t,e,n,r){let s={};if(r&&n){let i=V(t,n);i.length&&(s.exception={values:[{value:e,stacktrace:{frames:i}}]}),w(s,{synthetic:!0})}if(bt(e)){let{__sentry_template_string__:i,__sentry_template_values__:o}=e;return s.logentry={message:i,params:o},s}return s.message=e,s}function Ps(t,{isUnhandledRejection:e}){let n=en(t),r=e?"promise rejection":"exception";return he(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:H(t)?`Event \`${$s(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function $s(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Cs(t){return Object.values(t).find(e=>e instanceof Error)}var Ds=class extends ls{constructor(t){let e=Ns(t);gs(e,"browser",["browser"],j.SENTRY_SDK_SOURCE||Br()),super(e);let{userInfo:n}=this.getDataCollectionOptions();e._metadata?.sdk&&(e._metadata.sdk.settings={infer_ip:n?"auto":"never",...e._metadata.sdk.settings});let{sendClientReports:r}=this._options;j.document&&j.document.addEventListener("visibilitychange",()=>{j.document.visibilityState==="hidden"&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on("beforeSendSession",_s)}eventFromException(t,e){return ws(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return Is(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}};function Ns(t){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:j.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}var js=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,F=m,W={};function As(t){let e=W[t];if(e)return e;let n=F[t];if(ys(n))return W[t]=n.bind(F);let r=F.document;if(r&&typeof r.createElement=="function")try{let s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);let i=s.contentWindow;i?.[t]&&(n=i[t]),r.head.removeChild(s)}catch(s){js&&f.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,s)}return n&&(W[t]=n.bind(F))}function Rs(t){W[t]=void 0}function Ls(t,e=As("fetch")){let n=0,r=0;async function s(i){let o=i.body.length;n+=o,r++;let c={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{let a=await e(t.url,c);return{statusCode:a.status,headers:{"x-sentry-rate-limits":a.headers.get("X-Sentry-Rate-Limits"),"retry-after":a.headers.get("Retry-After")}}}catch(a){throw Rs("fetch"),a}finally{n-=o,r--}}return ns(t,s,Ot(t.bufferSize||40))}function ht(t,e,n,r){let s={filename:t,function:e==="<anonymous>"?"?":e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}var Ms=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ts=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Bs=/\((\S*)(?::(\d+))(?::(\d+))\)/,Fs=/at (.+?) ?\(data:(.+?),/,Us=[30,t=>{let e=t.match(Fs);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};let n=Ms.exec(t);if(n){let[,s,i,o]=n;return ht(s,"?",+i,+o)}let r=Ts.exec(t);if(r){if(r[2]?.indexOf("eval")===0){let o=Bs.exec(r[2]);o&&(r[2]=o[1],r[3]=o[2],r[4]=o[3])}let[s,i]=qe(r[1]||"?",r[2]);return ht(i,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Qs=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ws=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,qs=Ge(Us,[50,t=>{let e=Qs.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let s=Ws.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let n=e[3],r=e[1]||"?";return[r,n]=qe(r,n),ht(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]),qe=(t,e)=>{let n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")===-1?"?":t.split("@")[0],n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},pe=new Map;function zs(t){if(!t)return t;try{let e=new URL(t);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return t.replace(/[?#][^\s)]*/g,"")}}function Ys(t){Reflect.deleteProperty(t,"breadcrumbs"),Reflect.deleteProperty(t,"request"),Reflect.deleteProperty(t,"user");for(let e of t.exception?.values??[])for(let n of e.stacktrace?.frames??[]){let r=zs(n.filename);r&&(n.filename=r)}return t}function Ks(t,e,n){let r=`${e}:${t}`,s=pe.get(r);if(s)return s;let i=new Ds({beforeSend:Ys,dsn:t,environment:e,integrations:[],release:`lockerverse-sdk@${n}`,sendDefaultPii:!1,stackParser:qs,transport:Ls});return i.init(),pe.set(r,i),i}function Hs({context:t,contextName:e,dsn:n,environment:r,error:s}){try{let i=new x;i.setClient(Ks(n,r,s.sdkVersion)),i.setTags({"sdk.code":s.code,"sdk.operation":s.operation,"sdk.version":s.sdkVersion,source:"lockerverse-sdk"}),s.failureKind&&i.setTag("sdk.failure_kind",s.failureKind),i.setContext(e,t),i.captureException(s)}catch{}}export{Hs as captureSdkError};
|
|
6
|
+
/*! For license information please see telemetry-6KTBIZ2M.js.LEGAL.txt */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! __SENTRY_SDK_SOURCE__ */
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var s=["./chunks/chunk-6ZVB3IR2.js","./chunks/chunk-45NQLOLF.js","./chunks/chunk-DCANE7XH.js"];var a=/^[A-Za-z0-9_-]+$/;function l(n){let e=n.getAttribute("community")??"",t=n.getAttribute("auction")??"",o=n.getAttribute("instance")??"main",r=n.getAttribute("environment")??"production";if(!a.test(e)||t!==""&&!a.test(t)||!a.test(o)||r!=="production"&&r!=="development")throw new Error("Check the Lockerverse embed settings.");return{auction:t,instance:o,options:r==="development"?{apiBaseUrl:"https://portal-dev.lockerverse.com/api",communitySlug:e,environment:r}:{communitySlug:e,environment:r}}}function d(n){let e=new URL(window.location.href).searchParams;return{auction:n.auction||e.get(`lv-${n.instance}-auction`)||"",item:e.get(`lv-${n.instance}-item`)||""}}var m=`:host{display:block;min-width:0;color:#121416;color-scheme:light;background:#fff}:host([theme="dark"]),:host([theme="dark"])>div{color:#fff;color-scheme:dark;background:#050505}:host(:not([theme="dark"]))>div{color:#121416;color-scheme:light;background:#fff}.lv-embed-skeleton{--lv-placeholder: #e2e5e9;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:20px;padding:20px 0}:host([theme="dark"]) .lv-embed-skeleton{--lv-placeholder: #343840}.lv-embed-skeleton:before{grid-column:1 / -1;width:min(60%,420px);height:28px;content:"";background:var(--lv-placeholder);border-radius:4px}.lv-embed-skeleton>span{display:block}.lv-embed-skeleton>span:before,.lv-embed-skeleton>span:after{display:block;content:"";background:var(--lv-placeholder);border-radius:8px}.lv-embed-skeleton>span:before{aspect-ratio:4 / 3}.lv-embed-skeleton>span:after{width:70%;height:14px;margin-top:12px}
|
|
2
|
+
`;function u(n,e,t){let o=document.createElement("style");o.textContent=t,n.nonce&&(o.nonce=n.nonce),e.append(o)}function p(n){let e=document.createElement("div");e.className="lv-embed-skeleton",e.setAttribute("role","status"),e.setAttribute("aria-label","Loading auction");for(let t=0;t<3;t+=1){let o=document.createElement("span");o.setAttribute("aria-hidden","true"),e.append(o)}n.replaceChildren(e)}function b(n){let{options:e}=n,o=`${e.apiBaseUrl??"https://portal.lockerverse.com/api"}/auctions/communities/slug/${encodeURIComponent(e.communitySlug)}`,{auction:r}=d(n),i=document.createElement("link");return i.rel="preload",i.as="fetch",i.crossOrigin="anonymous",i.href=r?`${o}/path/${encodeURIComponent(r)}`:o,document.head.append(i),i}var h=!1;function g(){if(!h){h=!0;for(let n of s){let e=document.createElement("link");e.rel="modulepreload",e.href=new URL(n,import.meta.url).href,e.crossOrigin="anonymous",document.head.append(e)}}}var c=class extends HTMLElement{static observedAttributes=["theme","accent"];mount;container;preload;connectedCallback(){if(this.container)return;let e=this.shadowRoot??this.attachShadow({mode:"open"});e.replaceChildren(),u(this,e,m);let t=document.createElement("div");this.container=t,e.append(t);let o;try{o=l(this)}catch{t.setAttribute("role","alert"),t.textContent="Check the Lockerverse embed settings.";return}p(t),this.preload=b(o),g(),import("./runtime.js").then(({mountAuction:r})=>{this.isConnected&&this.container===t&&(this.mount=r(this,t,o,e))}).catch(()=>{this.container===t&&(t.setAttribute("role","alert"),t.textContent="The auction interface could not load. Reload the page to try again.")})}disconnectedCallback(){queueMicrotask(()=>{this.isConnected||(this.mount?.unmount(),this.mount=void 0,this.container=void 0,this.preload?.remove(),this.preload=void 0)})}attributeChangedCallback(){this.mount?.render()}};customElements.get("lockerverse-auctions")||customElements.define("lockerverse-auctions",c);
|